
/* ================================================================
   SimplyCodes Shared Chrome — Nav + Footer + Base
   Brand: #03FF88  |  Font: DM Sans / DM Mono
   ================================================================ */

/* ── Self-hosted fonts (served from Worker /fonts/) ───────────── */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('/fonts/dm-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url('/fonts/dm-mono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-sans-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/dm-sans.woff2') format('woff2');
}

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 100%; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { font-family: 'DM Sans', -apple-system, sans-serif; background-color: #000; color: #fff; line-height: 1.5; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }
::selection { background: #03FF88; color: #000; }

/* Common utilities */
.font-mono { font-family: 'DM Mono', monospace; }
.text-neon { color: #03FF88; }
.bg-neon  { background-color: #03FF88; }
.border-neon { border-color: #03FF88; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

/* Animations shared by both pages */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite; }
.pulse-dot-sm { width: 5px; height: 5px; border-radius: 50%; background: #10b981; animation: pulse 2s infinite; display: inline-block; }

/* ── Nav ─────────────────────────────────────────────────────── */
nav {
    border-bottom: 1px solid #1f2937;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
    height: 64px;
    padding: 0 16px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}
@media (min-width: 768px) { nav { padding: 16px 32px; } }
@media (min-width: 1280px) { nav { height: 72px; } }
/* max-width: none overrides system.css .container { max-width: 80rem; margin: 0 auto } */
nav .container { max-width: none; margin: 0; padding: 0; height: 100%; width: 100%; }
nav .nav-content { display: flex; align-items: center; justify-content: space-between; height: 100%; width: 100%; }
nav .nav-left { display: flex; align-items: center; }
nav .logo { display: flex; align-items: center; text-decoration: none; color: #fff; margin-right: 32px; }
@media (min-width: 1280px) { nav .logo { margin-right: 40px; } }
nav .nav-links { display: none; align-items: center; gap: 1.5rem; }
@media (min-width: 768px) { nav .nav-links { display: flex; } }
/* Higher specificity than system.css .nav-links a (0,1,1) to prevent color/padding override */
nav .nav-links .nav-link { font-size: 0.875rem; font-weight: 500; color: #fff; text-decoration: none; transition: color 0.2s; padding: 0; background: none; border-radius: 0; }
nav .nav-links .nav-link:hover { color: #d4d4d4; background: none; }
nav .nav-links .nav-link.active-page { color: #fff; }
nav .nav-links .nav-link:focus-visible { outline: 2px solid rgba(255,255,255,0.8); outline-offset: 3px; border-radius: 2px; }
nav .live-indicator { width: 0.5rem; height: 0.5rem; border-radius: 50%; background-color: #10b981; animation: pulse 2s infinite; }
nav .nav-right { display: flex; align-items: center; gap: 8px; }
@media (min-width: 1280px) { nav .nav-right { gap: 16px; } }
/* Higher specificity than system.css .nav-right a (0,1,1) to prevent color/padding override */
nav .nav-right .api-link { display: none; font-size: 0.75rem; font-family: 'DM Mono', monospace; color: #6b7280; text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em; transition: color 0.2s; padding: 0; background: none; border-radius: 0; }
@media (min-width: 1024px) { nav .nav-right .api-link { display: block; } }
nav .nav-right .api-link:hover { color: #03FF88; background: none; }
nav .nav-right .login-link { display: inline-flex; align-items: center; font-size: 0.875rem; font-weight: 500; color: #000; background-color: #fff; padding: 8px 16px; border-radius: 6px; text-decoration: none; transition: background-color 0.15s; line-height: 1; }
nav .nav-right .login-link:hover { background-color: #e5e7eb; color: #000; }
nav .nav-right .cta-button { display: inline-flex; align-items: center; background-color: #03FF88; color: #000; font-size: 0.875rem; font-weight: 700; padding: 8px 16px; border-radius: 6px; text-decoration: none; transition: background-color 0.15s; line-height: 1; }
nav .nav-right .cta-button:hover { background-color: #00d474; }
nav .nav-right .login-link:focus-visible { outline: 2px solid rgba(255,255,255,0.8); outline-offset: 3px; border-radius: 4px; }
nav .nav-right .cta-button:focus-visible { outline: 2px solid rgba(255,255,255,0.8); outline-offset: 3px; border-radius: 4px; }

/* ── Hamburger button — hidden above 768px ───────────────────── */
.hamburger-btn { display: none; flex-direction: column; justify-content: space-between; width: 24px; height: 18px; flex-shrink: 0; }
.hamburger-btn span { display: block; width: 100%; height: 2px; background: #fff; border-radius: 1px; transition: transform 0.2s, opacity 0.2s; }
.hamburger-btn.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 767px) {
    .hamburger-btn { display: flex; }
    nav .nav-right { display: none; }
}

/* ── Mobile dropdown menu ────────────────────────────────────── */
.mobile-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background-color: #000; border-bottom: 1px solid #1f2937; padding: 4px 20px 24px; flex-direction: column; z-index: 50; max-height: calc(100vh - 64px); overflow-y: auto; }
.mobile-menu.open { display: flex; }
.mobile-menu-link { display: block; font-size: 1rem; font-weight: 500; color: #fff; text-decoration: none; padding: 14px 0; border-bottom: 1px solid #1f2937; transition: color 0.2s; }
.mobile-menu-link:hover { color: #9ca3af; }
.mobile-menu-link.active-page { color: #03FF88; }
.mobile-menu-cta { display: flex; align-items: center; justify-content: center; background-color: #03FF88; color: #000; font-size: 0.875rem; font-weight: 700; padding: 12px 24px; border-radius: 6px; text-decoration: none; transition: background-color 0.15s; margin-top: 16px; width: 100%; box-sizing: border-box; }
.mobile-menu-cta:hover { background-color: #00d474; }

/* ── Footer ──────────────────────────────────────────────────── */
footer { background: #000; color: #fff; padding: 1.5rem; }
/* Inner content area — 4 sections + social col on one row */
footer .footer-inner { max-width: 1348px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 768px) { footer .footer-inner { flex-direction: row; gap: 2rem; align-items: flex-start; justify-content: space-between; flex-wrap: nowrap; } }
@media (min-width: 1024px) { footer .footer-inner { gap: 3rem; } }
/* Social + store column — last in DOM so it appears on the right */
footer .footer-social-col { display: flex; flex-direction: column; gap: 1.5rem; flex-shrink: 0; }
footer .footer-social-icons { list-style: none; display: flex; flex-direction: row; gap: 1.25rem; flex-wrap: wrap; padding: 0; margin: 0; }
footer .footer-social-icons a { color: #fff; text-decoration: none; transition: opacity 0.2s; display: flex; align-items: center; }
footer .footer-social-icons a:hover { opacity: 0.7; }
footer .footer-social-icons svg { width: 20px; height: 20px; flex-shrink: 0; }
/* Store badges */
footer .footer-store-badges { display: flex; flex-direction: row; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
@media (min-width: 768px) { footer .footer-store-badges { flex-direction: column; align-items: flex-start; gap: 0.75rem; } }
footer .store-badge-link img { height: 30px; border-radius: 6px; display: block; }
/* Collapsible content sections */
footer .footer-section { border-top: 1px solid #374151; padding: 0.25rem 0; min-width: 120px; }
@media (min-width: 768px) { footer .footer-section { border-top: none; padding: 0; } }
footer .footer-section-title { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: none; color: #fff; font-size: 0.9375rem; font-weight: 500; cursor: pointer; padding: 0.5rem 0; font-family: inherit; text-align: left; }
footer .footer-section-title::after { content: "▾"; font-size: 0.7rem; transition: transform 0.15s ease; flex-shrink: 0; margin-left: 0.5rem; }
@media (min-width: 768px) { footer .footer-section-title { cursor: default; } footer .footer-section-title::after { display: none; } }
footer .footer-section-title[aria-expanded="true"]::after { transform: rotate(180deg); }
footer .footer-section-links { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; padding: 0; margin: 0; overflow: hidden; max-height: 0; transition: max-height 0.2s ease, padding 0.2s ease; }
footer .footer-section-links.open { max-height: 600px; padding-top: 0.625rem; padding-bottom: 0.5rem; }
@media (min-width: 768px) { footer .footer-section-links { max-height: none; padding-top: 0.75rem; } }
footer .footer-section-links a { font-size: 0.875rem; color: #d1d5db; text-decoration: none; }
footer .footer-section-links a:hover { text-decoration: underline; }
/* Focus styles */
footer a:focus-visible { outline: 2px solid rgba(255,255,255,0.8); outline-offset: 2px; border-radius: 2px; }
/* Legal bottom bar — outside the flex row, direct child of footer */
footer .footer-legal { max-width: 1348px; margin: 1.5rem auto 0; padding-top: 1.25rem; border-top: 1px solid #374151; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; align-items: flex-start; }
footer .footer-legal-copy { font-size: 0.75rem; color: #9ca3af; max-width: 480px; line-height: 1.5; }
footer .footer-legal-copy a { color: #fff; text-decoration: underline; }
footer .footer-legal-links { list-style: none; display: flex; align-items: center; gap: 0; padding: 0; margin: 0; font-size: 0.75rem; color: #9ca3af; }
footer .footer-legal-links a { color: #9ca3af; text-decoration: none; }
footer .footer-legal-links a:hover { text-decoration: underline; }
footer .footer-legal-links .sep { margin: 0 0.625rem; }


/* ================================================================
   SimplyCodes Design System - system.css
   v1.0 | Source: SC_design_system_consolidated.md
   ================================================================
   Structure:
   0. Reset & Base
   1. Design Tokens (Primitives + Semantic)
   2. Typography Classes
   3. Layout & Spatial
   4. Nav (Glass Layer)
   5. Hero Utilities
   6. Search (Autocomplete)
   7. Ticker
   8. Stats Strip
   9. Section Utilities
   10. Card System
   11. Buttons & Links
   12. Code Blocks
   13. Footer
   14. Scroll Reveal
   15. Responsive
   ================================================================ */


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

html {
    font-size: 100%;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
    scroll-padding-top: 4rem;
}

body {
    font-family: var(--font-sans);
    font-feature-settings: var(--features-sans);
    font-variant-ligatures: none;
    font-size: var(--text-size-100);
    line-height: var(--lh-24);
    color: var(--text-primary);
    background: var(--surface-base);
    overflow-x: hidden;
}

::selection { background: var(--brand-green); color: var(--gray-1000); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }


/* ================================================================
   1. DESIGN TOKENS
   ================================================================ */
:root {
    /* ---- Brand ---- */
    --brand-green: #03FF88;
    --axi-violet: #8B5CF6;

    /* ---- Gray Scale ---- */
    --gray-0: #FFFFFF;
    --gray-25: #FDFCFC;
    --gray-50: #FAFAFA;
    --gray-75: #F7F7F8;
    --gray-100: #F4F4F5;
    --gray-150: #ECECED;
    --gray-200: #E4E4E7;
    --gray-250: #DBDBDE;
    --gray-300: #D4D4D8;
    --gray-350: #B9B9BF;
    --gray-400: #A1A1AA;
    --gray-450: #898992;
    --gray-500: #71717A;
    --gray-550: #61616B;
    --gray-600: #52525B;
    --gray-650: #484850;
    --gray-700: #3F3F46;
    --gray-750: #333338;
    --gray-800: #27272A;
    --gray-850: #1F1F22;
    --gray-900: #18181B;
    --gray-925: #101013;
    --gray-950: #09090B;
    --gray-975: #040405;
    --gray-1000: #000000;
    --black-alpha-50: #00000080;

    /* ---- Green (Signal + Success) ---- */
    --green-25: #F7FFF9;
    --green-50: #F0FEF4;
    --green-100: #EBF8EE;
    --green-200: #9DFFBA;
    --green-300: #03FF88;
    --green-400: #01F984;
    --green-500: #03E67A;
    --green-600: #02C869;
    --green-700: #039F53;
    --green-800: #026E37;
    --green-850: #01461C;
    --green-900: #013314;
    --green-925: #011C0B;
    --green-950: #001407;
    --green-975: #000702;
    --green-1000: #000201;

    /* ---- Purple (Intelligence) ---- */
    --purple-25: #FCFCFE;
    --purple-50: #FAF9FE;
    --purple-100: #F4F2FF;
    --purple-200: #D7CFFF;
    --purple-300: #BCABFF;
    --purple-400: #A384FF;
    --purple-500: #8B5CF6;
    --purple-600: #8555EF;
    --purple-700: #7441DA;
    --purple-800: #5A17B7;
    --purple-850: #350189;
    --purple-900: #2A016E;

    /* ---- Blue (Info) ---- */
    --blue-100: #ECF5FF;
    --blue-200: #B0D6FE;
    --blue-300: #6EB6FF;
    --blue-400: #0394FC;
    --blue-500: #0175C9;
    --blue-600: #016FC0;
    --blue-700: #0261A7;

    /* ---- Red (Error) ---- */
    --red-100: #FFF0EF;
    --red-200: #FFC0BA;
    --red-300: #FF8A82;
    --red-400: #F64B4B;
    --red-500: #D01F2B;
    --red-600: #CA1526;
    --red-700: #B3001B;

    /* ---- Amber (Warning) ---- */
    --amber-100: #F9F4E5;
    --amber-200: #F0CF72;
    --amber-300: #CEAD50;
    --amber-400: #AD8D2B;
    --amber-500: #8C6E01;
    --amber-600: #866902;

    /* ---- Pink (Deals) ---- */
    --pink-300: #E780FF;
    --pink-400: #D244F0;
    --pink-500: #AF0ECC;

    /* ---- Semantic Tokens (Dark Mode Primary) ---- */
    --surface-base: var(--gray-1000);
    --surface-layer: var(--gray-925);
    --surface-inset: var(--gray-975);
    --surface-elevated: var(--gray-950);
    --surface-control: var(--gray-800);
    --surface-overlay: var(--black-alpha-50);
    --surface-selected: var(--green-900);

    --border-primary: var(--gray-750);
    --border-secondary: var(--gray-850);
    --border-focus: var(--gray-50);
    --border-selected: var(--green-700);

    --text-primary: var(--gray-50);
    --text-secondary: var(--gray-300);
    --text-tertiary: var(--gray-400);
    --text-muted: var(--gray-500);
    --text-disabled: var(--gray-600);

    --text-brand-primary: var(--green-300);
    --text-brand-secondary: var(--purple-300);

    --action-primary: var(--brand-green);
    --action-secondary: var(--gray-950);
    --action-hover: var(--gray-50);
    --text-on-action: var(--gray-1000);
    --action-disabled: var(--gray-850);

    /* ---- Typography ---- */
    --font-sans: 'DM Sans', -apple-system, sans-serif;
    --font-mono: 'DM Mono', 'SF Mono', monospace;
    --features-sans: "ss02" 1, "liga" 0;
    --features-mono: "ss03" 1, "ss05" 1;

    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;

    --text-size-80: 0.694rem;
    --text-size-90: 0.833rem;
    --text-size-100: 1rem;
    --text-size-200: 1.2rem;
    --text-size-300: 1.44rem;
    --text-size-400: 1.728rem;
    --text-size-500: 2.074rem;
    --text-size-600: 2.488rem;
    --text-size-700: 2.986rem;
    --text-size-800: 3.583rem;
    --text-size-900: 4rem;

    --lh-16: 1rem;
    --lh-20: 1.25rem;
    --lh-24: 1.5rem;
    --lh-28: 1.75rem;
    --lh-32: 2rem;
    --lh-40: 2.5rem;
    --lh-48: 3rem;
    --lh-56: 3.5rem;
    --lh-64: 4rem;
    --lh-72: 4.5rem;

    --tracking-tight-4: -0.04em;
    --tracking-tight-3: -0.03em;
    --tracking-tight-2: -0.02em;
    --tracking-tight-1: -0.01em;
    --tracking-normal: 0em;
    --tracking-wide: 0.125em;

    --opacity-muted: 0.6;

    /* ---- Spacing ---- */
    --space-05: 0.125rem;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* ---- Shape ---- */
    --radius-none: 0;
    --radius-sm: 0.375em;
    --radius-md: 0.5em;
    --radius-lg: 0.625em;
    --radius-xl: 1em;
    --radius-2xl: 1.25em;
    --radius-full: 50%;

    --border-width-hairline: 1px;
    --border-width-thin: 2px;
    --border-width-medium: 3px;
    --border-width-thick: 4px;

    /* ---- Depth ---- */
    --z-void: 0;
    --z-surface: 10;
    --z-glass: 20;
    --z-focus: 30;
    --z-critical: 100;
    --shadow-modal: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
    --shadow-glow: 0 0 10px rgba(3, 255, 136, 0.3);
    --blur-suppress: 2px;
    --blur-hud: 12px;

    /* ---- Motion ---- */
    --ease-industrial: cubic-bezier(0.2, 0.0, 0.0, 1.0);
    --ease-pulse: cubic-bezier(0.4, 0.0, 0.6, 1.0);
    --duration-snap: 100ms;
    --duration-slide: 300ms;
    --duration-narrative: 500ms;

    /* ---- Container ---- */
    --container-max: 80rem;
    --nav-height: 3.5rem;
}


/* ================================================================
   2. TYPOGRAPHY CLASSES
   ================================================================ */

/* Heading Utilities (Element-Agnostic) */
.text-display { font-size: var(--text-size-900); line-height: var(--lh-72); font-weight: var(--weight-medium); letter-spacing: var(--tracking-tight-4); text-wrap: balance; }
.text-h1 { font-size: var(--text-size-900); line-height: var(--lh-72); font-weight: var(--weight-medium); letter-spacing: var(--tracking-tight-4); text-wrap: balance; }
.text-h2 { font-size: var(--text-size-700); line-height: var(--lh-56); font-weight: var(--weight-medium); letter-spacing: var(--tracking-tight-2); text-wrap: balance; }
.text-h3 { font-size: var(--text-size-600); line-height: var(--lh-48); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-tight-2); }
.text-h4 { font-size: var(--text-size-500); line-height: var(--lh-40); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-tight-1); }
.text-h5 { font-size: var(--text-size-400); line-height: var(--lh-32); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-tight-1); }
.text-h6 { font-size: var(--text-size-300); line-height: var(--lh-28); font-weight: var(--weight-semibold); }

/* Body */
.text-body-large { font-size: var(--text-size-200); line-height: var(--lh-28); }
.text-body { font-size: var(--text-size-100); line-height: var(--lh-24); }
.text-body-comfortable { font-size: var(--text-size-100); line-height: 1.6; }
.text-small { font-size: var(--text-size-90); line-height: var(--lh-16); }

/* Labels */
.text-label {
    font-size: var(--text-size-80);
    line-height: var(--lh-16);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
}

/* Mono */
.text-mono {
    font-family: var(--font-mono);
    font-feature-settings: var(--features-mono);
    font-size: var(--text-size-90);
    line-height: var(--lh-16);
}
.text-mono-caps {
    font-family: var(--font-mono);
    font-feature-settings: var(--features-mono);
    text-transform: uppercase;
    font-size: var(--text-size-80);
    line-height: var(--lh-16);
    letter-spacing: var(--tracking-wide);
}

/* Weight Modifiers */
.font-regular { font-weight: var(--weight-regular); }
.font-medium { font-weight: var(--weight-medium); }
.font-semibold { font-weight: var(--weight-semibold); }
.font-bold { font-weight: var(--weight-bold); }

/* Color Modifiers */
.text-green { color: var(--brand-green); }
.text-purple { color: var(--purple-300); }
.text-dim { color: var(--text-tertiary); }
.text-muted-c { color: var(--text-muted); }


/* ================================================================
   3. LAYOUT & SPATIAL
   ================================================================ */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-6); }

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

/* Grid utilities */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-span-full { grid-column: 1 / -1; }

/* Gap */
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-12 { gap: var(--space-12); }

/* Margin */
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }


/* ================================================================
   4. NAV (Glass Layer)
   ================================================================ */
#site-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: var(--z-glass);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(var(--blur-hud)) saturate(1.5);
    -webkit-backdrop-filter: blur(var(--blur-hud)) saturate(1.5);
}
.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    gap: var(--space-6);
}
.nav-left {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}
.nav-logo {
    display: flex;
    align-items: center;
    font-weight: var(--weight-semibold);
    font-size: var(--text-size-100);
    color: var(--gray-0);
    letter-spacing: var(--tracking-tight-1);
    text-decoration: none;
    white-space: nowrap;
}
.nav-logo-wrap {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.nav-cobrand {
    font-size: 10px;
    font-weight: var(--weight-regular);
    color: var(--text-disabled);
    letter-spacing: 0.02em;
    line-height: 1;
}
.nav-cobrand-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--duration-snap);
}
.nav-cobrand-link:hover {
    color: var(--purple-300);
}
.nav-center {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    flex: 1;
    min-width: 0;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
}
.nav-links a {
    font-size: var(--text-size-90);
    font-weight: var(--weight-medium);
    color: var(--text-muted);
    transition: color var(--duration-snap);
    padding: 6px var(--space-3);
    border-radius: var(--radius-md);
}
.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}
.nav-links a.active { color: var(--text-primary); }
.nav-links a.nav-mono {
    font-family: var(--font-mono);
    font-feature-settings: var(--features-mono);
    letter-spacing: var(--tracking-wide);
}
.nav-live { display: inline-flex; align-items: center; gap: var(--space-1); }

.nav-divider {
    width: 1px;
    height: 16px;
    background: var(--gray-800);
    margin: 0 var(--space-2);
    flex-shrink: 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    flex-shrink: 0;
}
.nav-right a {
    font-size: var(--text-size-90);
    font-weight: var(--weight-medium);
    color: var(--text-muted);
    transition: color var(--duration-snap), background var(--duration-snap);
    padding: 6px var(--space-3);
    border-radius: var(--radius-md);
}
.nav-right a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--brand-green);
    color: var(--gray-1000);
    padding: 6px var(--space-4);
    border-radius: var(--radius-md);
    font-size: var(--text-size-90);
    font-weight: var(--weight-semibold);
    margin-left: var(--space-2);
    transition: opacity var(--duration-snap), box-shadow var(--duration-snap);
}
.nav-cta:hover {
    opacity: 0.9;
    box-shadow: var(--shadow-glow);
    color: var(--gray-1000);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    padding: var(--space-1);
}


/* ================================================================
   5. HERO UTILITIES
   ================================================================ */
.hero {
    position: relative;
    padding: 8rem 0 var(--space-16);
    text-align: center;
    overflow: hidden;
}
.hero-grid-bg {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image:
        linear-gradient(var(--gray-700) 1px, transparent 1px),
        linear-gradient(90deg, var(--gray-700) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
.hero-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(3, 255, 136, 0.06) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Page Hero (simpler, for inner pages) */
.page-hero {
    position: relative;
    padding: 7rem 0 var(--space-12);
    overflow: hidden;
}
.page-hero .hero-grid-bg { opacity: 0.03; }
.page-hero .hero-glow { height: 300px; opacity: 0.7; }

/* Status Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-secondary);
    background: var(--surface-layer);
    font-family: var(--font-mono);
    font-feature-settings: var(--features-mono);
    font-size: var(--text-size-80);
    color: var(--text-muted);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
}
.badge strong { color: var(--text-secondary); }


/* ================================================================
   6. SEARCH (Autocomplete)
   ================================================================ */
.search-container { position: relative; }
.search-bar {
    display: flex;
    align-items: center;
    background: var(--surface-layer);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 4px;
    transition: border-color var(--duration-slide) var(--ease-industrial), box-shadow var(--duration-slide) var(--ease-industrial);
}
.search-bar:focus-within {
    border-color: rgba(3, 255, 136, 0.4);
    box-shadow: 0 0 0 3px rgba(3, 255, 136, 0.06);
}
.search-icon {
    display: flex;
    align-items: center;
    padding: 0 var(--space-3) 0 var(--space-4);
    color: var(--text-muted);
    font-size: 1.25rem;
}
.search-bar input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: var(--text-size-100);
    font-weight: var(--weight-medium);
    padding: var(--space-3) var(--space-2);
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-btn {
    background: var(--action-primary);
    color: var(--text-on-action);
    padding: var(--space-3) var(--space-6);
    border-radius: calc(var(--radius-xl) - 4px);
    font-size: var(--text-size-90);
    font-weight: var(--weight-semibold);
    white-space: nowrap;
    transition: opacity var(--duration-snap);
}
.search-btn:hover { opacity: 0.9; }
.search-suggestions {
    margin-top: var(--space-3);
    font-size: var(--text-size-90);
    color: var(--text-muted);
}
.search-suggestions a {
    color: var(--text-tertiary);
    font-family: var(--font-mono);
    font-feature-settings: var(--features-mono);
    font-size: var(--text-size-80);
    transition: color var(--duration-snap);
}
.search-suggestions a:hover { color: var(--brand-green); }
.search-suggestions .sep { margin: 0 var(--space-2); color: var(--border-primary); }

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--surface-layer);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: none;
    z-index: var(--z-focus);
}
.autocomplete-dropdown.active { display: block; }
.ac-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    transition: background var(--duration-snap);
    cursor: pointer;
    text-decoration: none;
}
.ac-item:hover { background: var(--surface-elevated); }
.ac-item-left { display: flex; align-items: center; gap: var(--space-3); }
.ac-item-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: var(--surface-elevated);
    border: 1px solid var(--border-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--weight-semibold);
    font-size: var(--text-size-90);
    color: var(--text-secondary);
    flex-shrink: 0;
}
.ac-item-name { font-weight: var(--weight-medium); color: var(--text-primary); font-size: var(--text-size-90); }
.ac-item-domain {
    font-family: var(--font-mono);
    font-feature-settings: var(--features-mono);
    font-size: var(--text-size-80);
    color: var(--text-muted);
    margin-left: var(--space-2);
}
.ac-item-right { display: flex; align-items: center; gap: var(--space-3); }
.ac-item-codes {
    font-family: var(--font-mono);
    font-feature-settings: var(--features-mono);
    font-size: var(--text-size-80);
    color: var(--text-muted);
}
.ac-health {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-feature-settings: var(--features-mono);
    font-size: var(--text-size-80);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}
.ac-health.green { color: var(--green-300); background: var(--green-925); }
.ac-health.amber { color: var(--amber-400); background: rgba(140, 110, 1, 0.12); }
.ac-health.red { color: var(--red-400); background: rgba(208, 31, 43, 0.12); }


/* ================================================================
   7. TICKER
   ================================================================ */
#site-ticker {
    border-top: 1px solid var(--border-secondary);
    border-bottom: 1px solid var(--border-secondary);
    background: var(--surface-layer);
    padding: var(--space-3) 0;
    overflow: hidden;
}
.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: ticker-scroll 60s linear infinite;
}
.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0 var(--space-8);
    font-family: var(--font-mono);
    font-feature-settings: var(--features-mono);
    font-size: var(--text-size-80);
    color: var(--text-muted);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
}
.ticker-dot {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}
.ticker-dot.verified { background: var(--brand-green); }
.ticker-dot.rejected { background: var(--red-400); }
.ticker-dot.flagged { background: var(--amber-400); }
.ticker-dot.detected { background: var(--blue-400); }
.ticker-merchant { color: var(--text-secondary); font-weight: var(--weight-medium); }
.ticker-time { color: var(--text-disabled); }

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ================================================================
   8. STATS STRIP
   ================================================================ */
.stats {
    padding: var(--space-12) 0;
    border-bottom: 1px solid var(--border-secondary);
}
.stat-num {
    font-family: var(--font-mono);
    font-feature-settings: var(--features-mono);
    font-size: var(--text-size-500);
    font-weight: var(--weight-medium);
    color: var(--gray-0);
    letter-spacing: var(--tracking-tight-2);
    line-height: var(--lh-40);
}
.stat-num.green { color: var(--brand-green); }
.stat-label {
    font-family: var(--font-mono);
    font-feature-settings: var(--features-mono);
    font-size: var(--text-size-80);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-top: var(--space-1);
}


/* ================================================================
   9. SECTION UTILITIES
   ================================================================ */
.section { padding: var(--space-24) 0; }
.section-bordered { border-bottom: 1px solid var(--border-secondary); }
.section-elevated {
    background: var(--surface-layer);
    border-top: 1px solid var(--border-secondary);
    border-bottom: 1px solid var(--border-secondary);
}

.section-label {
    font-family: var(--font-mono);
    font-feature-settings: var(--features-mono);
    font-size: var(--text-size-80);
    font-weight: var(--weight-medium);
    color: var(--brand-green);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.section-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--brand-green);
    transform: rotate(45deg);
    flex-shrink: 0;
}
.section-title {
    font-size: var(--text-size-700);
    line-height: var(--lh-56);
    font-weight: var(--weight-medium);
    color: var(--gray-0);
    letter-spacing: var(--tracking-tight-2);
    text-wrap: balance;
    margin-bottom: var(--space-4);
}
.section-desc {
    font-size: var(--text-size-200);
    line-height: var(--lh-28);
    color: var(--text-muted);
    max-width: 560px;
}


/* ================================================================
   10. CARD SYSTEM
   ================================================================ */

/* Panel (base card) */
.panel {
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    background: var(--surface-elevated);
    border: 1px solid var(--border-secondary);
    transition: border-color var(--duration-slide) var(--ease-industrial);
}
.panel:hover { border-color: var(--border-primary); }
.panel-inset {
    padding: var(--space-4);
    border-radius: var(--radius-xl);
    background: var(--surface-inset);
    border: 1px solid var(--border-secondary);
}
.panel-flush { padding: 0; }

/* Card Tag */
.card-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-mono);
    font-feature-settings: var(--features-mono);
    font-size: var(--text-size-80);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    padding: 2px var(--space-2);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-secondary);
    background: var(--surface-inset);
    margin-bottom: var(--space-4);
    color: var(--text-muted);
}
.card-tag.green { color: var(--brand-green); border-color: var(--green-900); }
.card-tag.purple { color: var(--purple-300); border-color: rgba(139, 92, 246, 0.2); }
.card-tag.blue { color: var(--blue-400); border-color: rgba(3, 148, 252, 0.2); }

/* Store Card */
.store-card {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-secondary);
    background: var(--surface-elevated);
    transition: border-color var(--duration-slide) var(--ease-industrial);
    text-decoration: none;
}
.store-card:hover { border-color: var(--border-primary); }
.store-card-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--surface-layer);
    border: 1px solid var(--border-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--weight-semibold);
    font-size: var(--text-size-90);
    color: var(--text-secondary);
    flex-shrink: 0;
}
.store-card-name {
    font-size: var(--text-size-90);
    font-weight: var(--weight-medium);
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.store-card-meta {
    font-family: var(--font-mono);
    font-feature-settings: var(--features-mono);
    font-size: var(--text-size-80);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

/* Dev Surface Item */
.dev-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-secondary);
    background: var(--surface-elevated);
    transition: border-color var(--duration-slide) var(--ease-industrial);
    text-decoration: none;
}
.dev-item:hover { border-color: var(--border-primary); }
.dev-item-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--surface-layer);
    border: 1px solid var(--border-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-secondary);
    font-size: 1.25rem;
}

/* Category Pill */
.pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-secondary);
    font-size: var(--text-size-80);
    font-weight: var(--weight-medium);
    color: var(--text-muted);
    transition: border-color var(--duration-snap), color var(--duration-snap);
    text-decoration: none;
}
.pill:hover { border-color: var(--border-primary); color: var(--text-secondary); }


/* ================================================================
   11. BUTTONS & LINKS
   ================================================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--action-primary);
    color: var(--text-on-action);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    font-size: var(--text-size-90);
    font-weight: var(--weight-semibold);
    transition: box-shadow var(--duration-snap);
    text-decoration: none;
}
.btn-primary:hover { box-shadow: var(--shadow-glow); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--surface-elevated);
    color: var(--text-primary);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
    font-size: var(--text-size-90);
    font-weight: var(--weight-semibold);
    transition: border-color var(--duration-snap);
    text-decoration: none;
}
.btn-ghost:hover { border-color: var(--text-muted); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-secondary);
    font-size: var(--text-size-90);
    font-weight: var(--weight-semibold);
    transition: color var(--duration-snap);
    text-decoration: none;
}
.btn-secondary:hover { color: var(--brand-green); }

.link-arrow {
    font-size: var(--text-size-90);
    font-weight: var(--weight-semibold);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    transition: color var(--duration-snap);
    text-decoration: none;
}
.link-arrow:hover { color: var(--brand-green); }


/* ================================================================
   12. CODE BLOCKS
   ================================================================ */
.code-block {
    font-family: var(--font-mono);
    font-feature-settings: var(--features-mono);
    font-size: var(--text-size-80);
    line-height: 1.8;
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    background: var(--surface-elevated);
    border: 1px solid var(--border-secondary);
    color: var(--text-muted);
    overflow-x: auto;
}
.code-block.compact { padding: var(--space-4); }

/* Syntax colors */
.syn-kw { color: var(--purple-300); }
.syn-fn { color: var(--blue-400); }
.syn-str { color: var(--brand-green); }
.syn-num { color: var(--amber-400); }
.syn-bool { color: var(--purple-300); }
.syn-key { color: var(--blue-400); }
.syn-comment { color: var(--text-disabled); }


/* ================================================================
   13. FOOTER
   ================================================================ */
#site-footer {
    border-top: 1px solid var(--border-secondary);
    padding: var(--space-16) 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(5, 1fr);
    gap: var(--space-8);
    padding-bottom: var(--space-12);
}
.footer-brand p {
    font-size: var(--text-size-90);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-4);
    max-width: 280px;
}
.footer-col h4 {
    font-family: var(--font-mono);
    font-feature-settings: var(--features-mono);
    font-size: var(--text-size-80);
    color: var(--text-disabled);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-4);
}
.footer-col a {
    display: block;
    font-size: var(--text-size-90);
    color: var(--text-muted);
    margin-bottom: var(--space-3);
    transition: color var(--duration-snap);
}
.footer-col a:hover { color: var(--text-primary); }

/* Bottom zone - PAI attribution + copyright + status */
.footer-pai-section {
    border-top: 1px solid var(--border-secondary);
    padding: var(--space-8) 0;
    display: flex;
    align-items: center;
    gap: var(--space-8);
}
.footer-pai-lockup {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity var(--duration-snap);
}
.footer-pai-lockup:hover { opacity: 0.7; }
.footer-pai-diamond {
    width: 20px;
    height: 20px;
    background: var(--axi-violet);
    transform: rotate(45deg);
    border-radius: 3px;
    flex-shrink: 0;
}
.footer-pai-text {
    flex: 1;
    min-width: 0;
}
.footer-pai-label {
    font-weight: var(--weight-medium);
    font-size: var(--text-size-100);
    color: var(--text-secondary);
    margin-bottom: 2px;
}
.footer-pai-desc {
    font-size: var(--text-size-90);
    color: var(--text-muted);
    line-height: 1.5;
}
.footer-pai-link {
    font-family: var(--font-mono);
    font-feature-settings: var(--features-mono);
    font-size: var(--text-size-80);
    color: var(--purple-300);
    text-decoration: none;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color var(--duration-snap);
}
.footer-pai-link:hover { color: var(--purple-200); }
.footer-pai-link i { margin-left: var(--space-1); }

.footer-bottom-zone {
    border-top: 1px solid var(--border-secondary);
    padding: var(--space-6) 0 var(--space-8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
}
.footer-copy {
    font-size: var(--text-size-80);
    color: var(--text-disabled);
    flex-shrink: 0;
}
.footer-status {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-mono);
    font-feature-settings: var(--features-mono);
    font-size: var(--text-size-80);
    color: var(--text-disabled);
    flex-shrink: 0;
}


/* ================================================================
   14. NAV SEARCH (Persistent)
   ================================================================ */
.nav-search-trigger {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 5px var(--space-3);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: var(--text-disabled);
    font-size: var(--text-size-90);
    cursor: pointer;
    transition: border-color var(--duration-snap), background var(--duration-snap);
    min-width: 180px;
    margin-left: var(--space-2);
}
.nav-search-trigger:hover {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}
.nav-search-trigger i { font-size: 13px; color: var(--text-disabled); }
.nav-search-trigger span { flex: 1; font-size: var(--text-size-80); }
.nav-search-trigger kbd {
    font-family: var(--font-mono);
    font-feature-settings: var(--features-mono);
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-disabled);
    line-height: 1.3;
}


