/* ========================================
   V3 - Light Theme AI Consulting Site
   ======================================== */

:root {
    /* Light color palette */
    --color-white: #FFFFFF;
    --color-bg: #FAFBFC;
    --color-bg-alt: #F3F4F6;
    --color-bg-subtle: #E5E7EB;

    --color-text: #111827;
    --color-text-secondary: #4B5563;
    --color-text-muted: #6B7280;
    --color-text-light: #9CA3AF;

    /* Brand accent */
    --color-primary: #2563EB;
    --color-primary-dark: #1D4ED8;
    --color-primary-light: #3B82F6;
    --color-primary-subtle: rgba(37, 99, 235, 0.08);

    /* Mountain accent - slate/stone tones */
    --color-mountain: #64748B;
    --color-mountain-light: #94A3B8;
    --color-mountain-dark: #475569;

    /* Borders */
    --color-border: #E5E7EB;
    --color-border-light: #F3F4F6;

    /* Typography */
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 150ms var(--ease-out);
    --transition-base: 300ms var(--ease-out);
    --transition-slow: 500ms var(--ease-out);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
    --shadow-xl: 0 24px 48px rgba(0,0,0,0.1);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    background: var(--color-white);
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { max-width: 60ch; }

a {
    color: inherit;
    text-decoration: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.875rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-md), 0 0 0 0 rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text);
    border: 1.5px solid var(--color-border);
}

.btn-ghost:hover {
    border-color: var(--color-text);
    background: var(--color-bg);
}

.btn-nav {
    padding: 0.625rem 1.25rem;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 0.875rem;
}

.btn-nav:hover {
    background: var(--color-primary-dark);
}

.btn-full {
    width: 100%;
}

/* ========================================
   Navigation
   ======================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    background: transparent;
    transition: all var(--transition-base);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: var(--space-sm) 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 44px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-links a:not(.btn) {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.nav-links a:not(.btn):hover {
    color: var(--color-text);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition-fast);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: var(--space-md);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    gap: var(--space-sm);
    z-index: 999;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all var(--transition-base);
}

.mobile-menu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-menu a {
    padding: var(--space-sm);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius-sm);
}

.mobile-menu a:hover {
    background: var(--color-bg);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 var(--space-3xl);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image {
    position: absolute;
    inset: 0;
    will-change: transform;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255,255,255,0.97) 0%,
        rgba(255,255,255,0.92) 40%,
        rgba(255,255,255,0.75) 70%,
        rgba(255,255,255,0.6) 100%);
}

.mountain-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(180deg, transparent 0%, var(--color-white) 100%);
    clip-path: polygon(0% 100%, 0% 60%, 15% 45%, 35% 70%, 50% 40%, 70% 65%, 85% 35%, 100% 55%, 100% 100%);
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.5rem 1rem;
    background: var(--color-primary-subtle);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.bolt-mini {
    width: 16px;
    height: 16px;
}

.hero h1 {
    margin-bottom: var(--space-md);
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 540px;
}

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

.scroll-hint {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 32px;
    background: linear-gradient(180deg, var(--color-text-muted) 0%, transparent 100%);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ========================================
   Quick Stats Section
   ======================================== */

