/* ============================================================================
   DESIGN TOKENS SYSTEM - COMPREHENSIVE TOKEN DEFINITIONS
   ============================================================================ */

/* 1. CORE DESIGN TOKENS (Theme-agnostic) */
:root {
    /* === TYPOGRAPHY TOKENS === */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Cascadia Code', monospace;
    
    /* Font weights */
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* Font sizes - Fluid responsive scale */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
    
    /* Line heights */
    --line-height-tight: 1.25;
    --line-height-snug: 1.375;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --line-height-loose: 2;
    
    /* Letter spacing */
    --letter-spacing-tighter: -0.05em;
    --letter-spacing-tight: -0.025em;
    --letter-spacing-normal: 0em;
    --letter-spacing-wide: 0.025em;
    --letter-spacing-wider: 0.05em;
    --letter-spacing-widest: 0.1em;
    
    /* === SPACING TOKENS === */
    --space-0: 0;
    --space-px: 1px;
    --space-0-5: 0.125rem;  /* 2px */
    --space-1: 0.25rem;     /* 4px */
    --space-1-5: 0.375rem;  /* 6px */
    --space-2: 0.5rem;      /* 8px */
    --space-2-5: 0.625rem;  /* 10px */
    --space-3: 0.75rem;     /* 12px */
    --space-3-5: 0.875rem;  /* 14px */
    --space-4: 1rem;        /* 16px */
    --space-5: 1.25rem;     /* 20px */
    --space-6: 1.5rem;      /* 24px */
    --space-7: 1.75rem;     /* 28px */
    --space-8: 2rem;        /* 32px */
    --space-9: 2.25rem;     /* 36px */
    --space-10: 2.5rem;     /* 40px */
    --space-11: 2.75rem;    /* 44px */
    --space-12: 3rem;       /* 48px */
    --space-14: 3.5rem;     /* 56px */
    --space-16: 4rem;       /* 64px */
    --space-20: 5rem;       /* 80px */
    --space-24: 6rem;       /* 96px */
    --space-28: 7rem;       /* 112px */
    --space-32: 8rem;       /* 128px */
    
    /* Semantic spacing aliases */
    --space-xs: var(--space-2);   /* 8px */
    --space-sm: var(--space-4);   /* 16px */
    --space-md: var(--space-6);   /* 24px */
    --space-lg: var(--space-8);   /* 32px */
    --space-xl: var(--space-12);  /* 48px */
    --space-2xl: var(--space-16); /* 64px */
    --space-3xl: var(--space-24); /* 96px */
    
    /* === BORDER RADIUS TOKENS === */
    --radius-none: 0;
    --radius-sm: 0.125rem;   /* 2px */
    --radius-base: 0.25rem;  /* 4px */
    --radius-md: 0.375rem;   /* 6px */
    --radius-lg: 0.5rem;     /* 8px */
    --radius-xl: 0.75rem;    /* 12px */
    --radius-2xl: 1rem;      /* 16px */
    --radius-3xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;
    
    /* === Z-INDEX TOKENS === */
    --z-hide: -1;
    --z-auto: auto;
    --z-base: 0;
    --z-docked: 10;
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-banner: 1030;
    --z-overlay: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-skipLink: 1070;
    --z-toast: 1080;
    --z-tooltip: 1090;
    
    /* Semantic z-index aliases */
    --z-background: var(--z-hide);
    --z-elevated: var(--z-docked);
    
    /* === ANIMATION TOKENS === */
    --ease-linear: linear;
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-back-in: cubic-bezier(0.6, -0.28, 0.735, 0.045);
    --ease-back-out: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-back-in-out: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Semantic animation aliases */
    --ease-smooth: var(--ease-in-out);
    --ease-bounce: var(--ease-back-in-out);
    
    /* Animation durations */
    --duration-instant: 0s;
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
    --duration-slower: 750ms;
    --duration-slowest: 1000ms;
    
    /* === SHADOW TOKENS === */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-base: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    
    /* === BREAKPOINT TOKENS === */
    --breakpoint-xs: 320px;
    --breakpoint-sm: 480px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
    
    /* === CONTAINER TOKENS === */
    --container-xs: 100%;
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;
}

/* 2. COLOR TOKENS SYSTEM */
:root {
    /* === BASE COLOR PALETTE === */
    /* Primary brand colors */
    --color-magenta-50: #fdf2f8;
    --color-magenta-100: #fce7f3;
    --color-magenta-200: #fbcfe8;
    --color-magenta-300: #f9a8d4;
    --color-magenta-400: #f472b6;
    --color-magenta-500: #ec4899; /* Base magenta */
    --color-magenta-600: #db2777;
    --color-magenta-700: #be185d;
    --color-magenta-800: #9d174d;
    --color-magenta-900: #831843;
    --color-magenta-950: #500724;
    
    /* Brand specific magenta variations */
    --color-brand-primary: #BE3455;      /* Main brand color */
    --color-brand-light: #D63C70;        /* Lighter variation */
    --color-brand-dark: #9E2847;         /* Darker variation */
    --color-brand-darker: #7A1F37;       /* Even darker */
    
    /* Neutral colors */
    --color-neutral-0: #ffffff;
    --color-neutral-50: #fafafa;
    --color-neutral-100: #f5f5f5;
    --color-neutral-200: #e5e5e5;
    --color-neutral-300: #d4d4d4;
    --color-neutral-400: #a3a3a3;
    --color-neutral-500: #737373;
    --color-neutral-600: #525252;
    --color-neutral-700: #404040;
    --color-neutral-800: #262626;
    --color-neutral-900: #171717;
    --color-neutral-950: #0a0a0a;
    
    /* Semantic colors */
    --color-success-50: #f0fdf4;
    --color-success-500: #22c55e;
    --color-success-600: #16a34a;
    --color-success-700: #15803d;
    
    --color-warning-50: #fffbeb;
    --color-warning-500: #f59e0b;
    --color-warning-600: #d97706;
    
    --color-error-50: #fef2f2;
    --color-error-500: #ef4444;
    --color-error-600: #dc2626;
    
    --color-info-50: #eff6ff;
    --color-info-500: #3b82f6;
    --color-info-600: #2563eb;
    
    /* === ALPHA VARIATIONS === */
    /* Brand alpha variations */
    --alpha-brand-5: rgba(190, 52, 85, 0.05);
    --alpha-brand-10: rgba(190, 52, 85, 0.1);
    --alpha-brand-15: rgba(190, 52, 85, 0.15);
    --alpha-brand-20: rgba(190, 52, 85, 0.2);
    --alpha-brand-25: rgba(190, 52, 85, 0.25);
    --alpha-brand-30: rgba(190, 52, 85, 0.3);
    --alpha-brand-40: rgba(190, 52, 85, 0.4);
    --alpha-brand-50: rgba(190, 52, 85, 0.5);
    --alpha-brand-60: rgba(190, 52, 85, 0.6);
    --alpha-brand-70: rgba(190, 52, 85, 0.7);
    --alpha-brand-80: rgba(190, 52, 85, 0.8);
    --alpha-brand-90: rgba(190, 52, 85, 0.9);
    
    /* Neutral alpha variations */
    --alpha-white-5: rgba(255, 255, 255, 0.05);
    --alpha-white-10: rgba(255, 255, 255, 0.1);
    --alpha-white-20: rgba(255, 255, 255, 0.2);
    --alpha-white-30: rgba(255, 255, 255, 0.3);
    --alpha-white-50: rgba(255, 255, 255, 0.5);
    
    --alpha-black-5: rgba(0, 0, 0, 0.05);
    --alpha-black-10: rgba(0, 0, 0, 0.1);
    --alpha-black-20: rgba(0, 0, 0, 0.2);
    --alpha-black-30: rgba(0, 0, 0, 0.3);
    --alpha-black-50: rgba(0, 0, 0, 0.5);
    
    /* === DARK THEME (DEFAULT) === */
    /* Background tokens */
    --bg-primary: var(--color-neutral-950);
    --bg-secondary: var(--color-neutral-900);
    --bg-tertiary: var(--color-neutral-800);
    --bg-elevated: var(--color-neutral-800);
    --bg-overlay: var(--alpha-black-50);
    
    /* Text tokens */
    --text-primary: var(--color-neutral-0);
    --text-secondary: var(--color-neutral-300);
    --text-muted: var(--color-neutral-500);
    --text-disabled: var(--color-neutral-600);
    --text-inverse: var(--color-neutral-950);
    
    /* Border tokens - IMPROVED VISIBILITY */
    --border-primary: var(--alpha-brand-30); /* Improved from 20% to 30% for better visibility */
    --border-secondary: var(--color-neutral-800);
    --border-muted: var(--color-neutral-700);
    --border-focus: var(--color-brand-primary);
    
    /* Surface tokens */
    --surface-primary: var(--bg-secondary);
    --surface-secondary: var(--bg-tertiary);
    --surface-elevated: var(--bg-elevated);
    --surface-overlay: var(--bg-overlay);
    
    /* Component-specific tokens */
    --card-bg: var(--surface-primary);
    --card-border: var(--border-primary);
    --card-shadow: var(--shadow-none);
    
    --navbar-bg: rgba(26, 26, 26, 0.8);
    --navbar-border: var(--border-primary);
    --navbar-shadow: var(--shadow-none);
    
    --section-bg-alt: linear-gradient(135deg, var(--color-neutral-900), var(--color-neutral-950));
    
    /* Interactive state tokens */
    --state-hover-bg: var(--alpha-brand-10);
    --state-hover-border: var(--color-brand-primary);
    --state-focus-ring: var(--alpha-brand-40);
    --state-active-bg: var(--alpha-brand-20);
    
    /* Effect tokens */
    --glow-brand: var(--alpha-brand-40);
    --glow-subtle: var(--alpha-brand-20);
    
    /* Semantic aliases for backward compatibility */
    --magenta: var(--color-brand-primary);
    --magenta-light: var(--color-brand-light);
    --magenta-dark: var(--color-brand-dark);
    --magenta-alpha-10: var(--alpha-brand-10);
    --magenta-alpha-20: var(--alpha-brand-20);
    --magenta-alpha-30: var(--alpha-brand-30);
    --magenta-alpha-40: var(--alpha-brand-40);
    --magenta-alpha-50: var(--alpha-brand-50);
    --magenta-glow: var(--glow-brand);
    --hover-bg: var(--state-hover-bg);
    --hover-border: var(--state-hover-border);
    --focus-ring: var(--state-focus-ring);
}

