/* ===============================================
   GLOBAL STYLES & RESET
   =============================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Dark Professional Theme */
    --primary-color: #818cf8;
    --primary-dark: #6366f1;
    --primary-light: #a5b4fc;
    --secondary-color: #22d3ee;
    --accent-color: #fbbf24;
    --dark-bg: #0a0e1a;
    --darker-bg: #030508;
    --card-bg: #151923;
    --card-hover-bg: #1e2433;
    --light-bg: #0f1419;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-light: #64748b;
    --white: #ffffff;
    --border-color: #1e293b;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    --gradient-secondary: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    --gradient-dark: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 16px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.3);
    
    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--dark-bg);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===============================================
   NAVIGATION
   =============================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(129, 140, 248, 0.1);
    z-index: 1000;
    transition: var(--transition-base);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-base);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-base);
}

/* ===============================================
   HERO SECTION
   =============================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--spacing-xl) 0;
    margin-top: 70px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    color: var(--white);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-base);
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Hero Visual Animation */
.hero-visual {
    position: relative;
    height: 500px;
}

.data-flow-animation {
    position: relative;
    width: 100%;
    height: 100%;
}

.data-node {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-glow);
    animation: pulse 3s ease-in-out infinite;
}

.data-node.node-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.data-node.node-2 {
    top: 20%;
    right: 20%;
    animation-delay: 0.5s;
}

.data-node.node-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 1s;
}

.data-node.node-4 {
    bottom: 20%;
    right: 20%;
    animation-delay: 1.5s;
}

.connection-line {
    position: absolute;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0.3;
    animation: flowLine 2s ease-in-out infinite;
}

.connection-line.line-1 {
    top: 25%;
    left: 25%;
    right: 25%;
    width: 50%;
}

.connection-line.line-2 {
    top: 25%;
    left: 50%;
    height: 50%;
    width: 2px;
}

.connection-line.line-3 {
    bottom: 25%;
    left: 25%;
    right: 25%;
    width: 50%;
}

/* ===============================================
   SECTIONS - COMMON STYLES
   =============================================== */

section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===============================================
   CORE IDENTITY SECTION
   =============================================== */

.core-identity {
    background: var(--darker-bg);
}

.identity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.identity-card {
    background: var(--card-bg);
    padding: var(--spacing-md);
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: var(--transition-base);
    border: 1px solid var(--border-color);
}

.identity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(129, 140, 248, 0.3);
    background: var(--card-hover-bg);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.identity-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.identity-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===============================================
   DATA QUALITY SECTION
   =============================================== */

.data-quality {
    background: var(--dark-bg);
}

.quality-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.quality-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    color: var(--white);
}

.quality-text > p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.quality-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.feature-item {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.feature-icon {
    width: 30px;
    height: 30px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
}

.feature-text h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.feature-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Data Pipeline Visual */
.quality-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.data-pipeline {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
}

.pipeline-stage {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 0.5rem;
    text-align: center;
    min-width: 200px;
    box-shadow: var(--shadow-md);
    animation: slideIn 1s ease forwards;
    opacity: 0;
}

.pipeline-stage.stage-1 {
    animation-delay: 0.2s;
}

.pipeline-stage.stage-2 {
    animation-delay: 0.4s;
}

.pipeline-stage.stage-3 {
    animation-delay: 0.6s;
}

.pipeline-stage.stage-4 {
    animation-delay: 0.8s;
    background: var(--gradient-secondary);
}

.pipeline-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    transform: rotate(90deg);
}

.stage-label {
    font-weight: 600;
    font-size: 1rem;
}

/* ===============================================
   DUAL STRATEGY SECTION
   =============================================== */

.dual-strategy {
    background: var(--darker-bg);
    color: var(--white);
}

.dual-strategy .section-tag {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
}

.dual-strategy .section-header h2 {
    color: var(--white);
}

.dual-strategy .section-description {
    color: var(--text-light);
}

.strategy-pathways {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.pathway-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: var(--spacing-md);
    transition: var(--transition-base);
}

.pathway-card:hover {
    background: var(--card-hover-bg);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(129, 140, 248, 0.4);
    border-color: var(--primary-color);
}

.pathway-header {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
}

.pathway-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
}

.pathway-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
}

.pathway-intro {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.pathway-benefits {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.benefit-item {
    background: rgba(255, 255, 255, 0.03);
    padding: var(--spacing-sm);
    border-radius: 0.5rem;
    border-left: 3px solid var(--primary-color);
}

.benefit-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.benefit-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Strategy Connection Visual */
.strategy-connection {
    margin-top: var(--spacing-lg);
}

.connection-visual {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.central-hub {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
    z-index: 2;
}

.hub-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.central-hub span {
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

.connection-branch {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.connection-branch.branch-left {
    left: 0;
    right: 50%;
}

.connection-branch.branch-right {
    right: 0;
    left: 50%;
}

.branch-line {
    position: absolute;
    height: 2px;
    background: var(--gradient-primary);
    top: 50%;
    transform: translateY(-50%);
    width: calc(50% - 75px);
    opacity: 0.5;
}

.branch-left .branch-line {
    right: 0;
}

.branch-right .branch-line {
    left: 0;
}

.branch-endpoint {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(99, 102, 241, 0.2);
    border: 2px solid var(--primary-color);
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.branch-left .branch-endpoint {
    left: 0;
}

.branch-right .branch-endpoint {
    right: 0;
}

/* ===============================================
   SERVICES SECTION
   =============================================== */

.services {
    background: var(--dark-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background: var(--card-bg);
    padding: var(--spacing-md);
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: var(--transition-base);
    border: 1px solid var(--border-color);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(129, 140, 248, 0.3);
    background: var(--card-hover-bg);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===============================================
   CTA SECTION
   =============================================== */

.cta-section {
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.cta-section .btn-secondary {
    border-color: var(--white);
    color: var(--white);
}

.cta-section .btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* ===============================================
   FOOTER
   =============================================== */

.footer {
    background: var(--darker-bg);
    color: var(--text-light);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-light);
    margin-bottom: var(--spacing-sm);
}

.footer-brand p {
    line-height: 1.8;
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-column h4 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===============================================
   ANIMATIONS
   =============================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes flowLine {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */

@media (max-width: 968px) {
    .hero .container,
    .quality-content,
    .strategy-pathways,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .connection-visual {
        transform: scale(0.8);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        padding: var(--spacing-md) 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    section {
        padding: var(--spacing-md) 0;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .identity-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-cta,
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
    }
}

/* ===============================================
   UTILITY CLASSES
   =============================================== */

.text-center {
    text-align: center;
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.hidden {
    display: none;
}
