/* ==========================================================================
   DEEPSTATE — Investigation Analysis Platform
   The site shares the application's design tokens: near-black surfaces,
   Inter + JetBrains Mono, node colours from the node registry, cyan primary
   actions and the red wordmark. Spacing follows a Fibonacci scale
   (3 · 5 · 8 · 13 · 21 · 34 · 55 · 89 · 144).
   ========================================================================== */

/* --------------------------------------------------------------------------
   TOKENS (mirrors electron/src/renderer/src/assets/main.css)
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --bg-void: #000000;
  --bg-primary: #050505;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #101010;
  --bg-elevated: #151515;
  --bg-hover: #1a1a1a;
  --bg-active: #202020;
  --bg-surface: #1a1a1a;

  /* Borders */
  --border-subtle: #1a1a1a;
  --border-medium: #252525;
  --border-bright: #333333;
  --border-strong: #333333;
  --border-glow: #404040;

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #707070;
  --text-dim: #505050;
  --text-ghost: #303030;

  /* Accents (application palette) */
  --accent-blue: #00d4ff;
  --accent-blue-bright: #40e8ff;
  --accent-blue-dim: #0088aa;
  --accent-blue-glow: rgba(0, 212, 255, 0.4);
  --accent-blue-subtle: rgba(0, 212, 255, 0.12);
  --accent-red: #ff3366;
  --accent-red-bright: #ff5588;
  --accent-red-dim: #cc1144;
  --accent-red-glow: rgba(255, 51, 102, 0.4);
  --accent-red-subtle: rgba(255, 51, 102, 0.12);
  --accent-amber: #ff9500;
  --accent-green: #22c55e;
  --accent-green-subtle: rgba(34, 197, 94, 0.15);
  --accent-purple: #aa55ff;
  --accent-purple-subtle: rgba(170, 85, 255, 0.15);
  --accent-cyan: #06b6d4;
  --accent-pink: #ff44aa;
  --accent-teal: #14b8a6;
  --accent-orange: #fb923c;
  --border-accent: var(--accent-red-glow);

  /* Node colours (shared/node-registry.ts) */
  --node-note: #00d4ff;
  --node-event: #ff3366;
  --node-prediction: #ff9500;
  --node-embed: #00ffff;
  --node-media: #aa55ff;
  --node-actor: #34d399;
  --node-organization: #ff44aa;
  --node-location: #14b8a6;
  --node-document: #facc15;
  --node-narrative: #a855f7;
  --node-newsfeed: #94a3b8;
  --node-social: #3b82f6;
  --node-rssfeed: #c45a1a;
  --node-region: #d4a574;

  /* Type */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', Menlo, monospace;

  /* Radii (application) */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Fibonacci spacing */
  --s-1: 3px;
  --s-2: 5px;
  --s-3: 8px;
  --s-4: 13px;
  --s-5: 21px;
  --s-6: 34px;
  --s-7: 55px;
  --s-8: 89px;
  --s-9: 144px;

  --container: 1320px;
  --container-width: var(--container);
  --container-narrow: 900px;
  --gutter: var(--s-6);
  --section-padding: var(--s-9);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 160ms var(--ease);
  --t-med: 320ms var(--ease);
  --t-slow: 640ms var(--ease);
  --transition-fast: var(--t-fast);
  --transition-medium: var(--t-med);
  --transition-slow: var(--t-slow);
  --glow-red: 0 0 24px var(--accent-red-glow);
  --glow-blue: 0 0 24px var(--accent-blue-glow);
  --glow-purple: none;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

::selection {
  background: var(--accent-blue-subtle);
  color: var(--text-primary);
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.mono {
  font-family: var(--font-mono);
}

:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}

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

/* --------------------------------------------------------------------------
   PAGE FURNITURE — column guides + grain (the app's dotted canvas, quietly)
   -------------------------------------------------------------------------- */
.page-guides {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.25));
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.25));
}

.page-guides-inner {
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.page-guides-inner span {
  border-left: 1px solid rgba(255, 255, 255, 0.035);
}

.page-guides-inner span:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.035);
  grid-column: 4;
  border-left: 0;
}

.page-grain {
  display: none;
}

main,
.nav,
.footer,
.download-page {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   BUTTONS (application button language)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  padding: 0 var(--s-5);
  height: 42px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  white-space: nowrap;
  transition:
    background var(--t-fast),
    color var(--t-fast),
    border-color var(--t-fast),
    box-shadow var(--t-fast),
    transform var(--t-fast);
}

.btn:active {
  transform: translateY(1px);
}

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

.btn-sm {
  height: 34px;
  padding: 0 var(--s-4);
  font-size: 13px;
}