/* 3. LIGHT THEME OVERRIDES */
html[data-theme="light"] {
    /* Background tokens */
    --bg-primary: var(--color-neutral-0);
    --bg-secondary: var(--color-neutral-50);
    --bg-tertiary: var(--color-neutral-100);
    --bg-elevated: var(--color-neutral-0);
    --bg-overlay: var(--alpha-black-20);
    
    /* Text tokens - IMPROVED CONTRAST */
    --text-primary: var(--color-neutral-900);
    --text-secondary: var(--color-neutral-700); /* Improved from 600 to 700 for better contrast */
    --text-muted: var(--color-neutral-600); /* Improved from 500 to 600 */
    --text-disabled: var(--color-neutral-400);
    --text-inverse: var(--color-neutral-0);
    
    /* Border tokens */
    --border-primary: var(--color-neutral-200);
    --border-secondary: var(--color-neutral-300);
    --border-muted: var(--color-neutral-200);
    --border-focus: var(--color-brand-primary);
    
    /* Surface tokens */
    --surface-primary: var(--color-neutral-0);
    --surface-secondary: var(--color-neutral-50);
    --surface-elevated: var(--color-neutral-0);
    --surface-overlay: var(--alpha-black-20);
    
    /* Component-specific tokens */
    --card-bg: var(--surface-primary);
    --card-border: var(--border-primary);
    --card-shadow: var(--shadow-lg);
    
    --navbar-bg: rgba(255, 255, 255, 0.9);
    --navbar-border: var(--border-primary);
    --navbar-shadow: var(--shadow-lg);
    
    --section-bg-alt: var(--bg-secondary);
    
    /* Interactive state tokens */
    --state-hover-bg: var(--alpha-brand-5);
    --state-hover-border: var(--color-brand-primary);
    --state-focus-ring: var(--alpha-brand-20);
    --state-active-bg: var(--alpha-brand-10);
    
    /* Effect tokens */
    --glow-brand: var(--alpha-brand-20);
    --glow-subtle: var(--alpha-brand-10);
    
    /* Alpha adjustments for light theme */
    --alpha-brand-5: rgba(190, 52, 85, 0.03);
    --alpha-brand-10: rgba(190, 52, 85, 0.08);
    --alpha-brand-15: rgba(190, 52, 85, 0.12);
    --alpha-brand-20: rgba(190, 52, 85, 0.15);
    --alpha-brand-25: rgba(190, 52, 85, 0.18);
    --alpha-brand-30: rgba(190, 52, 85, 0.25);
    
    /* Semantic aliases update */
    --magenta-alpha-10: var(--alpha-brand-10);
    --magenta-alpha-20: var(--alpha-brand-20);
    --magenta-alpha-30: var(--alpha-brand-30);
    --magenta-glow: var(--glow-brand);
    --hover-bg: var(--state-hover-bg);
    --hover-border: var(--state-hover-border);
    --focus-ring: var(--state-focus-ring);
}

/* 4. SMOOTH SCROLL & SCROLL MARGIN */
html {
    scroll-behavior: smooth;
}

/* Adjust scroll margin to account for fixed navbar height and section padding */
#narrative {
    scroll-margin-top: 8rem; /* Matches body padding-top */
}

#methodology, #services, #trust, #contact, #demo {
    scroll-margin-top: 0rem; /* Matches body padding-top */
}

#knowledge {
    scroll-margin-top: 8rem; /* Matches body padding-top */
}

/* 5. GLOBAL STYLES & TRANSITIONS */
body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 8rem 0 0 0; /* Space for fixed navbar */
    transition: background-color var(--duration-normal) var(--ease-smooth), 
                color var(--duration-normal) var(--ease-smooth);
}


/* Consistent font rendering and prevent horizontal scroll */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

html {
    padding: 0 !important;
}

/* Prevent any element from causing horizontal scroll */
*, *::before, *::after {
    max-width: 100%;
}

/* Ensure all sections are properly centered */
section {
    width: 100%;
    margin: 0 auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    box-sizing: border-box;
}

/* Generic transitions for theme-sensitive components */
.navbar, .btn, .theme-toggle,
.demo-card, .impact-card, .method-card, .service-card, .blog-card,
.team-member, .testimonial, .governance-icon, .form-input {
    transition: background-color var(--duration-normal) var(--ease-smooth),
                border-color var(--duration-normal) var(--ease-smooth),
                box-shadow var(--duration-normal) var(--ease-smooth),
                color var(--duration-normal) var(--ease-smooth),
                transform var(--duration-fast) var(--ease-smooth);
}

/* ============================================================================
   COMPONENT STYLES (Theme-Agnostic)
   ============================================================================ */

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 8rem;
    right: var(--space-lg);
    z-index: var(--z-modal);
    
    /* Styling following design system */
    width: 3rem;
    height: 3rem;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--navbar-border);
    border-radius: var(--radius-2xl);
    color: var(--text-secondary);
    cursor: pointer;
    
    /* Flexbox for centering */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Transitions */
    transition: all var(--duration-normal) var(--ease-smooth);
    
    /* Initial state - hidden */
    opacity: 0;
    visibility: hidden;
    transform: translateY(var(--space-lg));
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--state-hover-bg);
    border-color: var(--magenta);
    color: var(--magenta);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--magenta-alpha-20);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

.scroll-to-top svg {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform var(--duration-fast) var(--ease-smooth);
}

.scroll-to-top:hover svg {
    transform: translateY(-1px);
}

/* Neural Network Dynamic Background */
.neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-background);
    opacity: 0.6;
    pointer-events: none;
}

/* Floating Navigation */
.nav-container {
    position: fixed;
    top: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-modal);
    width: min(90%, 1200px);
    padding: 0 var(--space-sm);
}

.content-container {
    width: min(90%, 1200px);
    margin: 0 auto;
    padding: 0 var(--space-sm);
    padding-top: 5.5rem;
}

.navbar {
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--navbar-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-sm) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--navbar-shadow);
    transition: all var(--duration-normal) var(--ease-smooth);
}

/* Navbar scroll states */
.navbar.scrolled-dark {
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(25px) !important;
    box-shadow: 0 8px 32px var(--magenta-alpha-20) !important;
}

.navbar.scrolled-light {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(25px) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
}

.navbar:hover {
    border-color: var(--magenta);
    box-shadow: 0 0 30px var(--magenta-glow);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--magenta);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 3.75rem;
    width: auto;
    transition: all var(--duration-normal) var(--ease-smooth);
}

/* Logo variants for different themes */
.logo-img.dark-logo {
    display: block;
}

.logo-img.light-logo {
    display: none;
}

html[data-theme="light"] .logo-img.dark-logo {
    display: none;
}

html[data-theme="light"] .logo-img.light-logo {
    display: block;
}

.logo:hover .logo-img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--duration-fast) var(--ease-smooth);
    position: relative;
}

.nav-links a:hover {
    color: var(--magenta);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--magenta);
    transition: width var(--duration-normal) var(--ease-smooth);
}

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

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

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    cursor: pointer;
}

html[data-theme="light"] .theme-toggle {
    background: rgba(26, 26, 26, 0.05);
    border: 1px solid rgba(26, 26, 26, 0.1);
}

.theme-toggle:hover {
    background: var(--hover-bg);
    border-color: var(--hover-border);
    transform: scale(1.05);
}

.theme-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: var(--text-secondary);
    fill: none;
    stroke-width: 2;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.theme-toggle:hover svg {
    stroke: var(--magenta);
}

.theme-toggle .sun-icon { display: none; }
html[data-theme="light"] .theme-toggle .sun-icon { display: block; }
html[data-theme="light"] .theme-toggle .moon-icon { display: none; }

/* Language Toggle */
.language-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    cursor: pointer;
    margin-right: var(--space-sm);
}

html[data-theme="light"] .language-toggle {
    background: rgba(26, 26, 26, 0.05);
    border: 1px solid rgba(26, 26, 26, 0.1);
}

.language-toggle:hover {
    background: var(--hover-bg);
    border-color: var(--hover-border);
    transform: scale(1.05);
}

.lang-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--duration-normal) var(--ease-smooth);
}

.language-toggle:hover .lang-text {
    color: var(--magenta);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    z-index: var(--z-tooltip);
}

.hamburger-line {
    width: 1.5rem;
    height: 2px;
    background: var(--text-primary);
    margin: 2px 0;
    transition: all var(--duration-normal) var(--ease-smooth);
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

/* Story-Driven Hero */
.hero-narrative {
    min-height: calc(100vh - 8rem);
    display: flex;
    align-items: center;
    padding: var(--space-lg) var(--space-lg) 0;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-3xl);
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    align-items: center;
    padding: 0 var(--space-md);
    box-sizing: border-box;
}

.hero-content { z-index: 10; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--magenta-alpha-10);
    border: 1px solid var(--magenta);
    border-radius: var(--radius-2xl);
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--magenta);
    margin-top: var(--space-xl); /* Increased margin to prevent navbar overlap */
    margin-bottom: var(--space-lg);
}

