:root {
    color-scheme: dark;
    /* Color Palette - Premium Deep Navy & Copper */
    --bg-base: #0a111a;
    --bg-surface: rgba(17, 26, 40, 0.6);
    --accent-primary: #c28b6e; /* Copper/Rose gold from wing */
    --accent-primary-glow: rgba(194, 139, 110, 0.4);
    --accent-secondary: #5c86a2; /* Slate blue from network nodes */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(194, 139, 110, 0.3);

    /* Third-party brand colours */
    --linkedin-blue: #0a66c2;
    --linkedin-blue-bg: rgba(10, 102, 194, 0.08);

    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing & Layout */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    --max-width: 1400px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Background Atmosphere */
.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    animation: drift 20s infinite alternate ease-in-out;
}

.bg-blur-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--accent-secondary), transparent 60%);
    top: -200px; left: -200px;
}

.bg-blur-2 {
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(194, 139, 110, 0.15), transparent 70%);
    bottom: -300px; right: -100px;
    animation-delay: -5s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Typography Extensions */
h1, h2, h3, h4, h5, h6, .font-display {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.text-gradient {
    /* Using copper and slate blue for the premium gradient */
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 50%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Core Components: Glassmorphism */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.glass-panel:hover {
    border-color: var(--border-highlight);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-base);
    border: none;
}
.btn-primary:hover {
    /* Richer copper on hover */
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 0 20px var(--accent-primary-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}
.btn-secondary:hover {
    border-color: var(--accent-primary);
    background: rgba(194, 139, 110, 0.05);
}

.btn-linkedin {
    gap: 0.5rem;
}
.btn-linkedin:hover {
    border-color: var(--linkedin-blue);
    background: var(--linkedin-blue-bg);
    color: var(--linkedin-blue);
}

.btn-glass {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    backdrop-filter: blur(8px);
}
.btn-glass:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent-primary);
}

/* Prominent CTA button — copper accent, used for lead-generation actions */
.btn-cta {
    background: var(--accent-primary);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    font-size: 0.95rem;
    gap: 0.5rem;
    border-radius: 10px;
}
.btn-cta:hover {
    background: #b07a5d;
    box-shadow: 0 0 30px var(--accent-primary-glow);
    transform: translateY(-2px);
}
.btn-cta svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.btn-cta:hover svg {
    transform: translateX(4px);
}
.btn-cta:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Nav CTA link — visible in desktop nav bar */
.nav-cta {
    color: var(--accent-primary);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-primary);
    border-radius: 6px;
    transition: background 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}
.nav-cta:hover {
    background: var(--accent-primary);
    color: #fff;
}
.nav-cta:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Hamburger menu button (visible only on mobile/tablet) */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    /* 44×44px minimum touch target; visual icon is centred inside via padding */
    width: 44px;
    height: 44px;
    padding: 12px 10px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    box-sizing: border-box;
}

