:root {
  --void: #040816;
  --abyss: #070e26;
  --cobalt-deep: #0b1b4d;
  --cobalt-mid: #12307f;
  --electric: #5a80ff;
  --ice-blue: #8eabff;
  --cyan: #38bdf8;
  --gold: #f5b942;
  --emerald: #10b981;
  --rose: #fb7185;

  --light-bg: #f4f7ff;
  --light-surface: #ffffff;
  --light-border: rgba(11, 27, 77, 0.12);
  --light-ink: #060d24;
  --light-muted: #475569;

  --dark-ink: #f8faff;
  --dark-muted: #94a7d6;
  --dark-border: rgba(142, 171, 255, 0.16);
  --dark-glass: rgba(9, 18, 46, 0.68);

  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

section[id], div[id] {
  scroll-margin-top: 84px;
}

body {
  font-family: var(--font-sans);
  background: var(--void);
  color: var(--dark-ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* Scroll Progress Hairline */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--electric), var(--gold));
  z-index: 999;
  transition: width 0.08s linear;
}

/* Custom Magnetic Cursor (desktop pointer only) */
@media (hover: hover) and (pointer: fine) {
  .cursor-dot, .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease;
  }
  .cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--cyan);
  }
  .cursor-ring {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(142, 171, 255, 0.55);
    transition: width 0.22s var(--ease-out-expo), height 0.22s var(--ease-out-expo), border-color 0.2s, background 0.2s;
  }
  .cursor-ring.active {
    width: 54px;
    height: 54px;
    border-color: var(--cyan);
    background: rgba(90, 128, 255, 0.09);
  }
}

@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* Minimalist Floating Top Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 16px 0;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
  background: rgba(4, 8, 22, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--dark-border);
  padding: 12px 0;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-orbit {
  width: 52px;
  height: 40px;
  border-radius: 11px;
  background: #ffffff;
  padding: 2px;
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 18px rgba(90, 128, 255, 0.28);
  flex-shrink: 0;
}

.brand-orbit img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 9px;
  display: block;
}

.brand-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.brand-meta span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ice-blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-telemetry {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--dark-muted);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--dark-border);
  background: rgba(11, 27, 77, 0.38);
  color: var(--dark-ink);
}

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

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.55; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Tactile Pill Buttons */
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.28s var(--ease-out-expo), background 0.22s, border-color 0.22s, box-shadow 0.25s;
  white-space: nowrap;
}

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

.pill-btn-sm {
  padding: 8px 15px;
  font-size: 0.78rem;
}

.pill-primary {
  background: #ffffff;
  color: var(--void);
  box-shadow: 0 10px 30px rgba(90, 128, 255, 0.26);
}

.pill-primary:hover {
  background: #e4ecff;
}

.pill-electric {
  background: linear-gradient(135deg, var(--electric), var(--cyan));
  color: var(--void);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.25);
}

.pill-ghost {
  background: rgba(142, 171, 255, 0.08);
  border-color: var(--dark-border);
  color: var(--dark-ink);
}

.pill-ghost:hover {
  border-color: var(--ice-blue);
  background: rgba(90, 128, 255, 0.16);
}

.pill-dark {
  background: var(--void);
  color: #ffffff;
}

.pill-dark:hover {
  background: var(--cobalt-deep);
}

.pill-outline-dark {
  background: transparent;
  border-color: var(--light-border);
  color: var(--light-ink);
}

.pill-outline-dark:hover {
  border-color: var(--cobalt-mid);
  background: rgba(11, 27, 77, 0.06);
}

.pill-gold {
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  color: #090d1a;
}

.menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--dark-border);
  background: rgba(11, 27, 77, 0.45);
  color: var(--dark-ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
}

.menu-trigger:hover {
  border-color: var(--cyan);
}

/* Full-Screen Editorial Overlay Menu (Inspired by antigravity.id) */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(4, 8, 22, 0.96);
  backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 64px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-16px);
  transition: opacity 0.35s var(--ease-out-expo), transform 0.35s var(--ease-out-expo), visibility 0.35s;
  overflow-y: auto;
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
  margin: 28px 0;
}

.menu-nav-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.menu-nav-item a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(142, 171, 255, 0.1);
  transition: padding-left 0.25s var(--ease-out-expo), color 0.2s;
}