.hero-badge::before {
    content: '●';
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.hero-highlight {
    background: linear-gradient(135deg, var(--magenta), var(--magenta-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-demo-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: var(--space-md);
    text-align: center;
}

/* ============================================================================
   BUTTON COMPONENT SYSTEM
   ============================================================================ */

/* Base button styles */
.btn {
    /* Layout */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    
    /* Spacing */
    padding: var(--space-3) var(--space-6);
    
    /* Typography */
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    text-decoration: none;
    white-space: nowrap;
    
    /* Appearance */
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    user-select: none;
    
    /* Transitions */
    transition: all var(--duration-normal) var(--ease-smooth);
    
    /* States */
    &:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        pointer-events: none;
    }
}

/* Button sizes */
.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
    gap: var(--space-1-5);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-lg);
    gap: var(--space-3);
}

.btn-xl {
    padding: var(--space-5) var(--space-10);
    font-size: var(--font-size-xl);
    gap: var(--space-3);
}

/* Primary button variant */
.btn-primary {
    background: var(--color-brand-primary);
    color: var(--color-neutral-0);
    border-color: var(--color-brand-primary);
    box-shadow: 0 var(--space-1) var(--space-5) var(--alpha-brand-30);
}

.btn-primary:hover {
    background: var(--color-brand-light);
    border-color: var(--color-brand-light);
    transform: translateY(calc(var(--space-1) * -1));
    box-shadow: 0 var(--space-2) var(--space-7) var(--alpha-brand-40);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 var(--space-1) var(--space-3) var(--alpha-brand-50);
}

/* Secondary button variant */
.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-secondary);
}

html[data-theme="dark"] .btn-secondary {
    border-color: var(--alpha-white-20);
}

.btn-secondary:hover {
    background: var(--state-hover-bg);
    border-color: var(--color-brand-primary);
    color: var(--color-brand-primary);
    transform: translateY(calc(var(--space-1) * -1));
}

/* Outline button variant */
.btn-outline {
    background: transparent;
    color: var(--color-brand-primary);
    border-color: var(--color-brand-primary);
}

.btn-outline:hover {
    background: var(--color-brand-primary);
    color: var(--color-neutral-0);
    transform: translateY(calc(var(--space-1) * -1));
}

/* Ghost button variant */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
}

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

/* Full width button */
.btn-full {
    width: 100%;
}

/* Button with icon spacing */
.btn .icon {
    flex-shrink: 0;
}

.btn .icon:first-child {
    margin-right: var(--space-1);
    margin-left: calc(var(--space-1) * -1);
}

.btn .icon:last-child {
    margin-left: var(--space-1);
    margin-right: calc(var(--space-1) * -1);
}

/* Button loading state */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: var(--space-4);
    height: var(--space-4);
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: var(--radius-full);
    animation: spin var(--duration-slowest) linear infinite;
}

/* ============================================================================
   UNIFIED COMPONENT SYSTEM
   ============================================================================ */

/* Base card component */
.card-base {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--card-shadow);
    transition: all var(--duration-normal) var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

/* Card hover states */
.card-base:hover {
    border-color: var(--color-brand-primary);
    box-shadow: 0 0 var(--space-10) var(--glow-brand);
    transform: translateY(calc(var(--space-2) * -1));
}

/* Card with enhanced hover */
.card-enhanced:hover {
    transform: translateY(calc(var(--space-2-5) * -1)) scale(1.02);
    box-shadow: 0 var(--space-5) var(--space-16) var(--glow-brand);
}

/* Card top accent line */
.card-base::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--space-1);
    background: linear-gradient(90deg, var(--color-brand-primary), var(--color-brand-light));
    transform: scaleX(0);
    transition: transform var(--duration-normal) var(--ease-smooth);
}

.card-base:hover::before {
    transform: scaleX(1);
}

/* Apply unified styles to existing cards */
.demo-card, .impact-card, .method-card, .service-card, .blog-card,
.team-member, .testimonial, .founder-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--card-shadow);
    transition: all var(--duration-normal) var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.demo-card:hover, .impact-card:hover, .method-card:hover, .service-card:hover, .blog-card:hover,
.team-member:hover, .testimonial:hover, .founder-card:hover {
    border-color: var(--color-brand-primary);
    box-shadow: 0 0 var(--space-10) var(--glow-brand);
    transform: translateY(calc(var(--space-2) * -1));
}

/* Enhanced cards get special hover treatment */
.demo-card:hover, .impact-card:hover, .method-card:hover, .service-card:hover, .blog-card:hover {
    transform: translateY(calc(var(--space-2-5) * -1)) scale(1.02);
    box-shadow: 0 var(--space-5) var(--space-16) var(--glow-brand);
}

/* Card top accent line */
.demo-card::before, .impact-card::before, .method-card::before, .service-card::before, .blog-card::before,
.team-member::before, .testimonial::before, .founder-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--space-1);
    background: linear-gradient(90deg, var(--color-brand-primary), var(--color-brand-light));
    transform: scaleX(0);
    transition: transform var(--duration-normal) var(--ease-smooth);
}

.demo-card:hover::before, .impact-card:hover::before, .method-card:hover::before, 
.service-card:hover::before, .blog-card:hover::before,
.team-member:hover::before, .testimonial:hover::before, .founder-card:hover::before {
    transform: scaleX(1);
}

/* Unified Section Style */
.impact-section {
    background: var(--section-bg-alt);
    padding: var(--space-3xl) var(--space-lg);
}

.services-section {
    background: var(--section-bg-alt);
    padding: var(--space-3xl) var(--space-lg) calc(var(--space-3xl) + var(--space-xl));
}

.knowledge-section {
    background: var(--section-bg-alt);
    padding: var(--space-3xl) var(--space-lg);
}

.methodology-section, .trust-section {
    background: var(--bg-primary);
    padding: var(--space-3xl) var(--space-lg);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* K4i Differential Section */
.k4i-differential {
    max-width: 800px;
    margin: 0 auto var(--space-3xl);
    text-align: center;
    padding: var(--space-xl);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--card-shadow);
}

.differential-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--magenta);
    margin-bottom: var(--space-md);
}

.differential-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

.differential-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

    .differential-points {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
        text-align: left;
    }
    
    .cta-options-grid {
        grid-template-columns: 1fr 1fr;
    }

.differential-point {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-primary);
    font-weight: 500;
}

.point-highlight {
    color: var(--magenta);
    font-weight: 800;
    font-size: 1.2rem;
}

/* Interactive AI Demo Visualization */
.ai-demo-container {
    position: relative;
    min-height: 500px;
    height: auto;
    transition: height var(--duration-normal) var(--ease-smooth);
}

.demo-card {
    backdrop-filter: blur(20px);
    padding: var(--space-lg) var(--space-lg) var(--space-xl);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    cursor: pointer;
}

.demo-header, .demo-title, .demo-subtitle { color: var(--text-primary); }
.demo-title { color: var(--magenta); }
.demo-subtitle { color: var(--text-secondary); }

.process-step {
    background: var(--magenta-alpha-10);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    text-align: center;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.process-step:hover {
    background: var(--magenta-alpha-20);
    transform: scale(1.05);
}

.step-number {
    background: var(--magenta);
    color: white;
}

.step-title { color: var(--magenta); }

.demo-output {
    background: var(--bg-primary); /* Slightly different from card bg for contrast */
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    border-left: 3px solid var(--magenta);
    margin-top: var(--space-lg);
    transition: all var(--duration-normal) var(--ease-smooth);
}

.output-title { color: var(--magenta); }
.output-text {
    color: var(--text-secondary);
    transition: opacity var(--duration-fast) var(--ease-smooth);
}

/* Impact Metrics Section */
.impact-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, var(--magenta-glow) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, var(--magenta-glow) 0%, transparent 50%);
    opacity: 0.3;
    pointer-events: none;
}

.impact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-lg);
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.impact-card {
    padding: var(--space-xl);
    text-align: center;
}

.impact-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
}

.impact-metric {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--magenta);
    margin-bottom: var(--space-sm);
    text-shadow: 0 0 20px var(--magenta-glow);
}

.impact-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.impact-description { color: var(--text-secondary); }

/* Impact Introduction */
.impact-intro {
    margin-top: var(--space-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.impact-intro-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--magenta);
    margin-bottom: var(--space-md);
}

.impact-intro-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Founders Section */
.founders-section {
    padding: var(--space-3xl) var(--space-lg);
    background: var(--bg-secondary);
    position: relative;
}

.founders-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--card-border), transparent);
}

.founders-section .section-description {
    max-width: 800px;
    margin: var(--space-lg) auto 0;
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-secondary);
    text-align: center;
}

.founders-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    max-width: min(1200px, 100%);
    width: 100%;
    margin: var(--space-3xl) auto 0;
    padding: 0 var(--space-md);
    box-sizing: border-box;
}

.founder-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--card-shadow);
    transition: all var(--duration-normal) var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.founder-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--magenta), var(--purple));
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-smooth);
}

.founder-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(190, 52, 85, 0.15);
    border-color: var(--magenta);
}

.founder-card:hover::before {
    opacity: 1;
}

.founder-image {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-lg);
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--card-border);
    transition: all var(--duration-normal) var(--ease-smooth);
}

.founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-normal) var(--ease-smooth);
}

.founder-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(190, 52, 85, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-smooth);
}

.founder-image:hover .founder-overlay {
    opacity: 1;
}

.founder-image:hover img {
    transform: scale(1.1);
}

.founder-image:hover {
    border-color: var(--magenta);
    box-shadow: 0 0 0 2px rgba(190, 52, 85, 0.3);
}

.founder-social {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-smooth);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* Override for Lucide icons - preserve their natural stroke width */
.lucide-icon svg {
    stroke-width: 1 !important;
}

/* Ensure Lucide icons in social links keep their natural appearance */
.social-link.lucide-icon svg {
    stroke-width: 1 !important;
    fill: none !important;
    stroke: currentColor !important;
}

/* Lucide icons styling for founders section */
.founder-social .social-link i[data-lucide] {
    width: 20px;
    height: 20px;
    color: currentColor;
}

