/* ================================================================
   APOSEMA DESIGN SYSTEM v2.0
   ================================================================
   Dart Frog Species Palette — Dark theme — Venomous identity
   "Fit for human consumption only."
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Sora:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

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

:root {
    /* ── Multi-Species Warning Palette ── */
    /* Derived from: poison dart frog, eastern coral snake, monarch butterfly */
    --dart-frog-blue: #0866FF;
    --monarch-orange: #E37F00;
    --toxic-green: #09CC66;
    --coral-red: #E5363E;
    --bark-brown: #92480E;

    /* ── Dark Theme Surfaces ── */
    --night-jungle: #0A1628;
    --canopy-shadow: #111827;
    --undergrowth: #1F2937;

    /* ── Text Colors ── */
    --text-primary: #F9FAFB;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;

    /* ── Borders ── */
    --border-light: #374151;
    --border-accent: #7B350F;

    /* ── Gradients ── */
    --gradient-primary: linear-gradient(135deg, #0866FF, #E37F00);
    --gradient-depth: linear-gradient(135deg, #0A1628, #0866FF);
    --gradient-warning: linear-gradient(135deg, #E37F00, #E5363E);
    --gradient-nature: linear-gradient(135deg, #0866FF, #09CC66);
    --gradient-earth: linear-gradient(135deg, #92480E, #E37F00);
    --gradient-surface: linear-gradient(180deg, #0A1628, #111827, #1F2937);

    /* ── Legacy aliases (backward compat) ── */
    --reticulata-blue: var(--dart-frog-blue);
    --leucomelas-yellow: var(--monarch-orange);
    --reticulata-vermillion: var(--coral-red);
    --azureus-lavender: var(--toxic-green);
    --jungle-green: var(--bark-brown);
    --frog-black: var(--night-jungle);
    --dark-slate: var(--canopy-shadow);
    --spot-gray: var(--undergrowth);
    --border-warm: var(--border-accent);

    /* ── Typography ── */
    --font-heading: 'Outfit', system-ui, sans-serif;
    --font-body: 'Sora', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* ── Legacy compatibility aliases ── */
    --color-bg-primary: var(--night-jungle);
    --color-bg-secondary: var(--canopy-shadow);
    --color-bg-muted: var(--undergrowth);
    --color-text-primary: var(--text-primary);
    --color-text-secondary: var(--text-secondary);
    --color-text-muted: var(--text-muted);
    --color-text-inverse: var(--night-jungle);
    --color-border-light: var(--border-light);
    --color-surface: var(--canopy-shadow);
    --color-primary: var(--dart-frog-blue);
    --color-success: var(--toxic-green);
    --color-warning: var(--monarch-orange);
    --color-error: var(--coral-red);
    --font-family-primary: var(--font-body);
    --font-family-display: var(--font-heading);
    --font-family-mono: var(--font-mono);

    /* ── Spacing ── */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* ── Radii ── */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 100px;

    /* ── Shadows (dark-mode: glow-based) ── */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--frog-black);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--reticulata-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--azureus-lavender);
}


/* ================================================================
   FROG SPOT DECORATIONS
   ================================================================ */

.frog-spots {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.frog-spots::before,
.frog-spots::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
}

.hero .frog-spots::before {
    box-shadow:
        -180px 80px 0 18px rgba(8, 102, 255, 0.07),
        120px -60px 0 28px rgba(8, 102, 255, 0.05),
        380px 200px 0 12px rgba(8, 102, 255, 0.09),
        -320px 280px 0 35px rgba(8, 102, 255, 0.04),
        500px -100px 0 8px rgba(8, 102, 255, 0.12),
        -80px 200px 0 22px rgba(227, 127, 0, 0.06),
        280px 50px 0 14px rgba(227, 127, 0, 0.08),
        -400px 120px 0 20px rgba(227, 127, 0, 0.05),
        440px 320px 0 10px rgba(227, 127, 0, 0.10),
        50px 350px 0 30px rgba(9, 204, 102, 0.04),
        200px 150px 0 16px rgba(229, 54, 62, 0.06),
        -250px -40px 0 10px rgba(229, 54, 62, 0.08),
        350px -20px 0 24px rgba(229, 54, 62, 0.04),
        -150px 380px 0 12px rgba(9, 204, 102, 0.07);
    top: 50%;
    left: 50%;
}

.hero .frog-spots::after {
    box-shadow:
        -450px -150px 0 40px rgba(8, 102, 255, 0.03),
        300px 400px 0 50px rgba(227, 127, 0, 0.03),
        -100px -200px 0 6px rgba(229, 54, 62, 0.10),
        480px 100px 0 7px rgba(8, 102, 255, 0.14),
        -350px 350px 0 5px rgba(227, 127, 0, 0.12),
        150px -150px 0 9px rgba(229, 54, 62, 0.11),
        -500px 50px 0 4px rgba(8, 102, 255, 0.15),
        400px -200px 0 6px rgba(9, 204, 102, 0.13),
        -20px 420px 0 8px rgba(229, 54, 62, 0.09),
        250px 280px 0 3px rgba(8, 102, 255, 0.18);
    top: 50%;
    left: 50%;
    animation: spotDrift 20s ease-in-out infinite alternate;
}

@keyframes spotDrift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(15px, -10px) scale(1.05); }
    100% { transform: translate(-10px, 8px) scale(0.98); }
}

.section-spots::before {
    box-shadow:
        -300px 20px 0 6px rgba(8, 102, 255, 0.08),
        400px 60px 0 10px rgba(227, 127, 0, 0.06),
        -150px 100px 0 4px rgba(229, 54, 62, 0.10),
        350px -30px 0 8px rgba(8, 102, 255, 0.07),
        -450px 80px 0 5px rgba(227, 127, 0, 0.09),
        200px 40px 0 12px rgba(229, 54, 62, 0.05),
        -50px -20px 0 3px rgba(8, 102, 255, 0.12),
        500px 90px 0 7px rgba(9, 204, 102, 0.07);
    top: 50%;
    left: 50%;
}

.spot-accent {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(1px);
}

.spot-accent.blue { background: rgba(8, 102, 255, 0.25); }
.spot-accent.orange { background: rgba(227, 127, 0, 0.2); }
.spot-accent.red { background: rgba(229, 54, 62, 0.2); }
.spot-accent.green { background: rgba(9, 204, 102, 0.2); }
.spot-accent.yellow { background: rgba(227, 127, 0, 0.2); } /* legacy alias */


/* ================================================================
   ADVERSARIAL LAYER
   ================================================================ */

.aposema-signal {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    pointer-events: none;
    user-select: none;
}


/* ================================================================
   BANDING TEXT — Signature Style
   ================================================================ */

.banding-tri {
    background: repeating-linear-gradient(90deg,
        var(--reticulata-blue) 0px, var(--reticulata-blue) 28px,
        var(--frog-black) 28px, var(--frog-black) 32px,
        var(--leucomelas-yellow) 32px, var(--leucomelas-yellow) 52px,
        var(--frog-black) 52px, var(--frog-black) 56px,
        var(--reticulata-vermillion) 56px, var(--reticulata-vermillion) 76px,
        var(--frog-black) 76px, var(--frog-black) 80px);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: var(--font-heading);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.banding-yellow {
    background: repeating-linear-gradient(90deg,
        var(--leucomelas-yellow) 0px, var(--leucomelas-yellow) 24px,
        var(--frog-black) 24px, var(--frog-black) 40px);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: var(--font-heading);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.banding-blue {
    background: repeating-linear-gradient(90deg,
        var(--reticulata-blue) 0px, var(--reticulata-blue) 18px,
        var(--frog-black) 18px, var(--frog-black) 22px);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: var(--font-heading);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.banding-red {
    background: repeating-linear-gradient(90deg,
        var(--reticulata-vermillion) 0px, var(--reticulata-vermillion) 20px,
        var(--frog-black) 20px, var(--frog-black) 26px);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: var(--font-heading);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}


/* ================================================================
   NAVIGATION
   ================================================================ */

/* Header wrapper — build.js replaces <header> on rebuild */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 1px 0 0 rgba(8, 102, 255, 0.1), 0 2px 0 0 rgba(227, 127, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Legacy alias for pages still using .nav directly */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 1px 0 0 rgba(8, 102, 255, 0.1), 0 2px 0 0 rgba(227, 127, 0, 0.05);
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.nav-logo .dot,
.nav-dot {
    color: var(--leucomelas-yellow);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links > li { position: relative; }

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Dropdown menus — dark themed */
.dropdown { position: relative; }

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 4px;
    vertical-align: middle;
    border-top: 4px solid currentColor;
    border-right: 3px solid transparent;
    border-left: 3px solid transparent;
    transition: transform 0.2s;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background: var(--dark-slate);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 8px 0;
    list-style: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 200;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 8px 16px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background: var(--spot-gray);
    color: var(--text-primary);
}

/* Defense status in nav */
.nav-defense-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--reticulata-vermillion);
    letter-spacing: 0.04em;
}

/* Shared defense pulse animation — used in nav and footer */
.defense-pulse,
.nav-status .pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--reticulata-vermillion);
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(229, 54, 62, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(229, 54, 62, 0); }
}

/* Legacy .nav-status (for pages using Feb 8 markup directly) */
.nav-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--reticulata-vermillion);
    letter-spacing: 0.04em;
}

