/* Modern Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Google's floating reCAPTCHA badge is unstyled, sits at a very high
   z-index, and on unregistered domains renders a distracting error
   overlay. Hiding it is permitted by Google's terms only if this
   disclosure text is shown near every form it protects — see
   .recaptcha-disclosure below. */
.grecaptcha-badge {
    visibility: hidden !important;
}

.recaptcha-disclosure {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.85rem;
    line-height: 1.5;
}

.recaptcha-disclosure a {
    color: inherit;
    text-decoration: underline;
}

:root {
    /* ==========================================
       ENTERPRISE DESIGN SYSTEM FOUNDATION (PHASE 2A)
       ========================================== */

    /* COLOR TOKENS */
    --eds-color-primary: var(--color-primary);
    --eds-color-primary-hover: var(--color-primary-hover);
    --eds-color-accent: var(--color-accent);
    --eds-color-accent-hover: var(--color-accent-hover);

    /* Neutral Scale (Light Theme Defaults) */
    --eds-color-neutral-50: #f8fafc;
    --eds-color-neutral-100: #f1f5f9;
    --eds-color-neutral-200: #e2e8f0;
    --eds-color-neutral-300: #cbd5e1;
    --eds-color-neutral-400: #94a3b8;
    --eds-color-neutral-500: #64748b;
    --eds-color-neutral-600: #475569;
    --eds-color-neutral-700: #334155;
    --eds-color-neutral-800: #1e293b;
    --eds-color-neutral-900: #0f172a;
    --eds-color-neutral-950: #0b0f19;

    /* Semantic Status Colors */
    --eds-color-success: #10b981;
    --eds-color-success-hover: #059669;
    --eds-color-warning: #f59e0b;
    --eds-color-warning-hover: #d97706;
    --eds-color-error: #ef4444;
    --eds-color-error-hover: #dc2626;
    --eds-color-info: #3b82f6;
    --eds-color-info-hover: #2563eb;

    /* Backgrounds & Surfaces */
    --eds-color-bg-primary: var(--bg-primary);
    --eds-color-bg-secondary: var(--bg-secondary);
    --eds-color-bg-elevated: var(--bg-elevated);
    --eds-color-border-subtle: var(--border-subtle);
    --eds-color-border-strong: var(--border-strong);
    --eds-color-overlay: rgba(15, 23, 42, 0.5);

    /* Text Colors */
    --eds-text-primary: var(--text-primary);
    --eds-text-secondary: var(--text-secondary);
    --eds-text-muted: var(--text-muted);
    --eds-text-inverse: #ffffff;
    --eds-text-disabled: var(--eds-color-neutral-400);

    /* TYPOGRAPHY TOKENS */
    --eds-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --eds-font-family-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --eds-font-weight-light: 300;
    --eds-font-weight-normal: 400;
    --eds-font-weight-medium: 500;
    --eds-font-weight-semibold: 600;
    --eds-font-weight-bold: 700;
    --eds-font-weight-extrabold: 800;

    --eds-line-height-tight: 1.2;
    --eds-line-height-normal: 1.5;
    --eds-line-height-relaxed: 1.7;

    --eds-letter-spacing-tight: -0.025em;
    --eds-letter-spacing-normal: 0em;
    --eds-letter-spacing-wide: 0.05em;

    /* Font Sizes Scale */
    --eds-font-size-xs: 0.75rem;     /* 12px */
    --eds-font-size-sm: 0.875rem;    /* 14px */
    --eds-font-size-base: 1rem;       /* 16px */
    --eds-font-size-md: 1.125rem;    /* 18px */
    --eds-font-size-lg: 1.25rem;     /* 20px */
    --eds-font-size-xl: 1.5rem;      /* 24px */
    --eds-font-size-2xl: 1.875rem;   /* 30px */
    --eds-font-size-3xl: 2.25rem;    /* 36px */
    --eds-font-size-4xl: 3rem;       /* 48px */
    --eds-font-size-5xl: 3.75rem;    /* 60px */

    /* SPACING TOKENS */
    --eds-spacing-2xs: 0.25rem;      /* 4px */
    --eds-spacing-xs: 0.5rem;        /* 8px */
    --eds-spacing-sm: 0.75rem;       /* 12px */
    --eds-spacing-md: 1rem;          /* 16px */
    --eds-spacing-lg: 1.5rem;        /* 24px */
    --eds-spacing-xl: 2rem;          /* 32px */
    --eds-spacing-2xl: 3rem;         /* 48px */
    --eds-spacing-3xl: 4rem;         /* 64px */
    --eds-spacing-4xl: 7.5rem;       /* 120px */

    /* RADIUS TOKENS */
    --eds-radius-sm: var(--radius-sm);
    --eds-radius-md: var(--radius-md);
    --eds-radius-lg: var(--radius-lg);
    --eds-radius-xl: var(--radius-xl);
    --eds-radius-2xl: 24px;
    --eds-radius-full: 9999px;

    /* SHADOW TOKENS */
    --eds-shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --eds-shadow-sm: var(--shadow-sm);
    --eds-shadow-md: var(--shadow-md);
    --eds-shadow-lg: var(--shadow-lg);
    --eds-shadow-xl: var(--shadow-xl);
    --eds-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* MOTION TOKENS */
    --eds-motion-duration-fast: 150ms;
    --eds-motion-duration-normal: 300ms;
    --eds-motion-duration-slow: 500ms;
    --eds-motion-ease: ease;
    --eds-motion-ease-in: ease-in;
    --eds-motion-ease-out: ease-out;
    --eds-motion-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-INDEX TOKENS */
    --eds-z-dropdown: 1000;
    --eds-z-sticky: 1020;
    --eds-z-modal: 1050;
    --eds-z-tooltip: 1070;
    --eds-z-toast: 1090;

    /* CONTAINER TOKENS */
    --eds-container-max-width-sm: 640px;
    --eds-container-max-width-md: 768px;
    --eds-container-max-width-lg: 1024px;
    --eds-container-max-width-xl: 1280px;
    --eds-container-max-width-2xl: 1400px;
    /* Brand Tokens — drawn from the actual logo mark (deep navy + green on
       ivory), not a generic AI-SaaS blue/violet/cyan palette. RGB triplets
       exist alongside the hex tokens so translucent overlays elsewhere in
       this file can reference rgba(var(--color-primary-rgb), X) and stay
       theme-aware instead of hardcoding a color that never updates in
       light mode. */
    --color-primary: #2E6DA4;
    --color-primary-rgb: 46, 109, 164;
    --color-primary-hover: #3A7AB4;
    --color-accent: #3FA35A;
    --color-accent-rgb: 63, 163, 90;
    --color-accent-hover: #4FB86C;

    /* Text-safe brand colors.
       --color-primary / --color-accent are FILL colors: white text sits on
       them (white on #2E6DA4 = 5.47:1). Used as *text* on the dark navy
       surfaces they only reach ~2.7:1, well under WCAG AA. One value cannot
       satisfy both, so brand-colored text and icons use these lighter
       variants instead, while buttons keep the fill tokens. */
    --text-brand: #5B9BD5;
    --text-brand-accent: #4FB86C;

    /* Backgrounds */
    --bg-primary: #0A121C;
    --bg-secondary: #101B28;
    --bg-elevated: #17293C;
    --header-bg: rgba(10, 18, 28, 0.8);
    --header-bg-scrolled: rgba(10, 18, 28, 0.95);

    /* Text Colors */
    --text-primary: #F3F0E8;
    --text-secondary: #B7C1CC;
    --text-muted: #8291A0;

    /* Borders */
    --border-subtle: #1D2E42;
    --border-strong: #2E4460;
    
    /* 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), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    
    /* Radii */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Spacing */
    --section-spacing: clamp(4rem, 8vw, 8rem);
    
    /* Transitions */
    --transition-fast: all 0.15s ease;
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Backward Compatibility Aliases */
    --primary-color: var(--color-primary);
    --secondary-color: var(--color-primary-hover);
    --accent-color: var(--color-accent);
    --background: var(--bg-primary);
    --surface: var(--bg-secondary);
    --surface-dark: #1e293b;
    --border: var(--border-subtle);
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    --gradient-modern: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    --gradient-dark: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-elevated) 100%);
    --shadow: var(--shadow-sm);
    --shadow-lg: var(--shadow-lg);
    --shadow-xl: var(--shadow-xl);
    --blur: backdrop-filter: blur(20px);
    --vh: 1vh;
    --border-radius: var(--radius-md);
    --border-radius-lg: var(--radius-lg);
    --transition: var(--transition-normal);
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}

body {
    font-family: var(--eds-font-family);
    line-height: var(--eds-line-height-relaxed);
    color: var(--eds-text-primary);
    background: var(--eds-color-bg-primary);
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    font-variant-numeric: oldstyle-nums;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    opacity: 1;
}

body.loaded {
    opacity: 1;
}

/* Global Resets & Base Styles */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--eds-motion-duration-fast) var(--eds-motion-ease-in-out), background-color var(--eds-motion-duration-fast) var(--eds-motion-ease-in-out);
}

ul, ol {
    list-style-position: inside;
}

::selection {
    background-color: var(--eds-color-primary);
    color: var(--eds-text-inverse);
}

/* Scrollbars (theme-aware — tracks bg-secondary/border-strong so this
   stays coherent whether the page is in the default dark theme or the
   light-blue theme, instead of a fixed light-gray scrollbar on a dark page) */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) var(--bg-secondary);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: var(--eds-radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--eds-color-primary);
}

/* Global Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    color: var(--eds-text-primary);
    font-weight: var(--eds-font-weight-bold);
    font-family: var(--eds-font-family);
}

/* h1/h2 — the large headline "moments" on the page — get a distinct
   display face instead of the same Inter used for every paragraph and
   card title. Smaller headings (h3-h6) stay on Inter so the effect reads
   as a deliberate typographic choice, not noise. */
h1, h2 {
    font-family: var(--eds-font-family-display);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: var(--eds-line-height-tight);
    letter-spacing: var(--eds-letter-spacing-tight);
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    line-height: var(--eds-line-height-tight);
    letter-spacing: var(--eds-letter-spacing-tight);
}

h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    line-height: var(--eds-line-height-tight);
}

p {
    line-height: var(--eds-line-height-relaxed);
    color: var(--eds-text-secondary);
}

.container {
    max-width: var(--eds-container-max-width-2xl);
    margin: 0 auto;
    padding: 0 var(--eds-spacing-xl);
}