/* Lucide icons styling for footer section */
.footer-social .social-link i[data-lucide] {
    width: 20px;
    height: 20px;
    color: currentColor;
    display: inline-block;
}

/* Lucide icons styling for newsletter and theme toggle */
.newsletter-icon[data-lucide],
.theme-toggle i[data-lucide] {
    width: 16px;
    height: 16px;
    color: currentColor;
}

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

.founder-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.founder-role {
    font-size: 1rem;
    font-weight: 600;
    color: var(--magenta);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.founder-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    text-align: left;
}

.founder-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.founder-highlights li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.founder-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--magenta);
    border-radius: 50%;
}

.founder-highlights li:last-child {
    margin-bottom: 0;
}

/* Methodology Deep-dive */
.methodology-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-lg);
    max-width: min(1200px, 100%);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-md);
    box-sizing: border-box;
}

.method-card {
    padding: var(--space-xl);
    cursor: pointer;
    position: relative;
    overflow: visible;
    min-height: auto;
}

.method-card:nth-child(1) {
    grid-column: 1 / 3;
    display: flex;
    align-items: flex-start;
    gap: var(--space-xl);
}

.method-card:nth-child(1) .method-content { flex: 1.2; }
.method-card:nth-child(1) .method-visual { flex: 0.8; }
.method-card:nth-child(2) { grid-column: 1; grid-row: 2; }
.method-card:nth-child(3) { grid-column: 2; grid-row: 2; }
.method-card:nth-child(4) {
    grid-column: 1 / 3;
    grid-row: 3;
    display: flex;
    align-items: flex-start;
    gap: var(--space-xl);
}
.method-card:nth-child(4) .method-content { flex: 1.2; }
.method-card:nth-child(4) .method-visual { flex: 0.8; }

.method-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--space-xl);
    height: var(--space-xl);
    background: linear-gradient(135deg, var(--magenta), var(--magenta-light));
    color: white;
    border-radius: var(--radius-lg);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: var(--space-lg);
}

.method-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--magenta);
}

.method-description { color: var(--text-secondary); }

.k4i-visual-flow {
    padding: var(--space-md);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
}

.result-highlight {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    border-left: 3px solid var(--magenta);
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
    min-height: auto;
}

.result-title, .cert-title, .framework-title { color: var(--magenta); }
.result-text, .icon-label { color: var(--text-secondary); }

.governance-icon {
    width: 4rem;
    height: 4rem;
    background: var(--magenta-alpha-10);
    border: 1px solid var(--magenta-alpha-20);
    border-radius: var(--radius-lg);
}

html[data-theme="light"] .governance-icon {
    background: var(--magenta-alpha-10);
    border: 1px solid var(--magenta-alpha-30);
}

/* FinOps Section Light Mode Styles */
html[data-theme="light"] .finops-section {
    background: var(--bg-secondary);
}

html[data-theme="light"] .finops-case-study {
    background: var(--bg-primary);
    border-color: var(--border-primary);
}

html[data-theme="light"] .case-study-metric {
    background: var(--bg-secondary);
    border-color: var(--border-primary);
}

html[data-theme="light"] .case-study-badge {
    background: var(--color-brand-primary);
    color: white;
}

html[data-theme="light"] .tech-tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-color: var(--border-primary);
}

html[data-theme="light"] .finops-download-cta {
    background: var(--bg-tertiary);
    border-color: var(--border-primary);
}

.governance-icon svg { stroke: var(--magenta); }

.cert-badge {
    background: var(--magenta-alpha-10);
    color: var(--magenta);
}

/* Services Discovery */
.services-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: var(--space-lg);
    max-width: min(1200px, 100%);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-md);
    box-sizing: border-box;
}

.service-card {
    padding: var(--space-xl);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.service-icon {
    width: 4rem;
    height: 4rem;
    background: var(--magenta-alpha-10);
    border: 1px solid var(--magenta-alpha-20);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    transition: all var(--duration-normal) var(--ease-smooth);
}

.service-icon svg { 
    width: 1.5rem;
    height: 1.5rem;
    stroke: var(--magenta);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-title {
    color: var(--magenta);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Trust Engine */
.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    max-width: min(1200px, 100%);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-md);
    box-sizing: border-box;
    align-items: start;
}

.team-container h3, .testimonials-container h3 { color: var(--magenta); }
.team-member, .testimonial { padding: var(--space-lg); }
.team-member {
    background: var(--bg-secondary);
}
.testimonial {
    background: var(--bg-secondary);
    border-left: 4px solid var(--magenta);
}

.member-avatar {
    background: linear-gradient(135deg, var(--magenta), var(--magenta-light));
    border-radius: var(--radius-lg);
}
.member-info h4 { color: var(--text-primary); }
.member-role { color: var(--magenta); }
.member-bio { color: var(--text-secondary); }
.testimonial-text { color: var(--text-secondary); }
.testimonial-author { color: var(--magenta); }

/* Knowledge Hub */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-lg);
    max-width: min(1200px, 100%);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-md);
    box-sizing: border-box;
}

.blog-card {
    overflow: hidden;
    cursor: pointer;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.blog-card:nth-child(1) { grid-column: 1; grid-row: 1; }
.blog-card:nth-child(2) { grid-column: 2; grid-row: 1; }
.blog-card:nth-child(3) { grid-column: 1; grid-row: 2; }
.blog-card:nth-child(4) { grid-column: 2; grid-row: 2; }

/* Destacar el primer artículo con un diseño especial */
.blog-card:nth-child(1) {
    position: relative;
    background: linear-gradient(135deg, var(--magenta-alpha-10) 0%, var(--card-bg) 100%);
    border: 2px solid var(--magenta-alpha-30);
}

/* .blog-card:nth-child(1)::before {
    content: '★ Featured';
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: var(--magenta);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
} */

.blog-card:nth-child(1) .blog-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
}

.blog-card:nth-child(1) .blog-excerpt {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Diferenciación visual por categorías */
.blog-card:has(.blog-tag:contains("Strategy")) {
    border-left: 4px solid var(--magenta);
}

.blog-card:has(.blog-tag:contains("Human+AI")) {
    border-left: 4px solid #3B82F6;
}

.blog-card:has(.blog-tag:contains("MLOps")) {
    border-left: 4px solid #10B981;
}

.blog-card:has(.blog-tag:contains("Implementation")) {
    border-left: 4px solid #F59E0B;
}

/* Mejoras en el hover para el layout 2x2 */
.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Mejorar el balance visual */
.blog-card:nth-child(even) {
    margin-top: var(--space-sm);
}

@media (max-width: 900px) {
    .blog-card:nth-child(even) {
        margin-top: 0;
    }
}

.blog-card-content {
    padding: var(--space-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-header {
    flex: 1;
    margin-bottom: var(--space-lg);
}

.blog-bottom {
    margin-top: auto;
    padding-top: var(--space-lg);
}

.blog-tag {
    background: var(--magenta-alpha-10);
    color: var(--magenta);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: var(--space-md);
}

.blog-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    line-height: 1.3;
}
.blog-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}
.blog-link {
    color: var(--magenta);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-smooth);
}
.blog-link:hover { color: var(--magenta-light); }

/* Clickable Blog Card Styles */
.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.blog-card-link:hover {
    color: inherit;
    text-decoration: none;
}

.blog-card-link:focus {
    outline: 2px solid var(--magenta);
    outline-offset: 2px;
    border-radius: var(--radius-lg);
}

/* CTA section at bottom of clickable card */
.blog-cta {
    margin-top: auto;
    padding-top: var(--space-md);
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.blog-link-text {
    color: var(--magenta);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color var(--duration-fast) var(--ease-smooth);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.blog-card-link:hover .blog-link-text {
    color: var(--magenta-light);
}

/* Enhanced hover effect for clickable card */
.blog-card:has(.blog-card-link):hover {
    cursor: pointer;
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 25px 80px var(--magenta-glow);
}

.blog-card:has(.blog-card-link):hover::before {
    transform: scaleX(1);
}

/* Ensure card content fills the link */
.blog-card-link .blog-card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Accessibility improvements */
.blog-card-link:focus-visible {
    outline: 2px solid var(--magenta);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .blog-card:has(.blog-card-link):hover {
        transform: none;
        transition: box-shadow var(--duration-fast) var(--ease-smooth);
    }
}

.blog-featured-visual {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
    border: 1px solid var(--card-border);
}

.blog-stats {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
}

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

.blog-stat-number { 
    color: var(--magenta);
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}
.blog-stat-label { 
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.blog-trends, .blog-meta-item { color: var(--text-secondary); }

.blog-quick-insights {
    background: var(--magenta-alpha-10);
    border-left: 2px solid var(--magenta);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin: var(--space-md) 0;
}
.insight-highlight { 
    color: var(--magenta);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xs);
}
.insight-meta { 
    color: var(--text-muted);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* CTA & Footer */
.final-cta {
    padding: calc(var(--space-3xl) + 4rem) var(--space-lg) var(--space-3xl);
    background: var(--section-bg-alt);
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--magenta);
    border-radius: var(--radius-2xl);
    padding: var(--space-3xl);
    position: relative;
    overflow: hidden;
}

.cta-title, .cta-subtitle { color: var(--text-primary); }
.cta-subtitle { color: var(--text-secondary); }

/* CTA Options */
.cta-options {
    margin: var(--space-xl) 0;
}

.cta-options-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

.cta-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.cta-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-smooth);
    text-align: left;
}

.cta-option:hover {
    border-color: var(--magenta);
    background: var(--magenta-alpha-10);
}

.cta-option input[type="radio"] {
    display: none;
}

.cta-option input[type="radio"]:checked + .option-checkmark {
    color: var(--magenta);
}

.option-checkmark {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color var(--duration-fast) var(--ease-smooth);
}

.option-text {
    color: var(--text-primary);
    font-weight: 500;
}

/* Social Proof */
.social-proof {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: var(--space-xl);
    border-top: 1px solid var(--card-border);
    padding-top: var(--space-lg);
}