.nav-hamburger span {
    display: block;
    height: 2.5px;
    width: 100%;
    background-color: #f1f5f9; /* explicit colour — avoid var() resolution edge-cases */
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

/* Animate hamburger to X when open.
   Vertical offset = (button inner height − span height) / 2 = (20 − 2.5) / 2 ≈ 8.75px ≈ 9px */
.nav-hamburger.open span:nth-child(1) {
    transform: translateY(8.75px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-8.75px) rotate(-45deg);
}

/* Mobile dropdown nav */
.mobile-menu {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
    display: none;
}

/* 280px ≈ 4 links × ~52px each (0.5rem padding top + bottom + 0.95rem font + gap) */
.mobile-menu.open {
    max-height: 340px;
}

.mobile-nav .mobile-cta-link {
    color: var(--accent-primary);
    font-weight: 600;
    border-top: 1px solid var(--border-glass);
    padding-top: 0.75rem;
    margin-top: 0.25rem;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 0 0.25rem;
    border-top: 1px solid var(--border-glass);
    margin-top: 0.75rem;
}

.mobile-nav-link {
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

/* Round the bottom corners when menu is open */
.glass-nav.menu-open {
    border-radius: 20px;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: var(--max-width);
    z-index: 100;
    background: rgba(10, 17, 26, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    padding: 1rem 2rem;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    height: 100%; /* force brand to fill height for better centering */
}
.brand-logo {
    height: 80px; 
    width: auto;
    object-fit: contain;
    border-radius: 6px;
    /* Removed heavy negative margins to keep it inline and centered naturally */
}

.primary-nav {
    display: flex;
    gap: 2rem;
}
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-link:hover {
    color: var(--text-primary);
}

.mobile-terminal-wrapper {
    display: none;
}

/* Terminal CTA Button */
.terminal-btn {
    font-family: monospace;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-glass);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: border-color 0.3s ease, background 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-btn:hover {
    border-color: var(--accent-primary);
    background: rgba(194, 139, 110, 0.05); /* very subtle copper tint */
}

.terminal-btn .cmd-prompt {
    color: var(--accent-secondary); 
    font-weight: bold;
}

.terminal-btn .cmd-text {
    color: var(--text-primary);
}

.blink {
    animation: terminal-blink 1s steps(1, end) infinite;
}

@keyframes terminal-blink {
    50% {
        opacity: 0;
    }
}

.terminal-btn a.cmd-text {
    color: var(--accent-primary);
    text-decoration: none;
    transition: text-shadow 0.3s ease;
}

.terminal-btn a.cmd-text:hover {
    text-shadow: 0 0 10px var(--accent-primary-glow);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 140px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.hero-content {
    padding: 0;
}

.system-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(194, 139, 110, 0.1);
    border: 1px solid var(--border-highlight);
    border-radius: 100px;
    margin-bottom: 2rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(194, 139, 110, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(194, 139, 110, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(194, 139, 110, 0); }
}

.hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-nav-links {
    display: flex;
    /* flex-wrap: wrap; */
    gap: 1rem;
    width: 100%;
}

.hero-nav-links .btn {
    flex: 1;
    text-align: center;
}

/* Spatial Demo Mockup */
.hero-spatial-demo {
    position: relative;
    height: 500px;
    width: 100%;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
}

.demo-header {
    border-bottom: 1px solid var(--border-glass);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.abstract-controls {
    display: flex;
    gap: 6px;
}
.control-shape { 
    width: 10px; 
    height: 10px; 
    border-radius: 2px; 
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.demo-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-display);
    letter-spacing: 0.05em;
}

.demo-metrics {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--accent-secondary);
    font-family: monospace;
}

.demo-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.demo-sidebar {
    width: 25%;
    border-right: 1px solid var(--border-glass);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.skeleton-line {
    height: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    width: 100%;
}
.skeleton-line.short { width: 60%; }
.skeleton-line.long { width: 80%; }

.demo-main {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.node-graph {
    position: relative;
    width: 100%;
    height: 100%;
}

.node {
    position: absolute;
    background: rgba(73, 112, 138, 0.1); /* Using accent-secondary */
    border: 1px solid var(--accent-secondary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-primary);
    backdrop-filter: blur(4px);
}
.node.central {
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    /* Central node stands out in copper */
    background: rgba(194, 139, 110, 0.1);
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-primary-glow);
}
.node.p1 { top: 20%; left: 20%; }
.node.p2 { bottom: 20%; right: 20%; }

/* Sections Base */
section {
    padding: var(--spacing-lg) 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-badge {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-secondary);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: var(--spacing-lg);
}

/* Architect Capabilities Grid */
.grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card-icon {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
    width: 64px; height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    transition: all 0.3s ease;
}

.brand-svg-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-primary);
    transition: all 0.3s ease;
}

.feature-card:hover .card-icon {
    border-color: var(--border-highlight);
    background: rgba(194, 139, 110, 0.05); /* very subtle copper tint */
}

.feature-card:hover .brand-svg-icon {
    color: var(--text-primary);
    filter: drop-shadow(0 0 8px var(--accent-primary-glow));
}

.feature-card h3 {
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    flex: 1;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1.5rem;
}

.feature-list li {
    font-size: 0.9rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-list li::before {
    content: "→";
    color: var(--accent-primary);
    font-family: var(--font-display);
    font-weight: 800;
}

/* Demo Section */
.demo-section {
    position: relative;
}

.demo-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.compute-status {
    margin-top: 2rem;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border-glass);
    padding: 1rem;
    border-radius: 8px;
    font-family: monospace;
}

.compute-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.compute-bar {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.compute-fill {
    height: 100%;
    width: 45%;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
}

.compute-data {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--accent-secondary);
}

.demo-interactive {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.demo-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: inherit;
}

.glow-border {
    position: relative;
}
.glow-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(45deg, var(--accent-secondary), transparent, var(--accent-primary));
    z-index: -1;
    border-radius: inherit;
    opacity: 0.3;
}

.demo-cta {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border-glass);
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.demo-cta p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.ats-capabilities {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ats-capabilities li {
    position: relative;
    padding-left: 1.4rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.ats-capabilities li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-size: 0.7rem;
    top: 0.25rem;
}

/* Trust Center */
.trust-center {
    border-top: 1px solid var(--border-glass);
    padding-top: var(--spacing-xl);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.trust-card h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-card h4::before {
    content: '';
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--accent-primary);
}

.trust-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* About the Architect */
.about-architect {
    border-top: 1px solid var(--border-glass);
    padding-top: var(--spacing-xl);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-bio p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-bio p:last-child {
    margin-bottom: 0;
}

.about-credentials h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.cert-badge {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.cert-badge:hover {
    border-color: var(--border-highlight);
    transform: translateY(-2px);
}

.cert-icon {
    width: 36px;
    height: 36px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.cert-name {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.cert-issuer {
    font-size: 0.8rem;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Footer */
.legal-footer {
    margin: var(--spacing-xl) 2rem 2rem;
    padding: 4rem;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: start;
}

.footer-brand {
    max-width: 100%;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
    /* Ensure text wraps nicely within its column */
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.footer-links {
    display: flex;
    flex-wrap: wrap; /* ensure columns wrap if constrained */
    gap: 3rem;
}

.link-group {
    min-width: 150px;
}

.link-group h5 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
}

.link-group p, .link-group a {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: block;
    text-decoration: none;
    font-size: 0.9rem;
}

.link-group a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.system-reqs {
    font-family: monospace;
    opacity: 0.5;
}

/* Responsive constraints */
@media (max-width: 1200px) {
    .hero-section {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 2.5rem;
        padding-top: 140px;
        align-items: center;
    }
    .hero-spatial-demo {
        transform: none;
        height: 420px;
    }
    .primary-nav {
        display: none;
    }
    .nav-cta {
        display: none;
    }
    /* Show hamburger button at tablet/mobile */
    .nav-hamburger {
        display: flex;
    }
    .mobile-menu {
        display: block;
    }
    .demo-container {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-brand {
        text-align: left;
    }
    .footer-links {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* Make legal-footer smaller on mobile */
    .legal-footer {
        padding: 2rem;
        margin: var(--spacing-md) 1rem 1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Tablet-to-Mobile transition: stack hero at narrow tablet.
   At 900px the two-column hero layout is too cramped — switch to single column.
   The 1200px breakpoint above keeps the two-column grid for wider tablets. */
@media (max-width: 900px) {
    .hero-section {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
        padding-top: 160px;
        min-height: auto;
        padding-bottom: 4rem;
        gap: 3rem;
    }
    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }
    .hero-ctas {
        justify-content: center;
        align-items: center;
    }
    .hero-nav-links {
        justify-content: center;
    }
    .hero-spatial-demo {
        height: 380px;
        width: 100%;
    }
}

/* Mobile Layout - Phones */
@media (max-width: 530px) {
    /* Navigation: compact the bar so it fits on small screens */
    .glass-nav {
        padding: 0.6rem 1rem;
        top: 0.5rem;
        width: 90%;
        border-radius: 60px;
    }

    .nav-container {
        gap: 0.75rem;
    }

    .brand-logo {
        height: 52px;
    }

    /* Shrink the terminal CTA to fit alongside the hamburger */
    .terminal-btn {
        padding: 0.45rem 0.75rem;
        font-size: 0.7rem;
        white-space: nowrap;
    }

    .nav-actions {
        display: none;
    }

    .mobile-terminal-wrapper {
        display: flex !important;
        justify-content: center;
        margin-top: 1rem;
        margin-bottom: 1rem;
        margin-left: 1rem;
        margin-right: 1rem;
        width: calc(100% - 2rem);
        position: relative;
        z-index: 10;
    }

    /* Hero section */
    .hero-section {
        padding-top: 90px;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        gap: 2.5rem;
    }

    /* Status badge: reduce size so long text fits on one line */
    .system-status {
        font-size: 0.65rem;
        letter-spacing: 0.06em;
        padding: 0.35rem 0.75rem;
        max-width: 100%;
        flex-wrap: wrap;
    }

    /* Hero title: use a responsive scale that shrinks on small viewports */
    .hero-title {
        font-size: clamp(2rem, 9vw, 3.5rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Stack CTA buttons vertically and fill width */
    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-nav-links {
        flex-direction: column;
    }

    .hero-ctas .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    /* Reduce demo panel height on mobile */
    .hero-spatial-demo {
        height: 260px;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    /* General section spacing */
    section {
        padding-top: var(--spacing-lg);
        padding-bottom: var(--spacing-lg);
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .section-title {
        font-size: clamp(1.5rem, 7vw, 2.5rem);
        margin-bottom: var(--spacing-md);
    }

    /* Features grid: single column already handled at 1024px,
       reduce card internal padding on mobile */
    .feature-card {
        padding: 1.75rem;
    }

    /* Demo section */
    .demo-container {
        gap: 2rem;
    }

    .cert-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .legal-footer {
        padding: 1.5rem;
        margin: var(--spacing-sm) 0.5rem 0.5rem;
    }

    .footer-bottom {
        font-size: 0.75rem;
    }
}

/* Small phones (< 480px) */
@media (max-width: 480px) {
    .brand-logo {
        height: 44px;
    }

    .hero-section {
        padding-top: 80px;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-title {
        font-size: clamp(1.75rem, 10vw, 3rem);
    }

    .system-status {
        font-size: 0.6rem;
        letter-spacing: 0.04em;
    }
}

/* ========================================
   SUBPAGE STYLES — Phase 2
   ======================================== */

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

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

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

.breadcrumb-sep {
    color: var(--border-glass);
}

.breadcrumb [aria-current="page"] {
    color: var(--text-primary);
    font-weight: 500;
}

/* Subpage Hero */
.subpage-hero {
    padding-top: 160px;
    padding-bottom: var(--spacing-lg);
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.subpage-hero-content {
    max-width: 800px;
}

.subpage-hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.subpage-hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 700px;
}

/* Viz Section base */
.viz-section {
    padding: var(--spacing-lg) 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    overflow: hidden;
}

.section-intro {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

/* Card link inside feature cards (index.html) */
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: color 0.3s ease, gap 0.3s ease;
    margin-top: auto;
    padding-top: 1rem;
}

.card-link:hover {
    color: var(--text-primary);
    gap: 0.5rem;
}

/* ---- GenAI: Pipeline ---- */
.pipeline-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
}

.pipeline-stage {
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    min-width: 0;
}

.pipeline-stage .stage-number {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-secondary);
    letter-spacing: 0.1em;
}

.pipeline-stage .stage-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-primary);
}

.pipeline-stage .stage-icon svg {
    width: 100%;
    height: 100%;
}

.pipeline-stage h3 {
    font-size: 1.05rem;
    line-height: 1.3;
}

.pipeline-stage p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.pipeline-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1.25rem;
    font-weight: 800;
    opacity: 0.6;
    padding: 0 0.25rem;
}

.stage-highlight {
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 30px rgba(194, 139, 110, 0.15);
}

.stage-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(194, 139, 110, 0.15);
    border: 1px solid var(--border-highlight);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: auto;
}

/* ---- GenAI: MCP Grid ---- */
.mcp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.mcp-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mcp-card-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mcp-icon-ring {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(194, 139, 110, 0.1);
    border: 1px solid var(--border-highlight);
    color: var(--accent-primary);
}

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

.mcp-icon-warning {
    background: rgba(220, 100, 80, 0.1);
    border-color: rgba(220, 100, 80, 0.3);
    color: #dc6450;
}

.mcp-card h3 {
    font-size: 1.3rem;
}

.mcp-label {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    width: fit-content;
}

.mcp-label-secure {
    background: rgba(194, 139, 110, 0.15);
    border: 1px solid var(--border-highlight);
    color: var(--accent-primary);
}

.mcp-label-risk {
    background: rgba(220, 100, 80, 0.1);
    border: 1px solid rgba(220, 100, 80, 0.3);
    color: #dc6450;
}

.mcp-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mcp-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.mcp-check {
    color: var(--accent-primary);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.1em;
}

.mcp-cross {
    color: #dc6450;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.1em;
}

.mcp-sokolai {
    border-color: var(--border-highlight);
}

/* ---- Comparison Grid (shared by genai + azure) ---- */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.comparison-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comparison-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.comparison-header h3 {
    font-size: 1.4rem;
}

.comparison-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(73, 112, 138, 0.15);
    border: 1px solid rgba(73, 112, 138, 0.3);
    color: var(--accent-secondary);
    width: fit-content;
}

.comparison-recommended {
    background: rgba(194, 139, 110, 0.15);
    border: 1px solid var(--border-highlight);
    color: var(--accent-primary);
}

.comparison-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.comparison-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 1rem;
    margin-top: auto;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.85rem;
}

.detail-label {
    color: var(--text-secondary);
    flex-shrink: 0;
    font-weight: 500;
}

.detail-value {
    color: var(--text-primary);
    text-align: right;
}

/* ---- Compute Badges (shared) ---- */
.compute-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.compute-badge {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.compute-badge-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    color: var(--accent-secondary);
}

.compute-badge-icon svg {
    width: 100%;
    height: 100%;
}

.compute-badge-data {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.compute-badge-value {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.compute-badge-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ---- Subpage CTA ---- */
.subpage-cta {
    padding: var(--spacing-xl) 2rem var(--spacing-lg);
    max-width: var(--max-width);
    margin: 0 auto;
}

.subpage-cta-content {
    text-align: center;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.subpage-cta-content h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.subpage-cta-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 550px;
}

.subpage-cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ---- Azure: WAF Pillars ---- */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.pillar-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.pillar-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0.7;
}

.pillar-number {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-secondary);
    letter-spacing: 0.1em;
}

.pillar-card h3 {
    font-size: 1.25rem;
}

.pillar-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.pillar-metric {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 1rem;
    margin-top: auto;
}

.metric-value {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ---- Azure: Hub-Spoke Diagram ---- */
.hub-spoke-diagram {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-lg) 0;
    min-height: 500px;
}

.hub-center {
    position: relative;
    z-index: 2;
    padding: 2rem 2.5rem;
    text-align: center;
    border-color: var(--accent-primary);
    box-shadow: 0 0 40px rgba(194, 139, 110, 0.15);
    max-width: 320px;
}

.hub-center h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.hub-services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.hub-service {
    padding: 0.3rem 0.75rem;
    background: rgba(194, 139, 110, 0.1);
    border: 1px solid var(--border-highlight);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--accent-primary);
    font-weight: 500;
}

.spoke-connectors {
    width: 2px;
    height: 48px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
    opacity: 0.4;
    flex-shrink: 0;
    border-radius: 1px;
}

.connector {
    display: none;
}

.spoke {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    max-width: 260px;
}

.spoke-icon {
    width: 36px;
    height: 36px;
    color: var(--accent-secondary);
}

.spoke-icon svg {
    width: 100%;
    height: 100%;
}

.spoke h4 {
    font-size: 1rem;
}

.spoke p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Hub-spoke layout: grid on desktop */
@media (min-width: 769px) {
    .hub-spoke-diagram {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto auto auto;
        gap: 2rem;
        justify-items: center;
        align-items: center;
        min-height: auto;
    }

    .hub-center {
        grid-column: 2;
        grid-row: 2;
    }

    .spoke-connectors {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        pointer-events: none;
        background: none;
        opacity: 1;
        border-radius: 0;
    }

    .connector {
        display: block;
        position: absolute;
        top: 50%;
        left: 50%;
        height: 2px;
        width: 36%;
        transform-origin: 0% 50%;
        background: linear-gradient(to right, var(--accent-primary), transparent);
        opacity: 0.3;
        border-radius: 1px;
    }

    .connector-1 { transform: rotate(-150deg); }
    .connector-2 { transform: rotate(-30deg); }
    .connector-3 { transform: rotate(150deg); }
    .connector-4 { transform: rotate(30deg); }

    .spoke-1 { grid-column: 1; grid-row: 1; }
    .spoke-2 { grid-column: 3; grid-row: 1; }
    .spoke-3 { grid-column: 1; grid-row: 3; }
    .spoke-4 { grid-column: 3; grid-row: 3; }
}

/* ---- Azure: SIEM Grid ---- */
.siem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.siem-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.siem-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.siem-icon-ring {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(73, 112, 138, 0.1);
    border: 1px solid rgba(73, 112, 138, 0.3);
    color: var(--accent-secondary);
    flex-shrink: 0;
}

.siem-icon-ring svg {
    width: 22px;
    height: 22px;
}

.siem-card h3 {
    font-size: 1.15rem;
}

.siem-card > p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.siem-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 1rem;
}

.siem-features li {
    font-size: 0.85rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.siem-features li::before {
    content: "→";
    color: var(--accent-secondary);
    font-family: var(--font-display);
    font-weight: 800;
}

/* Watchtower visual */
.siem-watchtower {
    grid-column: 1 / -1;
    padding: 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.watchtower-visual {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.watchtower-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--accent-secondary);
    opacity: 0.2;
}

.ring-1 {
    width: 80px;
    height: 80px;
    opacity: 0.35;
}

.ring-2 {
    width: 110px;
    height: 110px;
    opacity: 0.2;
}

.ring-3 {
    width: 140px;
    height: 140px;
    opacity: 0.1;
}

.watchtower-center {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    color: var(--accent-primary);
}

.watchtower-center svg {
    width: 100%;
    height: 100%;
}

.siem-watchtower h3 {
    font-size: 1.25rem;
}

.siem-watchtower p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.6;
}

/* ---- Agents: Timeline ---- */
.timeline-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-left: 60px;
}

.timeline-line {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary), transparent);
    opacity: 0.3;
}

.timeline-stage {
    position: relative;
    padding: 2rem 2.5rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.timeline-marker {
    position: absolute;
    left: -60px;
    top: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-base);
    border: 2px solid var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.marker-number {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-content h3 {
    font-size: 1.3rem;
}

.timeline-content > p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.timeline-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 1rem;
}

.timeline-details li {
    font-size: 0.85rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.timeline-details li::before {
    content: "→";
    color: var(--accent-primary);
    font-family: var(--font-display);
    font-weight: 800;
}

/* ---- Subpage Responsive ---- */
@media (max-width: 1200px) {
    .subpage-hero {
        padding-top: 140px;
    }

    .pipeline-container {
        display: flex;
        flex-direction: column;
        gap: 0;
        overflow: hidden;
    }

    .pipeline-stage {
        min-width: auto;
        overflow: hidden;
    }

    .pipeline-connector {
        transform: rotate(90deg);
        padding: 0.25rem 0;
    }

    .mcp-grid {
        grid-template-columns: 1fr;
    }

    .siem-grid {
        grid-template-columns: 1fr;
    }

    .timeline-container {
        padding-left: 50px;
    }

    .timeline-marker {
        left: -50px;
        width: 40px;
        height: 40px;
    }

    .timeline-line {
        left: 20px;
    }
}

@media (max-width: 530px) {
    .subpage-hero {
        padding-top: 100px;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .subpage-hero-title {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .subpage-hero-subtitle {
        font-size: 1rem;
    }

    .viz-section {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .subpage-cta {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .subpage-cta-content {
        padding: var(--spacing-md);
    }

    .subpage-cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .subpage-cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .timeline-container {
        padding-left: 40px;
    }

    .timeline-marker {
        left: -40px;
        width: 32px;
        height: 32px;
    }

    .marker-number {
        font-size: 0.7rem;
    }

    .timeline-line {
        left: 16px;
    }

    .timeline-stage {
        padding: 1.5rem;
    }

    .pillar-card {
        padding: 1.5rem;
    }

    .comparison-card {
        padding: 1.5rem;
    }

    .mcp-card {
        padding: 1.75rem;
    }

    .hub-spoke-diagram {
        min-height: auto;
    }
}

/* ========================================
   PHASE 3 STYLES
   ======================================== */

/* ---- Demo: Step Navigation ---- */
.demo-steps-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.demo-step-tab {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 140px;
}

.demo-step-tab:hover {
    border-color: var(--border-highlight);
    color: var(--text-primary);
}

.demo-step-tab.active {
    border-color: var(--accent-primary);
    background: rgba(194, 139, 110, 0.08);
    color: var(--text-primary);
}

.demo-step-tab .step-number {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--accent-primary);
    letter-spacing: 0.1em;
}

.demo-step-tab .step-label {
    font-weight: 500;
}

/* ---- Demo: Step Panels ---- */
.demo-steps-container {
    position: relative;
}

.demo-step-panel {
    display: none;
    padding: 2.5rem;
}

.demo-step-panel.active {
    display: block;
}

.demo-panel-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.demo-panel-info h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.demo-panel-info > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.demo-step-action {
    display: flex;
    justify-content: flex-end;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-glass);
}

/* ---- Demo: Mock UI Elements ---- */
.mock-select {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: 12px;
}

.mock-select-icon {
    color: var(--accent-secondary);
    flex-shrink: 0;
}

.mock-select-text {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.mock-select-badge {
    margin-left: auto;
    padding: 0.2rem 0.6rem;
    background: rgba(194, 139, 110, 0.15);
    border: 1px solid var(--border-highlight);
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mock-repo-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mock-detail {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.mock-detail-label {
    color: var(--text-secondary);
}

.mock-detail-value {
    color: var(--text-primary);
    font-family: monospace;
}

/* Mock file tree */
.mock-file-tree {
    padding: 1.5rem;
    border-radius: 16px;
    overflow: hidden;
}

.mock-file-header {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-secondary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 1rem;
}

.mock-file-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mock-file {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0.25rem 0;
}

.mock-file .file-icon {
    margin-right: 0.5rem;
}

.mock-file.indent-0 {
    padding-left: 0;
    color: var(--text-primary);
    font-weight: 500;
}

.mock-file.indent-1 {
    padding-left: 1.5rem;
}

/* ---- Demo: Scan Progress ---- */
.demo-scan-progress {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.scan-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    padding: 0.5rem 0;
}

.scan-item.completed {
    color: var(--text-primary);
}

.scan-item.active {
    color: var(--accent-primary);
}

.scan-item.pending {
    color: var(--text-secondary);
    opacity: 0.5;
}

.scan-check {
    color: var(--accent-primary);
    font-weight: 700;
    flex-shrink: 0;
    width: 1.25rem;
    text-align: center;
}

.scan-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--border-glass);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    flex-shrink: 0;
}

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

.scan-pending {
    color: var(--text-secondary);
    flex-shrink: 0;
    width: 1.25rem;
    text-align: center;
}

.scan-count {
    margin-left: auto;
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--accent-secondary);
}

/* ---- Demo: Dependency Graph ---- */
.mock-dep-graph {
    padding: 1.5rem;
    border-radius: 16px;
}

.dep-graph-visual {
    position: relative;
    height: 250px;
}

.dep-node {
    position: absolute;
    padding: 0.5rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--text-primary);
}

.dep-central {
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: var(--accent-primary);
    background: rgba(194, 139, 110, 0.1);
    box-shadow: 0 0 20px rgba(194, 139, 110, 0.15);
}

.dep-spoke.dep-s1 { top: 5%; left: 10%; }
.dep-spoke.dep-s2 { top: 5%; right: 10%; left: auto; }
.dep-spoke.dep-s3 { bottom: 10%; left: 10%; top: auto; }
.dep-spoke.dep-s4 { bottom: 10%; right: 10%; top: auto; left: auto; }

.dep-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* ---- Demo: Analysis Scores ---- */
.demo-analysis-scores {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.analysis-score {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.score-value {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 800;
}

.score-good {
    color: var(--accent-primary);
}

.score-warning {
    color: #e4a853;
}

.score-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 3px;
    transition: width 1s ease;
}

.score-fill-warning {
    background: #e4a853;
}

/* ---- Demo: Findings ---- */
.demo-findings {
    padding: 1.5rem;
    border-radius: 16px;
}

.finding-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.finding-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.finding-severity {
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    min-width: 60px;
    text-align: center;
}

.finding-critical .finding-severity {
    background: rgba(220, 80, 80, 0.15);
    color: #dc5050;
    border: 1px solid rgba(220, 80, 80, 0.3);
}

.finding-warning .finding-severity {
    background: rgba(228, 168, 83, 0.15);
    color: #e4a853;
    border: 1px solid rgba(228, 168, 83, 0.3);
}

.finding-info .finding-severity {
    background: rgba(73, 112, 138, 0.15);
    color: var(--accent-secondary);
    border: 1px solid rgba(73, 112, 138, 0.3);
}

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

/* ---- Demo: Lead Capture ---- */
.demo-panel-gated {
    position: relative;
}

.blurred {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

.lead-capture-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 17, 26, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10;
    border-radius: inherit;
    padding: 2rem;
}

.lead-capture-overlay.hidden {
    display: none;
}

.lead-capture-form {
    max-width: 420px;
    width: 100%;
    padding: 2.5rem;
    text-align: center;
}

.lead-capture-form h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.lead-capture-form > p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
    text-align: left;
}

.form-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-display);
    letter-spacing: 0.03em;
}

.form-field .required {
    color: var(--accent-primary);
}

.form-field .optional {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.75rem;
}

.form-field input {
    padding: 0.7rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-field input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.form-field input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(194, 139, 110, 0.15);
}

.form-field input.error {
    border-color: #dc5050;
}

.form-error {
    font-size: 0.75rem;
    color: #dc5050;
    min-height: 1em;
}

.lead-submit-btn {
    width: 100%;
    margin-top: 0.5rem;
}

/* Lead capture confirmation */
.lead-capture-confirmation {
    text-align: center;
    padding: 2rem;
}

.lead-capture-confirmation .confirmation-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(194, 139, 110, 0.15);
    border: 2px solid var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.lead-capture-confirmation h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.lead-capture-confirmation p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ---- Demo: Roadmap Preview ---- */
.demo-roadmap-preview {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.roadmap-phase {
    padding: 1rem;
    border-left: 3px solid var(--accent-primary);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 8px 8px 0;
}

.roadmap-phase-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.roadmap-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-left: 0;
}

.roadmap-items li {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding-left: 1rem;
    position: relative;
}

.roadmap-items li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-secondary);
    font-family: var(--font-display);
    font-weight: 800;
}

/* ---- Demo: Savings Summary ---- */
.demo-savings-summary {
    padding: 1.5rem;
    border-radius: 16px;
}

.savings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.saving-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.saving-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.saving-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ---- Demo: Mobile CTA ---- */
.demo-mobile-cta {
    display: none;
    padding: 0 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.demo-mobile-cta-content {
    padding: 2rem;
    text-align: center;
}

.demo-mobile-cta-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ---- Strategy: Framework Pipeline ---- */
.strategy-framework-container {
    display: grid;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
}

.strategy-framework-container.five-phases {
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
}

.strategy-framework-container.six-phases {
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
}

.strategy-phase {
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    min-width: 0;
}

.strategy-phase-number {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-secondary);
    letter-spacing: 0.1em;
}

.strategy-phase-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-primary);
}