/* Modern Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: var(--eds-z-sticky);
    padding: var(--eds-spacing-md) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: padding var(--eds-motion-duration-normal) var(--eds-motion-ease-in-out), background-color var(--eds-motion-duration-normal) var(--eds-motion-ease-in-out), box-shadow var(--eds-motion-duration-normal) var(--eds-motion-ease-in-out), border-color var(--eds-motion-duration-normal) var(--eds-motion-ease-in-out);
}

.navbar.scrolled {
    background: var(--header-bg-scrolled);
    box-shadow: var(--eds-shadow-md);
    padding: var(--eds-spacing-sm) 0;
    border-bottom: 1px solid var(--eds-color-border-subtle);
}

.nav-container {
    max-width: var(--eds-container-max-width-2xl);
    margin: 0 auto;
    padding: 0 var(--eds-spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform var(--eds-motion-duration-normal) var(--eds-motion-ease-in-out);
}

.nav-logo:hover {
    transform: scale(1.02);
}

.logo {
    height: 44px;
    width: auto;
    transition: transform var(--eds-motion-duration-normal) var(--eds-motion-ease-in-out);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.logo-text {
    font-family: var(--eds-font-family-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--eds-text-primary);
    letter-spacing: -0.02em;
    transition: transform var(--eds-motion-duration-normal) var(--eds-motion-ease-in-out);
    display: inline-block;
}

.nav-logo:hover .logo-text,
.footer-logo:hover .logo-text {
    transform: scale(1.04);
    filter: drop-shadow(0 2px 6px rgba(var(--color-primary-rgb), 0.25));
}

@keyframes logoGradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.nav-menu {
    display: flex;
    gap: var(--eds-spacing-lg);
    overflow: visible;
}

.nav-link {
    text-decoration: none;
    color: var(--eds-text-primary);
    font-weight: var(--eds-font-weight-medium);
    font-size: var(--eds-font-size-base);
    transition: color var(--eds-motion-duration-fast) var(--eds-motion-ease-in-out), background-color var(--eds-motion-duration-fast) var(--eds-motion-ease-in-out), transform var(--eds-motion-duration-fast) var(--eds-motion-ease-in-out);
    position: relative;
    padding: var(--eds-spacing-xs) var(--eds-spacing-sm);
    border-radius: var(--eds-radius-md);
}

.nav-link:hover {
    color: var(--text-brand);
    background: rgba(var(--color-primary-rgb), 0.05);
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-modern);
    transition: width var(--eds-motion-duration-fast) var(--eds-motion-ease-in-out);
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 80%;
}

/* Accessibility Focus Indicator */
.nav-link:focus-visible {
    outline: 2px solid var(--eds-color-accent);
    outline-offset: 4px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--eds-spacing-lg);
}

.btn-nav {
    padding: var(--eds-spacing-xs) var(--eds-spacing-lg) !important;
    font-size: var(--eds-font-size-sm) !important;
    font-weight: var(--eds-font-weight-medium) !important;
    border-radius: var(--eds-radius-md) !important;
    white-space: nowrap;
}

@media (max-width: 768px) {
    /* Scoped to .nav-actions to out-rank the generic `.btn { display:
       inline-flex }` defined later in this file. Both selectors are a
       single class, so at equal specificity the later rule was winning
       and the CTA stayed visible on mobile — pushing the hamburger ~12px
       past the viewport, where overflow-x: hidden silently clipped it. */
    .nav-actions .btn-nav {
        display: none;
    }
}

.language-selector select {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .language-selector {
        display: none;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .hamburger {
        padding: 0.5rem;
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--eds-text-primary);
    transition: transform var(--eds-motion-duration-normal) var(--eds-motion-ease-in-out), opacity var(--eds-motion-duration-normal) var(--eds-motion-ease-in-out);
}

/* Accessible Hamburger Toggle Animation */
.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100vw;
        height: calc(100vh - 70px);
        background: var(--eds-color-bg-elevated);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: var(--eds-spacing-2xl) 0;
        transition: left var(--eds-motion-duration-normal) var(--eds-motion-ease-in-out);
        z-index: var(--eds-z-modal);
        overflow-y: auto;
        box-sizing: border-box;
        gap: var(--eds-spacing-md);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        padding: 1.2rem var(--eds-spacing-xl);
        font-size: var(--eds-font-size-lg);
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--eds-color-border-subtle);
        display: block;
        box-sizing: border-box;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
}

/* Modern Hero Section */
/* Modern Hero Section Overhaul */
.hero {
    padding: 160px 0 120px;
    background: var(--eds-color-bg-secondary);
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Background Grid Overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(46,109,164,0.05)" stroke-width="1.2"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 1;
}

/* Subtle Gradient Mesh (slow ambient drift for a "living" premium feel) */
.hero::after {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    background:
        radial-gradient(circle at 10% 20%, rgba(var(--color-primary-rgb), 0.09) 0%, transparent 45%),
        radial-gradient(circle at 80% 85%, rgba(var(--color-accent-rgb), 0.07) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(var(--color-primary-rgb), 0.03) 0%, transparent 60%);
    background-size: 130% 130%;
    animation: heroMeshDrift 22s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes heroMeshDrift {
    0% { background-position: 0% 0%; }
    100% { background-position: 15% 20%; }
}

@media (prefers-reduced-motion: reduce) {
    .hero::after {
        animation: none;
    }
}

/* Responsive Two-Column Layout */
.hero-content {
    max-width: var(--eds-container-max-width-2xl);
    margin: 0 auto;
    padding: 0 var(--eds-spacing-xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--eds-spacing-2xl);
    align-items: center;
    position: relative;
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    animation: fadeInUp 0.8s ease-out;
}

/* Eyebrow Label */
.hero-eyebrow {
    font-size: var(--eds-font-size-xs);
    font-weight: var(--eds-font-weight-bold);
    color: var(--text-brand);
    letter-spacing: 0.15em;
    margin-bottom: var(--eds-spacing-sm);
    text-transform: uppercase;
}

/* Headline */
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: var(--eds-font-weight-extrabold);
    line-height: 1.05;
    letter-spacing: var(--eds-letter-spacing-tight);
    margin-bottom: var(--eds-spacing-md);
    color: var(--eds-text-primary);
}

/* Subtitle / Lead */
.hero-lead {
    font-size: var(--eds-font-size-lg);
    font-weight: var(--eds-font-weight-normal);
    line-height: var(--eds-line-height-relaxed);
    color: var(--eds-text-secondary);
    margin-bottom: var(--eds-spacing-xl);
    max-width: 560px;
}

.hero-buttons {
    display: flex;
    gap: var(--eds-spacing-md);
    margin-bottom: var(--eds-spacing-xl);
    flex-wrap: wrap;
}

/* Capability Signal */
.hero-capability-signal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--eds-spacing-xs);
    font-size: var(--eds-font-size-xs);
    font-weight: var(--eds-font-weight-semibold);
    color: var(--eds-text-secondary);
    letter-spacing: var(--eds-letter-spacing-normal);
    width: fit-content;
    max-width: 100%;
    margin-top: var(--eds-spacing-lg);
    padding: 0.85rem 1.35rem;
    border-radius: var(--eds-radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--eds-color-border-subtle);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.signal-dot {
    width: 8px;
    height: 8px;
    background: var(--eds-color-success);
    border-radius: var(--eds-radius-full);
    display: inline-block;
    box-shadow: 0 0 8px var(--eds-color-success);
}

/* Technology Ecosystem Visual Container */
.hero-visual-container {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeIn 1s ease-out 0.2s both;
}

.tech-ecosystem-svg {
    max-width: 500px;
    height: auto;
    overflow: visible;
}

/* SVG Animations */
.track-line {
    opacity: 0.65;
    transition: var(--transition-normal);
}

.pulse-line {
    opacity: 0.85;
}

/* Glow Pulses along connection tracks */
@keyframes pulseFlow {
    to {
        stroke-dashoffset: -160;
    }
}

.pulse-to-build {
    animation: pulseFlow 5s linear infinite;
}

.pulse-to-automate {
    animation: pulseFlow 6s linear infinite;
}

.pulse-to-scale {
    animation: pulseFlow 6s linear infinite;
}

/* Custom SVG flow lines animations */
.flow-line {
    animation: pulseFlow 5s linear infinite;
}

.flow-line-reverse {
    animation: pulseFlow 5s linear infinite reverse;
}

.eds-status-dot {
    animation: greenPulseOpacity 2s infinite ease-in-out;
}

@keyframes greenPulseOpacity {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Node Float Animations */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-7px) rotate(0.5deg); }
}

@keyframes floatNormal {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes floatFast {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(-0.5deg); }
}

.node-floating-slow {
    transform-origin: center;
    animation: floatSlow 8s ease-in-out infinite;
}

.node-floating-normal {
    transform-origin: center;
    animation: floatNormal 6s ease-in-out infinite;
}

.node-floating-fast {
    transform-origin: center;
    animation: floatFast 4s ease-in-out infinite;
}

/* Status Indicator pulsing dot */
@keyframes greenPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.status-indicator {
    transform-origin: 270px 232px;
    animation: greenPulse 2s infinite ease-in-out;
}

.sub-node-bg {
    transition: var(--transition-fast);
}

.zone-bg {
    transition: var(--transition-normal);
}

/* SVG Hover Highlights */
.node-floating-slow:hover .sub-node-bg,
.node-floating-normal:hover .sub-node-bg,
.node-floating-fast:hover .sub-node-bg {
    fill: var(--bg-secondary);
    stroke: var(--color-primary);
    cursor: pointer;
}

.node-strategic:hover .zone-bg {
    fill: var(--bg-secondary);
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    .pulse-line, .node-floating-slow, .node-floating-normal, .node-floating-fast, .status-indicator {
        animation: none !important;
        transform: none !important;
    }
}

/* Modern Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--eds-spacing-xs);
    padding: 0.85rem 1.75rem;
    border-radius: var(--eds-radius-md);
    text-decoration: none;
    font-weight: var(--eds-font-weight-semibold);
    font-size: var(--eds-font-size-sm);
    transition: var(--eds-motion-duration-fast) var(--eds-motion-ease-in-out);
    border: none;
    cursor: pointer;
    font-family: var(--eds-font-family);
    position: relative;
    box-sizing: border-box;
}

.btn-primary {
    background: var(--eds-color-primary);
    color: var(--eds-text-inverse) !important;
    box-shadow: var(--eds-shadow-sm);
    overflow: hidden;
}

.btn-primary:hover {
    background: var(--eds-color-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--eds-shadow-lg);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.65s var(--eds-motion-ease-in-out);
    pointer-events: none;
}

.btn-primary:hover::before {
    left: 125%;
}

@media (prefers-reduced-motion: reduce) {
    .btn-primary::before {
        display: none;
    }
}

.btn-primary i {
    transition: transform var(--eds-motion-duration-fast) var(--eds-motion-ease-in-out);
}

.btn-primary:hover i {
    transform: translateX(2px);
}

.btn-secondary {
    background: transparent;
    color: var(--eds-text-primary) !important;
    border: 1px solid var(--eds-color-border-strong);
}

.btn-secondary:hover {
    background: var(--eds-color-bg-secondary);
    transform: translateY(-2px);
    box-shadow: var(--eds-shadow-sm);
}

/* Modern Sections */
section {
    padding: var(--eds-spacing-4xl) 0;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-modern);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.25rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
}

