/* ============================================
   NEURALFORGE — PREMIUM 3D AGENCY
   Ultra-Professional Light-First Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   DESIGN SYSTEM
   ============================================ */
:root {
    --brand: #4F46E5;
    --brand-light: #818CF8;
    --brand-dark: #3730A3;
    --brand-50: #EEF2FF;
    --brand-100: #E0E7FF;
    --brand-600: #4F46E5;
    --brand-700: #4338CA;
    --brand-900: #312E81;

    --accent: #0EA5E9;
    --accent-light: #38BDF8;
    --accent-dark: #0284C7;

    --emerald: #10B981;
    --amber: #F59E0B;
    --rose: #F43F5E;

    --gradient-brand: linear-gradient(135deg, #4F46E5 0%, #0EA5E9 100%);
    --gradient-hero: linear-gradient(135deg, #4F46E5 0%, #7C3AED 40%, #0EA5E9 100%);
    --gradient-warm: linear-gradient(135deg, #4F46E5 0%, #F43F5E 100%);
    --gradient-subtle: linear-gradient(135deg, #EEF2FF 0%, #E0F2FE 100%);

    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
}

/* LIGHT THEME (DEFAULT) */
[data-theme="light"] {
    --bg-body: #FFFFFF;
    --bg-section: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FAFBFF;
    --bg-elevated: #FFFFFF;
    --bg-muted: #F1F5F9;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-glass-strong: rgba(255, 255, 255, 0.85);
    --bg-overlay: rgba(15, 23, 42, 0.04);

    --text-heading: #0F172A;
    --text-body: #334155;
    --text-muted: #64748B;
    --text-faint: #94A3B8;
    --text-inverse: #FFFFFF;

    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --border-hover: #CBD5E1;
    --border-brand: rgba(79, 70, 229, 0.2);

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.06), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.06), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.1);
    --shadow-brand: 0 8px 30px rgba(79, 70, 229, 0.12);
    --shadow-brand-lg: 0 20px 50px rgba(79, 70, 229, 0.15);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.02);
    --shadow-card-hover: 0 20px 40px rgba(0,0,0,0.08), 0 0 0 1px rgba(79,70,229,0.08);

    --hero-bg: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 50%, #F8FAFC 100%);

    color-scheme: light;
}

/* DARK THEME */
[data-theme="dark"] {
    --bg-body: #0B0F1A;
    --bg-section: #0F1629;
    --bg-card: #151C32;
    --bg-card-hover: #1A2240;
    --bg-elevated: #1E2642;
    --bg-muted: #131A2E;
    --bg-glass: rgba(15, 22, 41, 0.7);
    --bg-glass-strong: rgba(15, 22, 41, 0.9);
    --bg-overlay: rgba(255, 255, 255, 0.02);

    --text-heading: #F1F5F9;
    --text-body: #94A3B8;
    --text-muted: #64748B;
    --text-faint: #475569;
    --text-inverse: #0B0F1A;

    --border: #1E293B;
    --border-light: #1E293B;
    --border-hover: #334155;
    --border-brand: rgba(79, 70, 229, 0.3);

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.3);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.3);
    --shadow-2xl: 0 25px 50px rgba(0,0,0,0.4);
    --shadow-brand: 0 8px 30px rgba(79, 70, 229, 0.2);
    --shadow-brand-lg: 0 20px 50px rgba(79, 70, 229, 0.2);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.03);
    --shadow-card-hover: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(79,70,229,0.15);

    --hero-bg: linear-gradient(180deg, #0B0F1A 0%, #0F1629 50%, #0B0F1A 100%);

    color-scheme: dark;
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-padding-top: 100px;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-body);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.5s ease, color 0.5s ease;
}

a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

::selection { background: rgba(79, 70, 229, 0.15); color: var(--text-heading); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* ============================================
   LOADING SCREEN
   ============================================ */
#loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 32px;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    width: 56px;
    height: 56px;
    background: var(--gradient-brand);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-brand);
    animation: loaderPulse 1.8s ease-in-out infinite;
}

.loader-logo svg { width: 28px; height: 28px; color: white; }

@keyframes loaderPulse {
    0%, 100% { transform: scale(1) rotate(0deg); box-shadow: var(--shadow-brand); }
    50% { transform: scale(1.08) rotate(3deg); box-shadow: var(--shadow-brand-lg); }
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-brand);
    border-radius: 2px;
    animation: loaderFill 1.5s ease-out forwards;
}