.strategy-phase-icon svg {
    width: 100%;
    height: 100%;
}

.strategy-phase h3 {
    font-size: 1.05rem;
    line-height: 1.3;
}

.strategy-phase p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.strategy-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1.25rem;
    font-weight: 800;
    opacity: 0.6;
    padding: 0 0.25rem;
}

/* ---- Strategy: CoE Grid ---- */
.coe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.coe-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.coe-icon-ring {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(194, 139, 110, 0.1);
    border: 1px solid var(--border-highlight);
    color: var(--accent-primary);
}

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

.coe-card h3 {
    font-size: 1.3rem;
}

.coe-card > p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.coe-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 1rem;
    margin-top: auto;
}

.coe-features li {
    font-size: 0.85rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.coe-features li::before {
    content: "→";
    color: var(--accent-primary);
    font-family: var(--font-display);
    font-weight: 800;
}

/* ---- Strategy: Adoption Roadmap Timeline ---- */
.roadmap-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-left: 120px;
}

.roadmap-line {
    position: absolute;
    left: 60px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary), transparent);
    opacity: 0.3;
}

.roadmap-stage {
    position: relative;
    padding: 2rem 2.5rem;
}

.roadmap-marker {
    position: absolute;
    left: -120px;
    top: 2rem;
    width: 96px;
    text-align: center;
}