/* Modern Solutions Section */
.solutions {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.solutions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(99,102,241,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--eds-spacing-xl);
    width: 100%;
}

@media (max-width: 1024px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--eds-spacing-lg);
    }
}

@media (max-width: 768px) {
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: var(--eds-spacing-md);
    }
}

.solution-outcome {
    font-size: var(--eds-font-size-xs);
    font-weight: var(--eds-font-weight-semibold);
    color: var(--eds-text-muted);
    border-top: 1px solid var(--eds-color-border-subtle);
    padding-top: var(--eds-spacing-sm);
    margin-top: auto;
}

.solution-techs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--eds-spacing-xs);
    margin-top: var(--eds-spacing-xs);
}

.tech-chip {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-brand);
    background: rgba(var(--color-primary-rgb), 0.05);
    padding: var(--eds-spacing-2xs) var(--eds-spacing-xs);
    border-radius: var(--eds-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.solution-action-row {
    margin-top: var(--eds-spacing-xs);
}

.solution-action-link {
    font-size: var(--eds-font-size-xs);
    font-weight: var(--eds-font-weight-bold);
    color: var(--text-brand);
    display: inline-flex;
    align-items: center;
    gap: var(--eds-spacing-2xs);
    text-decoration: none;
    transition: gap var(--eds-motion-duration-fast) var(--eds-motion-ease-in-out);
}

.solution-action-link:hover {
    gap: var(--eds-spacing-xs);
}

.solution-action-link:focus-visible {
    outline: 2px solid var(--eds-color-accent);
    outline-offset: 4px;
}

.solution-card {
    background: var(--eds-color-bg-elevated);
    border-radius: var(--eds-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--eds-shadow-sm);
    cursor: pointer;
    transition: var(--eds-motion-duration-normal) var(--eds-motion-ease-in-out);
    border: 1px solid var(--eds-color-border-subtle);
    position: relative;
    overflow: hidden;
}

.solution-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    transform: scale(0.92);
    z-index: 1;
    border-radius: var(--border-radius-lg);
    pointer-events: none;
}

.solution-card.loaded::after {
    opacity: 1;
    transform: scale(1);
}

/* Brand-colored ambient glow per card (CSS-only, no external images —
   these previously hotlinked images.unsplash.com, which the page's own
   img-src 'self' data: CSP silently blocked). Alternates navy/green,
   the two colors actually in the logo, instead of a rainbow of hues. */
.solution-card:nth-child(1)::after {
    background: radial-gradient(circle at 85% 12%, rgba(var(--color-primary-rgb), 0.12), transparent 55%);
}

.solution-card:nth-child(2)::after {
    background: radial-gradient(circle at 88% 15%, rgba(var(--color-accent-rgb), 0.12), transparent 55%);
}

.solution-card:nth-child(3)::after {
    background: radial-gradient(circle at 82% 10%, rgba(var(--color-primary-rgb), 0.12), transparent 55%);
}

.solution-card:nth-child(4)::after {
    background: radial-gradient(circle at 90% 18%, rgba(var(--color-accent-rgb), 0.12), transparent 55%);
}

.solution-card:nth-child(5)::after {
    background: radial-gradient(circle at 84% 14%, rgba(var(--color-primary-rgb), 0.12), transparent 55%);
}

.solution-card:nth-child(6)::after {
    background: radial-gradient(circle at 87% 12%, rgba(var(--color-accent-rgb), 0.12), transparent 55%);
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-modern);
    transform: scaleX(0);
    transition: var(--eds-motion-duration-normal) var(--eds-motion-ease-in-out);
}

.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--eds-shadow-lg);
    border-color: var(--eds-color-border-strong);
    background: var(--eds-color-bg-elevated);
}

.solution-card:hover::after {
    opacity: 0.3;
    transform: scale(1.05);
}

.solution-card:hover::before {
    transform: scaleX(1);
}

.solution-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 100;
}

.solution-header > i:first-child {
    font-size: 2rem;
    color: var(--text-brand);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--color-primary-rgb), 0.1);
    border-radius: 12px;
    border: 2px solid rgba(var(--color-primary-rgb), 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(var(--color-primary-rgb), 0.2);
    z-index: 100;
}

.solution-header > i:first-child::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: 24px 24px;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.7;
    transition: var(--transition);
    z-index: 1;
}

.solution-card:nth-child(1) .solution-header > i:first-child::after {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%232E6DA4" viewBox="0 0 24 24"><path d="M12 1c-4.97 0-9 4.03-9 9v7c0 1.66 1.34 3 3 3h3v-8H5v-2c0-3.87 3.13-7 7-7s7 3.13 7 7v2h-4v8h4v1h-7v2h6c1.66 0 3-1.34 3-3V10c0-4.97-4.03-9-9-9z"/></svg>');
}

.solution-card:nth-child(2) .solution-header > i:first-child::after {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%232E6DA4" viewBox="0 0 24 24"><path d="M11 17h2v-1h1c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1h-3v-1h4V8h-2V7h-2v1h-1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3v1H9v2h2v1zm1-15C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z"/></svg>');
}

.solution-card:nth-child(3) .solution-header > i:first-child::after {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%232E6DA4" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.94-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"/></svg>');
}

.solution-card:nth-child(4) .solution-header > i:first-child::after {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%232E6DA4" viewBox="0 0 24 24"><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"/></svg>');
}

.solution-card:nth-child(5) .solution-header > i:first-child::after {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%232E6DA4" viewBox="0 0 24 24"><path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9H9V9h10v2zm-4 4H9v-2h6v2zm4-8H9V5h10v2z"/></svg>');
}

.solution-card:nth-child(6) .solution-header > i:first-child::after {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%232E6DA4" viewBox="0 0 24 24"><path d="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0L19.2 12l-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"/></svg>');
}

.solution-header > i:first-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--color-primary-rgb), 0.2), transparent);
    transition: left 0.6s ease;
}

.solution-card:hover .solution-header > i:first-child {
    transform: scale(1.1) rotate(5deg);
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 8px 25px rgba(var(--color-primary-rgb), 0.4);
    color: white;
}

.solution-card:hover .solution-header > i:first-child::after {
    opacity: 1;
    filter: brightness(0) invert(1);
}

.solution-card:hover .solution-header > i:first-child::before {
    left: 100%;
}

.solution-header h3 {
    flex: 1;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.toggle-icon {
    transition: var(--transition);
    color: var(--text-secondary);
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(var(--color-primary-rgb), 0.1);
}

.solution-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    position: relative;
    z-index: 2;
}

.solution-content.active {
    max-height: 300px;
    opacity: 1;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease 0.1s;
}

.solution-content p {
    color: #1e293b;
    font-weight: 500;
    line-height: 1.7;
    font-size: 1rem;
    margin-top: 1rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

/* Modern Visual Showcase Section */
.visual-showcase {
    padding: 120px 0;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    position: relative;
}

.visual-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="triangles" width="40" height="40" patternUnits="userSpaceOnUse"><polygon points="20,5 35,30 5,30" fill="none" stroke="rgba(99,102,241,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23triangles)"/></svg>');
    opacity: 0.6;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 10;
}

.showcase-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    height: 350px;
    background: white;
}

.showcase-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.showcase-img {
    width: 100%;
    height: 70%;
    object-fit: cover;
    transition: var(--transition);
}

.showcase-item:hover .showcase-img {
    transform: scale(1.05);
}

.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    color: var(--text-primary);
    padding: 2rem;
    height: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.showcase-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-modern);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.showcase-item:hover .showcase-icon {
    transform: scale(1.1) rotate(5deg);
}

.showcase-overlay h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.showcase-overlay p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Modern Why Choose Section */
.why-choose {
    background: var(--gradient-modern);
    color: white;
    position: relative;
}

.why-choose::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hexagon" width="28" height="24" patternUnits="userSpaceOnUse"><polygon points="14,2 26,8 26,16 14,22 2,16 2,8" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23hexagon)"/></svg>');
    opacity: 0.3;
}

.why-choose .section-title {
    color: white;
}

.why-choose .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.why-choose .section-title::after {
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4));
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 10;
}

.why-choose-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: var(--eds-radius-lg);
    box-shadow: var(--eds-shadow-lg);
    text-align: center;
    transition: var(--eds-motion-duration-normal) var(--eds-motion-ease-in-out);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.why-choose-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--eds-shadow-2xl);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.why-choose-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 2.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.why-choose-card:hover .why-choose-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.why-choose-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.why-choose-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 1rem;
}

/* Process Section */
.process-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.process-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.process-step:hover .process-img {
    transform: scale(1.1);
}

.process-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.process-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* About Section */
.about {
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.tagline-section {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.tagline-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tagline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

.tagline-item:nth-child(1) { animation-delay: 0.1s; }
.tagline-item:nth-child(2) { animation-delay: 0.2s; }
.tagline-item:nth-child(3) { animation-delay: 0.3s; }
.tagline-item:nth-child(4) { animation-delay: 0.4s; }

.tagline-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 30px rgba(var(--color-primary-rgb), 0.2);
}

.tagline-item i {
    font-size: 2.5rem;
    color: var(--text-brand);
    transition: all 0.3s ease;
}

.tagline-item:hover i {
    transform: rotate(10deg) scale(1.1);
    color: var(--accent-color);
}

.tagline-item span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.tagline {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-brand);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.vision-mission {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.vision, .mission, .who-we-are {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

.vision { animation-delay: 0.6s; }
.mission { animation-delay: 0.8s; }
.who-we-are { animation-delay: 1s; }

.vision:hover, .mission:hover, .who-we-are:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-left: 4px solid var(--primary-color);
}

.section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.section-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(var(--color-primary-rgb), 0.3);
}

.section-icon i {
    font-size: 1.8rem;
    color: white;
}

.vision h4, .mission h4, .who-we-are h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-align: center;
}

.vision p, .mission p, .who-we-are p {
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: justify;
}

/* Statistics Section */
.statistics {
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.9), rgba(var(--color-primary-rgb), 0.9)), url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 4rem 0;
    position: relative;
}

.statistics::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(var(--color-primary-rgb), 0.1);
    backdrop-filter: blur(1px);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
    animation: fadeInUp 0.8s ease-out;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    animation: pulse 2s infinite;
}