.quick-stats {
    padding: var(--space-2xl) 0;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.stats-headline {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* ========================================
   Services Section
   ======================================== */

.services {
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.services-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
}

.services-mountain {
    position: absolute;
    top: -100px;
    left: -5%;
    right: -5%;
    bottom: -100px;
    background: url('mountain-bg.jpg') center center / cover no-repeat;
    opacity: 0.12;
}

.services > .container {
    position: relative;
    z-index: 1;
}

.services-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    margin-bottom: var(--space-2xl);
}

.services-header .section-intro {
    text-align: left;
    margin-bottom: 0;
}

.services-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-graphic {
    width: 100%;
    max-width: 320px;
}

.visual-graphic svg {
    width: 100%;
    height: auto;
}

.path-animate {
    animation: drawPath 2s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

@media (max-width: 768px) {
    .services-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .services-header .section-intro {
        text-align: center;
    }

    .services-visual {
        order: -1;
    }

    .visual-graphic {
        max-width: 240px;
    }
}

.section-intro {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.section-intro h2 {
    margin-bottom: var(--space-sm);
}

.section-intro p {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.service-card {
    padding: var(--space-xl);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-subtle);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-subtle);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    margin-bottom: var(--space-sm);
}

.service-card p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.service-features {
    list-style: none;
}

.service-features li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.375rem;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

/* ========================================
   Approach Section
   ======================================== */

.approach {
    position: relative;
    padding: var(--space-3xl) 0;
    background: var(--color-bg);
    overflow: hidden;
}

.approach-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.mountain-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, transparent 0%, var(--color-bg-alt) 100%);
    clip-path: polygon(0% 100%, 0% 70%, 10% 55%, 25% 75%, 40% 50%, 55% 70%, 70% 45%, 85% 60%, 100% 40%, 100% 100%);
    opacity: 0.5;
}

.approach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.approach-content {
    position: relative;
    z-index: 1;
}

.approach-intro {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
}

.approach-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.step {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.step:hover {
    border-color: var(--color-primary-subtle);
    box-shadow: var(--shadow-md);
}

.step-num {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    min-width: 40px;
}

.step-text h4 {
    margin-bottom: 0.25rem;
}

.step-text p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.approach-visual {
    position: relative;
    z-index: 1;
}

.visual-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 4 / 3;
}

.visual-wrapper img {
    width: 100%;
    height: 140%;
    object-fit: cover;
    display: block;
    margin-top: -20%;
}

.visual-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: var(--color-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.bolt-accent {
    width: 40px;
    height: 40px;
    color: var(--color-white);
}

/* ========================================
   Results Section
   ======================================== */

.results {
    padding: var(--space-3xl) 0;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.result-card {
    padding: var(--space-xl);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.result-industry {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.result-card h3 {
    margin-bottom: var(--space-sm);
}

.result-card > p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.result-metrics {
    display: flex;
    gap: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border-light);
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-num {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.metric-label {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* ========================================
   CTA Section
   ======================================== */

.cta {
    position: relative;
    padding: var(--space-3xl) 0;
    background: var(--color-bg);
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-mountain {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, var(--color-bg-alt) 0%, transparent 100%);
    clip-path: polygon(0% 0%, 20% 20%, 40% 5%, 60% 25%, 80% 10%, 100% 30%, 100% 0%);
    opacity: 0.4;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-3xl);
    align-items: start;
}

.cta-content h2 {
    margin-bottom: var(--space-md);
}

.cta-content > p {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-primary);
}

.contact-link svg {
    width: 24px;
    height: 24px;
}

.contact-link:hover {
    color: var(--color-primary-dark);
}

.cta-form-wrap {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-field input,
.form-field textarea {
    padding: 0.75rem 1rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-subtle);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--color-text-light);
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    padding: var(--space-2xl) 0 var(--space-lg);
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-border-light);
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: var(--space-sm);
}

.footer-brand p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.footer-links {
    display: flex;
    gap: var(--space-3xl);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-col h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.footer-col a {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding-top: var(--space-lg);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    max-width: none;
}

/* ========================================
   Animations
   ======================================== */

[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
    .services-grid,
    .results-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .approach-grid,
    .cta-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .approach-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    :root {
        --space-3xl: 4rem;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 var(--space-2xl);
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .scroll-hint {
        display: none;
    }

    .trusted-logos {
        gap: var(--space-lg);
    }

    .footer-main {
        flex-direction: column;
        gap: var(--space-xl);
    }

    .footer-links {
        gap: var(--space-xl);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-image,
    .mountain-pattern,
    .cta-mountain {
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }

    .service-card,
    .result-card,
    .cta-form-wrap {
        padding: var(--space-md);
    }

    .result-metrics {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    [data-parallax] {
        transform: none !important;
    }
}