.roadmap-marker-label {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: rgba(194, 139, 110, 0.15);
    border: 1px solid var(--border-highlight);
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.roadmap-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.roadmap-duration {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--accent-secondary);
}

.roadmap-content h3 {
    font-size: 1.3rem;
}

.roadmap-content > p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.roadmap-deliverables {
    border-top: 1px solid var(--border-glass);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.deliverable-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-secondary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.roadmap-deliverables ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-left: 0;
}

.roadmap-deliverables li {
    font-size: 0.85rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.roadmap-deliverables li::before {
    content: "→";
    color: var(--accent-primary);
    font-family: var(--font-display);
    font-weight: 800;
}

/* ---- Accessibility: Content Styles ---- */
.accessibility-content {
    max-width: 800px;
}

.accessibility-section {
    margin-bottom: var(--spacing-lg);
}

.accessibility-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.accessibility-section > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.accessibility-section code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
    color: var(--accent-primary);
}

.accessibility-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-left: 0;
}

.accessibility-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 1.5rem;
    position: relative;
}

.accessibility-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-family: var(--font-display);
    font-weight: 800;
}

.accessibility-list li strong {
    color: var(--text-primary);
}

.accessibility-contact {
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1rem 0;
}

.accessibility-contact p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.accessibility-contact p:last-child {
    margin-bottom: 0;
}