/* ================================================================
   15. LIVE VERIFICATION FEED (Terminal)
   ================================================================ */
.terminal {
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    background: var(--surface-elevated);
    overflow: hidden;
}
.terminal-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border-secondary);
    background: var(--surface-inset);
}
.terminal-dots {
    display: flex;
    gap: 6px;
}
.terminal-dots span {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--gray-750);
}
.terminal-title {
    font-family: var(--font-mono);
    font-feature-settings: var(--features-mono);
    font-size: var(--text-size-80);
    color: var(--text-muted);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
}
.terminal-body {
    padding: var(--space-5) var(--space-5);
    font-family: var(--font-mono);
    font-feature-settings: var(--features-mono);
    font-size: var(--text-size-80);
    line-height: 1.7;
    color: var(--text-muted);
    overflow-x: auto;
}
.feed-body {
    padding: var(--space-4);
    max-height: 480px;
    overflow: hidden;
}
.feed-entry {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border-secondary);
    opacity: 0;
    animation: feed-in 0.4s var(--ease-industrial) forwards;
}
.feed-entry:last-child { border-bottom: none; }
.feed-entry:nth-child(1) { animation-delay: 0.3s; }
.feed-entry:nth-child(2) { animation-delay: 0.5s; }
.feed-entry:nth-child(3) { animation-delay: 0.7s; }
.feed-entry:nth-child(4) { animation-delay: 0.9s; }
.feed-entry:nth-child(5) { animation-delay: 1.1s; }
.feed-entry:nth-child(6) { animation-delay: 1.3s; }
.feed-merchant {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: 2px;
}
.feed-dot {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}
.feed-dot-green { background: var(--brand-green); }
.feed-dot-red { background: var(--red-400); }
.feed-dot-amber { background: var(--amber-400); }
.feed-merchant-name {
    color: var(--gray-0);
    font-weight: var(--weight-medium);
    font-size: var(--text-size-90);
}
.feed-detail {
    padding-left: calc(6px + var(--space-2));
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-feature-settings: var(--features-mono);
    font-size: var(--text-size-80);
    line-height: 1.5;
}
.feed-detail .verified { color: var(--green-600); font-weight: var(--weight-medium); }
.feed-detail .expired { color: var(--red-400); font-weight: var(--weight-medium); }
.feed-detail .restricted { color: var(--amber-400); font-weight: var(--weight-medium); }
.feed-scroll-indicator {
    padding: var(--space-2) var(--space-4);
    border-top: 1px solid var(--border-secondary);
    color: var(--text-disabled);
    font-family: var(--font-mono);
    font-feature-settings: var(--features-mono);
    font-size: var(--text-size-80);
    text-align: center;
}