.form-input {
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    transition: border-color var(--duration-fast) var(--ease-smooth),
                box-shadow var(--duration-fast) var(--ease-smooth);
}

.form-input::placeholder { 
    color: var(--text-muted); 
}

.form-input:focus {
    outline: none;
    border-color: var(--color-brand-primary);
    box-shadow: 0 0 0 2px var(--alpha-brand-20);
}

/* Enhanced Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--card-border);
    padding: var(--space-xl) 0 var(--space-lg);
}

.footer-container {
    max-width: min(1200px, 100%);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    box-sizing: border-box;
}

/* Main Footer Grid */
.footer-main-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    padding-right: var(--space-lg);
}

.footer-logo {
    margin-bottom: var(--space-lg);
}

.logo-subtitle {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: var(--space-xs);
    letter-spacing: 0.025em;
    transition: color var(--duration-fast) var(--ease-smooth);
}

.logo-accent {
    color: var(--magenta);
    font-weight: 600;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
}

.footer-title {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--duration-fast) var(--ease-smooth);
    display: block;
    padding: 0.25rem 0;
}

.footer-link:hover {
    color: var(--magenta);
    transform: translateX(var(--space-xs));
}

/* Social Links */
.footer-social {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.social-link svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.social-link:hover {
    background: var(--magenta);
    border-color: var(--magenta);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--magenta-glow);
}

/* Newsletter Section */
.footer-newsletter {
    background: var(--bg-primary);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.newsletter-content {
    flex: 1;
}

.newsletter-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.newsletter-description {
    color: var(--text-secondary);
    margin: 0;
}

.newsletter-form {
    flex: 1;
    max-width: 400px;
}

.newsletter-input-group {
    display: flex;
    gap: var(--space-sm);
}

.newsletter-input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border: 2px solid var(--card-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.newsletter-input::placeholder {
    color: var(--text-muted);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--magenta);
    box-shadow: 0 0 20px var(--focus-ring);
}

.newsletter-btn {
    background: var(--magenta);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    transition: all var(--duration-normal) var(--ease-smooth);
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: var(--magenta-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--magenta-glow);
}

.newsletter-icon {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--card-border);
}

.footer-bottom-left {
    flex: 1;
}

.footer-copyright {
    color: var(--text-secondary);
    margin: 0 0 var(--space-xs) 0;
    font-size: 0.9rem;
}

.footer-tagline {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.85rem;
    font-style: italic;
}

.footer-bottom-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-md);
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

.legal-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--duration-fast) var(--ease-smooth);
}

.legal-link:hover {
    color: var(--magenta);
}

.footer-controls {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

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

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr; }
    .impact-grid { grid-template-columns: 1fr; max-width: 500px; }
    .impact-card:nth-child(3) { grid-column: 1; max-width: none; }
    .methodology-grid { grid-template-columns: 1fr; max-width: 600px; }
    .method-card:nth-child(n) { grid-column: 1; grid-row: auto; }
    .method-card:nth-child(1), .method-card:nth-child(4) { flex-direction: column; }
    .services-masonry { 
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
    /* Mantener 2x2 en tablets landscape */
    .blog-grid { 
        grid-template-columns: 1fr 1fr; 
        grid-template-rows: auto auto;
        max-width: 900px;
        gap: var(--space-md);
    }
    
    .blog-card {
        min-height: 350px;
    }
    
    .blog-card:nth-child(1) .blog-title {
        font-size: 1.35rem;
    }
    
    .blog-card:nth-child(even) {
        margin-top: 0;
    }
    
    /* Add bottom margin to demo container when hero is single column */
    .ai-demo-container {
        margin-bottom: var(--space-xl);
    }
    
    /* Footer responsive for tablets */
    .footer-main-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        padding-right: 0;
        margin-bottom: var(--space-lg);
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-newsletter {
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
    }
    
    /* Founders responsive - tablet */
    .founders-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        max-width: 600px;
    }
    
    .founder-image {
        width: 100px;
        height: 100px;
    }
}

/* Medium-large screens */
@media (max-width: 950px) {
    /* Navigation fine-tuning */
    .nav-container { 
        width: 90%; 
    }
    
    /* Hero adjustments */
    .hero-grid {
        padding: 0 var(--space-lg);
    }
    
    /* Method cards specific fixes */
    .method-card { 
        padding: var(--space-xl);
    }
    .method-card:nth-child(1), .method-card:nth-child(4) { 
        min-height: auto;
        height: auto;
    }
    .method-content { 
        flex: 1;
        margin-bottom: var(--space-md);
    }
    .method-visual { 
        flex: 1;
    }
    
    /* Ensure proper spacing */
    .k4i-visual-flow { 
        margin: var(--space-lg) 0;
    }
    .result-highlight { 
        margin-top: var(--space-lg);
        margin-bottom: var(--space-md);
    }
    
    /* Blog grid adjustment */
    .blog-grid { 
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
        max-width: 700px;
    }
    
    /* Consistent spacing for knowledge section */
    .knowledge-section {
        padding-top: var(--space-3xl);
    }
}