.accessibility-contact strong {
    color: var(--text-primary);
}

.accessibility-contact a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.accessibility-contact a:hover {
    color: var(--text-primary);
}

/* ---- Phase 3 Responsive ---- */
@media (max-width: 1200px) {
    .demo-panel-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .strategy-framework-container {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .strategy-connector {
        transform: rotate(90deg);
        padding: 0.25rem 0;
    }

    .roadmap-timeline {
        padding-left: 80px;
    }

    .roadmap-marker {
        left: -80px;
        width: 64px;
    }

    .roadmap-marker-label {
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
    }

    .roadmap-line {
        left: 40px;
    }
}

@media (max-width: 768px) {
    .demo-steps-nav {
        flex-direction: column;
    }

    .demo-step-tab {
        min-width: auto;
    }

    .demo-mobile-cta {
        display: block;
    }

    .savings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 530px) {
    .demo-step-panel {
        padding: 1.5rem;
    }

    .roadmap-timeline {
        padding-left: 0;
    }

    .roadmap-line {
        display: none;
    }

    .roadmap-marker {
        position: static;
        width: auto;
        text-align: left;
        margin-bottom: 0.75rem;
    }

    .roadmap-stage {
        padding: 1.5rem;
    }

    .coe-card {
        padding: 1.75rem;
    }

    .lead-capture-overlay {
        padding: 1rem;
    }

    .lead-capture-form {
        padding: 1.75rem;
    }
}

/* ========================================
   PHASE 5 — LIGHT THEME
   ======================================== */

/* Theme toggle button */
.theme-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    flex-shrink: 0;
    padding: 0;
}