.stat-label {
    font-size: 1.125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* Technology Stack Section */
.tech-stack {
    background: linear-gradient(rgba(248, 250, 252, 0.95), rgba(248, 250, 252, 0.95)), url('https://images.unsplash.com/photo-1518709268805-4e9042af2176?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.tech-category {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

.tech-category:nth-child(1) { animation-delay: 0.1s; }
.tech-category:nth-child(2) { animation-delay: 0.3s; }
.tech-category:nth-child(3) { animation-delay: 0.5s; }

.tech-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-top: 4px solid var(--primary-color);
}

.tech-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
    position: relative;
}

.tech-category h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.tech-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
}

.tech-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--color-primary-rgb), 0.1), transparent);
    transition: left 0.5s ease;
}

.tech-item:hover::before {
    left: 100%;
}

.tech-item:hover {
    transform: translateY(-5px) rotate(2deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border: 1px solid var(--primary-color);
}



.tech-item i {
    font-size: 2.5rem;
    color: var(--text-brand);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.tech-item:hover i {
    transform: scale(1.2) rotate(10deg);
    color: var(--accent-color);
}

.tech-item span {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.tech-item:hover span {
    color: var(--text-brand);
}

/* Testimonials Section */
.testimonials {
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), url('https://images.unsplash.com/photo-1600880292203-757bb62b4baf?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--eds-radius-lg);
    box-shadow: var(--eds-shadow-sm);
    transition: all var(--eds-motion-duration-normal) var(--eds-motion-ease);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.3s; }
.testimonial-card:nth-child(3) { animation-delay: 0.5s; }

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--eds-shadow-xl);
    border-top: 4px solid var(--eds-color-primary);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.quote-icon {
    margin-bottom: 1rem;
}

.quote-icon i {
    font-size: 2rem;
    color: var(--text-brand);
    opacity: 0.3;
}

.testimonial-content p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info h4 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.author-info span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes gridMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(50px) translateY(50px); }
}

@keyframes floatingOrbs {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.8; }
    33% { transform: translateY(-20px) scale(1.1); opacity: 1; }
    66% { transform: translateY(10px) scale(0.9); opacity: 0.9; }
}

@keyframes slideInFromLeft {
    0% { transform: translateX(-100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideInFromRight {
    0% { transform: translateX(100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Careers Section */
.careers {
    background: linear-gradient(rgba(248, 250, 252, 0.95), rgba(248, 250, 252, 0.95)), url('https://images.unsplash.com/photo-1521737711867-e3b97375f902?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.careers-intro {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.careers-intro p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.job-listings {
    margin-bottom: 3rem;
}

.job-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--eds-radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--eds-shadow-sm);
    cursor: pointer;
    transition: all var(--eds-motion-duration-normal) var(--eds-motion-ease);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

.job-card:nth-child(1) { animation-delay: 0.1s; }
.job-card:nth-child(2) { animation-delay: 0.3s; }

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--eds-shadow-lg);
    border-left: 4px solid var(--eds-color-primary);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.job-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.job-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.job-card:hover .job-icon {
    transform: scale(1.1) rotate(5deg);
}

.job-details h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.job-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.job-meta i {
    color: var(--text-brand);
}

.toggle-icon {
    transition: transform 0.3s ease;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.job-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    margin-top: 1rem;
}

.job-content.active {
    max-height: none;
    overflow: visible;
}

.job-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.job-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.job-content li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.5;
}

.job-content li::before {
    content: '•';
    color: var(--text-brand);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.apply-button-container {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

/* Forms */
.career-form, .contact-form {
    background: var(--bg-elevated);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

.career-form h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--eds-color-border-subtle);
    border-radius: var(--eds-radius-md);
    font-size: var(--eds-font-size-base);
    transition: border-color var(--eds-motion-duration-normal) var(--eds-motion-ease);
    font-family: var(--eds-font-family);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--eds-color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
}

.contact-info {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.contact-info a {
    color: var(--text-brand);
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Contact Section
   ---------------------------------------------------------------
   This block was built for a dark, full-bleed photo background: white
   text, a tinted overlay, and a text-shadow to lift copy off the image.
   The photo is a hotlinked Unsplash URL that the page's own
   `img-src 'self' data:` CSP blocks, and the background is overridden
   further down by `.contact { background: var(--bg-primary) }`. What
   survived was the leftover foreground styling — white headings that
   vanish on the light theme, plus a full-section blur overlay and a
   text-shadow that made the copy look out of focus. All removed. */
.contact {
    position: relative;
}

.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.contact-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

.contact .section-title {
    color: var(--text-primary);
    animation: fadeInUp 0.8s ease-out;
}

.contact .section-title::after {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-elevated);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-subtle);
}

.contact-item:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary-hover);
    box-shadow: var(--shadow-lg);
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--text-brand);
    width: 50px;
    height: 50px;
    background: rgba(var(--color-primary-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-item:hover i {
    transform: scale(1.1) rotate(5deg);
    background: rgba(var(--color-primary-rgb), 0.18);
}

.contact-item h3 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.contact-item p {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
}

.connect-button-container {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.contact-form {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-primary) 100%);
    color: var(--text-primary);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--color-primary-rgb), 0.5), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.footer-social-link:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-logo .logo-text {
    color: var(--text-primary);
    font-size: 1.8rem;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.2rem;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 1px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.footer-section ul li:hover {
    transform: translateX(5px);
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul li a::before {
    content: '→';
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--text-brand);
}

.footer-section ul li a:hover::before {
    opacity: 1;
}

.footer-section ul li a:hover {
    color: var(--text-brand);
    padding-left: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

/* Chat Widget — a one-shot entrance rather than a perpetual bob; constant
   motion on a persistent element reads as template-grade, not premium. */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1500;
    animation: fadeInUp 0.6s var(--eds-motion-ease-in-out) both;
}

@media (prefers-reduced-motion: reduce) {
    .chat-widget {
        animation: none;
    }
}

.chat-toggle {
    position: relative;
    height: 54px;
    padding: 0 1.4rem 0 1rem;
    background: var(--color-primary);
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
    box-shadow: 0 10px 22px -6px rgba(var(--color-primary-rgb), 0.45), 0 2px 6px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.1);
    outline: none;
    transition: transform var(--eds-motion-duration-normal) var(--eds-motion-ease-in-out), box-shadow var(--eds-motion-duration-normal) var(--eds-motion-ease-in-out), background-color var(--eds-motion-duration-normal) var(--eds-motion-ease-in-out);
}

.chat-toggle-icon {
    position: relative;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-toggle-icon svg {
    width: 100%;
    height: 100%;
    color: #ffffff;
}

/* Small "assistant is live" indicator — the one place green appears on
   this button, instead of blending navy and green into a single gradient. */
.chat-toggle-status {
    position: absolute;
    top: -1px;
    right: -2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    border: 2px solid var(--color-primary);
}

.chat-toggle-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    font-family: var(--eds-font-family);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .chat-toggle {
        width: 54px;
        padding: 0;
        border-radius: 50%;
    }
    .chat-toggle-text {
        display: none;
    }
}

.chat-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--eds-color-bg-elevated);
    color: var(--eds-text-primary);
    border: 1px solid var(--eds-color-border-subtle);
    padding: 0.4rem 0.8rem;
    border-radius: var(--eds-radius-md);
    font-size: 0.8rem;
    font-weight: var(--eds-font-weight-semibold);
    white-space: nowrap;
    box-shadow: var(--eds-shadow-md);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--eds-motion-duration-fast) var(--eds-motion-ease);
    z-index: 100;
}

.chat-toggle:hover .chat-tooltip,
.chat-toggle:focus-visible .chat-tooltip {
    opacity: 1;
}

.chat-toggle:hover {
    transform: translateY(-3px);
    background: var(--color-primary-hover);
    box-shadow: 0 16px 28px -6px rgba(var(--color-primary-rgb), 0.5), 0 4px 10px rgba(0, 0, 0, 0.2);
}

.chat-toggle:hover .chat-toggle-icon svg {
    transform: scale(1.06);
}

.chat-toggle-icon svg {
    transition: transform var(--eds-motion-duration-normal) var(--eds-motion-ease);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: var(--eds-color-bg-elevated);
    border-radius: var(--eds-radius-lg);
    box-shadow: var(--eds-shadow-xl);
    display: none;
    animation: fadeInUp var(--eds-motion-duration-normal) var(--eds-motion-ease-out);
}

.chat-window.active {
    display: block;
}

.chat-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--eds-color-primary), var(--eds-color-accent));
    color: white;
    border-radius: var(--eds-radius-lg) var(--eds-radius-lg) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform var(--eds-motion-duration-normal) var(--eds-motion-ease);
}

.chat-close:hover {
    transform: scale(1.1);
}

.chat-options {
    padding: 1.5rem;
}

.chat-option {
    width: 100%;
    padding: 15px;
    background: #25d366;
    color: white;
    border: none;
    border-radius: var(--eds-radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-size: 1rem;
    font-weight: var(--eds-font-weight-medium);
    transition: all var(--eds-motion-duration-normal) var(--eds-motion-ease);
}

.chat-option:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

/* Reusable Badge System (EDS Foundation) */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--eds-spacing-2xs) var(--eds-spacing-sm);
    font-size: var(--eds-font-size-xs);
    font-weight: var(--eds-font-weight-semibold);
    line-height: 1;
    border-radius: var(--eds-radius-full);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: var(--eds-letter-spacing-wide);
}

.badge-primary {
    background-color: rgba(var(--color-primary-rgb), 0.1);
    color: var(--text-brand);
}

.badge-accent {
    background-color: rgba(var(--color-accent-rgb), 0.1);
    color: var(--text-brand-accent);
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--eds-color-success);
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--eds-color-warning);
}

.badge-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--eds-color-error);
}

.badge-info {
    background-color: rgba(var(--color-primary-rgb), 0.1);
    color: var(--eds-color-info);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: var(--eds-z-modal);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--eds-color-overlay);
    backdrop-filter: blur(5px);
    animation: fadeIn var(--eds-motion-duration-normal) var(--eds-motion-ease-out);
}

.modal.show,
/* No-JS fallback for deep links like /#privacy-modal. JS normally adds
   .show; :target makes the same URLs work if script.js fails to load.
   Closing always sets an inline display:none, which outranks this. */
.modal:target {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-elevated);
    backdrop-filter: blur(15px);
    margin: 2% auto;
    padding: 2.5rem;
    border-radius: var(--eds-radius-xl);
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--eds-shadow-2xl);
    border: 1px solid var(--border-subtle);
    animation: slideInUp var(--eds-motion-duration-slow) var(--eds-motion-ease-out);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.modal-content h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--color-primary-rgb), 0.12);
}

.close:hover {
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.1);
}

.modal-body {
    margin-top: 1rem;
    line-height: 1.7;
}

.modal-body p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    text-align: justify;
}

.modal-body p:first-child {
    font-size: 1.05rem;
    color: var(--text-primary);
    font-weight: 500;
}