@keyframes loaderFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ============================================
   LAYOUT
   ============================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-lg { max-width: 1360px; margin: 0 auto; padding: 0 32px; }
.container-xl { max-width: 1520px; margin: 0 auto; padding: 0 40px; }

.section {
    padding: 140px 0;
    position: relative;
}

.section-alt { background: var(--bg-section); }

/* ============================================
   PROGRESS BAR
   ============================================ */
#progressBar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--gradient-brand);
    z-index: 10000;
    transition: width 0.15s linear;
    box-shadow: 0 0 12px rgba(79, 70, 229, 0.3);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--brand);
    margin-bottom: 20px;
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    background: var(--brand);
    border-radius: 50%;
}

.heading-xl {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: var(--text-heading);
}

.heading-lg {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-heading);
}

.heading-md {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-heading);
}

.heading-sm {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-heading);
}

.body-lg {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-body);
}

.body-md {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.body-sm {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.mono-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--brand);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--font-body);
    border-radius: var(--radius-lg);
    transition: all 0.4s var(--ease-out);
    position: relative;
    white-space: nowrap;
    cursor: pointer;
}

.btn-primary {
    background: var(--brand);
    color: #FFFFFF;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 4px 16px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 8px 30px rgba(79, 70, 229, 0.25);
}

.btn-primary:active { transform: translateY(0); }

.btn-outline {
    background: transparent;
    color: var(--text-heading);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-50);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--brand);
    padding: 14px 16px;
}

.btn-ghost:hover { background: var(--brand-50); }

.btn-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.btn:hover .btn-arrow { transform: translateX(4px); }

/* Large CTA button */
.btn-lg {
    padding: 18px 40px;
    font-size: 0.95rem;
    border-radius: var(--radius-xl);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
    padding: 6px 0;
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 60px;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s var(--ease-out);
}

.nav.scrolled .nav-bar {
    box-shadow: var(--shadow-lg);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-brand);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
    transition: transform 0.3s var(--ease-spring);
}

.logo-icon:hover { transform: scale(1.1) rotate(-5deg); }
.logo-icon svg { width: 18px; height: 18px; color: white; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    transition: all 0.25s ease;
}

.nav-link:hover {
    color: var(--text-heading);
    background: var(--bg-overlay);
}

.nav-link.active {
    color: var(--brand);
    background: var(--brand-50);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.theme-btn:hover {
    color: var(--brand);
    background: var(--brand-50);
    border-color: var(--border);
}

.theme-btn svg { width: 16px; height: 16px; }

.nav-cta {
    padding: 8px 20px;
    font-size: 0.82rem;
    font-weight: 600;
    background: var(--brand);
    color: white;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--brand-dark);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.25);
    transform: translateY(-1px);
}

/* Mobile */
.mobile-btn {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--text-heading);
}

.hamburger { width: 18px; height: 12px; position: relative; }
.hamburger span {
    position: absolute;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    left: 0;
    transition: all 0.3s ease;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 5px; width: 70%; }
.hamburger span:nth-child(3) { top: 10px; width: 85%; }

.mobile-btn.open .hamburger span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.mobile-btn.open .hamburger span:nth-child(2) { opacity: 0; }
.mobile-btn.open .hamburger span:nth-child(3) { top: 5px; transform: rotate(-45deg); width: 100%; }

.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-body);
    z-index: 999;
    padding: 100px 32px 40px;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav.open { display: flex; }

.mobile-nav .nav-link {
    font-size: 1.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-heading);
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

/* ============================================
   3D CANVAS CONTAINER
   ============================================ */
#scene-container {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    background: var(--hero-bg);
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--bg-body), transparent);
    z-index: 1;
    pointer-events: none;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content { max-width: 600px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 8px;
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 32px;
}

[data-theme="dark"] .hero-badge {
    background: rgba(79, 70, 229, 0.1);
    border-color: rgba(79, 70, 229, 0.2);
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--emerald);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    margin-bottom: 24px;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 520px;
}

.hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

/* Stats Row */
.hero-stats {
    display: flex;
    gap: 40px;
}

.hero-stat {
    position: relative;
    padding-left: 16px;
}

.hero-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: var(--gradient-brand);
    border-radius: 2px;
}

.stat-val {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

/* Hero visual area — for Three.js or SVG */
.hero-visual {
    position: relative;
    width: 100%;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#heroThreeCanvas {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-2xl);
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
    padding: 48px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
    position: relative;
}

.trust-label {
    text-align: center;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-faint);
    margin-bottom: 24px;
}

.marquee-wrap {
    overflow: hidden;
    position: relative;
}