.btn-lg {
  height: 50px;
  padding: 0 var(--s-6);
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

/* primary: the app's cyan action (Create, Send) */
.btn-primary,
.btn-accent {
  background: var(--accent-blue-dim);
  color: #ffffff;
  border-color: rgba(0, 212, 255, 0.35);
}

.btn-primary:hover,
.btn-accent:hover {
  background: #0a9fc4;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.15);
}

/* secondary: outlined surface button */
.btn-secondary,
.btn-outline-light {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-secondary:hover,
.btn-outline-light:hover {
  border-color: var(--border-glow);
  background: var(--bg-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-blue);
  transition: color var(--t-fast);
}

.text-link::after {
  content: '→';
  transition: transform var(--t-fast);
}

.text-link:hover {
  color: var(--accent-blue-bright);
}

.text-link:hover::after {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   NAVIGATION
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med), background var(--t-med);
  color: var(--text-primary);
}

.nav.scrolled {
  background: rgba(5, 5, 5, 0.9);
  border-bottom-color: var(--border-subtle);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
}

.brand-dot {
  position: relative;
  width: 10px;
  height: 10px;
  display: inline-block;
}

.brand-dot-solid {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 12px var(--accent-red-glow);
}

.brand-dot-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent-red);
  opacity: 0.4;
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* The application wordmark: heavy caps, tracked, brand red */
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-red);
  text-shadow: 0 0 20px var(--accent-red-glow);
  line-height: 1;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-left: var(--s-3);
  margin-left: var(--s-2);
  border-left: 1px solid var(--border-medium);
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-5);
}

.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: var(--s-2) 0;
  transition: color var(--t-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent-blue);
  transition: right var(--t-med);
}

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

.nav-link:hover::after {
  right: 0;
}

.nav-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

.nav-menu-btn:hover {
  background: var(--bg-hover);
}

.nav-menu-btn .close-icon {
  display: none;
}

.nav-menu-btn.active .menu-icon {
  display: none;
}

.nav-menu-btn.active .close-icon {
  display: block;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  overflow-y: auto;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-inner {
  padding: var(--s-5) var(--gutter) var(--s-7);
  display: flex;
  flex-direction: column;
}

.mobile-menu-link {
  display: flex;
  gap: var(--s-4);
  align-items: baseline;
  padding: var(--s-4) 0;
  font-size: 22px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-menu-link .mono {
  font-size: 12px;
  color: var(--text-dim);
  width: 28px;
}

.mobile-menu-cta {
  margin-top: var(--s-6);
}

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: calc(64px + var(--s-8)) 0 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 480px at 82% 12%, rgba(0, 212, 255, 0.07), transparent 60%),
    radial-gradient(700px 400px at 8% 90%, rgba(255, 51, 102, 0.06), transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 52fr 48fr;
  gap: var(--s-7);
  align-items: center;
}

.hero-text {
  padding: 0 0 var(--s-6) 0;
}

.hero-stamp {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s-6);
  padding: var(--s-2) var(--s-4);
  border: 1px solid var(--border-medium);
  border-radius: 999px;
  background: var(--bg-secondary);
}

.hero-stamp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.hero-stamp-ref {
  color: var(--text-secondary);
  padding-left: var(--s-3);
  border-left: 1px solid var(--border-medium);
}

.hero-title {
  font-size: clamp(38px, 4.6vw, 62px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: var(--s-5);
  max-width: 18ch;
}

.hero-title em {
  font-style: normal;
  color: var(--accent-blue);
}

.hero-description {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 54ch;
  margin-bottom: var(--s-6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.hero-meta li::before {
  content: '·';
  margin-right: var(--s-3);
  color: var(--accent-blue);
}

/* Case file card — styled like an application panel */
.hero-visual {
  padding-bottom: var(--s-6);
}

.hero-case-file {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 40px 80px -30px rgba(0, 0, 0, 0.9);
  cursor: pointer;
  transition: transform var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
}

.hero-case-file:hover,
.hero-case-file:focus-visible {
  transform: translateY(-3px);
  border-color: var(--border-glow);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(0, 212, 255, 0.08),
    0 50px 90px -30px rgba(0, 0, 0, 0.95);
}

.case-file-header,
.case-file-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-4);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-tertiary);
}

.case-file-header {
  border-bottom: 1px solid var(--border-subtle);
}

.case-file-footer {
  border-top: 1px solid var(--border-subtle);
  color: var(--text-dim);
}

.case-file-id {
  color: var(--text-primary);
  font-weight: 500;
}

.case-file-stamp {
  color: var(--accent-blue);
  border: 1px solid rgba(0, 212, 255, 0.3);
  background: var(--accent-blue-subtle);
  border-radius: var(--radius-sm);
  padding: 1px var(--s-3);
}

.case-file-content {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-void);
}

.case-file-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.hero-case-file:hover .case-file-content img {
  transform: scale(1.02);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.1), rgba(5, 5, 5, 0.6));
  color: var(--text-primary);
}

.play-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(5, 5, 5, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  transition: background var(--t-fast), transform var(--t-fast), border-color var(--t-fast);
}

.hero-case-file:hover .play-btn {
  background: var(--accent-blue-dim);
  border-color: var(--accent-blue);
  transform: scale(1.06);
}

.play-text {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* Ledger of facts */
.hero-ledger {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--border-subtle);
}