.menu-nav-item a:hover {
  padding-left: 14px;
  color: var(--cyan);
}

.menu-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--electric);
}

.menu-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.menu-sub {
  margin-left: auto;
  font-size: 0.84rem;
  color: var(--dark-muted);
}

.menu-side-panel {
  background: rgba(11, 27, 77, 0.32);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  gap: 18px;
}

/* CHAPTER 1: Interactive Particle Lift-Off Hero */
.hero-stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 120px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(18, 48, 127, 0.45), transparent 70%),
    radial-gradient(circle at 82% 28%, rgba(56, 189, 248, 0.14), transparent 40%),
    var(--void);
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 24px 0 44px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ice-blue);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.4vw, 5.7rem);
  font-weight: 600;
  line-height: 1.01;
  letter-spacing: -0.038em;
  max-width: 1080px;
  margin-bottom: 28px;
}

.hero-title .muted-word {
  color: rgba(228, 236, 255, 0.45);
  font-weight: 500;
}

.hero-title .glow-word {
  background: linear-gradient(120deg, #ffffff 10%, var(--ice-blue) 52%, var(--cyan) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-split-bar {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: end;
  margin-top: 18px;
}

.hero-desc {
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  color: var(--dark-muted);
  max-width: 580px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* Floating Quick-Help Console Pill Strip */
.hero-console {
  background: rgba(7, 14, 38, 0.78);
  border: 1px solid var(--dark-border);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-md);
  padding: 20px;
}

.console-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ice-blue);
  margin-bottom: 12px;
}

.console-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-action {
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--dark-border);
  background: rgba(18, 48, 127, 0.25);
  color: var(--dark-ink);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.chip-action:hover {
  border-color: var(--cyan);
  background: rgba(56, 189, 248, 0.16);
  transform: translateY(-1px);
}

/* Infinite Kinetic Marquee */
.marquee-strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
  background: rgba(7, 14, 38, 0.7);
  overflow: hidden;
  padding: 14px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 40px;
  animation: marquee 34s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice-blue);
}

.marquee-strip:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* CHAPTER 2: Stark Light Editorial Contrast Band */
.light-band {
  background: var(--light-bg);
  color: var(--light-ink);
  padding: clamp(72px, 9vw, 118px) 0;
}

.chapter-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.light-band .chapter-tag { color: var(--cobalt-mid); }
.dark-band .chapter-tag { color: var(--ice-blue); }

.editorial-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}

.editorial-h2 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.metric-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.metric-tile {
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s;
}

.metric-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(11, 27, 77, 0.08);
}

.metric-val {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  font-weight: 700;
  color: var(--cobalt-mid);
  line-height: 1;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--light-ink);
}

.metric-sub {
  font-size: 0.78rem;
  color: var(--light-muted);
  margin-top: 4px;
}

/* CHAPTER 3: Numbered Interactive Practice Index + Sticky Dossier */
.practice-band {
  background: #ffffff;
  color: var(--light-ink);
  border-top: 1px solid var(--light-border);
  padding: clamp(72px, 9vw, 114px) 0;
}

.practice-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  align-items: start;
  margin-top: 40px;
}

.practice-list {
  display: grid;
}

.practice-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 22px 18px;
  border-bottom: 1px solid var(--light-border);
  cursor: pointer;
  transition: background 0.22s, padding-left 0.25s var(--ease-out-expo);
  text-align: left;
  background: transparent;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
}

.practice-row:first-child {
  border-top: 1px solid var(--light-border);
}

.practice-row:hover, .practice-row.active {
  background: var(--light-bg);
  padding-left: 26px;
}

.practice-row.active .p-num {
  color: var(--electric);
}

.p-num {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--light-muted);
}

.p-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 600;
  color: var(--light-ink);
  display: block;
}

.p-sub {
  font-size: 0.84rem;
  color: var(--light-muted);
}

.p-arrow {
  font-size: 1.15rem;
  color: var(--cobalt-mid);
  transition: transform 0.2s;
}

.practice-row.active .p-arrow {
  transform: translateX(4px);
}

.dossier-sticky {
  position: sticky;
  top: 96px;
  background: var(--void);
  color: var(--dark-ink);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 30px 70px rgba(4, 8, 22, 0.22);
  border: 1px solid rgba(90, 128, 255, 0.28);
}