.marquee-wrap::before,
.marquee-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.marquee-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg-body), transparent); }
.marquee-wrap::after { right: 0; background: linear-gradient(-90deg, var(--bg-body), transparent); }

[data-theme="light"] .trust-bar .marquee-wrap::before { background: linear-gradient(90deg, #fff, transparent); }
[data-theme="light"] .trust-bar .marquee-wrap::after { background: linear-gradient(-90deg, #fff, transparent); }

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marquee-set {
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 0 24px;
}

.marquee-item {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-faint);
    white-space: nowrap;
    transition: color 0.3s ease;
}

.marquee-item:hover { color: var(--text-muted); }

.marquee-dot {
    width: 4px;
    height: 4px;
    background: var(--brand);
    border-radius: 50%;
    opacity: 0.3;
    flex-shrink: 0;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-body);
    line-height: 1.85;
    margin-bottom: 20px;
}

.about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.about-card {
    padding: 28px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: all 0.4s var(--ease-out);
}

.about-card:hover {
    border-color: var(--border-brand);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.about-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.icon-brand { background: var(--brand-50); }
.icon-cyan { background: #E0F2FE; }
.icon-green { background: #D1FAE5; }
.icon-rose { background: #FFE4E6; }

[data-theme="dark"] .icon-brand { background: rgba(79, 70, 229, 0.12); }
[data-theme="dark"] .icon-cyan { background: rgba(14, 165, 233, 0.12); }
[data-theme="dark"] .icon-green { background: rgba(16, 185, 129, 0.12); }
[data-theme="dark"] .icon-rose { background: rgba(244, 63, 94, 0.12); }

.about-card h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.about-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; }

/* ============================================
   SERVICES
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 80px;
}

.srv-card {
    padding: 32px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.srv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out);
}

.srv-card:hover {
    border-color: var(--border-brand);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-6px);
}

.srv-card:hover::before { transform: scaleX(1); }

.srv-num {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-faint);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.srv-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.srv-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 10px;
}

.srv-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 20px;
}

.srv-meta { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }

.srv-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.srv-tag {
    padding: 3px 8px;
    background: var(--bg-muted);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Secondary */
.sec-divider {
    padding-top: 48px;
    border-top: 1px solid var(--border-light);
    text-align: center;
    margin-bottom: 40px;
}

.sec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.sec-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s var(--ease-out);
}

.sec-card:hover {
    border-color: var(--border-brand);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.sec-card h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ai-badge {
    padding: 2px 8px;
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--brand);
}

[data-theme="dark"] .ai-badge {
    background: rgba(79, 70, 229, 0.1);
    border-color: rgba(79, 70, 229, 0.2);
}

.sec-card p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.6; }

/* ============================================
   CASE STUDIES
   ============================================ */
.cases-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.case-card {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all 0.5s var(--ease-out);
}

.case-card:hover {
    border-color: var(--border-brand);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.case-card:nth-child(even) { direction: rtl; }
.case-card:nth-child(even) > * { direction: ltr; }

.case-visual {
    padding: 44px;
    background: var(--gradient-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .case-visual {
    background: linear-gradient(135deg, rgba(79,70,229,0.06) 0%, rgba(14,165,233,0.06) 100%);
}

.case-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
}

.case-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.cm-val {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--text-heading);
}

.cm-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.case-body { padding: 44px; }

.case-tag {
    display: inline-flex;
    padding: 4px 12px;
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 16px;
}

[data-theme="dark"] .case-tag {
    background: rgba(79,70,229,0.1);
    border-color: rgba(79,70,229,0.2);
}

.case-body h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 20px;
    line-height: 1.25;
}

.case-block { margin-bottom: 16px; }

.case-block-text {
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.7;
}

.case-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.case-tech span {
    padding: 3px 8px;
    background: var(--bg-muted);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* ============================================
   TECH STACK
   ============================================ */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tech-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: all 0.3s var(--ease-out);
}

.tech-card:hover {
    border-color: var(--border-brand);
    box-shadow: var(--shadow-md);
}

.tech-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

.tech-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.tech-cat {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand);
}

.tech-pills { display: flex; flex-wrap: wrap; gap: 6px; }

.tech-pill {
    padding: 6px 12px;
    background: var(--bg-muted);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-body);
    transition: all 0.25s ease;
    cursor: default;
}

.tech-pill:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   PROCESS
   ============================================ */
.process-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 36px;
    right: 36px;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.proc-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.proc-num {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand);
    transition: all 0.4s var(--ease-out);
    box-shadow: var(--shadow-sm);
}