.ledger-item {
  padding: var(--s-5) var(--s-5) var(--s-6);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.ledger-item:last-child {
  border-right: 0;
}

.ledger-value {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.ledger-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   SECTIONS — common
   -------------------------------------------------------------------------- */
.section {
  padding: var(--s-9) 0;
}

.section-grid,
.section-header-row,
.quotes,
.pricing-grid,
.pricing-faq,
.cta-inner,
.footer-content,
.footer-meta {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-grid {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: var(--s-8);
  align-items: start;
}

.section-grid-reverse {
  grid-template-columns: 5fr 7fr;
}

.section-aside {
  position: sticky;
  top: calc(64px + var(--s-6));
}

/* The app's section labels: uppercase, tracked, muted */
.section-tag {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s-4);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--border-medium);
}

.section-num {
  color: var(--accent-red);
}

.section-title {
  font-size: clamp(28px, 2.9vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: var(--s-5);
  text-wrap: balance;
}

.section-description {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 52ch;
  margin-bottom: var(--s-5);
}

.section-header-row {
  display: grid;
  grid-template-columns: 4fr 8fr;
  column-gap: var(--s-8);
  row-gap: var(--s-3);
  margin-bottom: var(--s-7);
}

.section-header-row .section-tag {
  grid-row: 1 / span 2;
  align-self: start;
}

.section-header-row .section-title {
  grid-column: 2;
  margin-bottom: var(--s-3);
}

.section-header-row .section-description {
  grid-column: 2;
  margin-bottom: 0;
}

.pro-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-green);
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: var(--accent-green-subtle);
  border-radius: var(--radius-sm);
  padding: 1px var(--s-2);
  vertical-align: middle;
  margin-left: var(--s-3);
}

/* --------------------------------------------------------------------------
   §01 CAPABILITIES
   -------------------------------------------------------------------------- */
.capability-ledger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}

.capability {
  position: relative;
  padding: var(--s-5);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: var(--s-4);
  row-gap: var(--s-4);
  transition: border-color var(--t-med), background var(--t-med);
}

.capability:hover {
  border-color: var(--border-bright);
  background: var(--bg-tertiary);
}

.capability-index {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.capability-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--tab) 45%, transparent);
  background: color-mix(in srgb, var(--tab) 12%, var(--bg-tertiary));
  color: var(--tab, var(--text-secondary));
}

.capability-icon[data-color='blue'] { --tab: var(--accent-blue); }
.capability-icon[data-color='red'] { --tab: var(--accent-red); }
.capability-icon[data-color='green'] { --tab: var(--node-actor); }
.capability-icon[data-color='pink'] { --tab: var(--accent-pink); }
.capability-icon[data-color='amber'] { --tab: var(--accent-amber); }
.capability-icon[data-color='purple'] { --tab: var(--accent-purple); }
.capability-icon[data-color='cyan'] { --tab: var(--accent-cyan); }
.capability-icon[data-color='teal'] { --tab: var(--accent-teal); }
.capability-icon[data-color='ink'] { --tab: var(--node-newsfeed); }

.capability-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  align-self: center;
}

.capability-description {
  grid-column: 1 / -1;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   §02 NODE TYPES
   -------------------------------------------------------------------------- */
.node-types-list {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  overflow: hidden;
}

.node-type-item {
  border-bottom: 1px solid var(--border-subtle);
  --tab: var(--text-secondary);
}

.node-type-item:last-child {
  border-bottom: 0;
}

.node-type-item[data-color='blue'] { --tab: var(--node-note); }
.node-type-item[data-color='red'] { --tab: var(--node-event); }
.node-type-item[data-color='green'] { --tab: var(--node-actor); }
.node-type-item[data-color='pink'] { --tab: var(--node-organization); }
.node-type-item[data-color='amber'] { --tab: var(--node-prediction); }
.node-type-item[data-color='cyan'] { --tab: var(--node-embed); }
.node-type-item[data-color='social'] { --tab: var(--node-social); }
.node-type-item[data-color='purple'] { --tab: var(--node-media); }
.node-type-item[data-color='document'] { --tab: var(--node-document); }
.node-type-item[data-color='location'] { --tab: var(--node-location); }
.node-type-item[data-color='narrative'] { --tab: var(--node-narrative); }
.node-type-item[data-color='newsfeed'] { --tab: var(--node-newsfeed); }
.node-type-item[data-color='rssfeed'] { --tab: var(--node-rssfeed); }
.node-type-item[data-color='region'] { --tab: var(--node-region); }

.type-header {
  width: 100%;
  display: grid;
  grid-template-columns: 30px 34px 1fr auto 20px;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  text-align: left;
  position: relative;
  transition: background var(--t-fast);
}

.type-header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--tab);
  box-shadow: 0 0 10px color-mix(in srgb, var(--tab) 50%, transparent);
  opacity: 0;
  transition: opacity var(--t-med);
}

.type-header:hover,
.node-type-item.expanded .type-header {
  background: var(--bg-tertiary);
}

.node-type-item.expanded .type-header::before,
.type-header:hover::before {
  opacity: 1;
}

.type-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.type-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--tab) 40%, transparent);
  background: color-mix(in srgb, var(--tab) 12%, var(--bg-tertiary));
  color: var(--tab);
}

.type-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.type-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: right;
}

.type-chevron {
  color: var(--text-dim);
  transition: transform var(--t-med);
}

.node-type-item.expanded .type-chevron {
  transform: rotate(180deg);
}

.type-details {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-med);
  background: var(--bg-tertiary);
}

.type-details > p {
  overflow: hidden;
  padding: 0 var(--s-5) 0 calc(30px + 34px + var(--s-4) * 2 + var(--s-5));
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 68ch;
  transition: padding var(--t-med);
}

.node-type-item.expanded .type-details {
  grid-template-rows: 1fr;
}

.node-type-item.expanded .type-details > p {
  padding-bottom: var(--s-5);
}

/* --------------------------------------------------------------------------
   §03 AI — features list
   -------------------------------------------------------------------------- */
.ai-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border-medium);
  margin-top: var(--s-5);
}