/* Tablet landscape */
@media (max-width: 900px) {
    /* Navigation adjustments */
    .nav-container { 
        width: 92%; 
    }
    .navbar { 
        padding: var(--space-sm) var(--space-md);
    }
    .nav-links { 
        gap: var(--space-md);
    }
    
    /* Hero section adjustments */
    .hero-grid { 
        gap: var(--space-xl);
        padding: 0 var(--space-md);
    }
    .hero-title { 
        font-size: clamp(2rem, 6vw, 3rem);
    }
    .hero-subtitle { 
        font-size: 1.125rem;
    }
    
    /* Demo container fixes */
    .ai-demo-container { 
        min-height: auto;
    }
    .demo-card { 
        padding: var(--space-lg);
    }
    .ai-process-visual { 
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    /* Method cards improvements */
    .method-card { 
        padding: var(--space-lg);
    }
    .method-card:nth-child(1), .method-card:nth-child(4) { 
        flex-direction: column;
        gap: var(--space-lg);
        text-align: left;
    }
    .k4i-visual-flow { 
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    .flow-step { 
        font-size: 0.875rem;
    }
    .result-highlight { 
        margin-top: var(--space-md);
    }
    
    /* Governance icons layout */
    .governance-icons { 
        flex-wrap: wrap;
        gap: var(--space-sm);
        justify-content: flex-start;
    }
    .governance-icon { 
        width: 3.5rem;
        height: 3.5rem;
    }
    
    /* Services grid adjustment */
    .services-masonry {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    .services-section {
        padding-bottom: calc(var(--space-3xl) + var(--space-2xl));
    }
    
    /* Blog responsive improvements */
    .blog-grid { 
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
        gap: var(--space-lg);
    }
    .blog-card:nth-child(n) { 
        grid-column: 1;
        grid-row: auto;
        min-height: auto;
    }
    
    /* Reset featured styles on tablet */
    .blog-card:nth-child(1) {
        background: var(--card-bg);
        border: 1px solid var(--card-border);
    }
    
    .blog-card:nth-child(1) .blog-title {
        font-size: 1.25rem;
    }
    
    .blog-card:nth-child(1) .blog-excerpt {
        font-size: 1rem;
        line-height: 1.6;
    }
    .blog-featured-visual { 
        padding: var(--space-md);
    }
    .blog-stats { 
        flex-direction: row;
        justify-content: space-around;
        gap: var(--space-sm);
    }
    
    /* Section padding adjustments */
    .section-header { 
        padding: 0 var(--space-md);
    }
    .section-title { 
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
    
    /* Consistent spacing for knowledge section */
    .knowledge-section {
        padding-top: var(--space-3xl);
    }
}

/* Small tablet */
@media (max-width: 820px) {
    .hero-grid { 
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        gap: var(--space-md);
    }
    
    .ai-process-visual {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    /* Add bottom margin to demo container when in single column */
    .ai-demo-container {
        margin-bottom: var(--space-xl);
    }
    
    /* Reduce spacing for medium screens */
    .hero-narrative,
    .impact-section,
    .methodology-section,
    .services-section,
    .knowledge-section {
        padding-left: var(--space-sm);
        padding-right: var(--space-sm);
    }
}

/* Tablet portrait and mobile landscape */
@media (max-width: 768px) {
    .hero-narrative { 
        min-height: calc(100vh - 6.5rem);
        padding-top: 6.5rem;
    }
    .mobile-menu-toggle { display: flex; }
    
    .logo-img {
        height: 3rem;
    }
    
    /* Navigation responsive */
    .nav-container { 
        width: 95%; 
        top: var(--space-sm);
    }
    .navbar {
        padding: var(--space-sm); 
    }
    
    /* Ensure navbar doesn't interfere with footer on mobile */
    .nav-container {
        bottom: auto;
    }
    
    /* Hero responsive */
    .hero-grid { 
        gap: var(--space-lg);
        padding: 0 var(--space-sm);
    }
    .hero-title { 
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        line-height: 1.2;
    }
    .hero-subtitle { 
        font-size: 1rem;
        margin-bottom: var(--space-lg);
    }
    .hero-actions {
        flex-direction: column;
        gap: var(--space-sm);
    }
    .btn { 
        width: 100%;
        justify-content: center;
        padding: var(--space-md);
    }
    
    /* Demo container responsive */
    .ai-demo-container {
        min-height: auto;
        margin-top: var(--space-lg);
    }
    .demo-card { 
        padding: var(--space-md);
    }
    .ai-process-visual {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
    .demo-header { 
        margin-bottom: var(--space-md);
    }
    .demo-title { 
        font-size: 1.125rem;
    }
    .demo-subtitle { 
        font-size: 0.875rem;
    }
    
    /* Method cards responsive */
    .method-card { 
        padding: var(--space-lg);
    }
    .method-card:nth-child(1), .method-card:nth-child(4) { 
        flex-direction: column;
        gap: var(--space-lg);
    }
    .k4i-visual-flow { 
        flex-direction: column;
        gap: var(--space-sm);
    }
    .flow-step { 
        font-size: 0.75rem;
    }
    .governance-icons { 
        flex-wrap: wrap;
        gap: var(--space-sm);
        justify-content: center;
    }
    .governance-icon { 
        width: 3rem;
        height: 3rem;
    }
    .icon-label { 
        font-size: 0.75rem;
    }
    
    /* Services responsive */
    .services-masonry { 
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 1fr);
        gap: var(--space-md);
    }
    .service-card { 
        padding: var(--space-lg);
    }
    .services-section {
        padding-bottom: calc(var(--space-3xl) + var(--space-lg));
    }
    
    /* Blog responsive */
    .blog-card-content { 
        padding: var(--space-lg);
    }
    .blog-title { 
        font-size: 1.125rem;
    }
    .blog-featured-visual { 
        padding: var(--space-md);
        margin: var(--space-md) 0;
    }
    .blog-stats { 
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
    .blog-stat { 
        margin-bottom: var(--space-sm);
    }
    .blog-trends { 
        font-size: 0.75rem;
        text-align: center;
    }
    .blog-meta { 
        flex-direction: column;
        gap: var(--space-sm);
        align-items: flex-start;
    }
    
    /* Section spacing */
    .section-header { 
        padding: 0 var(--space-sm);
        margin-bottom: var(--space-lg);
    }
    .section-title { 
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }
    .section-subtitle { 
        font-size: 1rem;
    }
    
    .founders-section .section-description {
        font-size: 1rem;
    }
    
    /* Consistent knowledge section spacing for mobile */
    .knowledge-section {
        padding-top: var(--space-3xl);
    }
    
    /* Footer responsive for mobile */
    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }
    
    .footer-brand {
        padding-right: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-logo {
        /* No longer needs text-align: center */
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .logo-subtitle {
        font-size: 0.8rem;
        margin-top: var(--space-2xs);
    }
    
    .footer-newsletter {
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
    }
    
    .newsletter-form {
        max-width: none;
    }
    
    .newsletter-input-group {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: var(--space-lg);
        text-align: center;
    }
    
    .footer-bottom-right {
        align-items: center;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-md);
    }
    
    /* CTA responsive for mobile */
    .cta-container {
        margin: 0 var(--space-sm);
        padding: var(--space-lg);
    }
    
    /* Differential section mobile */
    .differential-points {
        grid-template-columns: 1fr;
    }
    
    /* CTA options mobile */
    .cta-options-grid {
        grid-template-columns: 1fr;
    }
    
    /* Founders responsive - mobile */
    .founders-grid {
        gap: var(--space-lg);
        padding: 0 var(--space-sm);
    }
    
    .founder-card {
        padding: var(--space-lg);
    }
    
    .founder-image {
        width: 80px;
        height: 80px;
        margin-bottom: var(--space-md);
    }
    
    .founder-name {
        font-size: 1.25rem;
    }
    
    .founder-role {
        font-size: 0.9rem;
        margin-bottom: var(--space-md);
    }
    
    .founder-description {
        font-size: 0.95rem;
        margin-bottom: var(--space-md);
    }
    
    .founder-highlights li {
        font-size: 0.9rem;
        padding-left: var(--space-md);
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(280px, 90vw);
        height: 100vh;
        background: var(--bg-secondary);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--card-border);
        flex-direction: column;
        padding-top: 6rem;
        transition: right var(--duration-slow) var(--ease-smooth);
        z-index: var(--z-modal);
    }

    html[data-theme="dark"] .nav-links {
        background: rgba(26, 26, 26, 0.98);
        border-left: 1px solid var(--magenta-alpha-30);
    }
    
    .nav-links.active { right: 0; }
    .nav-links a { color: var(--text-primary); }
    .nav-links a:hover { background: var(--hover-bg); color: var(--magenta); }
    
    .mobile-overlay {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: var(--z-overlay);
        opacity: 0; visibility: hidden;
    }
    .mobile-overlay.active { opacity: 1; visibility: visible; }
}

/* Mobile portrait */
@media (max-width: 480px) {
    /* Container and padding fixes */
    .nav-container { 
        width: 98%; 
        top: 0.25rem;
    }
    .navbar { 
        padding: 0.5rem 0.75rem;
    }
    
    .logo-img {
        height: 2.7rem;
    }
    
    /* Typography adjustments */
    .hero-title { 
        font-size: clamp(1.5rem, 10vw, 2rem);
        margin-bottom: var(--space-md);
    }
    .hero-subtitle { 
        font-size: 0.9rem;
    }
    .section-title { 
        font-size: clamp(1.25rem, 8vw, 2rem);
    }
    
    /* Card padding reductions */
    .demo-card, .method-card, .service-card, .blog-card-content { 
        padding: var(--space-md);
    }
    .impact-card { 
        padding: var(--space-lg);
    }
    
    /* Process steps mobile layout */
    .ai-process-visual { 
        grid-template-columns: 1fr;
        gap: var(--space-xs);
    }
    .process-step { 
        padding: var(--space-sm);
    }
    .step-title { 
        font-size: 0.875rem;
    }
    
    /* Governance icons compact */
    .governance-icons { 
        gap: var(--space-xs);
    }
    .governance-icon { 
        width: 2.5rem;
        height: 2.5rem;
    }
    .governance-icon svg { 
        width: 1rem;
        height: 1rem;
    }
    .icon-label { 
        font-size: 0.7rem;
    }
    
    /* Blog stats vertical */
    .blog-stats { 
        gap: var(--space-xs);
    }
    .blog-stat-number { 
        font-size: 1.25rem;
    }
    .blog-stat-label { 
        font-size: 0.7rem;
    }
    
    .logo-subtitle {
        font-size: 0.75rem;
        margin-top: var(--space-3xs);
    }
    
    /* Certification badges wrap */
    .cert-list { 
        gap: var(--space-xs);
    }
    .cert-badge { 
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    /* CTA responsive */
    .cta-title { 
        font-size: clamp(1.25rem, 6vw, 1.75rem);
    }
    .cta-subtitle { 
        font-size: 0.9rem;
    }
    
    /* CTA container for small screens */
    .cta-container {
        margin: 0 var(--space-xs);
        padding: var(--space-md);
    }
}

/* Small mobile */
@media (max-width: 320px) {
    /* Ensure no element exceeds viewport */
    * {
        max-width: 100%;
        overflow-wrap: break-word;
    }
    
    /* Navigation width fix */
    .nav-links {
        width: 100%;
        right: -100%;
    }
    
    /* Reduce hero title size further */
    .hero-title {
        font-size: clamp(1.25rem, 8vw, 1.5rem);
    }
    
    /* Reduce spacing on very small screens */
    .hero-narrative,
    .impact-section,
    .methodology-section,
    .services-section,
    .knowledge-section {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Flow step text wrapping */
    .flow-step {
        font-size: 0.75rem;
        white-space: normal;
        text-align: center;
    }
    
    /* Reduce card padding */
    .demo-card,
    .method-card,
    .service-card {
        padding: var(--space-sm);
    }
    
    /* Blog stats stacking */
    .blog-stats {
        grid-template-columns: 1fr;
        gap: var(--space-xs);
    }
}

/* Prevent horizontal overflow - Medium and below */
@media (max-width: 950px) {
    * { 
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Ensure no horizontal scroll */
    body { 
        overflow-x: hidden;
    }
    
    /* Fix any potential overflows - Medium screens */
    .hero-narrative, 
    .impact-section, 
    .methodology-section, 
    .services-section, 
    .knowledge-section, 
    .final-cta { 
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }
    
    /* Method visual flow responsive */
    .k4i-visual-flow { 
        overflow-x: auto;
        padding: var(--space-md);
        margin: var(--space-md) 0;
    }
    .flow-step { 
        white-space: nowrap;
        min-width: max-content;
    }
}

/* Additional overflow prevention - Mobile */
@media (max-width: 768px) {
    /* Fix any potential overflows - Small screens */
    .hero-narrative, 
    .impact-section, 
    .methodology-section, 
    .services-section, 
    .knowledge-section, 
    .final-cta { 
        padding-left: var(--space-sm);
        padding-right: var(--space-sm);
    }
    
    /* Method visual flow responsive */
    .k4i-visual-flow { 
        padding: var(--space-sm);
    }
}

/* ============================================================================
   INTERACTIVE ANIMATIONS & EFFECTS
   ============================================================================ */

/* Scroll-triggered animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--duration-slow) var(--ease-smooth);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all var(--duration-slow) var(--ease-smooth);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all var(--duration-slow) var(--ease-smooth);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Enhanced Card Hover Effects */
.demo-card, .impact-card, .method-card, .service-card, .blog-card {
    transition: all var(--duration-normal) var(--ease-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.demo-card::before, .impact-card::before, .method-card::before, 
.service-card::before, .blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--magenta), var(--magenta-light));
    transform: scaleX(0);
    transition: transform var(--duration-normal) var(--ease-smooth);
}

.demo-card:hover::before, .impact-card:hover::before, .method-card:hover::before,
.service-card:hover::before, .blog-card:hover::before {
    transform: scaleX(1);
}

.demo-card:hover, .impact-card:hover, .method-card:hover, 
.service-card:hover, .blog-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px var(--magenta-glow);
}

/* Enhanced Service Cards */
.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--magenta);
    box-shadow: 0 20px 60px var(--magenta-glow);
}

.service-card:hover .service-icon {
    background: var(--magenta-alpha-20);
    border-color: var(--magenta);
    transform: scale(1.1);
}

.service-card:hover .service-icon svg {
    stroke: var(--magenta-light);
    transform: scale(1.1);
}

/* Enhanced Team Members */
.team-member {
    display: flex;
    gap: var(--space-md);
    border-radius: var(--radius-lg);
    transition: all var(--duration-normal) var(--ease-smooth);
}

.team-member:hover {
    transform: translateX(var(--space-sm));
    border-left: 4px solid var(--magenta);
    box-shadow: 0 8px 30px var(--magenta-glow);
}

.member-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Enhanced Governance Icons */
.governance-icons {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
    margin-top: var(--space-sm);
}

.governance-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.governance-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-normal) var(--ease-smooth);
    cursor: pointer;
    position: relative;
    margin-bottom: 0.5rem;
}

.governance-icon:hover {
    background: var(--magenta-alpha-20);
    border-color: var(--magenta);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--magenta-glow);
}

.governance-icon svg {
    width: 1.4rem;
    height: 1.4rem;
    fill: none;
    stroke-width: 2;
    transition: all var(--duration-fast) var(--ease-smooth);
    flex-shrink: 0;
}

.governance-icon:hover svg {
    stroke: var(--magenta-light);
    transform: scale(1.1);
}

/* Process Steps Animation */
.ai-process-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--space-lg);
    height: var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