.theme-toggle:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(194, 139, 110, 0.05);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

/* Show sun (→ light) in dark mode; moon (→ dark) in light mode */
.theme-icon-dark { display: none; }
.theme-icon-light { display: block; }

[data-theme="light"] .theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark  { display: block; }

/* Light-mode override for toggle button background */
[data-theme="light"] .theme-toggle {
    background: rgba(26, 37, 51, 0.06);
    border-color: rgba(26, 37, 51, 0.15);
}

/* ----------------------------------------
   Light theme design tokens
   ---------------------------------------- */
[data-theme="light"] {
    color-scheme: light;
    --bg-base: #f5f1ec;
    --bg-surface: rgba(255, 252, 248, 0.88);
    --accent-primary: #8d5e3d;
    --accent-primary-glow: rgba(141, 94, 61, 0.3);
    --accent-secondary: #2e5775;
    --text-primary: #1a2533;
    --text-secondary: #4a6278;
    --border-glass: rgba(26, 37, 51, 0.1);
    --border-highlight: rgba(141, 94, 61, 0.35);
}

/* ----------------------------------------
   Light theme component overrides
   (for hardcoded values not covered by vars)
   ---------------------------------------- */

/* Navigation */
[data-theme="light"] .glass-nav {
    background: rgba(245, 241, 236, 0.88);
}