.ai-feature {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  padding: var(--s-4) var(--s-4) var(--s-4) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.ai-feature:nth-child(odd) {
  padding-right: var(--s-5);
  border-right: 1px solid var(--border-subtle);
}

.ai-feature:nth-child(even) {
  padding-left: var(--s-5);
}

.ai-feature-title {
  font-weight: 600;
  font-size: 14px;
}

.ai-feature-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   §03 AI — replica of the application's agent panel
   (class names deliberately mirror main.css so the two stay in step)
   -------------------------------------------------------------------------- */
.app-mock {
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 14px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 40px 80px -30px rgba(0, 0, 0, 0.9);
}

.app-mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
  background: var(--bg-secondary);
}

.app-mock-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-mock-cpu {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
}

.app-mock-status {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-amber);
  box-shadow: 0 0 8px var(--accent-amber);
  border: 2px solid var(--bg-secondary);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}

.app-mock-title {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.app-mock-title > span:first-child {
  font-weight: 600;
  font-size: 14px;
}

.app-mock-provider {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-blue);
}

.app-mock-chevron {
  color: var(--text-muted);
}

.app-mock-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 16px 10px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.app-mock-modes {
  display: flex;
  gap: 2px;
  padding: 2px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.app-mock-modes span {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.app-mock-modes span.active {
  background: var(--accent-blue-subtle);
  color: var(--accent-blue);
}

.app-mock-convo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 5px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-mock-messages {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.msg {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.msg-user {
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  color: var(--accent-blue);
}

.msg-avatar-bot {
  color: var(--accent-purple);
}

.msg-wrap {
  flex: 1 1 0%;
  min-width: 0;
  max-width: calc(100% - 52px);
}

.msg-user .msg-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.msg-bubble {
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  font-size: 14.5px;
  line-height: 1.6;
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.msg-bubble-user {
  border: 1px solid var(--accent-blue);
}

.msg-bubble-assistant {
  border: 1px solid var(--border-subtle);
}

.context-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  justify-content: flex-end;
}

.context-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--chip);
  border: 1px solid color-mix(in srgb, var(--chip) 45%, transparent);
  background: color-mix(in srgb, var(--chip) 10%, var(--bg-secondary));
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 500;
  margin-bottom: 4px;
  background: var(--bg-tertiary);
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
  opacity: 0.8;
}

.tool-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
}

.tool-badge span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-badge svg {
  flex-shrink: 0;
}

.tool-badge-success {
  background: color-mix(in srgb, var(--accent-green) 85%, black);
  border: 1px solid color-mix(in srgb, var(--accent-green) 85%, black);
  color: #ffffff;
}

.tool-badge-pending {
  background: color-mix(in srgb, var(--accent-green) 60%, black);
  border: 1px solid color-mix(in srgb, var(--accent-green) 80%, black);
  color: color-mix(in srgb, white 85%, var(--accent-green));
  opacity: 0.85;
}

.tool-badge-expandable {
  cursor: pointer;
  margin-bottom: 4px;
}

.badge-chevron {
  opacity: 0.7;
  transform: rotate(180deg);
}

.spin {
  animation: spin 1s linear infinite;
}

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

.tool-details {
  margin: 0 0 8px 6px;
  padding-left: 10px;
  border-left: 2px solid color-mix(in srgb, var(--accent-green) 50%, transparent);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tool-details-item {
  padding: 6px 8px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--bg-primary) 80%, transparent);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  line-height: 1.4;
}

.tool-details-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.tool-details-head .t {
  color: var(--text-primary);
  font-weight: 500;
}

.tool-details-head .m {
  color: var(--text-muted);
  font-size: 11px;
  margin-left: auto;
}

.tool-details-snippet {
  color: var(--text-secondary);
  font-size: 11px;
  margin-top: 3px;
  line-height: 1.35;
}

.tool-details-url {
  color: var(--accent-cyan);
  font-size: 10px;
  margin-top: 2px;
  opacity: 0.7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thinking-trace {
  margin: 4px 0 8px;
  padding-left: 12px;
  border-left: 2px solid var(--border-medium);
  color: var(--text-secondary);
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.5;
  font-style: italic;
}

.thinking-trace span {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-orange);
  font-style: normal;
  margin-right: 6px;
}

.md p {
  margin-bottom: 0.75em;
}

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

.md ul {
  list-style: disc;
  margin: 0.5em 0;
  padding-left: 1.5em;
}

.md li {
  margin: 0.25em 0;
}

.md strong {
  font-weight: 600;
}

.app-mock-input {
  padding: 16px 18px 14px;
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.app-mock-input-box {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  min-height: 84px;
  border-radius: var(--radius-lg);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  font-size: 13.5px;
}

.app-mock-input-box svg {
  color: var(--accent-blue);
  opacity: 0.7;
  flex-shrink: 0;
}

.app-mock-input-meta {
  margin-top: 10px;
  text-align: center;
  font-size: 11px;
  color: var(--text-dim);
}

.app-mock-input-meta .acc {
  color: var(--accent-blue);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   §04 ASSURANCE
   -------------------------------------------------------------------------- */
.section-assurance {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.assurance-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}

.assurance-item {
  padding: var(--s-5);
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 144px 1fr;
  gap: var(--s-4);
}

.assurance-item dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
  padding-top: 3px;
}

.assurance-item dd {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   §05 QUOTES
   -------------------------------------------------------------------------- */
.section-testimonials {
  padding-bottom: var(--s-8);
}

.section-testimonials .section-header-row {
  margin-bottom: var(--s-5);
}

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}

.quote {
  padding: var(--s-5);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-5);
}