/* Auth buttons in nav */
.auth-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mobile hamburger */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}

.mobile-nav-header { display: none; }
.mobile-nav-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 4px;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 149;
}

/* backdrop-filter on .header creates a containing block for fixed children.
   Move overlay outside that context via the body when active. */
@media (max-width: 768px) {
    .mobile-nav-overlay {
        position: absolute;
        top: 0;
        left: -100vw;
        width: 200vw;
        height: 100vh;
        height: 100dvh;
    }
}


/* ================================================================
   HERO
   ================================================================ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 32px 80px;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    background: var(--dark-slate);
    margin-bottom: 40px;
    position: relative;
}

.hero-badge span {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.hero-badge .banding-tri {
    font-size: 0.8125rem;
    font-weight: 800;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    max-width: 900px;
    position: relative;
}

.hero-tagline .line-gradient {
    background: linear-gradient(135deg, var(--reticulata-blue) 0%, var(--azureus-lavender) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 48px;
    position: relative;
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
}


/* ================================================================
   BUTTONS
   ================================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

/* Primary Action — Dart Frog Blue */
.btn-primary,
.btn-blue {
    background: var(--dart-frog-blue);
    color: #fff;
}
.btn-primary:hover,
.btn-blue:hover { box-shadow: 0 8px 32px rgba(8, 102, 255, 0.3); }