[data-theme="light"] .nav-hamburger {
    background: rgba(26, 37, 51, 0.06);
    border-color: rgba(26, 37, 51, 0.15);
}

[data-theme="light"] .nav-hamburger span {
    background-color: var(--text-primary);
}

/* Terminal CTA */
[data-theme="light"] .terminal-btn {
    background: rgba(26, 37, 51, 0.06);
}

/* Background atmosphere */
[data-theme="light"] .noise-overlay {
    opacity: 0.012;
}

[data-theme="light"] .ambient-glow {
    opacity: 0.2;
}

[data-theme="light"] .bg-blur-2 {
    background: radial-gradient(circle, rgba(141, 94, 61, 0.12), transparent 70%);
}

/* Glass panel elevation */
[data-theme="light"] .glass-panel {
    box-shadow: 0 4px 24px rgba(26, 37, 51, 0.1);
}

/* Buttons */
[data-theme="light"] .btn-glass {
    background: rgba(26, 37, 51, 0.04);
}

[data-theme="light"] .btn-cta {
    background: #b07a5d;
    color: #fff;
}
[data-theme="light"] .btn-cta:hover {
    background: #9d6a4f;
}

[data-theme="light"] .nav-cta {
    color: #9d6a4f;
    border-color: #9d6a4f;
}
[data-theme="light"] .nav-cta:hover {
    background: #9d6a4f;
    color: #fff;
}