.quote blockquote {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-primary);
  text-wrap: pretty;
}

.quote blockquote::before {
  content: '“';
  color: var(--accent-red);
  margin-right: 2px;
}

.quote figcaption {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quote figcaption span {
  font-weight: 400;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   §06 PRICING
   -------------------------------------------------------------------------- */
.section-pricing {
  padding-top: var(--s-8);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--s-6) var(--s-5) var(--s-5);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.pricing-card-featured {
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.06);
}

.pricing-badge {
  position: absolute;
  top: var(--s-4);
  right: var(--s-5);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
  border: 1px solid rgba(0, 212, 255, 0.3);
  background: var(--accent-blue-subtle);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
}

.pricing-header {
  margin-bottom: var(--s-5);
}

.pricing-tier {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: var(--s-1);
}

.pricing-tagline {
  font-size: 13px;
  color: var(--text-muted);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  padding-bottom: var(--s-5);
  margin-bottom: var(--s-5);
  border-bottom: 1px solid var(--border-subtle);
}

.price-amount {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-period {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
  flex: 1;
}

.pricing-features li {
  display: flex;
  gap: var(--s-3);
  align-items: baseline;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.pricing-features li::before {
  font-family: var(--font-mono);
  font-size: 12px;
  flex-shrink: 0;
  width: 14px;
}

.feature-included::before {
  content: '✓';
  color: var(--accent-green);
}

.feature-included.highlight {
  color: var(--text-primary);
  font-weight: 500;
}

.feature-excluded {
  color: var(--text-dim);
}

.feature-excluded::before {
  content: '—';
  color: var(--text-dim);
}

.pricing-action {
  margin-top: auto;
}

/* Seat selector */
.seat-selector {
  margin-bottom: var(--s-5);
  padding: var(--s-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
}

.seat-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--s-3);
}

.per-seat-price {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  color: var(--text-muted);
}

.seat-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--border-bright);
  outline: none;
  margin: var(--s-3) 0;
}

.seat-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-blue);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 10px var(--accent-blue-glow);
  cursor: pointer;
}

.seat-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-blue);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 10px var(--accent-blue-glow);
  cursor: pointer;
}

.seat-range {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.volume-note {
  margin-top: var(--s-3);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

.volume-note a {
  color: var(--accent-blue);
}

/* FAQ */
.pricing-faq {
  margin-top: var(--s-8);
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: var(--s-8);
}

.pricing-faq h3 {
  font-size: 24px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6) var(--s-6);
  border-top: 1px solid var(--border-medium);
  padding-top: var(--s-5);
}

.faq-item h4 {
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: var(--s-2);
}

.faq-item p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   §07 CTA
   -------------------------------------------------------------------------- */
.section-cta {
  padding: var(--s-8) 0;
  border-top: 1px solid var(--border-subtle);
  background:
    radial-gradient(800px 300px at 50% 100%, rgba(0, 212, 255, 0.06), transparent 70%),
    var(--bg-secondary);
}

.cta-inner {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: var(--s-8);
  align-items: end;
}

.section-tag-light {
  color: var(--text-muted);
}

.cta-title {
  font-size: clamp(30px, 3.6vw, 48px);
  letter-spacing: -0.03em;
  margin-bottom: var(--s-4);
  text-wrap: balance;
}

.cta-description {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 48ch;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-void);
  color: var(--text-secondary);
  padding: var(--s-7) 0 var(--s-5);
  font-size: 13.5px;
  border-top: 1px solid var(--border-subtle);
}

.footer-content {
  display: grid;
  grid-template-columns: 5fr 2fr 2fr 3fr;
  gap: var(--s-6);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand .nav-brand {
  margin-bottom: var(--s-4);
}

.footer-tagline {
  color: var(--text-muted);
  max-width: 34ch;
  margin-bottom: var(--s-3);
}

.footer-version {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.footer-col a {
  color: var(--text-secondary);
  width: fit-content;
  transition: color var(--t-fast);
}

.footer-col a:hover {
  color: var(--accent-blue);
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--s-2);
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  padding-top: var(--s-4);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   LIGHTBOX
   -------------------------------------------------------------------------- */
.screenshot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-6);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-med), visibility var(--t-med);
}

.screenshot-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  width: min(1200px, 100%);
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content video {
  width: 100%;
  max-height: 85vh;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  background: #000;
}

.lightbox-close {
  position: absolute;
  top: var(--s-5);
  right: var(--s-5);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  transition: background var(--t-fast);
}

.lightbox-close:hover {
  background: var(--bg-hover);
}