.dossier-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(90, 128, 255, 0.16);
  color: var(--ice-blue);
  border: 1px solid rgba(142, 171, 255, 0.3);
  margin-bottom: 14px;
}

.dossier-sticky h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

.dossier-list {
  list-style: none;
  display: grid;
  gap: 9px;
  margin: 18px 0 22px;
  font-size: 0.86rem;
  color: #cbd5e1;
}

.dossier-list li::before {
  content: '→ ';
  color: var(--cyan);
  font-weight: 700;
}

/* CHAPTER 4: Dark Band — Spotlight App Ecosystem Bento */
.dark-band {
  background: var(--void);
  color: var(--dark-ink);
  padding: clamp(72px, 9vw, 114px) 0;
  position: relative;
}

.bento-apps {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.bento-card {
  grid-column: span 3;
  position: relative;
  overflow: hidden;
  background: var(--dark-glass);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: transform 0.28s var(--ease-out-expo), border-color 0.25s;
}

.bento-card.featured {
  grid-column: span 6;
  background: linear-gradient(135deg, rgba(18, 48, 127, 0.48), rgba(7, 14, 38, 0.88));
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(90, 128, 255, 0.22), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

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

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(142, 171, 255, 0.52);
}

.app-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--dark-border);
  color: var(--ice-blue);
}

.bento-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.bento-card p {
  font-size: 0.85rem;
  color: var(--dark-muted);
}

.bento-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--dark-border);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--cyan);
}

/* CHAPTER 5: Financial Workbench (Precision Instrument Panel) */
.workbench-band {
  background: linear-gradient(180deg, var(--abyss) 0%, var(--void) 100%);
  padding: clamp(72px, 9vw, 114px) 0;
  border-top: 1px solid var(--dark-border);
}

.workbench-shell {
  background: rgba(7, 14, 38, 0.88);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(2, 6, 23, 0.7);
  margin-top: 36px;
}

.workbench-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 24px;
  background: rgba(11, 27, 77, 0.35);
  border-bottom: 1px solid var(--dark-border);
}

.wb-tab {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--dark-border);
  background: transparent;
  color: var(--dark-muted);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.wb-tab.active {
  background: #ffffff;
  color: var(--void);
  border-color: transparent;
}

.wb-tab:hover:not(.active) {
  color: #ffffff;
  border-color: var(--ice-blue);
}

.wb-panel {
  display: none;
  padding: 30px;
}

.wb-panel.active {
  display: block;
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dark-muted);
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--dark-border);
  background: rgba(4, 8, 22, 0.85);
  color: var(--dark-ink);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--cyan);
}

.result-instrument {
  background: rgba(4, 8, 22, 0.72);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.winner-banner {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.36);
  color: #6ee7b7;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.regime-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.regime-card {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--dark-border);
  background: rgba(11, 27, 77, 0.22);
}

.regime-card.winner {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.09);
}

.regime-card small {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--dark-muted);
  text-transform: uppercase;
}

.regime-card .amount {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  margin: 6px 0 4px;
}

/* Visual Comparison Bar */
.bar-wrap {
  margin: 14px 0 18px;
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  gap: 5px;
  font-size: 0.76rem;
  color: var(--dark-muted);
}

.bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(142, 171, 255, 0.12);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--electric), var(--cyan));
  transition: width 0.45s var(--ease-out-expo);
}

.bar-fill.old {
  background: linear-gradient(90deg, #f59e0b, #fb7185);
}

.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--dark-border);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

th, td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--dark-border);
}

th {
  background: rgba(11, 27, 77, 0.45);
  color: var(--ice-blue);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tr:last-child td { border-bottom: none; }

.clickable-rows tbody tr {
  cursor: pointer;
  transition: background 0.18s ease;
}

.clickable-rows tbody tr:hover {
  background: rgba(90, 128, 255, 0.14);
}

.rate-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, 0.32);
  display: inline-block;
}

/* CHAPTER 6: Dual Portals (Light Contrast + Dark Glass Terminal) */
.portals-band {
  background: var(--light-bg);
  color: var(--light-ink);
  padding: clamp(72px, 9vw, 114px) 0;
}

