/* ===================================
   VAYUNX ENTERPRISE DESIGN SYSTEM v3
   Clean & Consolidated CSS
   =================================== */

/* ===================================
   1. CSS VARIABLES
   =================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

@font-face {
    font-family: 'Nevera';
    src: url('../fonts/Nevera-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Nevera', var(--font-sans);

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.5rem;
    --text-6xl: 4.5rem;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Brand Colors */
    --brand-primary: #fcb21c;
    --brand-secondary: #f59e0b;
    --accent-gold: #fbbf24;
    --accent-gold-light: #fcd34d;

    /* Alert Colors */
    --color-danger: #EF4444;
    --color-warning: #F59E0B;
    --color-success: #10B981;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-Index Hierarchy */
    --z-base: 1;
    --z-elevated: 10;
    --z-sticky: 100;
    --z-nav-closed: 999;
    --z-header: 1000;
    --z-nav-open: 1002;
    --z-menu-toggle: 1003;
    --z-modal: 2000;
    --z-toast: 3000;
}

/* Light Theme */
:root,
[data-theme="light"] {
    --bg-primary: #FFFCF5;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #FFF9ED;
    --bg-elevated: #FFFFFF;
    --bg-card: #FFFFFF;

    --text-primary: #0F172A;
    --text-secondary: #334155;
    --text-tertiary: #64748B;
    --text-muted: #94A3B8;

    --border-subtle: #FFF4E0;
    --border-default: #FFE8BD;
    --border-hover: #FFDAA1;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(252, 178, 28, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(252, 178, 28, 0.06);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(252, 178, 28, 0.08);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.2), 0 12px 24px -6px rgba(252, 178, 28, 0.1);
    --shadow-glow: 0 0 60px -10px rgba(252, 178, 28, 0.5);

    --gradient-hero: linear-gradient(180deg, #FFFBF0 0%, #FFFFFF 100%);
    --gradient-radial: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(252, 178, 28, 0.12), transparent);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #1A1612;
    --bg-secondary: #252119;
    --bg-tertiary: #2E2922;
    --bg-elevated: #2E2922;
    --bg-card: #252119;

    --text-primary: #FAFAF9;
    --text-secondary: #E7E5E4;
    --text-tertiary: #A8A29E;
    --text-muted: #78716C;

    --border-subtle: #2E2922;
    --border-default: #4A3F34;
    --border-hover: #5F5145;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(252, 178, 28, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -4px rgba(252, 178, 28, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7), 0 8px 10px -6px rgba(252, 178, 28, 0.12);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 12px 24px -6px rgba(252, 178, 28, 0.15);
    --shadow-glow: 0 0 80px -20px rgba(252, 178, 28, 0.6);

    --gradient-hero: linear-gradient(180deg, #1C1814 0%, #252119 100%);
    --gradient-radial: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(252, 178, 28, 0.15), transparent);
    --gradient-card: linear-gradient(180deg, rgba(46, 41, 34, 0) 0%, rgba(37, 33, 25, 1) 100%);
}

/* ===================================
   2. RESET & BASE
   =================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul,
ol,
li {
    list-style: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-secondary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

::selection {
    background: rgba(252, 178, 28, 0.2);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(252, 178, 28, 0.2);
    color: var(--text-primary);
}

/* ===================================
   3. TYPOGRAPHY
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--text-5xl);
    font-weight: 700;
    letter-spacing: -0.03em;
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-2xl);
}

/* ===================================
   4. LAYOUT
   =================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 60px 0;
    position: relative;
}

.section-alt {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-default);
    border-bottom: 1px solid var(--border-default);
}

[data-theme="dark"] .section-alt {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.section--compact {
    padding-top: 30px !important;
}
.section--compact-bottom {
    padding-bottom: 0px !important;
}

.section-vision {
    background: var(--bg-primary);
}

/* Section-specific backgrounds for better differentiation in dark mode */
[data-theme="dark"] .section--capabilities {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(37, 33, 25, 0.95) 100%);
    position: relative;
}

[data-theme="dark"] .section--capabilities::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-default), transparent);
    opacity: 0.5;
}

[data-theme="dark"] .section--visibility {
    background: var(--bg-secondary);
}

[data-theme="dark"] .section--compliance {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

[data-theme="dark"] .section--personas {
    background: var(--bg-primary);
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 100%;
    margin: 0 auto 48px;
}

.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    padding: 8px 18px;
    background: transparent;
    border: 2px solid var(--brand-primary);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.section-label:hover {
    background: rgba(252, 178, 28, 0.08);
    transform: translateY(-1px);
}

.section-label--accent {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
    background: transparent;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.section-desc {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.section-desc--wide {
    max-width: 780px;
}

.section-desc small {
    font-size: 14px;
    color: var(--text-muted);
    display: block;
    margin-top: 16px;
    line-height: 1.6;
}

/* Patent notes - brighter and more visible */
.patent-note,
.patent-status {
    margin-top: 12px;
}

.patent-note small,
.patent-status small {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    opacity: 0.6;
}

[data-theme="dark"] .patent-note small,
[data-theme="dark"] .patent-status small {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* ===================================
   5. HEADER & NAVIGATION
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    padding: 16px 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    /* Initially transparent - merged with hero */
    background: transparent;
    border-bottom: 1px solid transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Scrolled state - add background */
.header.scrolled {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-default);
}

[data-theme="dark"] .header.scrolled {
    background: rgba(26, 22, 18, 0.95);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

/* Logo - solid color per theme, no gradients */
.logo {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
    position: relative;
    transition: color 0.3s ease;
    color: var(--text-primary);
    text-decoration: none;
}

/* Scrolled header - use standard text color */
.header.scrolled .logo {
    color: var(--text-primary);
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-primary);
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-tertiary);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    min-height: 44px;
    display: flex;
    align-items: center;
}

/* Nav links when header is transparent - match animation theme */
/* Light mode: use normal dark text colors */
.header:not(.scrolled) .nav-link {
    color: var(--text-tertiary);
}

.header:not(.scrolled) .nav-link:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
}

/* Dark mode: white nav links on dark animation */
[data-theme="dark"] .header:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .header:not(.scrolled) .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}