/* --------------------------------------------------------------------------
   REVEAL (scroll / load)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--t-slow), transform var(--t-slow);
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }

  .hero-title {
    max-width: 18ch;
  }

  .hero-visual {
    max-width: 680px;
  }

  .hero-ledger {
    grid-template-columns: repeat(3, 1fr);
  }

  .ledger-item:nth-child(3n) {
    border-right: 0;
  }

  .ledger-item {
    border-bottom: 1px solid var(--border-subtle);
  }

  .section-grid,
  .section-grid-reverse,
  .section-header-row,
  .pricing-faq,
  .cta-inner {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }

  .section-aside {
    position: static;
  }

  .section-header-row .section-title,
  .section-header-row .section-description {
    grid-column: 1;
  }

  .capability-ledger {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-actions {
    justify-content: flex-start;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-menu-btn {
    display: inline-flex;
  }

  .brand-sub {
    display: none;
  }

  .quotes,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .assurance-list {
    grid-template-columns: 1fr;
  }

  .ai-features {
    grid-template-columns: 1fr;
  }

  .ai-feature,
  .ai-feature:nth-child(odd),
  .ai-feature:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
  }

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

@media (max-width: 640px) {
  :root {
    --gutter: var(--s-5);
    --s-9: 89px;
    --s-8: 55px;
  }

  .section {
    padding: var(--s-8) 0;
  }

  .hero {
    padding-top: calc(64px + var(--s-6));
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-ledger {
    grid-template-columns: 1fr 1fr;
  }

  .ledger-item:nth-child(3n) {
    border-right: 1px solid var(--border-subtle);
  }

  .ledger-item:nth-child(2n) {
    border-right: 0;
  }

  .ledger-value {
    font-size: 24px;
  }

  .capability-ledger {
    grid-template-columns: 1fr;
  }

  .type-header {
    grid-template-columns: 24px 30px 1fr 16px;
    padding-left: var(--s-4);
    padding-right: var(--s-4);
  }

  .type-desc {
    display: none;
  }

  .type-details > p {
    padding-left: var(--s-4);
    padding-right: var(--s-4);
  }

  .assurance-item {
    grid-template-columns: 1fr;
    gap: var(--s-2);
  }

  .msg-avatar {
    display: none;
  }

  .msg-wrap {
    max-width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    flex-direction: column;
  }
}

/* ==========================================================================
   SECONDARY PAGES — download / seat management / usage dashboard
   (unchanged layout; these were designed on the application palette)
   ========================================================================== */

/* ============================================
   DOWNLOAD PAGE
   ============================================ */
.download-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
}

.download-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.download-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 48px 40px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 30px 60px rgba(0, 0, 0, 0.4);
}

.download-header {
  text-align: center;
  margin-bottom: 32px;
}

.download-header h1 {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.download-header p {
  font-size: 15px;
  color: var(--text-secondary);
}

/* License Form */
.license-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.input-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.input-group input {
  padding: 16px 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  font-size: 16px;
  font-family: var(--font-mono);
  color: var(--text-primary);
  letter-spacing: -0.01em;
  text-align: center;
  transition: all var(--transition-fast);
}

.input-group input::placeholder {
  color: var(--text-dim);
  letter-spacing: -0.01em;
}

.input-group input:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(255, 51, 102, 0.15);
}

.error-message {
  padding: 14px 18px;
  background: rgba(255, 51, 102, 0.1);
  border: 1px solid rgba(255, 51, 102, 0.3);
  border-radius: 8px;
  color: var(--accent-red);
  font-size: 14px;
  text-align: center;
}

.download-footer {
  margin-top: 28px;
  text-align: center;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.download-footer p {
  font-size: 14px;
  color: var(--text-muted);
}

.download-footer a {
  color: var(--accent-blue);
  transition: color var(--transition-fast);
}

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

/* Success Badge */
.success-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: rgba(52, 211, 153, 0.15);
  color: var(--accent-green);
  border-radius: 50%;
  margin-bottom: 20px;
}

/* Tier Badge */
.tier-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 51, 102, 0.15);
  color: var(--accent-red);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Version Info */
.version-info {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.version-info span {
  font-family: var(--font-mono);
  color: var(--text-primary);
}

/* Platform Grid */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.platform-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.platform-card:hover {
  border-color: var(--accent-blue);
  background: var(--bg-elevated);
  transform: translateY(-2px);
}

.platform-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--bg-secondary);
  border-radius: 10px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.platform-card:hover .platform-icon {
  color: var(--accent-blue);
}

.platform-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.platform-name {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}

.platform-detail {
  font-size: 12px;
  color: var(--text-muted);
}

.download-icon {
  color: var(--text-muted);
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: all var(--transition-fast);
}

.platform-card:hover .download-icon {
  opacity: 1;
  transform: translateY(0);
  color: var(--accent-blue);
}

.download-note {
  text-align: center;
  margin-bottom: 24px;
}

.download-note p {
  font-size: 13px;
  color: var(--text-muted);
}

.download-note a {
  color: var(--accent-blue);
  transition: color var(--transition-fast);
}

.download-note a:hover {
  color: var(--text-primary);
}

/* Recommended badge */
.platform-card-recommended {
  border-color: var(--accent-green);
  background: rgba(52, 211, 153, 0.05);
  position: relative;
}

.platform-card-recommended:hover {
  border-color: var(--accent-green);
}

.platform-card-recommended .platform-icon {
  color: var(--accent-green);
}

.recommended-badge {
  position: absolute;
  top: -10px;
  right: 14px;
  background: var(--accent-green);
  color: #000;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Loading state */
.platform-card-loading {
  pointer-events: none;
  opacity: 0.7;
  position: relative;
}

.platform-card-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 2px solid transparent;
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Download page responsive */
@media (max-width: 600px) {
  .download-card {
    padding: 32px 24px;
  }

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

  .download-header h1 {
    font-size: 28px;
  }
}

/* ============================================
   SEAT MANAGEMENT PAGE
   ============================================ */
.seats-container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.seats-panel {
  width: 100%;
}

/* Header Card */
.seats-header-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 24px;
}