.proc-step:hover .proc-num {
    border-color: var(--brand);
    box-shadow: var(--shadow-brand);
    transform: scale(1.1);
    background: var(--brand-50);
}

[data-theme="dark"] .proc-step:hover .proc-num {
    background: rgba(79, 70, 229, 0.1);
}

.proc-step h4 {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 6px;
    line-height: 1.3;
}

.proc-step p {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.45;
    padding: 0 2px;
}

/* ============================================
   WHY US
   ============================================ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.why-card {
    padding: 32px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all 0.4s var(--ease-out);
}

.why-card:hover {
    border-color: var(--border-brand);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-6px);
}

.why-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.4s var(--ease-spring);
}

.why-card:hover .why-icon { transform: scale(1.15) rotate(-5deg); }

.why-card h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.why-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.test-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.test-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    transition: all 0.3s var(--ease-out);
}

.test-card:hover {
    border-color: var(--border-brand);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.test-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 20px;
    color: var(--amber);
    font-size: 0.85rem;
}

.test-quote {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.75;
    flex: 1;
    margin-bottom: 24px;
    font-style: italic;
}

.test-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.test-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: white;
}

.test-name {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-heading);
}

.test-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1px;
}

/* ============================================
   FINAL CTA
   ============================================ */
.cta-section { padding: 120px 0; }

.cta-box {
    padding: 80px 60px;
    border-radius: var(--radius-2xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-brand);
    color: white;
    box-shadow: var(--shadow-brand-lg);
}

.cta-box .eyebrow { color: rgba(255,255,255,0.7); }
.cta-box .eyebrow .eyebrow-dot { background: rgba(255,255,255,0.5); }

.cta-box h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    line-height: 1.15;
    color: white;
}

.cta-box p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.cta-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cta-btns .btn-primary {
    background: white;
    color: var(--brand);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.cta-btns .btn-primary:hover {
    background: #F8FAFC;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.cta-btns .btn-outline {
    border-color: rgba(255,255,255,0.3);
    color: white;
}

.cta-btns .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    color: white;
}

/* Pattern overlay */
.cta-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

/* ============================================
   DELIVERABLES
   ============================================ */
.del-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.del-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

.del-card-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.del-card-title::before {
    content: '';
    width: 3px;
    height: 18px;
    background: var(--gradient-brand);
    border-radius: 2px;
    flex-shrink: 0;
}

.del-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.del-item:last-child { border-bottom: none; }

.del-text {
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-about {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 14px;
    max-width: 300px;
}

.footer-col-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 16px;
}

.footer-link {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 4px 0;
    transition: color 0.2s ease;
}

.footer-link:hover { color: var(--brand); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    font-size: 0.78rem;
    color: var(--text-faint);
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.vis {
    opacity: 1;
    transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }
.reveal-d6 { transition-delay: 0.48s; }
.reveal-d7 { transition-delay: 0.56s; }
.reveal-d8 { transition-delay: 0.64s; }

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-left.vis { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-right.vis { opacity: 1; transform: translateX(0); }

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-scale.vis { opacity: 1; transform: scale(1); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1280px) {
    .why-grid { grid-template-columns: repeat(3, 1fr); }
    .process-grid { grid-template-columns: repeat(4, 1fr); }
    .process-grid::before { display: none; }
}

@media (max-width: 1024px) {
    .section { padding: 100px 0; }
    .hero-layout { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual { height: 400px; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .tech-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .section { padding: 80px 0; }
    .container-lg, .container-xl { padding: 0 20px; }
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .mobile-btn { display: flex; }

    .hero { padding: 100px 0 60px; }
    .hero-visual { height: 300px; }
    .hero-stats { flex-wrap: wrap; gap: 20px; }

    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-cards { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .sec-grid { grid-template-columns: 1fr; }
    .case-card { grid-template-columns: 1fr; }
    .case-card:nth-child(even) { direction: ltr; }
    .tech-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .why-grid { grid-template-columns: 1fr 1fr; }
    .test-grid { grid-template-columns: 1fr; }
    .del-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }

    .hero-btns { flex-direction: column; }
    .hero-btns .btn { width: 100%; }

    .cta-box { padding: 48px 24px; }
    .cta-btns { flex-direction: column; }
    .cta-btns .btn { width: 100%; max-width: 300px; }

    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 480px) {
    .why-grid { grid-template-columns: 1fr; }
    .case-metrics { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; }
    .process-grid { grid-template-columns: 1fr; }
}