.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(252, 178, 28, 0.1) 0%, rgba(245, 158, 11, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-primary);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-actions .btn {
    min-height: 44px;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--text-tertiary);
    transition: all var(--transition-fast);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 2px 6px -2px rgba(0, 0, 0, 0.06);
}

/* Theme toggle when header is transparent - match animation theme */
/* Light mode: use white styling since hero is always dark */
.header:not(.scrolled) .theme-toggle {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.85);
    box-shadow: none;
}

.header:not(.scrolled) .theme-toggle:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Dark mode: white theme toggle */
[data-theme="dark"] .header:not(.scrolled) .theme-toggle {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .header:not(.scrolled) .theme-toggle:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.theme-toggle:hover {
    color: var(--text-primary);
    border-color: rgba(252, 178, 28, 0.3);
    background: rgba(252, 178, 28, 0.05);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.08);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

.btn-login {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 16px;
    transition: color var(--transition-fast);
}

/* Login button when header is transparent - match animation theme */
/* Light mode: use normal styling */
.header:not(.scrolled) .btn-login {
    color: var(--text-secondary);
}

.header:not(.scrolled) .btn-login:hover {
    color: var(--text-primary);
}

/* Dark mode: white login button */
[data-theme="dark"] .header:not(.scrolled) .btn-login {
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .header:not(.scrolled) .btn-login:hover {
    color: #ffffff;
}

.btn-login:hover {
    color: var(--text-primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 3px;
    background: #FFFFFF;
    position: relative;
    border-radius: 1px;
    transition: all var(--transition-base);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 3px;
    border-radius: 1px;
    transition: all var(--transition-base);
}

.hamburger::before {
    background: #FF9933;
    top: -7px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.2);
}

.hamburger::after {
    background: #138808;
    top: 7px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle.active .hamburger {
    background: transparent;
    box-shadow: none;
}

.mobile-menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
    background: #FF9933;
}

.mobile-menu-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
    background: #138808;
}

/* ===================================
   6. ENTERPRISE-GRADE HERO SECTION
   =================================== */
.hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    overflow: hidden;
    background: var(--bg-primary);
}

@supports not (min-height: 100dvh) {
    .hero {
        min-height: 100vh;
    }
}

/* Background Animation Container */
.hero-bg-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    border: none;
    z-index: 1;
}

@supports not (min-height: 100dvh) {
    .hero-bg-iframe {
        min-height: 100vh;
    }
}

/* Floating Card Overlay - Left Side, Compact */
.hero-floating-card {
    position: absolute;
    left: 6%;
    top: 50%;
    transform: translateY(-50%);
    width: 42%;
    max-width: 560px;
    z-index: 20;
    animation: fade-in-up 1s ease-out;
}

.card-inner {
    position: relative;
    padding: 36px 40px;
    background: rgba(10, 15, 25, 0.94);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-inner:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.5),
        0 12px 28px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 0 1px rgba(106, 234, 255, 0.2);
}

/* Premium Glow Effect */
.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(106, 234, 255, 0.08) 0%,
        rgba(39, 130, 245, 0.04) 25%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.card-inner:hover .card-glow {
    opacity: 1;
}

/* Card inner content styling - always white text */
.card-inner h1,
.card-inner h2,
.card-inner h3,
.card-inner h4,
.card-inner h5,
.card-inner h6 {
    color: #FFFFFF;
}

.card-inner p {
    color: rgba(255, 255, 255, 0.85);
}

.card-inner small {
    color: rgba(255, 255, 255, 0.6);
}

/* Animation classes removed per enterprise standards */


/* Premium Badge - Compact */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 20px;
    background: rgba(252, 178, 28, 0.1);
    border: 1px solid rgba(252, 178, 28, 0.25);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--accent-gold);
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.hero-badge:hover {
    background: rgba(252, 178, 28, 0.12);
    border-color: rgba(252, 178, 28, 0.4);
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
    background: var(--accent-gold);
}

/* Status indicator - static, no animation */

/* Hero Headline - Compact Typography */
.hero-headline {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.gradient-text {
    color: var(--brand-primary);
}

/* Description - Compact */
.hero-description {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 28px;
    max-width: 100%;
    font-weight: 400;
}

/* Premium Actions - Compact */
.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn-hero:hover::before {
    transform: translateX(100%);
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-hero:hover .btn-icon {
    transform: translateX(4px);
}

/* Footnote */
.hero-footnote {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    line-height: 1.6;
    color: #fdd670;
    max-width: 520px;
    font-weight: bold;
}

.footnote-detail {
    display: block;
    margin-top: 6px;
    opacity: 0.7;
}

/* Responsive: Tablet */
@media (max-width: 1024px) {
    .hero-floating-card {
        width: 48%;
        max-width: 520px;
        left: 4%;
    }

    .card-inner {
        padding: 32px 36px;
    }

    .hero-headline {
        font-size: clamp(1.5rem, 3vw, 2rem);
    }

    .hero-description {
        font-size: 0.9rem;
    }
}

/* Responsive: Mobile - Card at Bottom */
@media (max-width: 768px) {
    .hero-floating-card {
        position: absolute;
        left: 50%;
        top: auto;
        bottom: 28px;
        transform: translateX(-50%);
        width: calc(100% - 32px);
        max-width: 100%;
    }

    .card-inner {
        padding: 28px 24px;
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
    }

    .hero-headline {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }

    .hero-description {
        font-size: 0.88rem;
        margin-bottom: 20px;
        line-height: 1.6;
    }

    .hero-actions {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }

    .btn-hero {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
        font-size: 0.88rem;
    }

    .hero-badge {
        font-size: 0.65rem;
        padding: 7px 14px;
        margin-bottom: 16px;
        gap: 6px;
    }

    .badge-pulse {
        width: 6px;
        height: 6px;
    }
}

/* Responsive: Small Mobile */
@media (max-width: 480px) {
    .hero-floating-card {
        bottom: 20px;
        width: calc(100% - 24px);
    }

    .card-inner {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .hero-headline {
        font-size: 1.35rem;
        margin-bottom: 14px;
    }

    .hero-description {
        font-size: 0.82rem;
        margin-bottom: 18px;
    }

    .hero-footnote {
        font-size: 0.6rem;
        line-height: 1.5;
    }

    .btn-hero {
        padding: 11px 20px;
        font-size: 0.85rem;
    }

    .hero-badge {
        font-size: 0.6rem;
        padding: 6px 12px;
        margin-bottom: 14px;
    }
}

/* iOS Specific */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }
}

/* Dark Mode Adjustments */
[data-theme="dark"] .card-inner {
    background: rgba(10, 15, 25, 0.94);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .card-inner:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.5),
        0 12px 28px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 0 1px rgba(106, 234, 255, 0.2);
}