.seats-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.seats-header-info {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.seats-header-badge {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.2), rgba(255, 51, 102, 0.05));
  border: 1px solid rgba(255, 51, 102, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
  flex-shrink: 0;
}

.seats-header-title {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.seats-header-subtitle {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}

.license-key-masked {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-tertiary);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
  background: var(--bg-elevated);
}

/* Stats Row */
.seats-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 24px;
  background: var(--bg-tertiary);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.seats-stat {
  flex: 1;
  text-align: center;
  padding: 0 28px;
}

.seats-stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border-subtle);
}

.seats-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 40px;
  letter-spacing: 1px;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.seats-stat-active {
  color: var(--accent-green);
}

.seats-stat-available {
  color: var(--accent-cyan);
}

.seats-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Seats Table */
.seats-table-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}

.seats-table {
  width: 100%;
  border-collapse: collapse;
}

.seats-table thead {
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-subtle);
}

.seats-table th {
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: left;
}

.seats-table th.th-seat {
  width: 70px;
  text-align: center;
}

.seats-table th.th-key {
  width: 220px;
}

.seats-table th.th-user {
  min-width: 200px;
}

.seats-table th.th-status {
  width: 120px;
}

.seats-table th.th-date {
  width: 140px;
}

.seats-table th.th-action {
  width: 140px;
  text-align: right;
}

/* Table Rows */
.seat-row {
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
}

.seat-row:last-child {
  border-bottom: none;
}

.seat-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.seat-row td {
  padding: 20px;
  font-size: 14px;
  color: var(--text-secondary);
  vertical-align: middle;
}

.td-seat {
  text-align: center;
}

.td-key {
  min-width: 240px;
}

.seat-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.seat-row-active .seat-number {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.3);
  color: var(--accent-green);
}

.seat-row-available .seat-number {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.3);
  color: var(--accent-cyan);
}

.seat-key-code {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  letter-spacing: 1px;
}

.user-email {
  color: var(--text-primary);
  font-weight: 500;
}

.user-empty {
  color: var(--text-dim);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-active {
  background: rgba(52, 211, 153, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.status-available {
  background: rgba(0, 212, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.status-revoked {
  background: rgba(255, 51, 102, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(255, 51, 102, 0.3);
}

.td-action {
  text-align: right;
}

/* Revoke Button */
.btn-revoke {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 51, 102, 0.3);
  background: rgba(255, 51, 102, 0.1);
  color: var(--accent-red);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-revoke:hover {
  background: rgba(255, 51, 102, 0.2);
  border-color: var(--accent-red);
}

.btn-revoke:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.available-hint {
  font-size: 12px;
  color: var(--text-dim);
  font-style: italic;
}

/* Empty State */
.seats-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.seats-empty svg {
  margin-bottom: 20px;
  opacity: 0.4;
}

.seats-empty p {
  margin: 0;
  font-size: 15px;
}

/* Footer Note */
.seats-footer-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.seats-footer-note svg {
  flex-shrink: 0;
  opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
  .seats-header-card {
    padding: 24px;
  }

  .seats-header-top {
    flex-direction: column;
    gap: 20px;
  }

  .btn-icon {
    align-self: flex-end;
    margin-top: -64px;
  }

  .seats-stats-row {
    padding: 20px;
  }

  .seats-stat {
    padding: 0 16px;
  }

  .seats-stat-value {
    font-size: 32px;
  }

  .seats-table-container {
    overflow-x: auto;
  }

  .seats-table {
    min-width: 600px;
  }

  .seats-table th,
  .seats-table td {
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .seats-header-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .seats-header-badge {
    width: 44px;
    height: 44px;
  }

  .seats-header-title {
    font-size: 26px;
  }

  .seats-header-subtitle {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .seats-stats-row {
    flex-direction: column;
    gap: 20px;
  }

  .seats-stat-divider {
    width: 60%;
    height: 1px;
  }
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 24px;
  background: rgba(15, 15, 15, 0.98);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  min-width: 340px;
  max-width: 480px;
  pointer-events: auto;
  animation: toast-in 0.3s ease-out;
  backdrop-filter: blur(12px);
}

.toast-success {
  border-color: var(--accent-green);
}

.toast-error {
  border-color: var(--accent-red);
}

.toast-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.toast-success .toast-icon {
  color: var(--accent-green);
}

.toast-error .toast-icon {
  color: var(--accent-red);
}

.toast-title {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  margin: 0;
}

.toast-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.toast-key {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

.toast-key code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-cyan);
  flex: 1;
  word-break: break-all;
}

.toast-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background: var(--accent-cyan);
  color: #000;
  border: none;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.toast-copy-btn:hover {
  background: #00e5ff;
  transform: scale(1.02);
}

.toast-copy-btn.copied {
  background: var(--accent-green);
}

.toast-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.toast-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

.toast.toast-hiding {
  animation: toast-out 0.2s ease-in forwards;
}

/* ============================================
   USAGE DASHBOARD PAGE
   ============================================ */
.usage-container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.usage-panel {
  width: 100%;
}

/* Header Card */
.usage-header-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 24px;
}

.usage-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.usage-header-info {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.usage-header-badge {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.05));
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.usage-header-title {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.usage-header-subtitle {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}

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

.usage-days-select {
  padding: 12px 18px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.usage-days-select:hover {
  border-color: var(--border-medium);
}

.usage-days-select:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.usage-days-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Stats Row */
.usage-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 24px;
  background: var(--bg-tertiary);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.usage-stat {
  flex: 1;
  text-align: center;
  padding: 0 28px;
}

.usage-stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border-subtle);
}

.usage-stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.usage-stat-prompt {
  color: var(--accent-blue);
}

.usage-stat-completion {
  color: var(--accent-red);
}

.usage-stat-requests {
  color: var(--accent-purple);
}

.usage-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Chart Card */
.usage-chart-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
}

.usage-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin: 0 0 24px 0;
}

.usage-chart-container {
  position: relative;
  height: 300px;
}

.chart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 80px 20px;
  color: var(--text-muted);
}

.chart-empty svg {
  opacity: 0.3;
}

.chart-empty p {
  font-size: 15px;
  margin: 0;
}

/* Usage Table Card */
.usage-table-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
}

.usage-table-container {
  overflow-x: auto;
}

.usage-table {
  width: 100%;
  border-collapse: collapse;
}

.usage-table thead {
  background: var(--bg-tertiary);
  border-radius: 8px;
}

.usage-table th {
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: left;
}

.usage-table th.th-seat {
  width: 180px;
}

.usage-table th.th-user {
  min-width: 180px;
}

.usage-table th.th-tokens {
  width: 130px;
  text-align: right;
}

.usage-table th.th-requests {
  width: 100px;
  text-align: right;
}

.usage-table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
}

.usage-table tbody tr:last-child {
  border-bottom: none;
}

.usage-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.usage-table td {
  padding: 18px;
  font-size: 14px;
  color: var(--text-secondary);
  vertical-align: middle;
}

.usage-table td.td-tokens,
.usage-table td.td-requests {
  text-align: right;
  font-family: var(--font-mono);
}

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

.token-total {
  color: var(--text-primary);
  font-weight: 600;
}

.request-value {
  color: var(--text-muted);
}

/* Empty state */
.usage-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 80px 20px;
  color: var(--text-muted);
}