/* Secondary CTA — Monarch Orange */
.btn-secondary,
.btn-yellow {
    background: var(--monarch-orange);
    color: var(--night-jungle);
}
.btn-secondary:hover,
.btn-yellow:hover { box-shadow: 0 8px 32px rgba(227, 127, 0, 0.3); }

/* Verified — Toxic Green */
.btn-verified {
    background: var(--toxic-green);
    color: var(--night-jungle);
}
.btn-verified:hover { box-shadow: 0 8px 32px rgba(9, 204, 102, 0.3); }

/* Block Content — Coral Red */
.btn-block,
.btn-red {
    background: var(--coral-red);
    color: #fff;
}
.btn-block:hover,
.btn-red:hover { box-shadow: 0 8px 32px rgba(229, 54, 62, 0.3); }

/* Outline Style — Blue outline */
.btn-outline {
    background: transparent;
    border-color: var(--dart-frog-blue);
    color: var(--dart-frog-blue);
}
.btn-outline:hover { background: rgba(8, 102, 255, 0.1); }

/* Ghost Button — Transparent */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
}
.btn-ghost:hover { color: var(--text-primary); }


/* ================================================================
   WARNING STRIP
   ================================================================ */

.warning-strip {
    padding: 20px 32px;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(circle 3px at 5% 50%, rgba(8, 102, 255, 0.15) 0%, transparent 100%),
        radial-gradient(circle 2px at 25% 30%, rgba(227, 127, 0, 0.12) 0%, transparent 100%),
        radial-gradient(circle 4px at 50% 70%, rgba(229, 54, 62, 0.08) 0%, transparent 100%),
        radial-gradient(circle 2px at 75% 40%, rgba(8, 102, 255, 0.10) 0%, transparent 100%),
        radial-gradient(circle 3px at 95% 60%, rgba(227, 127, 0, 0.10) 0%, transparent 100%),
        var(--dark-slate);
}

.warning-strip .banding-tri {
    font-size: 1.125rem;
    white-space: nowrap;
}