/* Hero mock panel */
[data-theme="light"] .skeleton-line {
    background: rgba(26, 37, 51, 0.08);
}

[data-theme="light"] .control-shape {
    background: rgba(26, 37, 51, 0.07);
    border-color: rgba(26, 37, 51, 0.04);
}

/* Compute status monitor */
[data-theme="light"] .compute-status {
    background: rgba(245, 241, 236, 0.8);
}

/* Section separators */
[data-theme="light"] .footer-bottom {
    border-top-color: rgba(26, 37, 51, 0.08);
}

[data-theme="light"] .feature-list {
    border-top-color: rgba(26, 37, 51, 0.08);
}

[data-theme="light"] .mobile-nav {
    border-top-color: var(--border-glass);
}

/* Score bars (demo.html) */
[data-theme="light"] .score-bar {
    background: rgba(26, 37, 51, 0.08);
}

/* Finding item separators (demo.html) */
[data-theme="light"] .finding-item {
    border-bottom-color: rgba(26, 37, 51, 0.05);
}

/* Lead-capture form inputs */
[data-theme="light"] .form-field input {
    background: rgba(255, 255, 255, 0.75);
    color: var(--text-primary);
}

/* Lead capture overlay backdrop */
[data-theme="light"] .lead-capture-overlay {
    background: rgba(245, 241, 236, 0.85);
}

/* Savings summary cards */
[data-theme="light"] .saving-item {
    background: rgba(26, 37, 51, 0.04);
}

/* Strategy roadmap phase blocks */
[data-theme="light"] .roadmap-phase {
    background: rgba(26, 37, 51, 0.03);
}

/* Dependency graph central node */
[data-theme="light"] .dep-central {
    background: rgba(141, 94, 61, 0.08);
}

/* Accessibility code blocks */
[data-theme="light"] .accessibility-section code {
    background: rgba(26, 37, 51, 0.07);
}

/* ---- Graceful degradation: fallback when backdrop-filter is unsupported ---- */
@supports not (backdrop-filter: blur(16px)) {
    .glass-nav {
        background: rgba(10, 17, 26, 0.92);
    }
    .glass-panel {
        background: rgba(17, 26, 40, 0.92);
    }
    [data-theme="light"] .glass-nav {
        background: rgba(245, 241, 236, 0.95);
    }
    [data-theme="light"] .glass-panel {
        background: rgba(245, 241, 236, 0.95);
    }
}

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

    .ambient-glow {
        animation: none;
    }

    .scan-spinner {
        animation: none;
        border-color: var(--accent-primary);
    }
}

/* Legal Pages Typography */
.legal-content h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.legal-content h3 {
    font-size: 1.4rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.legal-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.legal-content ol {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.legal-content li {
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
}

/* Nested lists */
.legal-content ol ol {
    margin-top: 0.8rem;
    list-style-type: lower-alpha;
}