/* K4i Visual Flow */
.k4i-visual-flow {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
    flex-wrap: wrap;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.flow-arrow {
    width: 0;
    height: 0;
    border-left: 8px solid var(--magenta);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    opacity: 0.7;
}

/* Blog Stats Animation */
.blog-stats {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
}

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

.blog-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.blog-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--magenta-glow), transparent);
    animation: loading-shimmer 2s infinite;
}

@keyframes loading-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Enhanced Form Inputs */
.form-input {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--space-sm);
    transition: all var(--duration-normal) var(--ease-smooth);
}

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

/* CTA Container Enhanced - merged with main definition */

.cta-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--magenta), var(--magenta-light));
}

.cta-form {
    display: grid;
    gap: var(--space-md);
    max-width: 500px;
    margin: 0 auto;
}

/* Demo Header Enhancement */
.demo-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.demo-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.demo-subtitle {
    color: var(--text-secondary);
}

/* Additional spacing and layout fixes */
.framework-section {
    margin-top: var(--space-md);
    margin-bottom: var(--space-lg);
}

.certification-badges {
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(190, 52, 85, 0.1);
}

.cert-list {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.cert-badge {
    padding: 0.25rem var(--radius-md);
    border-radius: var(--radius-lg);
    font-size: 0.75rem;
    font-weight: 600;
    transition: all var(--duration-fast) var(--ease-smooth);
}

.cert-badge:hover {
    background: var(--magenta-alpha-20);
    transform: translateY(-2px);
}

.blog-trends {
    font-size: 0.875rem;
    font-style: italic;
    display: flex;
    align-items: center;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(190, 52, 85, 0.2);
}

.blog-meta-item {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* CTA responsive - moved to proper media queries */

            /* Footer responsive for small screens */
    .footer-content {
        gap: var(--space-md);
    }
    
    /* Footer controls responsive */
    .footer-controls {
        gap: var(--space-sm);
    }
    
    .language-toggle, .theme-toggle {
        width: 2rem;
        height: 2rem;
    }
    
    .lang-text {
        font-size: 0.7rem;
}

/* ============================================
   FINOPS SECTION STYLES
============================================ */

.finops-section {
    padding: 5rem var(--space-md);
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

.finops-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 20, 147, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 20, 147, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.finops-intro {
    text-align: center;
    margin: 2rem 0 4rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.finops-intro-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.finops-intro-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.finops-case-study {
    max-width: min(1200px, 100%);
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 3rem;
    position: relative;
    backdrop-filter: blur(10px);
    width: 100%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

.finops-case-study::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(135deg, var(--magenta), var(--cyan), var(--magenta));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
    opacity: 0.6;
}

.case-study-header {
    text-align: center;
    margin-bottom: 3rem;
}

.case-study-quote {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.quote-mark {
    color: var(--magenta);
    font-size: 3rem;
    line-height: 1;
}

.case-study-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--magenta), var(--cyan));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 8px rgba(255, 20, 147, 0.2);
}

.case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.case-study-metric {
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.8rem;
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.case-study-metric:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--magenta);
}

.metric-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--magenta);
    margin-bottom: 0.5rem;
}

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

.case-study-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.case-study-tech h4,
.case-study-result h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(0, 255, 255, 0.1);
    color: var(--cyan);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.result-list {
    list-style: none;
    padding: 0;
}

.result-list li {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.result-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--magenta);
    font-weight: bold;
}

/* FinOps Download CTA Styles */
.finops-download-cta {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.download-cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-cta-header {
    margin-bottom: 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-cta-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.download-cta-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.download-cta-features {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    width: 100%;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.cta-icon {
    width: 1.2rem;
    height: 1.2rem;
    stroke: var(--magenta);
    fill: none;
    stroke-width: 2;
}

.download-btn-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.finops-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, var(--magenta), #e91e63);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
}

.finops-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.3);
}

.finops-download-btn:active {
    transform: translateY(0);
}

.download-icon {
    width: 1.3rem;
    height: 1.3rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.download-format {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Responsive Design for FinOps Section */
@media (max-width: 768px) {
    .finops-section {
        padding: 3rem var(--space-sm);
    }

    .finops-case-study {
        padding: 2rem 1.5rem;
    }
    
    .case-study-quote {
        font-size: 1.8rem;
    }
    
    .case-study-details {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .case-study-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .download-cta-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .finops-download-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .finops-section {
        padding: 2.5rem var(--space-xs);
    }

    .case-study-grid {
        grid-template-columns: 1fr;
    }
    
    .case-study-metric {
        padding: 1.5rem 1rem;
    }
    
    .metric-number {
        font-size: 2rem;
    }
}

/* ============================================================================
   FINOPS MODAL STYLES
   ============================================================================ */

/* ============================================================================
   FINOPS COLLAPSIBLE FORM
   ============================================================================ */

.finops-form-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-smooth), opacity 0.3s ease;
    opacity: 0;
    margin-top: 0;
}

.finops-form-collapse.active {
    max-height: 850px; /* Increased to ensure full form visibility across all breakpoints */
    opacity: 1;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-xl); /* Add bottom spacing from section end */
}

.finops-form-content {
    background: var(--surface-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--border-primary);
    box-shadow: 0 8px 25px -8px var(--alpha-black-20);
    backdrop-filter: blur(20px);
}

.finops-form-header {
    margin-bottom: var(--space-lg);
    text-align: center;
}

.finops-form-header h4 {
    margin: 0 0 var(--space-sm);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.finops-form-header p {
    margin: 0;
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    font-size: var(--font-size-sm);
}

.finops-form-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.finops-cancel-btn {
    flex: 1;
}

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

.finops-form input,
.finops-form select {
    padding: var(--space-md) var(--space-lg);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: var(--font-size-base);
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.finops-form input:focus,
.finops-form select:focus {
    outline: none;
    border-color: var(--color-brand-primary);
    box-shadow: 0 0 0 3px var(--color-brand-alpha-20);
}

.finops-form select {
    cursor: pointer;
}

.finops-submit-btn {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    font-weight: var(--font-weight-medium);
}

/* Responsive design for collapsible form */
@media (max-width: 768px) {
    .finops-form-collapse.active {
        max-height: 850px; /* Increased to ensure full form visibility */
        margin-top: var(--space-lg);
    }
    
    .finops-form-content {
        padding: var(--space-lg);
        margin: 0 var(--space-sm);
    }
    
    .finops-form-actions {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .finops-form-header h4 {
        font-size: var(--font-size-lg);
    }
}

@media (max-width: 480px) {
    .finops-form-collapse.active {
        max-height: 800px;
        margin-top: var(--space-md);
    }
    
    .finops-form-content {
        padding: var(--space-md);
        margin: 0;
    }
    
    .finops-form-header h4 {
        font-size: var(--font-size-base);
    }
    
    .finops-form-header p {
        font-size: var(--font-size-xs);
    }
}

/* Light theme specific form styles */
html[data-theme="light"] .finops-form-content {
    box-shadow: 0 8px 25px -8px rgba(0, 0, 0, 0.15);
    border-color: var(--border-secondary);
    background: var(--surface-primary);
}

html[data-theme="light"] .finops-form input,
html[data-theme="light"] .finops-form select {
    background: var(--bg-primary);
    border-color: var(--border-primary);
    color: var(--text-primary);
}

html[data-theme="light"] .finops-form input:focus,
html[data-theme="light"] .finops-form select:focus {
    border-color: var(--color-brand-primary);
    box-shadow: 0 0 0 3px var(--color-brand-alpha-20);
}

@media (max-width: 950px) {
    .nav-container { 
        width: 95%;
        padding: 0 var(--space-xs);
    }
    
    .content-container {
        width: 95%;
        padding: 0 var(--space-xs);
        padding-top: calc(5rem + var(--space-md));
    }
    
    .legal-page .content-container {
        padding-top: 8rem !important; /* Increased for mobile navbar height */
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
    }
}



/* ============================================================================
   LEGAL PAGES STYLES
   ============================================================================ */

/* Enhanced navbar for legal pages */
.legal-navbar {
    justify-content: center;
    align-items: center;
}

/* Legal pages: Override all padding conflicts with single source of truth */
.legal-page {
    padding-top: 0 !important;
}

.legal-page .content-container {
    padding-top: 7.5rem !important; /* Increased to ensure breadcrumb is not hidden behind navbar */
    width: min(90%, 900px);
    margin: 0 auto;
}




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

.back-to-home {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    transition: color 0.2s ease;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
    background: var(--bg-secondary);
}

.back-to-home:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border-color: var(--border-secondary);
}

.back-icon {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.legal-nav-right {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Breadcrumb navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-6);
    margin-top: var(--space-4); /* Prevent navbar overlap */
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--color-brand-primary);
}

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

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
}

/* Legal page main content - simplified, no top padding conflicts */
.legal-main {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 var(--space-4) var(--space-6);
}