[data-theme="dark"] .gradient-text {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Layout */
/* Hero styles are now inline in index.html for better control */

.hero-left {
    max-width: 100%;
}

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

[data-theme="dark"] .hero-badge {
    background: var(--bg-tertiary);
    border-color: var(--border-default);
}

.hero-badge-dot {
    width: 5px;
    /* Reduced from 6px */
    height: 5px;
    background: #22C55E;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(252, 178, 28, 0.7), 0 0 4px rgba(252, 178, 28, 0.4);
    animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hero-title {
    font-size: clamp(28px, 3.5vw, 42px);
    /* Reduced from clamp(40px, 4.5vw, 60px) */
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 0;
    text-align: left;
    max-width: 95%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Dark mode: white title */
[data-theme="dark"] .hero-title {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-title-gradient {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(14px, 1.5vw, 16px);
    /* Reduced from clamp(17px, 1.8vw, 19px) */
    line-height: 1.6;
    /* Reduced from 1.7 */
    color: var(--text-secondary);
    margin-bottom: 4px;
    /* Reduced from 8px */
    text-align: left;
    max-width: 92%;
    font-weight: 400;
}

/* Dark mode: lighter subtitle */
[data-theme="dark"] .hero-subtitle {
    color: rgba(255, 255, 255, 0.75);
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    /* Reduced from 16px */
    flex-wrap: wrap;
    margin-top: 4px;
    /* Reduced from 8px */
    margin-bottom: 24px;
    /* Reduced from 48px */
}

.hero-footnote {
    margin-top: 0;
    font-size: 11px;
    /* Reduced from 13px */
    color: #fdd670;
    max-width: 85%;
    line-height: 1.5;
    /* Reduced from 1.6 */
    opacity: 1;
    font-weight: bold;
}

/* Dark mode: lighter footnote */
[data-theme="dark"] .hero-footnote {
    color: #fdd670;
    font-weight: bold;
}

.hero-visual-glass {
    position: relative;
    width: 220px;
    /* Reduced from 280px */
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(252, 178, 28, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(252, 178, 28, 0.08), 0 8px 24px -4px rgba(0, 0, 0, 0.08), 0 16px 48px -8px rgba(252, 178, 28, 0.12), 0 24px 64px -12px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@media (prefers-reduced-motion: no-preference) {
    .hero-icon-large {
        animation: float 6s ease-in-out infinite;
    }
}

.hero-icon-large {
    width: 100px;
    /* Reduced from 140px */
    height: 100px;
    filter: drop-shadow(0 0 30px rgba(252, 178, 28, 0.3));
}

.visual-icon-glow {
    position: absolute;
    inset: 20%;
    background: var(--brand-primary);
    filter: blur(60px);
    opacity: 0.15;
    z-index: -1;
    box-shadow: 0 0 40px rgba(252, 178, 28, 0.3), 0 0 80px rgba(252, 178, 28, 0.2), 0 0 120px rgba(252, 178, 28, 0.1);
}

/* ===================================
   7. BUTTONS
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    min-height: 44px;
    min-width: 44px;
}

.btn-primary {
    background: var(--brand-primary);
    color: #000000;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--brand-secondary);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
    font-weight: 600;
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--brand-primary);
}

.btn-lg {
    padding: 12px 24px;
    /* Reduced from 16px 32px */
    font-size: 15px;
    /* Reduced from 16px */
    border-radius: var(--radius-lg);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn-submit {
    position: relative;
    min-height: 48px;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loader {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===================================
   8. GRID SYSTEMS
   =================================== */
.gov-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
    max-width: 1400px;
    margin: 0 auto;
}

.gov-grid--2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 950px;
    margin: 0 auto;
    gap: 24px;
}

.gov-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Ensure all cards in a row have equal height */
.gov-grid > *,
.gov-grid--2 > * {
    height: 100%;
}

/* Specific styling for use cases grid */
.gov-grid--2 .gov-card {
    min-height: auto;
}

/* ===================================
   9. CARDS
   =================================== */
.gov-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1.5px solid var(--border-default);
    border-radius: 12px;
    padding: 24px 28px;
    transition: all 0.2s ease;
}

.gov-card:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.gov-card h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.gov-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.gov-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1.5px solid var(--border-default);
    border-radius: 10px;
    margin-bottom: 16px;
    margin-left: auto;
    margin-right: auto;
    color: var(--brand-primary);
    flex-shrink: 0;
}

.gov-icon svg {
    width: 24px;
    height: 24px;
}

/* Callout Box */
.callout-box {
    background: var(--bg-card);
    border: 1.5px solid var(--border-default);
    border-left: 4px solid var(--brand-primary);
    border-radius: 12px;
    padding: 32px 40px;
    margin: 48px auto;
    max-width: 900px;
}

.callout-box h3 {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.callout-box p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

/* ===================================
   10. FORMS
   =================================== */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.input-enhanced,
.textarea-enhanced,
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.input-enhanced:focus,
.textarea-enhanced:focus,
input:focus,
textarea:focus,
select:focus {
    background: var(--bg-secondary);
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(252, 178, 28, 0.2);
    outline: none;
}

.input-enhanced::placeholder,
.textarea-enhanced::placeholder {
    color: var(--text-muted);
}

.textarea-enhanced {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

[data-theme="dark"] select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23A8A29E' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

/* Form Validation */
.input-enhanced.is-valid {
    border-color: #22C55E;
    background: rgba(34, 197, 94, 0.05);
}

.input-enhanced.is-invalid {
    border-color: #EF4444;
    background: rgba(239, 68, 68, 0.05);
}

.form-error {
    display: block;
    font-size: 13px;
    color: #EF4444;
    margin-top: 6px;
    min-height: 18px;
    font-weight: 500;
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--brand-primary);
    cursor: pointer;
}

.form-checkbox input[type="checkbox"]:focus {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

.checkbox-label {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Form Messages */
.form-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.form-message[hidden] {
    display: none !important;
}

.form-message svg {
    flex-shrink: 0;
}

/* ===================================
   ENTERPRISE-GRADE FORM ENHANCEMENTS
   =================================== */

/* Premium Input Interactions */
.input-enhanced,
.textarea-enhanced {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-enhanced:hover:not(:focus),
.textarea-enhanced:hover:not(:focus) {
    border-color: var(--border-hover);
}

/* Floating Label Effect (future enhancement) */
.form-group {
    position: relative;
}

/* Submit Button */
.btn-submit {
    position: relative;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(252, 178, 28, 0.25);
}

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

/* Loading Spinner */
.btn-loader {
    display: none;
    align-items: center;
    gap: 10px;
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

.spinner .path {
    stroke: currentColor;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

/* Keyframes removed per enterprise standards */

/* Enhanced Tab Navigation */
.hub-tabs-segmented {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
}

.hub-tab-seg {
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Tab button - no decorative motion, no gradients */

.hub-tab-seg:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.hub-tab-seg.active {
    color: var(--text-primary);
    background: var(--bg-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Comm Hub Container */
.comm-hub-container {
    max-width: 800px;
    margin: 0 auto;
}

.hub-tabs-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

/* Tab Views - no animation */

/* Contact Info Card */
.contact-info-card-wrapper {
    text-align: center;
    padding: 48px 32px;
}

.contact-info-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    padding: 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-icon svg {
    width: 32px;
    height: 32px;
    color: var(--brand-primary);
}

.contact-info-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.contact-info-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-emails-grid {
    display: grid;
    gap: 20px;
    margin: 32px 0;
    text-align: left;
}

.contact-email-item {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-default);
}

.contact-email-item:hover {
    border-color: var(--brand-primary);
}

.contact-email-link {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-email-link:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

.contact-social-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

.contact-social-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-social-item:hover {
    border-color: var(--accent-cyan);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Form Messages - Enterprise Colors */
.form-message-success {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid #22C55E;
    color: #15803D;
}

[data-theme="dark"] .form-message-success {
    background: rgba(34, 197, 94, 0.12);
    border-color: #22C55E;
    color: #4ADE80;
}

.form-message-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid #EF4444;
    color: #B91C1C;
}

[data-theme="dark"] .form-message-error {
    background: rgba(239, 68, 68, 0.12);
    border-color: #EF4444;
    color: #F87171;
}

/* Contact Form Card */
.contact-form-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

/* Segmented Tabs */
.hub-tabs-wrapper {
    text-align: center;
    margin-bottom: 2.5rem;
}

.hub-tabs-wrapper {
    text-align: center;
    margin-bottom: 40px;
}

.hub-tabs-segmented {
    display: inline-flex;
    background: var(--bg-tertiary);
    border: 1.5px solid var(--border-default);
    padding: 6px;
    border-radius: 10px;
}

.hub-tab-seg {
    background: transparent;
    border: none;
    padding: 14px 36px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.hub-tab-seg:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.hub-tab-seg.active {
    background: var(--brand-primary);
    color: #000;
    font-weight: 600;
}

/* Hub Views */
.hub-view[hidden] {
    display: none;
}

.hub-view:not([hidden]) {
    display: block;
}

/* Contact Form Card */
.contact-form-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-default);
    border-radius: 12px;
    padding: 40px;
    max-width: 700px;
    margin: 0 auto;
}

/* Contact Info */
.contact-info-card-wrapper {
    background: var(--bg-card);
    border: 1.5px solid var(--border-default);
    border-radius: 12px;
    padding: 48px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info-icon {
    margin: 0 auto 24px;
    width: 72px;
    height: 72px;
    background: var(--bg-tertiary);
    border: 1.5px solid var(--border-default);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-icon svg {
    width: 32px;
    height: 32px;
    color: var(--brand-primary);
}

.contact-info-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.contact-info-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-emails-grid {
    margin: 32px 0;
}

.contact-email-link {
    font-size: 18px;
    color: var(--brand-primary);
    font-weight: 600;
    display: inline-block;
    padding: 14px 28px;
    background: var(--bg-tertiary);
    border: 1.5px solid var(--border-default);
    border-radius: 8px;
    text-decoration: none;
}

.contact-email-link:hover {
    border-color: var(--brand-primary);
}

.contact-social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.contact-social-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    font-size: 14px;
}

/* ===================================
   11. FOOTER
   =================================== */
.footer {
    padding: 80px 0 40px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-top: 1px solid var(--border-subtle);
    position: relative;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.04), 0 -4px 12px -2px rgba(0, 0, 0, 0.02);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(252, 178, 28, 0.2) 50%, transparent 100%);
}

.footer-grid--landing {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 48px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 48px;
    margin-bottom: 32px;
}

.footer-brand-text {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-brand-desc {
    font-size: 14px;
    color: var(--text-tertiary);
    line-height: 1.6;
    max-width: 300px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

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

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    font-size: 14px;
    color: var(--text-tertiary);
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.footer-column a:focus {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
    text-decoration: underline;
}

.footer-copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ===================================
   12. ANIMATIONS
   =================================== */
/* Animations removed per enterprise standards - no decorative motion */

/* Spinner - static */
.spinner {
    width: 18px;
    height: 18px;
}

/* ===================================
   13. DARK/LIGHT MODE ENHANCEMENTS
   =================================== */
/* Light mode: header is transparent initially, gets background on scroll */
[data-theme="light"] .header {
    background: transparent;
    backdrop-filter: none;
}

[data-theme="light"] .header.scrolled {
    background: rgba(255, 252, 245, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
}

/* Light theme: White text when not scrolled, black when scrolled */

/* Logo - White when not scrolled */
[data-theme="light"] .header:not(.scrolled) .logo {
    color: #FFFFFF;
}

/* Logo - Black when scrolled */
[data-theme="light"] .header.scrolled .logo {
    color: #000000;
}

/* Nav links - White when not scrolled */
[data-theme="light"] .header:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .header:not(.scrolled) .nav-link:hover,
[data-theme="light"] .header:not(.scrolled) .nav-link.active {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.15);
}

/* Nav links - Black when scrolled */
[data-theme="light"] .header.scrolled .nav-link {
    color: #000000;
}

[data-theme="light"] .header.scrolled .nav-link:hover,
[data-theme="light"] .header.scrolled .nav-link.active {
    color: #000000;
    background: rgba(0, 0, 0, 0.08);
}

/* Login button - White when not scrolled */
[data-theme="light"] .header:not(.scrolled) .btn-login {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .header:not(.scrolled) .btn-login:hover {
    color: #FFFFFF;
}

/* Login button - Black when scrolled */
[data-theme="light"] .header.scrolled .btn-login {
    color: #000000;
}

[data-theme="light"] .header.scrolled .btn-login:hover {
    color: #000000;
}

/* Light theme: Apply ALL dark theme hero styles to force dark appearance */
/* Hero background */
[data-theme="light"] .hero {
    background: #0A0805;
}

/* Hero badge - matches dark theme with explicit dark colors */
[data-theme="light"] .hero-badge {
    background: #1E1A16;
    border-color: #3F3429;
    color: #E7E5E4;
}

/* Badge dot */
[data-theme="light"] .hero-badge-dot {
    background: #22C55E;
}

/* Hero title - matches dark theme */
[data-theme="light"] .hero-title {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Hero title gradient - matches dark theme */
[data-theme="light"] .hero-title-gradient {
    background: linear-gradient(135deg, #fcb21c 0%, #ffd700 50%, #fcb21c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero subtitle - matches dark theme */
[data-theme="light"] .hero-subtitle {
    color: rgba(255, 255, 255, 0.75);
}

/* Hero footnote - matches dark theme */
[data-theme="light"] .hero-footnote {
    color: #fdd670;
    font-weight: bold;
}

/* Hero headline */
[data-theme="light"] .hero-headline {
    color: #FFFFFF;
}

/* Hero description */
[data-theme="light"] .hero-description {
    color: rgba(255, 255, 255, 0.85);
}

/* Card inner - matches dark theme exactly - FORCE dark background */
[data-theme="light"] .hero .card-inner,
[data-theme="light"] .hero-floating-card .card-inner,
[data-theme="light"] .card-inner {
    background: rgba(10, 15, 25, 0.94) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

[data-theme="light"] .hero .card-inner:hover,
[data-theme="light"] .hero-floating-card .card-inner:hover,
[data-theme="light"] .card-inner:hover {
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.5),
        0 12px 28px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 0 1px rgba(106, 234, 255, 0.2) !important;
}

/* Gradient text - use gold gradient like title-gradient */
[data-theme="light"] .hero .gradient-text {
    background: linear-gradient(135deg, #fcb21c 0%, #ffd700 50%, #fcb21c 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* All hero text elements - FORCE white text */
[data-theme="light"] .hero h1,
[data-theme="light"] .hero h2,
[data-theme="light"] .hero h3,
[data-theme="light"] .hero h4,
[data-theme="light"] .hero h5,
[data-theme="light"] .hero h6,
[data-theme="light"] .hero .card-inner h1,
[data-theme="light"] .hero .card-inner h2,
[data-theme="light"] .hero .card-inner h3,
[data-theme="light"] .hero .card-inner h4,
[data-theme="light"] .hero .card-inner h5,
[data-theme="light"] .hero .card-inner h6,
[data-theme="light"] .card-inner h1,
[data-theme="light"] .card-inner h2,
[data-theme="light"] .card-inner h3,
[data-theme="light"] .card-inner h4,
[data-theme="light"] .card-inner h5,
[data-theme="light"] .card-inner h6 {
    color: #FFFFFF !important;
}

[data-theme="light"] .hero p,
[data-theme="light"] .hero .card-inner p,
[data-theme="light"] .card-inner p {
    color: rgba(255, 255, 255, 0.85) !important;
}

[data-theme="light"] .hero small,
[data-theme="light"] .hero .card-inner small,
[data-theme="light"] .card-inner small {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Hero buttons - yellow primary, white outlined secondary */
[data-theme="light"] .hero .btn-primary,
[data-theme="light"] .hero-actions .btn-primary {
    background: var(--brand-primary);
    color: #000000;
}

[data-theme="light"] .hero .btn-primary:hover,
[data-theme="light"] .hero-actions .btn-primary:hover {
    background: var(--brand-secondary);
}

[data-theme="light"] .hero .btn-secondary,
[data-theme="light"] .hero-actions .btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .hero .btn-secondary:hover,
[data-theme="light"] .hero-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #FFFFFF;
}

/* Hero links */
[data-theme="light"] .hero a:not(.btn),
[data-theme="light"] .hero-footnote a,
[data-theme="light"] .card-inner a:not(.btn) {
    color: var(--brand-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

[data-theme="light"] .hero a:not(.btn):hover,
[data-theme="light"] .hero-footnote a:hover,
[data-theme="light"] .card-inner a:not(.btn):hover {
    color: var(--accent-gold-light);
}

[data-theme="light"] .gov-card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .gov-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .btn-secondary {
    background: rgba(252, 178, 28, 0.08);
    border: 1px solid rgba(252, 178, 28, 0.2);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(252, 178, 28, 0.15);
    border-color: rgba(252, 178, 28, 0.3);
}

[data-theme="light"] .callout-box {
    background: var(--bg-card);
}

[data-theme="light"] .footer {
    background: var(--bg-secondary);
}

/* Dark mode: header is transparent initially, gets background on scroll */
[data-theme="dark"] .header {
    background: transparent;
    backdrop-filter: none;
}

[data-theme="dark"] .header.scrolled {
    background: var(--bg-primary);
}

[data-theme="dark"] .gov-card {
    background: var(--bg-card);
    border-color: var(--border-default);
}

[data-theme="dark"] .gov-card:hover {
    border-color: var(--brand-primary);
}

[data-theme="dark"] .btn-secondary {
    background: rgba(252, 178, 28, 0.12);
    border: 1px solid rgba(252, 178, 28, 0.25);
}

[data-theme="dark"] .btn-secondary:hover {
    background: rgba(252, 178, 28, 0.2);
    border-color: rgba(252, 178, 28, 0.4);
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: rgba(30, 26, 22, 0.6);
    border-color: rgba(252, 178, 28, 0.15);
    color: var(--text-primary);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
    background: rgba(30, 26, 22, 0.8);
}

[data-theme="dark"] .nav.is-open {
    background: rgba(13, 10, 7, 0.98);
}

[data-theme="dark"] .footer {
    background: linear-gradient(180deg, rgba(10, 8, 5, 1) 0%, rgba(13, 10, 7, 1) 100%);
}

[data-theme="dark"] .hero-title-gradient {
    background: linear-gradient(135deg, #fcb21c 0%, #ffd700 50%, #fcb21c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth transitions between themes */
body,
.header,
.section,
.gov-card,
.btn,
.nav-link,
.theme-toggle {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* ===================================
   14. UTILITIES
   =================================== */
.text-center {
    text-align: center;
}

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

.margin-center {
    margin-left: auto;
    margin-right: auto;
}

.w-full {
    width: 100%;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-12 {
    margin-top: 3rem;
}

/* Focus Visible */
.btn:focus-visible,
.nav-link:focus-visible,
.input-enhanced:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .gov-icon {
        animation: none;
    }
}

/* Print Styles */
@media print {

    .header,
    .footer,
    .btn,
    .theme-toggle,
    .mobile-menu-toggle {
        display: none;
    }

    .section {
        page-break-inside: avoid;
        padding: 40px 0;
    }
}

/* ===================================
   15. RESPONSIVE (Consolidated)
   =================================== */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }

    /* Grid adjustments for tablet */
    .gov-grid--2 {
        max-width: 700px;
        gap: 20px;
    }

    /* Navigation */
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100dvh;
        background: var(--bg-primary);
        padding: 80px 24px 24px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    .nav.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        z-index: 1002;
        box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.12), 0 16px 48px -8px rgba(0, 0, 0, 0.08);
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 16px;
        font-size: 18px;
        border-bottom: 1px solid var(--border-subtle);
        border-radius: 0;
        min-height: 48px;
    }

    /* Fix mobile menu text visibility - override header states */
    [data-theme="light"] .nav-link,
    [data-theme="light"] .header:not(.scrolled) .nav-link,
    [data-theme="light"] .header.scrolled .nav-link {
        color: #000000 !important;
    }

    [data-theme="dark"] .nav-link,
    [data-theme="dark"] .header:not(.scrolled) .nav-link,
    [data-theme="dark"] .header.scrolled .nav-link {
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .nav-link:hover,
    .nav-link.active {
        background: transparent;
        color: var(--brand-primary) !important;
        padding-left: 24px;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1003;
    }

    .header-actions {
        margin-left: auto;
        margin-right: 16px;
    }

    .header-actions .btn-primary {
        display: none;
    }

    /* Hero styles handled inline in index.html */

    /* Grid */
    .gov-grid,
    .gov-grid--4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .footer-grid--landing {
        grid-template-columns: 1fr repeat(2, 1fr);
        gap: 32px;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    body {
        font-size: 16px;
        line-height: 1.6;
        overflow-x: hidden;
    }

    .container {
        padding: 0 20px;
    }

    /* Typography */
    .section-title {
        font-size: clamp(24px, 6vw, 32px);
        line-height: 1.25;
    }

    .section-desc {
        font-size: 16px;
        line-height: 1.65;
    }

    /* Sections */
    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    /* Hero - styles handled inline in index.html */

    /* Grid */
    .gov-grid,
    .gov-grid--2,
    .gov-grid--4 {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 100%;
    }

    /* Cards */
    .gov-card {
        padding: 20px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .gov-card h3 {
        font-size: 17px;
        line-height: 1.3;
    }

    .gov-card p {
        font-size: 14.5px;
        line-height: 1.6;
    }

    .gov-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 14px;
    }

    .gov-icon svg {
        width: 24px;
        height: 24px;
    }

    /* Callout Box */
    .callout-box {
        padding: 24px 20px;
        margin: 40px 0;
        border-left-width: 3px;
    }

    .callout-box h3 {
        font-size: 20px;
    }

    .callout-box p {
        font-size: 15px;
    }

    /* Form */
    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form-card,
    .contact-info-card-wrapper {
        padding: 1.5rem;
    }

    .contact-email-link {
        font-size: 1.25rem;
    }

    input,
    textarea,
    select,
    .input-enhanced,
    .textarea-enhanced {
        font-size: 16px;
        min-height: 48px;
        padding: 12px 16px;
    }

    /* Buttons */
    .btn {
        min-height: 48px;
        padding: 14px 24px;
        font-size: 16px;
    }

    .btn-lg {
        min-height: 52px;
        padding: 16px 28px;
    }

    /* Footer */
    .footer {
        padding: 40px 0;
    }

    .footer-grid--landing {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Header */
    .header {
        padding: 12px 0;
    }

    .logo {
        font-size: 18px;
    }

    .header-actions {
        margin-right: 8px;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
    }

    /* Reduced background intensity */
    .section-vision::before,
    .hero::after {
        opacity: 0.3;
    }

    /* Touch targets */
    .nav-link {
        min-height: 48px;
        padding: 14px 20px;
        font-size: 16px;
    }

    .theme-toggle {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Extra Small (max-width: 640px) */
@media (max-width: 640px) {
    .hero-title {
        font-size: 26px;
    }

    .section-title {
        font-size: 22px;
    }

    .gov-card h3 {
        font-size: 17px;
    }

    .gov-grid,
    .gov-grid--2,
    .gov-grid--4 {
        gap: 16px;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 50px;
    }

    .section {
        padding: 50px 0;
    }
}

/* iOS Safe Area */
@supports (padding: max(0px)) {
    .header {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }

    .container {
        padding-left: max(24px, env(safe-area-inset-left));
        padding-right: max(24px, env(safe-area-inset-right));
    }
}

/* iOS Specific */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }

    .nav.is-open {
        height: -webkit-fill-available;
    }
}

/* Tablet Specific */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    .section {
        padding: 100px 0;
    }

    .gov-grid {
        gap: 28px;
    }
}


/* ===================================
   UI/UX ENHANCEMENTS
   =================================== */

/* Enhanced Card Hover Effects */
.gov-card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.3s ease;
}

.gov-card:hover {
    border-color: var(--brand-primary);
}

[data-theme="dark"] .gov-card:hover {
    border-color: var(--brand-primary);
}

/* Enhanced Focus States */
*:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

.btn:focus-visible,
.nav-link:focus-visible,
.hub-tab-seg:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 3px;
}

/* Form Field Enhancements */
.input-enhanced:focus,
.textarea-enhanced:focus {
    box-shadow: 0 0 0 2px rgba(252, 178, 28, 0.3);
}

/* Section label - static, no animation */

/* Smooth Section Transitions */
.section {
    transition: background-color 0.3s ease;
}

/* Enhanced Link Hover Effects */
a:not(.btn):not(.nav-link) {
    transition: color 0.2s ease;
}

/* Footer Link Enhancements */
.footer-column a {
    position: relative;
    transition: color 0.2s ease;
}

.footer-column a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--brand-primary);
    transition: width 0.3s ease;
}

.footer-column a:hover::after {
    width: 100%;
}

/* Scroll-triggered animations removed per enterprise standards */

/* Tab Button Active State */
.hub-tab-seg {
    position: relative;
    overflow: hidden;
}

/* Tab button hover - clean, no gradients or decorative effects */

/* Hero Badge - static, no glow animation */

/* Loading State - clean */
.spinner {
    display: inline-block;
}

/* Mobile Touch Feedback - clean, no transforms */

/* Reduced Motion - default is already minimal */

/* Print Styles */
@media print {

    .header,
    .footer,
    .theme-toggle,
    .mobile-menu-toggle,
    .hero-cta,
    .hub-tabs-segmented {
        display: none !important;
    }

    .section {
        padding: 40px 0;
        page-break-inside: avoid;
    }

    .gov-card {
        break-inside: avoid;
        border: 1px solid #ddd;
    }
}


/* ===================================
   RESOURCE LINKS & CITATIONS
   =================================== */

/* Resource Links */
.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--brand-primary);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: 0.75rem;
    transition: all 0.2s ease;
}

.resource-link:hover {
    color: var(--brand-secondary);
    text-decoration: underline;
}

/* Callout Citation */
.callout-citation {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.callout-citation a {
    color: var(--brand-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.callout-citation a:hover {
    color: var(--brand-secondary);
}

/* Platform Deployment Note */
.platform-deployment-note {
    transition: all 0.3s ease;
    padding: 24px 32px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-default);
    border-radius: 12px;
}

.platform-deployment-note:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--brand-primary);
}

.platform-deployment-note h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.platform-deployment-note p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

/* Section Divider */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-default) 20%, var(--border-default) 80%, transparent 100%);
    margin: 60px 0;
}

/* Security Information Centre - 2 Column Layout */
.platform-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    margin-bottom: 48px;
    text-align: center;
}

.platform-info-column {
    position: relative;
    text-align: center;
}

.platform-info-column:first-child::after {
    content: '';
    position: absolute;
    right: -24px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, var(--border-default) 20%, var(--border-default) 80%, transparent 100%);
}

.platform-info-column h2,
.platform-info-column h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.platform-info-column p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: left;
}

/* Tablet - Stack columns */
@media (max-width: 1024px) {
    .platform-info-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .platform-info-column:first-child::after {
        display: none;
    }
}

/* Mobile - Stack columns */
@media (max-width: 768px) {
    .platform-info-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .platform-info-column h2,
    .platform-info-column h3 {
        font-size: 1.5rem;
    }

    .platform-info-column p {
        font-size: 0.95rem;
    }
}

/* Resources Additional Section */
.resources-additional {
    transition: all 0.3s ease;
}

.resources-additional:hover {
    border-color: var(--border-hover);
}

/* Footer resource links */
.footer-column .resource-link {
    font-size: 0.875rem;
}

/* ===== LARGE SCREEN OPTIMIZATIONS ===== */

/* 4-column grid optimization for desktop */
@media (min-width: 1200px) {
    .section--capabilities .gov-grid,
    .section--visibility .gov-grid,
    .section--compliance .gov-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

    /* Adjust card padding for narrower columns */
    .section--capabilities .gov-card,
    .section--visibility .gov-card,
    .section--compliance .gov-card {
        padding: 28px 24px;
    }

    /* Slightly smaller headings in 4-col layout */
    .section--capabilities .gov-card h3,
    .section--visibility .gov-card h3,
    .section--compliance .gov-card h3 {
        font-size: 1.125rem;
    }
}

/* 5-card special layout for "What CBOM Delivers" on extra large screens */
@media (min-width: 1400px) {
    .section--capabilities .gov-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Maintain generous spacing on very large screens */
@media (min-width: 1440px) {
    .section {
        padding: 80px 0;
    }
}

/* Tablet - ensure 3-column grid is maintained */
@media (max-width: 1199px) and (min-width: 769px) {
    .section--capabilities .gov-grid,
    .section--visibility .gov-grid,
    .section--compliance .gov-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile - always 1-column for readability */
@media (max-width: 768px) {
    .section--capabilities .gov-grid,
    .section--visibility .gov-grid,
    .section--compliance .gov-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ACCORDION COMPONENT ===== */

.accordion-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.accordion-item {
    background: var(--bg-card);
    border: 1.5px solid var(--border-default);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: var(--brand-primary);
}

.accordion-item.active {
    border-color: var(--brand-primary);
    box-shadow: 0 4px 20px rgba(252, 178, 28, 0.15);
}

.accordion-header {
    width: 100%;
    padding: 24px 32px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
}

/* Personas section - ensure icon and text are left-aligned */
.section--personas .accordion-header {
    justify-content: flex-start !important;
    text-align: left !important;
    padding-left: 20px;
}

.section--personas .accordion-header-content {
    flex: 0 0 auto;
    justify-content: flex-start !important;
    text-align: left !important;
}

.section--personas .accordion-header-content .gov-icon {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.section--personas .accordion-header h3 {
    text-align: left !important;
}

.section--personas .accordion-icon {
    margin-left: auto;
}

.accordion-header:hover {
    background: var(--bg-tertiary);
}

.accordion-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.accordion-header-content .gov-icon {
    flex-shrink: 0;
}

.accordion-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0;
}

.accordion-icon {
    width: 24px;
    height: 24px;
    stroke: var(--text-tertiary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
    stroke: var(--brand-primary);
}

.accordion-content {
    padding: 0 32px 24px 32px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    opacity: 1;
}

.accordion-content p {
    margin: 0;
}

/* ===================================
   PERSONAS CARDS LAYOUT
   =================================== */
.personas-card-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.persona-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-default);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.persona-card:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 4px 20px rgba(252, 178, 28, 0.15);
    transform: translateY(-2px);
}

.persona-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Override gov-icon auto margins for persona cards */
.section--personas .persona-card-header .gov-icon {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.persona-card-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0;
    text-align: left;
}

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

.persona-card-content p {
    margin: 0;
}

/* Personas Cards Tablet - Single Column */
@media (max-width: 1024px) {
    .personas-card-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Personas Cards Mobile Styles */
@media (max-width: 768px) {
    .personas-card-container {
        gap: 16px;
    }

    .persona-card {
        padding: 24px;
        gap: 16px;
    }

    .persona-card-header {
        gap: 16px;
    }

    .persona-card-header h3 {
        font-size: 1.125rem;
    }
}

/* Accordion Tablet - Single Column */
@media (max-width: 1024px) {
    .accordion-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Accordion Mobile Styles */
@media (max-width: 768px) {
    .accordion-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .accordion-header {
        padding: 20px;
    }

    .accordion-header h3 {
        font-size: 1.125rem;
    }

    .accordion-header-content {
        gap: 16px;
    }

    .accordion-content {
        padding: 0 20px 20px 20px;
    }

    .accordion-icon {
        width: 20px;
        height: 20px;
    }
}

/* ===================================
   CAPABILITIES TWO COLUMN LAYOUT
   =================================== */
.capabilities-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 48px;
}

.capabilities-column {
    position: relative;
    min-width: 0;
}

/* Divider between columns */
.capabilities-column:first-child::after {
    content: '';
    position: absolute;
    right: -30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent 0%, var(--border-default) 10%, var(--border-default) 90%, transparent 100%);
    z-index: 1;
}

/* Grid adjustments for columns - 2-3 column grid for cards */
.capabilities-column .capabilities-grid,
.capabilities-column .gov-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 20px;
    max-width: 100%;
}

/* Prevent card overflow */
.capabilities-column .gov-card {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

/* Tablet - Stack columns */
@media (max-width: 1024px) {
    .capabilities-two-column {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .capabilities-column:first-child::after {
        display: none;
    }
}

/* Mobile - Stack columns */
@media (max-width: 768px) {
    .capabilities-two-column {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 32px;
    }

    .capabilities-grid {
        gap: 16px;
    }
}