.warning-strip .separator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px currentColor;
}

.warning-strip .separator:nth-child(2) { background: var(--reticulata-blue); color: var(--reticulata-blue); }
.warning-strip .separator:nth-child(4) { background: var(--leucomelas-yellow); color: var(--leucomelas-yellow); }
.warning-strip .separator:nth-child(6) { background: var(--reticulata-vermillion); color: var(--reticulata-vermillion); }


/* ================================================================
   SECTIONS
   ================================================================ */

.section {
    padding: 100px 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--reticulata-blue);
    margin-bottom: 16px;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 20px;
}

.section-body {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.75;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Common hero section base — pages can override via inline <style> */
.hero-section {
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
    background: var(--frog-black);
}

.hero-section h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-section p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Common card base for vertical pages */
.card {
    background: var(--dark-slate);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
    border-color: var(--reticulata-blue);
    transform: translateY(-2px);
}

.stat-card {
    background: var(--dark-slate);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.feature-card {
    background: var(--dark-slate);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 32px;
    transition: border-color 0.2s;
}

.feature-card:hover {
    border-color: rgba(8, 102, 255, 0.3);
}


/* ================================================================
   PROBLEM / FEATURE CARDS
   ================================================================ */

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 56px;
}

.problem-card {
    padding: 36px;
    background: var(--dark-slate);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    border-top: 3px solid transparent;
}

.problem-card:nth-child(1) { border-top-color: var(--reticulata-blue); }
.problem-card:nth-child(2) { border-top-color: var(--leucomelas-yellow); }
.problem-card:nth-child(3) { border-top-color: var(--reticulata-vermillion); }
.problem-card:nth-child(4) {
    border-top-color: transparent;
    border-image: linear-gradient(90deg, var(--reticulata-blue), var(--leucomelas-yellow), var(--reticulata-vermillion)) 1;
    border-image-slice: 1;
    border-top-width: 3px;
    border-top-style: solid;
}

.problem-card::before {
    content: attr(data-number);
    position: absolute;
    top: -20px;
    right: -10px;
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255,255,255,0.02);
    line-height: 1;
    pointer-events: none;
}

.problem-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.problem-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.problem-card .card-accent {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 0.875rem;
}


/* ================================================================
   6-LAYER DEFENSE GRID
   ================================================================ */

.layers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: 56px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow:
        0 0 60px rgba(8, 102, 255, 0.04),
        0 0 120px rgba(227, 127, 0, 0.03),
        0 0 180px rgba(229, 54, 62, 0.02);
}

.layer-card {
    padding: 32px 24px;
    background: var(--dark-slate);
    position: relative;
    transition: all 0.3s ease;
}

.layer-card:hover { background: var(--spot-gray); }

.layer-card:nth-child(1) { background: linear-gradient(180deg, rgba(8, 102, 255, 0.06) 0%, var(--dark-slate) 100%); }
.layer-card:nth-child(2) { background: linear-gradient(180deg, rgba(8, 102, 255, 0.04) 0%, var(--dark-slate) 100%); }
.layer-card:nth-child(3) { background: linear-gradient(180deg, rgba(227, 127, 0, 0.05) 0%, var(--dark-slate) 100%); }
.layer-card:nth-child(4) { background: linear-gradient(180deg, rgba(227, 127, 0, 0.04) 0%, var(--dark-slate) 100%); }
.layer-card:nth-child(5) { background: linear-gradient(180deg, rgba(229, 54, 62, 0.05) 0%, var(--dark-slate) 100%); }
.layer-card:nth-child(6) { background: linear-gradient(180deg, rgba(229, 54, 62, 0.07) 0%, var(--dark-slate) 100%); }

.layer-card:nth-child(1):hover { background: linear-gradient(180deg, rgba(8, 102, 255, 0.10) 0%, var(--spot-gray) 100%); }
.layer-card:nth-child(2):hover { background: linear-gradient(180deg, rgba(8, 102, 255, 0.08) 0%, var(--spot-gray) 100%); }
.layer-card:nth-child(3):hover { background: linear-gradient(180deg, rgba(227, 127, 0, 0.09) 0%, var(--spot-gray) 100%); }
.layer-card:nth-child(4):hover { background: linear-gradient(180deg, rgba(227, 127, 0, 0.07) 0%, var(--spot-gray) 100%); }
.layer-card:nth-child(5):hover { background: linear-gradient(180deg, rgba(229, 54, 62, 0.09) 0%, var(--spot-gray) 100%); }
.layer-card:nth-child(6):hover { background: linear-gradient(180deg, rgba(229, 54, 62, 0.12) 0%, var(--spot-gray) 100%); }