.legal-section {
    background: var(--surface-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    border: 1px solid var(--border-primary);
    box-shadow: 0 4px 6px -1px var(--alpha-black-10);
}

.legal-section h1 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    line-height: var(--line-height-tight);
}

.legal-section h2 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
    line-height: var(--line-height-snug);
}

.legal-section p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

.legal-section ul {
    margin-bottom: var(--space-4);
    padding-left: var(--space-6);
}

.legal-section li {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.legal-section li strong {
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
}

.legal-section a {
    color: var(--color-brand-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.legal-section a:hover {
    border-bottom-color: var(--color-brand-primary);
}

.legal-update {
    margin-top: var(--space-8);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-primary);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-style: italic;
}

/* Legal page footer adjustments */
.legal-page .footer {
    margin-top: var(--space-12);
}

/* Light theme adjustments */
html[data-theme="light"] .legal-section {
    background: var(--bg-primary);
    box-shadow: 0 4px 6px -1px var(--alpha-black-5);
}

html[data-theme="light"] .back-to-home {
    background: var(--bg-primary);
    border-color: var(--border-secondary);
}

/* Large screens - moderately wider content for legal pages */
@media (min-width: 1440px) {
    .legal-page .content-container {
        width: min(85%, 1000px);
    }
    
    .legal-main {
        max-width: 950px;
    }
    
    .legal-section {
        padding: var(--space-8) var(--space-10);
    }
}

/* Extra large screens - maximum comfortable width for legal pages */
@media (min-width: 1920px) {
    .legal-page .content-container {
        width: min(80%, 1100px);
    }
    
    .legal-main {
        max-width: 1000px;
    }
    
    .legal-section {
        padding: var(--space-10) var(--space-12);
    }
}

html[data-theme="light"] .back-to-home:hover {
    background: var(--bg-secondary);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .legal-page .content-container {
        padding-top: 6rem !important; /* Reduced for tablet - navbar is smaller on mobile */
    }

    /* Scroll to top responsive for tablet */
    .scroll-to-top {
        bottom: var(--space-md);
        right: var(--space-md);
        width: 2.875rem;
        height: 2.875rem;
    }

    .scroll-to-top svg {
        width: 1.1875rem;
        height: 1.1875rem;
    }
    
    .legal-navbar {
        flex-direction: column;
        gap: var(--space-2);
        padding: var(--space-3) var(--space-4);
    }
    
    .legal-navbar .logo {
        order: 1;
    }
    

    
    .legal-nav-left {
        gap: var(--space-4);
        flex-wrap: wrap;
    }
    
    .back-to-home {
        font-size: var(--font-size-xs);
        padding: var(--space-1-5) var(--space-2-5);
        order: 2;
        flex-basis: 100%;
        margin-top: var(--space-2);
        justify-content: center;
    }
    
    .legal-main {
        padding: 0 var(--space-3) var(--space-4);
    }
    
    .legal-section {
        padding: var(--space-4);
        border-radius: var(--radius-md);
    }
    
    .legal-section h1 {
        font-size: var(--font-size-3xl);
        margin-bottom: var(--space-4);
    }
    
    .legal-section h2 {
        font-size: var(--font-size-xl);
        margin-top: var(--space-6);
        margin-bottom: var(--space-3);
    }
    
    .legal-section p {
        font-size: var(--font-size-sm);
        margin-bottom: var(--space-3);
    }
    
    .legal-section li {
        font-size: var(--font-size-sm);
        margin-bottom: var(--space-1-5);
    }
    
    .legal-section ul {
        margin-bottom: var(--space-3);
        padding-left: var(--space-4);
    }
    
    .breadcrumb {
        margin-bottom: var(--space-4);
        font-size: var(--font-size-xs);
    }
    
    .legal-nav-right {
        gap: var(--space-2);
    }
    
    .legal-nav-right button {
        padding: var(--space-1-5);
        font-size: var(--font-size-xs);
    }
}

@media (max-width: 480px) {
    /* Reduce hero-narrative padding for mobile */
    .hero-narrative {
        padding-top: 3rem; /* Maximum compactness for mobile spacing */
        min-height: calc(100vh - 3rem);
    }

    .legal-page .content-container {
        padding-top: 5.5rem !important; /* Further reduced for mobile navbar height */
    }

    .legal-navbar {
        flex-direction: column;
        gap: var(--space-2);
        padding: var(--space-2) var(--space-3);
    }

    /* Scroll to top responsive */
    .scroll-to-top {
        bottom: var(--space-md);
        right: var(--space-md);
        width: 2.75rem;
        height: 2.75rem;
    }

    .scroll-to-top svg {
        width: 1.125rem;
        height: 1.125rem;
    }
    

    
    .legal-main {
        padding: 0 var(--space-2) var(--space-3);
    }
    
    .legal-section {
        padding: var(--space-3);
        border-radius: var(--radius-base);
    }
    
    .legal-section h1 {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--space-3);
        line-height: 1.2;
    }
    
    .legal-section h2 {
        font-size: var(--font-size-lg);
        margin-top: var(--space-4);
        margin-bottom: var(--space-2);
    }
    
    .legal-section p {
        font-size: var(--font-size-sm);
        margin-bottom: var(--space-2);
        line-height: 1.5;
    }
    
    .legal-section li {
        font-size: var(--font-size-sm);
        margin-bottom: var(--space-1);
        line-height: 1.4;
    }
    
    .legal-section ul {
        margin-bottom: var(--space-2);
        padding-left: var(--space-3);
    }
    
    .breadcrumb {
        margin-bottom: var(--space-3);
        font-size: var(--font-size-xs);
        flex-wrap: wrap;
        gap: var(--space-1);
    }
    
    .legal-update {
        margin-top: var(--space-4);
        padding-top: var(--space-3);
        font-size: var(--font-size-xs);
    }
    
    .legal-nav-left {
        width: 100%;
        justify-content: space-between;
    }
    
    .legal-nav-right {
        width: 100%;
        justify-content: center;
    }
    
    .back-to-home {
        order: 0;
        flex-basis: auto;
        margin-top: 0;
        width: auto;
    }
    
    .content-container {
        padding-top: calc(7rem + var(--space-md));
    }
}

/* Extra small screens (320px) - Ultra compact legal pages */
@media (max-width: 320px) {
    .legal-page .content-container {
        padding-top: 6rem !important; /* Further reduced for extra small screen navbar height */
    }

    /* Scroll to top for extra small screens */
    .scroll-to-top {
        bottom: var(--space-sm);
        right: var(--space-sm);
        width: 2.5rem;
        height: 2.5rem;
    }

    .scroll-to-top svg {
        width: 1rem;
        height: 1rem;
    }
    
    .legal-navbar {
        padding: var(--space-1-5) var(--space-2);
        gap: var(--space-1-5);
    }
    
    
    
    .legal-main {
        padding: 0 var(--space-1-5) var(--space-2);
    }
    
    .legal-section {
        padding: var(--space-2);
        border-radius: var(--radius-sm);
    }
    
    .legal-section h1 {
        font-size: var(--font-size-xl);
        margin-bottom: var(--space-2);
        line-height: 1.1;
    }
    
    .legal-section h2 {
        font-size: var(--font-size-base);
        margin-top: var(--space-3);
        margin-bottom: var(--space-1-5);
    }
    
    .legal-section p,
    .legal-section li {
        font-size: var(--font-size-xs);
        margin-bottom: var(--space-1-5);
        line-height: 1.4;
    }
    
    .legal-section ul {
        padding-left: var(--space-2);
        margin-bottom: var(--space-2);
    }
    
    .breadcrumb {
        font-size: 10px;
        margin-bottom: var(--space-2);
        gap: var(--space-0-5);
    }
    
    .legal-update {
        margin-top: var(--space-3);
        padding-top: var(--space-2);
        font-size: 10px;
    }
}

/* ============================================================================
   IPHONE DYNAMIC ISLAND SUPPORT - SAFE AREA HANDLING
   ============================================================================ */

/* Apply safe-area support only on devices that support it (iOS) */
@supports (padding: max(0px)) and (padding: env(safe-area-inset-top)) {
    /* Main page body padding adjustment */
    body {
        padding-top: max(8rem, calc(8rem + env(safe-area-inset-top)));
    }
    
    /* Ensure hero-badge and breadcrumb have extra margin on iPhone with Dynamic Island */
    .hero-badge {
        margin-top: max(var(--space-xl), calc(var(--space-xl) + env(safe-area-inset-top)));
    }
    
    .breadcrumb {
        margin-top: max(var(--space-4), calc(var(--space-4) + env(safe-area-inset-top)));
    }
    
    /* Legal pages adjustment */
    .legal-page .content-container {
        padding-top: max(7.5rem, calc(7.5rem + env(safe-area-inset-top))) !important;
    }
    
    /* Mobile responsive adjustments */
    @media (max-width: 768px) {
        .hero-narrative {
            min-height: calc(100vh - 6.5rem - env(safe-area-inset-top));
            padding-top: max(6.5rem, calc(6.5rem + env(safe-area-inset-top)));
        }
        
        .legal-page .content-container {
            padding-top: max(6rem, calc(6rem + env(safe-area-inset-top))) !important;
        }
    }
    
    @media (max-width: 480px) {
        .hero-narrative {
            min-height: calc(100vh - 3rem - env(safe-area-inset-top));
            padding-top: max(3rem, calc(3rem + env(safe-area-inset-top)));
        }

        .legal-page .content-container {
            padding-top: max(5.5rem, calc(5.5rem + env(safe-area-inset-top))) !important;
        }
    }
    
    @media (max-width: 320px) {
        .legal-page .content-container {
            padding-top: max(6rem, calc(6rem + env(safe-area-inset-top))) !important;
        }
    }
}

/* Progress indicator - Minimal */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--bg-secondary);
    z-index: 1000;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--magenta), var(--magenta-light));
    width: 0%;
    transition: width 0.1s ease;
}