@keyframes feed-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ================================================================
   16. STORE CARD HEALTH BAR
   ================================================================ */
.store-card-bar {
    height: 3px;
    background: var(--gray-900);
    border-radius: 2px;
    overflow: hidden;
    margin-top: var(--space-1);
}
.store-card-bar-fill {
    height: 100%;
    border-radius: 2px;
    background: var(--brand-green);
    transition: width var(--duration-slide) var(--ease-industrial);
}
.store-card-bar-fill.amber { background: var(--amber-400); }
.store-card-bar-fill.red { background: var(--red-400); }
.store-card-rate {
    font-family: var(--font-mono);
    font-feature-settings: var(--features-mono);
    font-size: var(--text-size-80);
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin-top: 2px;
}


/* ================================================================
   17. INTERACTIVE CATEGORY FILTER
   ================================================================ */
.category-filter {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: var(--space-2);
    -webkit-overflow-scrolling: touch;
}
.category-filter::-webkit-scrollbar { display: none; }
.category-pill-btn {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-secondary);
    font-size: var(--text-size-80);
    font-weight: var(--weight-medium);
    color: var(--text-muted);
    background: none;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color var(--duration-snap), color var(--duration-snap), background var(--duration-snap);
}
.category-pill-btn:hover {
    border-color: var(--border-primary);
    color: var(--text-secondary);
}
.category-pill-btn.active {
    border-color: var(--brand-green);
    color: var(--brand-green);
    background: var(--green-950);
}