.policy-section {
    background: var(--bg-secondary);
    padding: 1.5rem;
    /* Full-radius corners don't work with a single-sided accent border;
       square off the accented edge. */
    border-radius: 0 10px 10px 0;
    margin-bottom: 1rem;
    border-left: 4px solid var(--color-primary);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out;
}

.policy-section:nth-child(1) { animation-delay: 0.1s; }
.policy-section:nth-child(2) { animation-delay: 0.2s; }
.policy-section:nth-child(3) { animation-delay: 0.3s; }
.policy-section:nth-child(4) { animation-delay: 0.4s; }
.policy-section:nth-child(5) { animation-delay: 0.5s; }

/* Hover used to paint rgba(255,255,255,0.9) — a near-opaque white wash left
   over from the light-only modal. In the dark theme that turned the panel
   white while the text stayed near-white, so the hovered section became
   unreadable. A brand tint reads as "lifted" against both themes' surfaces
   without ever inverting the panel's lightness. */
.policy-section:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(var(--color-primary-rgb), 0.15);
    background: rgba(var(--color-primary-rgb), 0.10);
    border-left-color: var(--color-accent);
}

.policy-section h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.policy-section h3 i {
    color: var(--text-brand);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.policy-section p {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.policy-section a {
    color: var(--text-brand);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.policy-section a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
        align-items: center;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding: 0 15px;
    }
    
    .hero-text {
        order: 1;
        width: 100%;
        align-items: center;
        text-align: center;
    }
    
    .hero-eyebrow {
        font-size: 0.75rem;
        letter-spacing: 0.12em;
        margin-bottom: 0.75rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
        margin-bottom: 0.75rem;
        padding: 0;
    }
    
    .hero-lead {
        font-size: 1.1rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        text-align: center;
        padding: 0 10px;
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.75rem;
        text-align: center;
        padding: 0 10px;
    }
    
    .hero-buttons {
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-capability-signal {
        justify-content: center;
        text-align: center;
        font-size: 0.75rem;
        padding-top: 1.25rem;
        line-height: 1.4;
    }
    
    .hero-visual-container {
        order: 2;
        width: 100%;
        margin-top: 1rem;
    }
    
    .tech-ecosystem-svg {
        max-width: 320px;
    }
    
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
        padding: 0 15px;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
        min-width: 140px;
    }
}

@media (max-width: 768px) {
    .tagline-icons {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .tagline {
        font-size: 1.5rem;
    }
    
    .vision, .mission, .who-we-are {
        padding: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-categories {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .tech-icons {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .job-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .job-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    
    .contact-item {
        padding: 1.2rem 1.5rem;
        width: 100%;
        max-width: 300px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .chat-window {
        width: calc(100vw - 40px);
        max-width: 320px;
        right: -10px;
    }
    
    .modal-content {
        width: 95%;
        padding: 2rem;
        margin: 5% auto;
        max-height: 85vh;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
    }
    
    .close {
        right: 1rem;
        top: 1rem;
        width: 30px;
        height: 30px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero {
        padding: 80px 0 40px;
        min-height: calc(var(--vh, 1vh) * 100);
        padding-top: 90px;
    }
    
    .hero-content {
        padding: 0 10px;
        margin-top: 20px;
    }
    
    .hero-title {
        font-size: 1.7rem;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-tagline h2 {
        font-size: 0.95rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 180px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .hero-image-grid {
        height: 280px;
    }
    .process-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .tagline-icons {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
    
    .tagline-item {
        padding: 0.8rem;
    }
    
    .tagline-item i {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .tech-categories {
        gap: 1rem;
    }
    
    .tech-category {
        padding: 1.5rem;
    }
    
    .tech-icons {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
    
    .tech-item {
        padding: 0.8rem;
    }
    

    
    .job-card {
        padding: 1.2rem;
    }
    
    .job-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .job-details h3 {
        font-size: 1rem;
    }
    
    .job-meta {
        font-size: 0.8rem;
    }
    
    .contact-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .contact-intro {
        margin-bottom: 2rem;
    }
    
    .contact-description {
        font-size: 0.9rem;
        padding: 0 10px;
    }
    
    .contact-item i {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
    
    .footer-logo .logo-text {
        font-size: 1.3rem;
    }
    
    .chat-toggle {
        width: 50px;
        height: 50px;
    }

    .chat-toggle-icon {
        width: 19px;
        height: 19px;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.2rem;
        margin: 10% auto;
    }
    
    .modal-content h2 {
        font-size: 1.2rem;
    }
    
    .modal-body p {
        font-size: 0.9rem;
    }
}

/* Performance optimizations */
.hero-image img,
.showcase-img,
.process-img {
    will-change: transform;
    transform: translateZ(0);
}

.solution-card,
.why-choose-card,
.testimonial-card {
    contain: layout style paint;
}

* {
    box-sizing: border-box;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

.btn, .nav-link, .solution-card, .job-card {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

input, textarea, select {
    -webkit-user-select: text;
    -moz-user-select: text;
    user-select: text;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
    height: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    min-height: 100%;
    position: relative;
    overflow-x: hidden;
}

/* Improve mobile scrolling */
* {
    -webkit-overflow-scrolling: touch;
}

/* Enhanced mobile optimizations */
@media screen and (max-width: 768px) {
    /* Prevent zoom on input focus */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    input[type="date"],
    textarea,
    select {
        font-size: 16px !important;
        border-radius: 8px;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    
    /* Improve mobile performance */
    .hero, .solutions, .why-choose, .tech-stack, .testimonials, .careers, .contact {
        background-attachment: scroll;
    }
    
    .contact-description {
        font-size: 1rem;
        padding: 0 15px;
        line-height: 1.6;
    }
    
    /* Optimize images for mobile */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    /* Reduce GPU usage on mobile */
    .hero-image img,
    .showcase-img,
    .process-img {
        will-change: auto;
    }
    
    /* Mobile-specific optimizations */
    .modal-content {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Improve touch interactions */
    .solution-card, .job-card, .tech-item, .testimonial-card {
        -webkit-tap-highlight-color: rgba(var(--color-primary-rgb), 0.1);
        touch-action: manipulation;
    }
    
    /* Touch-friendly targets */
    .contact-item, .footer-section a, .chat-toggle, .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better mobile image handling */
    img {
        -webkit-user-drag: none;
        user-drag: none;
        max-width: 100%;
        height: auto;
    }
    
    /* Fix viewport issues */
    body {
        width: 100%;
        min-width: 320px;
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden;
    }
    
    /* Ensure proper container widths */
    .container {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Fix grid layouts on mobile */
    .solutions-grid,
    .why-choose-grid,
    .testimonials-grid,
    .tech-categories {
        padding: 0 10px;
    }
    
    /* Improve form usability */
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        transform: none;
        zoom: 1;
    }
}

/* AI Chatbot Styles */
.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: var(--eds-color-bg-elevated);
    border-radius: var(--eds-radius-lg);
    box-shadow: var(--eds-shadow-xl);
    display: none;
    animation: fadeInUp var(--eds-motion-duration-normal) var(--eds-motion-ease-out);
    flex-direction: column;
}

.chat-window.active {
    display: flex;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--eds-spacing-md);
    background: var(--eds-color-bg-secondary);
}

.bot-message, .user-message {
    display: flex;
    gap: var(--eds-spacing-xs);
    align-items: flex-start;
}

.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: var(--eds-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
    background: var(--eds-color-primary);
    color: white;
}

.user-message .message-avatar {
    background: var(--eds-color-neutral-200);
    color: var(--eds-text-primary);
}

.message-content {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: var(--eds-radius-lg);
    font-size: 0.9rem;
    line-height: 1.4;
    background: var(--eds-color-bg-primary);
    color: var(--eds-text-primary);
    border: 1px solid var(--eds-color-border-subtle);
}

.user-message .message-content {
    background: var(--eds-color-primary);
    color: white;
    border: none;
}

.chat-input-container {
    padding: 1rem;
    border-top: 1px solid var(--eds-color-border-subtle);
    display: flex;
    gap: var(--eds-spacing-xs);
    flex-shrink: 0;
}

#chat-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid var(--eds-color-border-subtle);
    border-radius: var(--eds-radius-xl);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--eds-motion-duration-normal) var(--eds-motion-ease);
}

#chat-input:focus {
    border-color: var(--eds-color-primary);
}

.send-btn {
    width: 40px;
    height: 40px;
    background: var(--eds-color-primary);
    color: white;
    border: none;
    border-radius: var(--eds-radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--eds-motion-duration-normal) var(--eds-motion-ease);
}

.send-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.chat-actions {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* Quick-reply chips — give the assistant a discoverable surface so
   visitors can see what it can actually answer instead of guessing. */
.chat-chip {
    background: rgba(var(--color-primary-rgb), 0.1);
    border: 1px solid rgba(var(--color-primary-rgb), 0.25);
    color: var(--text-brand);
    border-radius: 100px;
    padding: 0.4rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--eds-font-family);
    cursor: pointer;
    white-space: nowrap;
    transition: background-color var(--eds-motion-duration-fast) var(--eds-motion-ease),
                color var(--eds-motion-duration-fast) var(--eds-motion-ease);
}

.chat-chip:hover {
    background: var(--color-primary);
    color: #ffffff;
}

.chat-chip:focus-visible {
    outline: 2px solid var(--eds-color-accent);
    outline-offset: 2px;
}

.action-btn {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.whatsapp-btn {
    background: #25d366;
    color: white;
}

.whatsapp-btn:hover {
    background: #128c7e;
}

.email-btn {
    background: var(--primary-color);
    color: white;
}

.email-btn:hover {
    background: var(--secondary-color);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.5rem;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

@media (max-width: 768px) {
    .chat-window {
        width: calc(100vw - 40px);
        max-width: 350px;
        right: -10px;
        height: 450px;
    }
    
    .message-content {
        max-width: 85%;
        font-size: 0.85rem;
    }
    
    .action-btn {
        font-size: 0.8rem;
        padding: 0.7rem;
    }
}

/* Schedule Form Styles */
.connect-button-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.schedule-form {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.schedule-form h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
}

.schedule-note {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.schedule-note i {
    color: var(--text-brand);
}

@media (max-width: 768px) {
    .connect-button-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .connect-button-container .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Additional mobile fixes */
    .navbar {
        padding: 0.8rem 0;
        position: fixed;
        top: 0;
        width: 100%;
        background: var(--header-bg-scrolled);
        box-sizing: border-box;
        transform: translateZ(0); /* Fix iOS scroll issues */
    }
    
    /* Fix iOS Safari viewport issues */
    .hero {
        min-height: -webkit-fill-available;
    }
    
    .nav-container {
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .logo {
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .solution-card, .job-card, .why-choose-card, .testimonial-card {
        margin: 0 10px;
    }
    
    .career-form, .contact-form, .schedule-form {
        margin: 0 10px;
        padding: 1.5rem;
    }
    
    .form-group input, .form-group select, .form-group textarea {
        padding: 14px 16px;
    }
    
    .tagline {
        text-align: center;
    }
    
    .about-content {
        padding: 0 10px;
    }
    
    /* Improve touch targets */
    .btn,
    .nav-link,
    .contact-item,
    .solution-card,
    .job-card {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Optimize animations for mobile */
    .solution-card:hover,
    .why-choose-card:hover,
    .testimonial-card:hover {
        transform: none; /* Disable hover effects on mobile */
    }
}

/* Custom Accessibility Form Labels */
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: left;
}

/* Custom Button Casing Resets */
.close {
    border: none;
    padding: 0;
}

/* Respect Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: initial !important;
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
}

/* ==========================================================================
   PHASE 2B COMPLETE PREMIUM HOMEPAGE EXPERIENCE STYLES
   ========================================================================== */

/* Section Headers */
.section-header-centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto clamp(2.5rem, 5vw, 4rem) auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-brand);
    margin-bottom: 0.75rem;
    display: inline-block;
}

.section-lead {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Section 1: Build • Automate • Operate */
.solutions-overview {
    background: var(--bg-secondary);
    padding: clamp(4rem, 8vw, 8rem) 0;
}



/* Section 2: Solutions by Business Challenge */
.challenges-section {
    background: var(--bg-primary);
    padding: clamp(4rem, 8vw, 8rem) 0;
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--eds-spacing-xl);
    width: 100%;
}

@media (max-width: 1024px) {
    .challenges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--eds-spacing-lg);
    }
}

@media (max-width: 768px) {
    .challenges-grid {
        grid-template-columns: 1fr;
        gap: var(--eds-spacing-md);
    }
}

.challenge-card {
    background: var(--eds-color-bg-elevated);
    border-radius: var(--eds-radius-lg);
    border: 1px solid var(--eds-color-border-subtle);
    padding: var(--eds-spacing-xl);
    display: flex;
    flex-direction: column;
    gap: var(--eds-spacing-md);
    transition: transform var(--eds-motion-duration-normal) var(--eds-motion-ease-in-out), box-shadow var(--eds-motion-duration-normal) var(--eds-motion-ease-in-out), border-color var(--eds-motion-duration-normal) var(--eds-motion-ease-in-out);
    box-sizing: border-box;
}

.challenge-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--eds-shadow-lg);
    border-color: var(--eds-color-primary-hover);
}

.challenge-card:focus-visible {
    outline: 2px solid var(--eds-color-accent);
    outline-offset: 4px;
}

.challenge-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--eds-radius-md);
    background: rgba(var(--color-primary-rgb), 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-brand);
    font-size: var(--eds-font-size-xl);
    margin-bottom: var(--eds-spacing-2xs);
    transition: transform var(--eds-motion-duration-fast) var(--eds-motion-ease-in-out), background-color var(--eds-motion-duration-fast) var(--eds-motion-ease-in-out), color var(--eds-motion-duration-fast) var(--eds-motion-ease-in-out);
}

.challenge-card:hover .challenge-icon-wrapper {
    transform: scale(1.05);
    background: var(--eds-color-primary);
    color: #ffffff;
}

.challenge-card h3 {
    font-size: var(--eds-font-size-lg);
    font-weight: var(--eds-font-weight-bold);
    color: var(--eds-text-primary);
    margin: 0;
    line-height: var(--eds-line-height-tight);
}

.challenge-problem {
    font-size: var(--eds-font-size-sm);
    line-height: var(--eds-line-height-relaxed);
    color: var(--eds-text-secondary);
    margin: 0;
}

.challenge-impact {
    font-size: var(--eds-font-size-xs);
    font-weight: var(--eds-font-weight-semibold);
    color: var(--eds-text-muted);
    border-top: 1px solid var(--eds-color-border-subtle);
    padding-top: var(--eds-spacing-sm);
    margin-top: auto;
}

.challenge-action {
    font-size: var(--eds-font-size-xs);
    font-weight: var(--eds-font-weight-bold);
    color: var(--text-brand);
    display: inline-flex;
    align-items: center;
    gap: var(--eds-spacing-2xs);
    text-decoration: none;
    transition: gap var(--eds-motion-duration-fast) var(--eds-motion-ease-in-out);
    margin-top: var(--eds-spacing-xs);
}

.challenge-action:hover {
    gap: var(--eds-spacing-xs);
}

.challenge-action:focus-visible {
    outline: 2px solid var(--eds-color-accent);
    outline-offset: 4px;
}

/* Section 3: Featured Services */
.services-featured {
    background: var(--bg-secondary);
    padding: clamp(4rem, 8vw, 8rem) 0;
}

.services-groups-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.services-group-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    padding: 2.5rem;
    transition: var(--transition-normal);
}

.services-group-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lg);
}

.group-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1rem;
}

.icon-group {
    font-size: 1.5rem;
    color: var(--text-brand);
}

.group-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.services-list li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.service-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.service-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.services-footer {
    text-align: center;
    margin-top: 3rem;
}

/* Section 4: AI Automation in Action */
.ai-automation-action {
    background: var(--bg-primary);
    padding: clamp(4rem, 8vw, 8rem) 0;
}

.workflow-container {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    padding: 3.5rem 2rem;
    position: relative;
    margin: 0 auto;
    max-width: 1000px;
    display: flex;
    justify-content: center;
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
}

.workflow-svg {
    min-width: 800px;
    max-width: 900px;
    height: auto;
}

/* Applied for a single frame while JS rewinds a scroll-triggered sequence,
   so it snaps back to its start state instead of visibly playing in
   reverse before it replays. */
.anim-reset,
.anim-reset * {
    transition: none !important;
}

/* Process animations with IntersectionObserver */
.track-progress {
    stroke-dasharray: 680;
    stroke-dashoffset: 680;
    transition: stroke-dashoffset 3s ease-in-out;
}

.workflow-container.active .track-progress {
    stroke-dashoffset: 0;
}

.workflow-node {
    opacity: 0.25;
    transform: scale(0.9);
    transform-origin: 0px 0px;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.workflow-node circle.node-outer {
    stroke: var(--border-strong);
    fill: var(--bg-secondary);
    transition: stroke 0.5s ease, fill 0.5s ease;
}

.workflow-node circle.node-inner {
    fill: var(--bg-elevated);
    transition: fill 0.5s ease;
}

/* In the light theme the container is white and bg-elevated is also white,
   so the default fills leave the node rings nearly invisible. Tint the
   inactive nodes and give the connector track more weight so the diagram
   reads as a deliberate sequence rather than floating labels. */
:root[data-theme="light-blue"] .workflow-node circle.node-outer {
    fill: #FFFFFF;
    stroke: var(--border-strong);
}

:root[data-theme="light-blue"] .workflow-node circle.node-inner {
    fill: var(--bg-secondary);
}

:root[data-theme="light-blue"] .workflow-container.active .workflow-node circle.node-inner {
    fill: rgba(var(--color-primary-rgb), 0.08);
}

.node-icon-char {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    fill: var(--text-muted);
    transition: fill 0.5s ease;
}

.node-label {
    fill: var(--text-muted);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: fill 0.5s ease;
}

/* Sequential activation on active wrapper */
.workflow-container.active .workflow-node {
    opacity: 1;
    transform: scale(1);
}

.workflow-container.active .workflow-node-wrapper:nth-of-type(1) .workflow-node { transition-delay: 0s; }
.workflow-container.active .workflow-node-wrapper:nth-of-type(1) circle.node-outer { stroke: var(--color-primary); }
.workflow-container.active .workflow-node-wrapper:nth-of-type(1) .node-icon-char { fill: var(--color-primary); }
.workflow-container.active .workflow-node-wrapper:nth-of-type(1) .node-label { fill: var(--text-primary); }

.workflow-container.active .workflow-node-wrapper:nth-of-type(2) .workflow-node { transition-delay: 0.6s; }
.workflow-container.active .workflow-node-wrapper:nth-of-type(2) circle.node-outer { stroke: var(--color-primary); }
.workflow-container.active .workflow-node-wrapper:nth-of-type(2) .node-icon-char { fill: var(--color-primary); }
.workflow-container.active .workflow-node-wrapper:nth-of-type(2) .node-label { fill: var(--text-primary); }

.workflow-container.active .workflow-node-wrapper:nth-of-type(3) .workflow-node { transition-delay: 1.2s; }
.workflow-container.active .workflow-node-wrapper:nth-of-type(3) circle.node-outer { stroke: var(--color-primary); }
.workflow-container.active .workflow-node-wrapper:nth-of-type(3) .node-icon-char { fill: var(--color-primary); }
.workflow-container.active .workflow-node-wrapper:nth-of-type(3) .node-label { fill: var(--text-primary); }

.workflow-container.active .workflow-node-wrapper:nth-of-type(4) .workflow-node { transition-delay: 1.8s; }
.workflow-container.active .workflow-node-wrapper:nth-of-type(4) circle.node-outer { stroke: var(--color-primary); }
.workflow-container.active .workflow-node-wrapper:nth-of-type(4) .node-icon-char { fill: var(--color-primary); }
.workflow-container.active .workflow-node-wrapper:nth-of-type(4) .node-label { fill: var(--text-primary); }

.workflow-container.active .workflow-node-wrapper:nth-of-type(5) .workflow-node { transition-delay: 2.4s; }
.workflow-container.active .workflow-node-wrapper:nth-of-type(5) circle.node-outer { stroke: var(--color-primary); }
.workflow-container.active .workflow-node-wrapper:nth-of-type(5) .node-icon-char { fill: var(--color-primary); }
.workflow-container.active .workflow-node-wrapper:nth-of-type(5) .node-label { fill: var(--text-primary); }

.workflow-container.active .workflow-node-wrapper:nth-of-type(6) .workflow-node { transition-delay: 3s; }
.workflow-container.active .workflow-node-wrapper:nth-of-type(6) circle.node-outer { stroke: var(--color-accent); fill: rgba(var(--color-accent-rgb), 0.1); }
.workflow-container.active .workflow-node-wrapper:nth-of-type(6) .node-icon-char { fill: var(--color-accent); }
.workflow-container.active .workflow-node-wrapper:nth-of-type(6) .node-label { fill: var(--text-primary); font-weight: 700; }

/* Section 5: How We Work Timeline */
.how-we-work {
    background: var(--bg-secondary);
    padding: clamp(4rem, 8vw, 8rem) 0;
}

.work-timeline {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

/* z-index 0 keeps the connecting line behind the numbered markers.
   The markers can't simply out-rank it with a higher z-index: their
   parent .timeline-step sets transform: translateY(...), and any
   transform other than `none` creates a stacking context, which traps
   .timeline-marker's z-index inside the step. So the step itself has to
   win the comparison (see .timeline-step below), not the marker. */
.timeline-bar {
    position: absolute;
    left: 2rem;
    right: 2rem;
    top: 25px;
    height: 4px;
    background: var(--border-subtle);
    border-radius: 2px;
    overflow: hidden;
    z-index: 0;
}

.timeline-bar-progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transition: width 3s ease-in-out;
}

.work-timeline.active .timeline-bar-progress {
    width: 100%;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    /* Must out-rank .timeline-bar (z-index 0) so the numbered markers
       paint over the connecting line instead of being crossed by it. */
    z-index: 1;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    box-sizing: border-box;
}

.timeline-step.active {
    opacity: 1;
    transform: translateY(0);
}

.work-timeline.active .timeline-step:nth-child(2) { transition-delay: 0s; }
.work-timeline.active .timeline-step:nth-child(3) { transition-delay: 0.5s; }
.work-timeline.active .timeline-step:nth-child(4) { transition-delay: 1s; }
.work-timeline.active .timeline-step:nth-child(5) { transition-delay: 1.5s; }
.work-timeline.active .timeline-step:nth-child(6) { transition-delay: 2s; }
.work-timeline.active .timeline-step:nth-child(7) { transition-delay: 2.5s; }

.timeline-marker {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 2px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    z-index: 2;
    transition: var(--transition-normal);
}

.timeline-step.active .timeline-marker {
    border-color: var(--color-primary);
    background: var(--bg-primary);
    color: var(--text-brand);
    box-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.2);
}

.timeline-content {
    background: var(--bg-elevated);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    height: 100%;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--eds-motion-duration-normal) var(--eds-motion-ease-in-out), box-shadow var(--eds-motion-duration-normal) var(--eds-motion-ease-in-out), border-color var(--eds-motion-duration-normal) var(--eds-motion-ease-in-out);
}

.timeline-step:hover .timeline-content {
    transform: translateY(-4px);
    box-shadow: var(--eds-shadow-lg);
    border-color: var(--eds-color-primary-hover);
}

.timeline-step:focus-visible {
    outline: 2px solid var(--eds-color-accent);
    outline-offset: 4px;
}

.timeline-header-icon {
    font-size: var(--eds-font-size-lg);
    color: var(--text-brand);
    transition: transform var(--eds-motion-duration-fast) var(--eds-motion-ease-in-out);
}

.timeline-step:hover .timeline-header-icon {
    transform: scale(1.1);
}

.timeline-content h3 {
    font-size: var(--eds-font-size-sm);
    font-weight: var(--eds-font-weight-bold);
    color: var(--eds-text-primary);
    margin: 0;
    letter-spacing: 0.05em;
    line-height: var(--eds-line-height-tight);
}

.timeline-content p {
    font-size: var(--eds-font-size-xs);
    line-height: var(--eds-line-height-relaxed);
    color: var(--eds-text-secondary);
    margin: 0;
}

.timeline-outcome {
    font-size: 10px;
    font-weight: var(--eds-font-weight-bold);
    color: var(--eds-text-muted);
    border-top: 1px solid var(--eds-color-border-subtle);
    padding-top: var(--eds-spacing-xs);
    margin-top: auto;
}

@media (max-width: 1024px) {
    .work-timeline {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .timeline-bar {
        display: none;
    }
    
    .timeline-step {
        align-items: flex-start;
    }
    
    .timeline-content {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .work-timeline {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding-left: 2.5rem;
    }
    
    .timeline-bar {
        display: block;
        left: 25px;
        right: auto;
        top: 10px;
        bottom: 10px;
        width: 4px;
        height: auto;
    }
    
    .timeline-bar-progress {
        width: 100%;
        height: 0;
        transition: height 3s ease-in-out;
        background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
    }
    
    .work-timeline.active .timeline-bar-progress {
        height: 100%;
    }
    
    .timeline-step {
        flex-direction: row;
        align-items: flex-start;
        gap: 1.5rem;
        transform: translateX(10px);
    }
    
    .timeline-step.active {
        transform: translateX(0);
    }
    
    .timeline-marker {
        width: 44px;
        height: 44px;
        font-size: 0.9rem;
        flex-shrink: 0;
    }
}

/* Section 6: Technology Capabilities Chips */
.tech-capabilities-section {
    background: var(--bg-primary);
    padding: clamp(4rem, 8vw, 8rem) 0;
}

.tech-expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--eds-spacing-xl);
    width: 100%;
}

@media (max-width: 1024px) {
    .tech-expertise-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--eds-spacing-lg);
    }
}

@media (max-width: 768px) {
    .tech-expertise-grid {
        grid-template-columns: 1fr;
        gap: var(--eds-spacing-md);
    }
}

.tech-expertise-card {
    background: var(--eds-color-bg-elevated);
    border-radius: var(--eds-radius-lg);
    border: 1px solid var(--eds-color-border-subtle);
    padding: var(--eds-spacing-xl);
    display: flex;
    flex-direction: column;
    gap: var(--eds-spacing-md);
    transition: transform var(--eds-motion-duration-normal) var(--eds-motion-ease-in-out), box-shadow var(--eds-motion-duration-normal) var(--eds-motion-ease-in-out), border-color var(--eds-motion-duration-normal) var(--eds-motion-ease-in-out);
    box-sizing: border-box;
}

.tech-expertise-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--eds-shadow-lg);
    border-color: var(--eds-color-primary-hover);
}