.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}

.portal-box {
  background: #ffffff;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 20px 50px rgba(11, 27, 77, 0.06);
}

.portal-box .field label { color: var(--light-muted); }
.portal-box .field input,
.portal-box .field select {
  background: var(--light-bg);
  color: var(--light-ink);
  border-color: var(--light-border);
}

.portal-workspace {
  display: none;
  margin-top: 28px;
  background: var(--void);
  color: var(--dark-ink);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid rgba(90, 128, 255, 0.35);
  box-shadow: 0 30px 70px rgba(4, 8, 22, 0.25);
}

.portal-workspace.active {
  display: block;
}

.workspace-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--dark-border);
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.ws-card {
  background: rgba(11, 27, 77, 0.28);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

@media (min-width: 900px) {
  .ws-card-wide { grid-column: span 2; }
}

.status-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  display: inline-block;
}

.status-filed { background: rgba(16, 185, 129, 0.16); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.4); }
.status-review { background: rgba(245, 185, 66, 0.16); color: #fcd34d; border-color: rgba(245, 185, 66, 0.4); }
.status-pending { background: rgba(251, 113, 133, 0.16); color: #fda4af; border-color: rgba(251, 113, 133, 0.4); }

/* CHAPTER 7: Regional Corridor, Voices, Careers & Monumental Footer */
.corridor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 36px 0 56px;
}

.corridor-card {
  background: var(--dark-glass);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.quote-card {
  background: rgba(11, 27, 77, 0.25);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--electric);
}

.career-contact-band {
  background: #ffffff;
  color: var(--light-ink);
  padding: clamp(72px, 9vw, 110px) 0;
}

.career-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 32px 0 64px;
}

.career-tile {
  background: var(--light-bg);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.contact-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  background: var(--void);
  color: var(--dark-ink);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 44px);
}

/* Monumental Footer */
.monument-footer {
  background: var(--void);
  color: var(--dark-ink);
  padding: 72px 0 32px;
  border-top: 1px solid var(--dark-border);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 52px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ice-blue);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 9px;
  font-size: 0.86rem;
  color: var(--dark-muted);
}

.footer-col a:hover { color: #ffffff; }

.footer-wordmark {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 7.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  background: linear-gradient(180deg, rgba(228, 236, 255, 0.28) 0%, rgba(18, 48, 127, 0.08) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  margin-bottom: 20px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--dark-border);
  font-size: 0.8rem;
  color: var(--dark-muted);
}

/* Modal & Toast & Floating Dock */
.floating-dock {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  display: flex;
  gap: 10px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(4, 8, 22, 0.8);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open { display: flex; }

.modal-dialog {
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  background: #070e26;
  color: var(--dark-ink);
  border: 1px solid rgba(142, 171, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65);
}

.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.modal-close {
  background: transparent;
  border: 1px solid var(--dark-border);
  color: var(--dark-ink);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  cursor: pointer;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--void);
  border: 1px solid var(--cyan);
  color: #ffffff;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  z-index: 700;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Reveal on Scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1080px) {
  .hero-split-bar, .editorial-split, .practice-layout, .tool-grid, .portal-grid, .contact-split, .menu-grid {
    grid-template-columns: 1fr;
  }
  .bento-card, .bento-card.featured { grid-column: span 6; }
  .corridor-grid, .quote-grid, .career-strip, .footer-top { grid-template-columns: 1fr 1fr; }
  .header-telemetry { display: none; }
}

@media (max-width: 680px) {
  .bento-card, .bento-card.featured { grid-column: span 12; }
  .corridor-grid, .quote-grid, .career-strip, .footer-top, .metric-bento, .form-grid, .regime-compare {
    grid-template-columns: 1fr;
  }
  .header-actions .hide-mobile { display: none; }
  .floating-dock { right: 12px; bottom: 12px; }
  .monument-footer { padding-bottom: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .pulse-dot { animation: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

@media print {
  .site-header, .menu-overlay, .floating-dock, .workbench-tabs, .pill-btn, #heroCanvas, .cursor-dot, .cursor-ring {
    display: none !important;
  }
  body, .workbench-band, .result-instrument {
    background: #ffffff !important;
    color: #000000 !important;
  }
}