.usage-empty svg {
  opacity: 0.3;
}

.usage-empty p {
  font-size: 15px;
  margin: 0;
}

/* Footer Note */
.usage-footer-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  color: var(--text-dim);
  font-size: 13px;
}

.usage-footer-note svg {
  opacity: 0.5;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .usage-container {
    padding: 0 16px;
  }

  .usage-header-card {
    padding: 24px;
  }

  .usage-header-top {
    flex-direction: column;
    gap: 20px;
  }

  .usage-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .usage-stats-row {
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
  }

  .usage-stat {
    flex: 1 1 40%;
    padding: 10px;
  }

  .usage-stat-divider {
    display: none;
  }

  .usage-stat-value {
    font-size: 26px;
  }

  .usage-chart-container {
    height: 240px;
  }

  .usage-table th,
  .usage-table td {
    padding: 14px 10px;
  }
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner {
  animation: spin 1s linear infinite;
}

.btn-loading {
  display: none;
}

.btn.loading .btn-text {
  display: none;
}

.btn.loading .btn-loading {
  display: flex;
}

/* --------------------------------------------------------------------------
   §04 SOURCES & INTEGRATIONS
   -------------------------------------------------------------------------- */
.section-sources {
  padding-top: 0;
}

.sources-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}

.source-group {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
}

.source-group-title {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding-bottom: var(--s-4);
  margin-bottom: var(--s-3);
  border-bottom: 1px solid var(--border-subtle);
}

.source-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 8px color-mix(in srgb, var(--c) 60%, transparent);
  flex-shrink: 0;
}

.source-list {
  display: flex;
  flex-direction: column;
}

.source-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.source-list li:last-child {
  border-bottom: 0;
}

.source-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.source-desc {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-muted);
}

.sources-footer {
  max-width: var(--container);
  margin: var(--s-4) auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}

.sources-note {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-tertiary);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.sources-note .source-dot {
  margin-top: 7px;
}

.sources-note strong {
  color: var(--text-primary);
}

@media (max-width: 1100px) {
  .sources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .sources-grid,
  .sources-footer {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   §04 EVIDENCE HANDLING
   -------------------------------------------------------------------------- */
.section-evidence {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.evidence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}

.evidence-card {
  padding: var(--s-5);
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  transition: border-color var(--t-med);
}

.evidence-card:hover {
  border-color: var(--border-bright);
}

.evidence-card-head {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.evidence-card h3 {
  font-size: 16px;
  font-weight: 600;
}

.evidence-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--c);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  background: color-mix(in srgb, var(--c) 12%, var(--bg-tertiary));
}

.evidence-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  flex: 1;
}

.evidence-card p em {
  color: var(--text-primary);
  font-style: normal;
  font-weight: 500;
}

.evidence-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.evidence-tags li {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-tertiary);
}

.evidence-status {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.status {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  color: var(--c);
}

.status.verified { --c: var(--accent-green); }
.status.unverified { --c: var(--text-muted); }
.status.disputed { --c: var(--accent-amber); }
.status.debunked { --c: var(--accent-red); }

@media (max-width: 900px) {
  .evidence-grid {
    grid-template-columns: 1fr;
  }
}

.evidence-card p code,
.assurance-item dd code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1px 5px;
}

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

/* Odd card count: let the final card span the row */
.evidence-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