.tech-expertise-card:focus-visible {
    outline: 2px solid var(--eds-color-accent);
    outline-offset: 4px;
}

.tech-expertise-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--eds-radius-md);
    background: rgba(var(--color-primary-rgb), 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-brand);
    font-size: var(--eds-font-size-xl);
    margin-bottom: var(--eds-spacing-2xs);
    transition: transform var(--eds-motion-duration-fast) var(--eds-motion-ease-in-out), background-color var(--eds-motion-duration-fast) var(--eds-motion-ease-in-out), color var(--eds-motion-duration-fast) var(--eds-motion-ease-in-out);
}

.tech-expertise-card:hover .tech-expertise-icon-wrapper {
    transform: scale(1.05);
    background: var(--eds-color-primary);
    color: #ffffff;
}

.tech-expertise-card h3 {
    font-size: var(--eds-font-size-md);
    font-weight: var(--eds-font-weight-bold);
    color: var(--eds-text-primary);
    margin: 0;
    line-height: var(--eds-line-height-tight);
}

.tech-expertise-card p {
    font-size: var(--eds-font-size-sm);
    line-height: var(--eds-line-height-relaxed);
    color: var(--eds-text-secondary);
    margin: 0;
}

.tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-chip {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    padding: 0.5rem 1.15rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.tech-chip:hover {
    border-color: var(--color-primary);
    color: var(--text-primary);
    background: var(--bg-primary);
}

/* Section 7: Why ScaleSage Editorial Split Layout */
.why-scalesage-editorial {
    background: var(--bg-secondary);
    padding: clamp(4rem, 8vw, 8rem) 0;
}

.editorial-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: start;
}