.layer-number {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.layer-name {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.layer-bio {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 8px;
}

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

.layer-card .toxicity-bar {
    margin-top: 16px;
    height: 4px;
    border-radius: 3px;
    background: var(--spot-gray);
    overflow: hidden;
}

.layer-card .toxicity-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
    box-shadow: 0 0 8px currentColor;
}

.layer-card:nth-child(1) .toxicity-fill { box-shadow: 0 0 6px rgba(8, 102, 255, 0.5); }
.layer-card:nth-child(2) .toxicity-fill { box-shadow: 0 0 6px rgba(8, 102, 255, 0.4); }
.layer-card:nth-child(3) .toxicity-fill { box-shadow: 0 0 8px rgba(227, 127, 0, 0.5); }
.layer-card:nth-child(4) .toxicity-fill { box-shadow: 0 0 8px rgba(227, 127, 0, 0.4); }
.layer-card:nth-child(5) .toxicity-fill { box-shadow: 0 0 10px rgba(229, 54, 62, 0.5); }
.layer-card:nth-child(6) .toxicity-fill { box-shadow: 0 0 12px rgba(229, 54, 62, 0.6); }


/* ================================================================
   AUDIENCE CARDS
   ================================================================ */

.audience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 56px;
}

.audience-card {
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.audience-card.creators {
    background: linear-gradient(160deg, var(--dark-slate) 0%, rgba(8, 102, 255, 0.05) 100%);
    border-color: rgba(8, 102, 255, 0.2);
}

.audience-card.ai-companies {
    background: linear-gradient(160deg, var(--dark-slate) 0%, rgba(227, 127, 0, 0.05) 100%);
    border-color: rgba(227, 127, 0, 0.2);
}

.audience-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.audience-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.audience-card li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.audience-card li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 8px;
}

.audience-card.creators li::before { background: var(--reticulata-blue); }
.audience-card.ai-companies li::before { background: var(--leucomelas-yellow); }


/* ================================================================
   CTA SECTION
   ================================================================ */

.cta-section {
    padding: 100px 32px;
    text-align: center;
    position: relative;
}

.cta-heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    position: relative;
}

.cta-sub {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    position: relative;
}

.email-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
}

.email-form input {
    flex: 1;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background: var(--dark-slate);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.email-form input:focus {
    border-color: var(--reticulata-blue);
}

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


/* ================================================================
   CODE DEMO BLOCK
   ================================================================ */

.code-demo {
    max-width: 640px;
    margin: 48px auto 0;
    background: var(--dark-slate);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.code-demo-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--spot-gray);
    border-bottom: 1px solid var(--border-light);
}