/* ================================================================
   18. PAI RELATIONSHIP SECTION
   ================================================================ */
.pai-section {
    text-align: center;
    padding: var(--space-16) 0;
}
.pai-diamond-lg {
    width: 20px;
    height: 20px;
    background: var(--axi-violet);
    transform: rotate(45deg);
    border-radius: 3px;
    margin: 0 auto var(--space-6);
}
.pai-headline {
    font-size: var(--text-size-100);
    font-weight: var(--weight-medium);
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}
.pai-desc {
    font-size: var(--text-size-100);
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto var(--space-6);
    line-height: 1.6;
}
.link-arrow-purple { color: var(--purple-300); }
.link-arrow-purple:hover { color: var(--purple-200); }


/* ================================================================
   19. SECTION DIVIDERS
   ================================================================ */
.section-divider {
    border: none;
    border-top: 1px solid var(--border-secondary);
    margin: 0;
}


/* ================================================================
   20. CATEGORY DIRECTORY CARDS
   ================================================================ */
.cat-dir-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-6);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    background: var(--surface-elevated);
    text-decoration: none;
    transition: border-color var(--duration-snap), background var(--duration-snap);
}
.cat-dir-card:hover {
    border-color: var(--border-primary);
    background: var(--surface-layer);
}
.cat-dir-icon {
    font-size: 24px;
    color: var(--brand-green);
    margin-bottom: var(--space-1);
}
.cat-dir-name {
    font-size: var(--text-size-100);
    font-weight: var(--weight-medium);
    color: var(--gray-0);
}
.cat-dir-meta {
    font-family: var(--font-mono);
    font-feature-settings: var(--features-mono);
    font-size: var(--text-size-80);
    color: var(--text-muted);
    letter-spacing: 0.02em;
}
.cat-dir-top {
    font-size: var(--text-size-80);
    color: var(--text-disabled);
    line-height: 1.4;
}