.editorial-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.editorial-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
}

.editorial-desc {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.editorial-vm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.5rem;
}

.vm-block h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-brand);
    margin-bottom: 0.5rem;
}

.vm-block p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.editorial-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pillar-card {
    display: flex;
    gap: 1.25rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    transition: var(--transition-normal);
}

.pillar-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.pillar-icon {
    font-size: 1.5rem;
    color: var(--text-brand-accent);
    line-height: 1.2;
}

.pillar-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.pillar-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Section 8: Value Creation Scenario Cards */
.value-scenarios-section {
    background: var(--bg-primary);
    padding: clamp(4rem, 8vw, 8rem) 0;
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.scenario-card {
    background: var(--eds-color-bg-elevated);
    border-radius: var(--eds-radius-lg);
    border: 1px solid var(--eds-color-border-subtle);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: transform var(--eds-motion-duration-normal) var(--eds-motion-ease-in-out), box-shadow var(--eds-motion-duration-normal) var(--eds-motion-ease-in-out), border-color var(--eds-motion-duration-normal) var(--eds-motion-ease-in-out);
    box-sizing: border-box;
}

.scenario-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--eds-shadow-lg);
    border-color: var(--eds-color-primary-hover);
}

.scenario-card:focus-visible {
    outline: 2px solid var(--eds-color-accent);
    outline-offset: 4px;
}

.case-industry {
    font-size: var(--eds-font-size-xs);
    font-weight: var(--eds-font-weight-semibold);
    color: var(--eds-text-muted);
    display: flex;
    align-items: center;
    gap: var(--eds-spacing-xs);
    margin-bottom: var(--eds-spacing-2xs);
}

.case-industry i {
    color: var(--text-brand);
}

.scenario-tag {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-brand-accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(var(--color-accent-rgb), 0.08);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    display: inline-block;
    align-self: flex-start;
}

.scenario-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.75rem;
    margin: 0;
}

.scenario-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.scenario-block h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    letter-spacing: 0.02em;
}

.scenario-block p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

/* Section 9: Careers visually secondary and compact */
.careers {
    background: var(--bg-secondary);
    padding: clamp(2rem, 4vw, 4rem) 0;
}

.careers-intro {
    max-width: 700px;
    margin: 0 auto 1.5rem auto;
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary);
}

.job-listings {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job-card {
    background: var(--bg-elevated) !important;
    border-color: var(--border-subtle) !important;
}

.job-card:hover {
    border-color: var(--border-strong) !important;
}

.apply-button-container {
    margin-top: 2rem;
}

.apply-button-container .btn {
    background: var(--color-primary) !important;
    font-weight: 600;
    transition: var(--transition-normal);
}

.apply-button-container .btn:hover {
    background: var(--color-primary-hover) !important;
    transform: translateY(-2px);
}

.career-form {
    max-width: 600px;
    margin: 2.5rem auto 0 auto !important;
}

/* Section 10: Contact experience refinement */
.contact {
    background: var(--bg-primary);
    padding: clamp(4rem, 8vw, 8rem) 0;
}

.contact-layout-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.contact-details-column {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-intro {
    text-align: left;
    margin: 0;
    max-width: 100%;
}

.contact-description {
    font-size: 1.1rem;
    line-height: var(--eds-line-height-relaxed);
    color: var(--text-secondary);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--eds-spacing-md);
    width: 100%;
    margin: 0;
    max-width: 100%;
}

.contact-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    padding: var(--eds-spacing-md) var(--eds-spacing-lg);
    border-radius: var(--eds-radius-lg);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--text-brand);
    width: auto;
    height: auto;
    background: none;
}