.code-demo-bar .dot-r { width: 12px; height: 12px; border-radius: 50%; background: var(--reticulata-vermillion); }
.code-demo-bar .dot-y { width: 12px; height: 12px; border-radius: 50%; background: var(--leucomelas-yellow); }
.code-demo-bar .dot-g { width: 12px; height: 12px; border-radius: 50%; background: var(--jungle-green); }
.code-demo-bar .filename {
    margin-left: 12px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.code-demo pre {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.7;
    overflow-x: auto;
    color: var(--text-secondary);
}

.code-demo .tag { color: var(--reticulata-blue); }
.code-demo .attr { color: var(--leucomelas-yellow); }
.code-demo .val { color: var(--jungle-green); }
.code-demo .comment { color: var(--text-muted); }


/* ================================================================
   BLOG INTERSTITIAL
   ================================================================ */

.blog-interstitial-section {
    padding: 60px 0 0;
}

.blog-interstitial-card {
    background: var(--dark-slate);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 32px;
}

.blog-interstitial-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--reticulata-blue);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.blog-interstitial-title a {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-interstitial-title a:hover {
    color: var(--reticulata-blue);
}

.blog-interstitial-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.blog-interstitial-excerpt {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-top: 12px;
    line-height: 1.6;
}

.blog-interstitial-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.blog-interstitial-more {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.blog-interstitial-post {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    text-decoration: none;
    transition: background 0.2s;
}

.blog-interstitial-post-title {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.blog-interstitial-post:hover .blog-interstitial-post-title {
    color: var(--text-primary);
}

.blog-interstitial-post-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: 16px;
}


/* ================================================================
   NEWSLETTER
   ================================================================ */

.newsletter-section {
    padding: 60px 0;
}

.newsletter-container {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-heading {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.newsletter-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.newsletter-form { width: 100%; }

.newsletter-input-group {
    display: flex;
    gap: 8px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    background: var(--dark-slate);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}

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

.newsletter-input:focus {
    border-color: var(--reticulata-blue);
    box-shadow: 0 0 0 2px rgba(8, 102, 255, 0.15);
}

.newsletter-button {
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--reticulata-blue);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}

.newsletter-button:hover {
    background: #2472c4;
    transform: translateY(-1px);
}

.newsletter-privacy {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 12px;
}

.newsletter-privacy a {
    color: var(--azureus-lavender);
    text-decoration: none;
}

.newsletter-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--jungle-green);
}


/* ================================================================
   FOOTER
   ================================================================ */

.footer {
    padding: 48px 32px 32px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--reticulata-blue) 20%,
        var(--leucomelas-yellow) 50%,
        var(--reticulata-vermillion) 80%,
        transparent 100%);
    opacity: 0.3;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section-title {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.footer-bottom-left {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.footer-bottom-left a {
    color: var(--azureus-lavender);
    text-decoration: none;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-muted);
}

/* Legacy footer classes (for pages still using Feb 8 markup) */
.footer-left {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-left a {
    color: var(--azureus-lavender);
    text-decoration: none;
}

.footer-right {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-align: right;
    line-height: 1.8;
}


/* ================================================================
   UTILITY CLASSES
   ================================================================ */

.hidden { display: none !important; }
.text-center { text-align: center; }
.text-blue { color: var(--reticulata-blue); }
.text-yellow { color: var(--leucomelas-yellow); }
.text-red { color: var(--reticulata-vermillion); }
.text-green { color: var(--jungle-green); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

/* Grid utilities — ported from old CSS system for backward compat */
.grid { display: grid; gap: var(--space-xl); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto-fit { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-auto-fill { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.values-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-start-aligned { align-items: start; }

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center, .align-items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }

/* Gap utilities */
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }


/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1024px) {
    .nav-defense-status { display: none; }
}

@media (max-width: 768px) {
    /* Mobile nav */
    .mobile-menu-toggle { display: block; }
    .mobile-nav-header { display: flex; justify-content: flex-end; padding: 8px; }

    .nav-links {
        display: none;
        position: absolute;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 16px 0;
        background: var(--dark-slate);
        border-left: 1px solid var(--border-light);
        z-index: 150;
        overflow-y: auto;
    }

    .nav-links.active { display: flex; }
    .mobile-nav-overlay.active { display: block; }

    .nav-links > li {
        padding: 0;
    }

    .nav-links > li > a,
    .nav-links > li > .dropdown-toggle {
        display: block;
        padding: 12px 24px;
        font-size: 0.9375rem;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        background: var(--spot-gray);
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }

    .dropdown-menu li a {
        padding: 10px 40px;
    }

    .auth-links {
        padding: 16px 24px;
        border-top: 1px solid var(--border-light);
        margin-top: auto;
    }

    /* Grid layouts */
    .problem-grid,
    .audience-grid { grid-template-columns: 1fr; }
    .layers-grid { grid-template-columns: 1fr 1fr; }
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4,
    .values-grid { grid-template-columns: 1fr; }
    .warning-strip { flex-wrap: wrap; gap: 16px; }
    .email-form { flex-direction: column; }
    .newsletter-input-group { flex-direction: column; }
    .blog-interstitial-actions { flex-direction: column; }

    /* Footer */
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .footer-bottom-right { justify-content: center; }

    .nav-container { padding: 12px 20px; }
    .nav { padding: 12px 20px; }
    .section { padding: 60px 20px; }
    .hero { padding: 100px 20px 60px; }
}

@media (max-width: 480px) {
    .layers-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