@keyframes pulse-glow {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(3, 255, 136, 0.3); }
    50% { opacity: 0.6; box-shadow: 0 0 6px 2px rgba(3, 255, 136, 0.15); }
}
.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--brand-green);
    animation: pulse-glow 2s var(--ease-pulse) infinite;
    display: inline-block;
    flex-shrink: 0;
}
.pulse-dot-sm { width: 5px; height: 5px; }

.dot-green {
    width: 4px;
    height: 4px;
    border-radius: var(--radius-full);
    background: var(--brand-green);
    display: inline-block;
    flex-shrink: 0;
}


/* ================================================================
   15. SCROLL REVEAL
   ================================================================ */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--duration-narrative) var(--ease-industrial), transform var(--duration-narrative) var(--ease-industrial);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ================================================================
   16. RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .section-title { font-size: var(--text-size-600); line-height: var(--lh-48); }
    .text-display, .text-h1 { font-size: var(--text-size-800); line-height: var(--lh-64); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-center { display: none; }
    .nav-right > a:not(.nav-cta) { display: none; }
    .nav-right .nav-divider { display: none; }
    .nav-toggle { display: flex; }
    .nav-search-trigger { display: none; }

    .hero { padding: 6rem 0 var(--space-12); }
    .text-display, .text-h1 { font-size: var(--text-size-600); line-height: var(--lh-48); letter-spacing: var(--tracking-tight-3); }
    .text-h2, .section-title { font-size: var(--text-size-500); line-height: var(--lh-40); }
    .text-h3 { font-size: var(--text-size-400); line-height: var(--lh-32); }

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

    .section { padding: var(--space-16) 0; }
    .stats .grid-4 { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }

    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
    .footer-brand { grid-column: 1 / -1; }
    .footer-pai-section {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
        align-items: center;
    }
    .footer-pai-text { text-align: center; }
    .footer-bottom-zone {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
        align-items: center;
    }

    .page-hero { padding: 5.5rem 0 var(--space-8); }

    .category-filter { flex-wrap: nowrap; justify-content: flex-start; }
}