.contact-item h3 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    letter-spacing: 0.05em;
}

.contact-item p {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.contact-form, .schedule-form {
    max-width: 100%;
    margin: 0 !important;
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--eds-radius-lg) !important;
    padding: var(--eds-spacing-xl) !important;
    box-shadow: var(--shadow-md) !important;
    animation: fadeIn 0.5s ease-out;
}

/* .career-form shares the same base rule as .contact-form (line ~2136)
   but its own dedicated layout rule (line ~4631) never got the same dark
   theme treatment .contact-form received — left it rendering with the
   original light-theme white background. Matches contact-form's colors
   without touching career-form's own max-width/margin. */
.career-form {
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--eds-radius-lg) !important;
    box-shadow: var(--shadow-md) !important;
}

.contact-form form, .schedule-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--eds-spacing-xs);
}

.form-group input, .form-group select, .form-group textarea {
    background: var(--eds-color-bg-primary);
    border: 1px solid var(--eds-color-border-subtle);
    color: var(--eds-text-primary);
    padding: 14px 18px;
    border-radius: var(--eds-radius-md);
    font-family: inherit;
    font-size: var(--eds-font-size-base);
    transition: var(--eds-motion-duration-normal) var(--eds-motion-ease-in-out);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--eds-color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.15);
}

.contact-form button[type="submit"], .schedule-form button[type="submit"] {
    background: var(--color-primary) !important;
    font-weight: 600;
    padding: 14px 28px;
    font-size: 1rem;
    transition: var(--transition-normal);
}

.contact-form button[type="submit"]:hover, .schedule-form button[type="submit"]:hover {
    background: var(--color-primary-hover) !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE LAYOUT OVERRIDES (PHASE 2B)
   ========================================================================== */

@media (max-width: 992px) {
    .bao-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    

    
    .services-groups-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .editorial-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .scenarios-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-layout-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-intro {
        text-align: center;
    }
    
    .contact-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {

    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-form, .schedule-form {
        padding: 2rem 1.5rem !important;
    }
    
    /* Mobile timeline adaptation */
    .timeline-bar {
        left: 20px;
    }
    
    .timeline-marker {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    .timeline-content {
        padding: 1.25rem 1.5rem;
    }
    
    /* Mobile AI Workflow vertical visual */
    .workflow-svg {
        min-width: auto;
        max-width: 100%;
        height: auto;
    }
    
    /* Hide chat assistant tooltip on mobile */
    .chat-tooltip {
        display: none !important;
    }
}

@media (max-width: 360px) {
    .workflow-container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
}

/* Section 4B: AI Transformation Focus */
.ai-transformation-focus {
    background: var(--bg-secondary);
    padding: clamp(4rem, 8vw, 8rem) 0;
    position: relative;
    overflow: hidden;
}

.transformation-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.transformation-left {
    display: flex;
    flex-direction: column;
}

.transformation-left .section-eyebrow {
    color: var(--text-brand-accent);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.transformation-left .section-title {
    margin-bottom: 1.5rem;
    text-align: left;
}

.transformation-left .section-lead {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.transformation-left .section-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.transformation-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.trans-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.trans-feature-item i {
    color: var(--text-brand);
    font-size: 1.2rem;
}

.transformation-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-subtle);
    background: #0b0f19; /* Blend with dark theme navy or image background */
}

.transformation-image {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-normal);
}

.transformation-image-wrapper:hover .transformation-image {
    transform: scale(1.03);
}

@media (max-width: 992px) {
    .transformation-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .transformation-image-wrapper {
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Section 8B: Industry Expertise */
.industries-section {
    background: var(--bg-primary);
    padding: clamp(4rem, 8vw, 8rem) 0;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--eds-spacing-xl);
    width: 100%;
}

@media (max-width: 1024px) {
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--eds-spacing-lg);
    }
}

@media (max-width: 768px) {
    .industries-grid {
        grid-template-columns: 1fr;
        gap: var(--eds-spacing-md);
    }
}

.industry-card {
    background: var(--eds-color-bg-elevated);
    border-radius: var(--eds-radius-lg);
    border: 1px solid var(--eds-color-border-subtle);
    padding: var(--eds-spacing-xl);
    display: flex;
    flex-direction: column;
    gap: var(--eds-spacing-md);
    transition: transform var(--eds-motion-duration-normal) var(--eds-motion-ease-in-out), box-shadow var(--eds-motion-duration-normal) var(--eds-motion-ease-in-out), border-color var(--eds-motion-duration-normal) var(--eds-motion-ease-in-out);
    box-sizing: border-box;
}

.industry-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--eds-shadow-lg);
    border-color: var(--eds-color-primary-hover);
}

.industry-card:focus-visible {
    outline: 2px solid var(--eds-color-accent);
    outline-offset: 4px;
}

.industry-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--eds-radius-md);
    background: rgba(var(--color-primary-rgb), 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-brand);
    font-size: var(--eds-font-size-xl);
    margin-bottom: var(--eds-spacing-2xs);
    transition: transform var(--eds-motion-duration-fast) var(--eds-motion-ease-in-out), background-color var(--eds-motion-duration-fast) var(--eds-motion-ease-in-out), color var(--eds-motion-duration-fast) var(--eds-motion-ease-in-out);
}

.industry-card:hover .industry-icon-wrapper {
    transform: scale(1.05);
    background: var(--eds-color-primary);
    color: #ffffff;
}

.industry-card h3 {
    font-size: var(--eds-font-size-md);
    font-weight: var(--eds-font-weight-bold);
    color: var(--eds-text-primary);
    margin: 0;
    line-height: var(--eds-line-height-tight);
}

.industry-block {
    display: flex;
    flex-direction: column;
    gap: var(--eds-spacing-3xs);
}

.industry-block h4 {
    font-size: 10px;
    font-weight: var(--eds-font-weight-bold);
    text-transform: uppercase;
    color: var(--eds-text-muted);
    margin: 0;
    letter-spacing: 0.02em;
}

.industry-block p {
    font-size: var(--eds-font-size-sm);
    line-height: var(--eds-line-height-relaxed);
    color: var(--eds-text-secondary);
    margin: 0;
}

.industry-outcome {
    font-size: var(--eds-font-size-xs);
    font-weight: var(--eds-font-weight-semibold);
    color: var(--eds-text-muted);
    border-top: 1px solid var(--eds-color-border-subtle);
    padding-top: var(--eds-spacing-sm);
    margin-top: auto;
}

/* Light theme overrides — a warm ivory reading closer to the logo's own
   cream background than a cold "SaaS light mode" blue-white. The
   data-theme value stays "light-blue" for backward compatibility with the
   toggle logic in script.js; only the palette underneath changed. */
:root[data-theme="light-blue"] {
    /* Brand Tokens */
    --color-primary: #14507F;
    --color-primary-rgb: 20, 80, 127;
    --color-primary-hover: #1B6299;
    /* Deeper than the dark theme's green: the logo green reads fine against
       navy but only hits ~3.4:1 on the ivory/beige surfaces, failing WCAG AA
       for the small-text uses (.section-eyebrow, .scenario-tag). #25703F
       clears 4.8:1 on beige and 6:1 on white while staying on-brand. */
    --color-accent: #25703F;
    --color-accent-rgb: 37, 112, 63;
    --color-accent-hover: #1F6136;

    /* On light surfaces the fill colors are already dark enough to read as
       text, so the text-safe tokens simply track them. */
    --text-brand: #14507F;
    --text-brand-accent: #25703F;

    /* Backgrounds */
    --bg-primary: #F4F0E6;
    --bg-secondary: #ECE5D4;
    --bg-elevated: #FFFFFF;
    --header-bg: rgba(244, 240, 230, 0.85);
    --header-bg-scrolled: rgba(244, 240, 230, 0.96);

    /* Text Colors */
    --text-primary: #182430;
    --text-secondary: #46545F;
    --text-muted: #66737D;

    /* Borders */
    --border-subtle: #E3DBC6;
    --border-strong: #D0C4A4;
}

/* Theme Toggle Button Styling */
.theme-toggle-btn {
    background: transparent;
    border: none;
    color: var(--eds-text-primary);
    font-size: var(--eds-font-size-md);
    cursor: pointer;
    padding: var(--eds-spacing-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--eds-radius-md);
    transition: background-color var(--eds-motion-duration-fast) var(--eds-motion-ease), color var(--eds-motion-duration-fast) var(--eds-motion-ease);
    outline: none;
    margin-right: var(--eds-spacing-sm);
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-brand);
}

:root[data-theme="light-blue"] .theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.theme-toggle-btn:focus-visible {
    outline: 2px solid var(--eds-color-accent);
    outline-offset: 2px;
}

/* ==========================================
   PHASE 3: At a Glance stats strip
   ========================================== */
.at-a-glance {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}

.glance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.glance-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
}

.glance-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--eds-color-primary), var(--eds-color-accent));
    color: #ffffff;
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 8px 20px rgba(var(--color-primary-rgb), 0.25);
}

.glance-number {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.glance-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (max-width: 768px) {
    .glance-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 1rem;
    }
}

/* ==========================================
   PHASE 3: FAQ accordion
   ========================================== */
.faq-section {
    background: var(--bg-primary);
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--eds-color-bg-elevated);
    border: 1px solid var(--eds-color-border-subtle);
    border-radius: var(--eds-radius-lg);
    overflow: hidden;
    transition: border-color var(--eds-motion-duration-normal) var(--eds-motion-ease-in-out);
}

.faq-item:has(.faq-answer.active) {
    border-color: var(--eds-color-primary-hover);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: none;
    border: none;
    padding: 1.5rem 1.75rem;
    text-align: left;
    font-family: var(--eds-font-family);
    font-size: var(--eds-font-size-md);
    font-weight: var(--eds-font-weight-semibold);
    color: var(--eds-text-primary);
    cursor: pointer;
}

.faq-question:focus-visible {
    outline: 2px solid var(--eds-color-accent);
    outline-offset: -2px;
}

.faq-question .toggle-icon {
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.faq-answer.active {
    max-height: none;
    overflow: visible;
}

.faq-answer p {
    padding: 0 1.75rem 1.5rem;
    margin: 0;
    color: var(--eds-text-secondary);
    line-height: var(--eds-line-height-relaxed);
}
/* ==========================================
   PHASE 3: theme-aware replacements for former inline styles
   ========================================== */
/* Scoped to .job-content: the generic `.job-content p` rule (0,1,1) would
   otherwise out-rank a bare `.apply-note` (0,1,0) and force it back to
   body-copy grey. */
.job-content .apply-note {
    text-align: center;
    margin-top: 1.5rem;
    font-weight: 600;
    color: var(--text-brand);
}

.job-content .apply-note a {
    color: var(--text-brand);
    text-decoration: underline;
}

.field-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
