/* ============================================================
   BotLedger — main.css
   Premium dark design system. Linear / Vercel / Stripe tier.
   Agents: Frontend Developer · Rapid Prototyper
============================================================ */

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

/* ============================================================
   DESIGN TOKENS
============================================================ */
:root {
  /* Backgrounds — near-black with blue-violet tint */
  --bg-base:         #07080d;
  --bg-surface:      #0c0e15;
  --bg-elevated:     #10131c;
  --bg-card:         #0f1219;
  --bg-card-hover:   #13172280;

  /* Borders */
  --border-subtle:   rgba(255,255,255,0.05);
  --border-base:     rgba(255,255,255,0.08);
  --border-strong:   rgba(255,255,255,0.13);

  /* Text */
  --text-primary:    #eef0f8;
  --text-secondary:  #7880a0;
  --text-muted:      #3e4560;

  /* Accent — indigo/violet (Linear-inspired) */
  --accent:          #6366f1;
  --accent-2:        #8b5cf6;
  --accent-hover:    #4f52d4;
  --accent-subtle:   rgba(99,102,241,0.08);
  --accent-border:   rgba(99,102,241,0.25);
  --accent-glow:     rgba(99,102,241,0.4);

  /* Semantic */
  --green:           #10b981;
  --green-subtle:    rgba(16,185,129,0.08);
  --green-border:    rgba(16,185,129,0.22);
  --red:             #f43f5e;
  --red-subtle:      rgba(244,63,94,0.08);
  --red-border:      rgba(244,63,94,0.2);
  --amber:           #f59e0b;
  --amber-subtle:    rgba(245,158,11,0.08);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Layout */
  --max-w:      840px;
  --max-w-wide: 1080px;

  /* Easing */
  --ease-spring:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:        cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out:     cubic-bezier(0.45, 0, 0.55, 1);

  /* Durations */
  --dur-fast:  180ms;
  --dur-base:  320ms;
  --dur-slow:  600ms;
}

/* ============================================================
   BASE
============================================================ */
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02','cv03','cv04','cv11';
  overflow-x: hidden;
}

/* Noise grain texture over everything */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 9999;
}

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   LAYOUT
============================================================ */
.container      { max-width: var(--max-w);      margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: var(--max-w-wide); margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; }

/* ============================================================
   SHARED TOKENS
============================================================ */
.label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

.label::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

.section-heading {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
}

/* Gradient text utility */
.grad {
  background: linear-gradient(135deg, #818cf8 0%, #a78bfa 60%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--dur-fast) ease,
    box-shadow var(--dur-base) var(--ease-out),
    transform var(--dur-fast) ease;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 0 6px rgba(99,102,241,0.15), 0 8px 32px rgba(99,102,241,0.3);
  transform: translateY(-1px);
}

.btn--primary .btn-icon {
  transition: transform var(--dur-fast) var(--ease-spring);
}

.btn--primary:hover .btn-icon { transform: translateX(3px); }

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-base);
}

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

/* Large CTA variant */
.btn--lg {
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius);
}

/* ============================================================
   NAV
============================================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(7,8,13,0.75);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color var(--dur-base) ease, box-shadow var(--dur-base) ease;
}

nav.scrolled {
  border-color: var(--border-base);
  box-shadow: 0 1px 40px rgba(0,0,0,0.6);
}

.nav-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 24px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo:hover { text-decoration: none; }

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-wordmark {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

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

/* ============================================================
   HERO
============================================================ */
#hero {
  position: relative;
  padding: 128px 0 96px;
  overflow: hidden;
}

/* Grid background */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

/* Radial glow orb */
.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at 50% 30%,
    rgba(99,102,241,0.18) 0%,
    rgba(139,92,246,0.10) 30%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.22);
  border-radius: 999px;
  padding: 5px 14px 5px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #a5b4fc;
  margin-bottom: 32px;
  letter-spacing: 0.01em;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.8); }
}

/* Hero headline */
.hero-headline {
  font-size: clamp(36px, 6.5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 820px;
  margin: 0 auto 24px;
}

.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.7;
}

/* CTA group */
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 72px;
}

.hero-cta-note {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-cta-note svg { opacity: 0.5; }

/* Hero stats strip */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 56px;
}

.hero-stat {
  padding: 0 32px;
  border-right: 1px solid var(--border-subtle);
  text-align: center;
}

.hero-stat:last-child { border-right: none; }

.hero-stat-value {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 5px;
}

.hero-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Hero dashboard mockup */
.hero-dashboard {
  position: relative;
  max-width: 740px;
  margin: 0 auto;
}

/* Blur glow behind dashboard */
.hero-dashboard::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at 50% 80%, rgba(99,102,241,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.dashboard-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 32px 80px rgba(0,0,0,0.6),
    0 0 80px rgba(99,102,241,0.06);
}

/* Top chrome bar */
.dash-chrome {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.015);
}

.dash-dots {
  display: flex;
  gap: 6px;
}

.dash-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dash-dot-r { background: #ff5f57; }
.dash-dot-a { background: #ffbd2e; }
.dash-dot-g { background: #28c840; }

.dash-title {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.dash-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
}

.dash-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 1.8s ease-in-out infinite;
}

/* Tab row */
.dash-tabs {
  display: flex;
  gap: 0;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.01);
}

.dash-tab {
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--dur-fast) ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dash-tab:hover {
  color: var(--text-primary);
}

.dash-tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dash-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

/* Dashboard body */
.dash-body {
  padding: 20px;
  transition: opacity 0.3s ease;
}

/* Metric row */
.dash-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.dash-metric {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dash-metric:hover {
  background: rgba(255,255,255,0.03);
  border-color: var(--border-base);
}

.dash-metric-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.dash-metric-value {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
  line-height: 1;
}

.dash-metric-delta {
  font-size: 10px;
  font-weight: 500;
  margin-top: 4px;
}

.positive { color: var(--green); }
.negative { color: var(--red); }
.neutral  { color: var(--amber); }

/* Chart area */
.dash-chart-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 16px;
}

.dash-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.dash-chart-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.dash-chart-legend {
  display: flex;
  gap: 14px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--text-muted);
}

.legend-line {
  width: 16px;
  height: 2px;
  border-radius: 2px;
}

.line-green  { background: var(--green); }
.line-amber  { background: var(--amber); }
.line-red    { background: var(--red); }

.dash-chart-svg {
  width: 100%;
  overflow: hidden;
}

.dash-chart-svg svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   STATS SECTION (full-width strip)
============================================================ */
#stats {
  padding: 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.stats-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat-block {
  padding: 40px 24px;
  border-right: 1px solid var(--border-subtle);
  text-align: center;
}

.stat-block:last-child { border-right: none; }

.stat-number {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
}

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

/* ============================================================
   PAIN SECTION
============================================================ */
#pain {
  background: var(--bg-base);
}

.pain-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 64px;
}

.pain-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pain-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: flex-start;
}

.pain-item:first-child { border-top: 1px solid var(--border-subtle); }

.pain-num {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent);
  opacity: 0.6;
  width: 20px;
  padding-top: 3px;
}

.pain-content strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

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

/* Terminal card */
.terminal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 24px 60px rgba(0,0,0,0.5);
}

.terminal-chrome {
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}

.t-dot { width: 10px; height: 10px; border-radius: 50%; }
.t-dot-r { background: #ff5f57; }
.t-dot-a { background: #ffbd2e; }
.t-dot-g { background: #28c840; }

.terminal-filename {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-left: 4px;
  letter-spacing: 0.01em;
}

.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.t-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.t-row:last-of-type { border-bottom: none; }

.t-key { color: var(--text-muted); }
.t-val { font-weight: 600; }
.t-green  { color: var(--green); }
.t-red    { color: var(--red); }
.t-amber  { color: var(--amber); }
.t-white  { color: var(--text-primary); }

.t-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
  margin: 4px 0;
}

.t-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0 0;
}

.t-total-key {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.terminal-warning {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--red-subtle);
  border: 1px solid var(--red-border);
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  color: var(--red);
  line-height: 1.55;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

/* ============================================================
   FEATURES SECTION
============================================================ */
#features {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.features-header {
  text-align: center;
  margin-bottom: 72px;
}

.features-header .section-sub {
  margin: 0 auto;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

/* Gradient-border card — Linear technique */
.feature-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border-base);
  transition:
    border-color var(--dur-base) ease,
    background var(--dur-base) ease,
    transform var(--dur-base) var(--ease-spring);
  overflow: hidden;
}

/* Gradient border pseudo-overlay on hover */
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(99,102,241,0.5) 0%,
    rgba(139,92,246,0.3) 40%,
    rgba(99,102,241,0.05) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--dur-base) ease;
  pointer-events: none;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: -60px;
  left: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(99,102,241,0.07) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--dur-slow) ease;
  pointer-events: none;
}

.feature-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.feature-card:hover::before { opacity: 1; }
.feature-card:hover::after  { opacity: 1; }

/* SVG icon container */
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
}

.feature-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Trust banner */
.trust-banner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--green-subtle);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

.trust-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(16,185,129,0.1);
  border: 1px solid var(--green-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  margin-top: 1px;
}

.trust-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 500;
}

.trust-text strong { color: var(--green); font-weight: 700; }

/* ============================================================
   EARLY ACCESS
============================================================ */
#early-access {
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
}

/* Bottom glow for CTA section */
#early-access::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at 50% 100%,
    rgba(99,102,241,0.12) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.early-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
}

#early-access { padding: 64px 0; }
.early-inner .section-heading { margin-bottom: 10px; }
.early-inner .section-sub { margin: 0 auto 28px; text-align: center; }

/* Tally placeholder */
.tally-zone {
  background: var(--bg-elevated);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 52px 32px;
  text-align: center;
  transition: border-color var(--dur-base) ease;
}

.tally-zone-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--accent);
}

.tally-zone-label {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.tally-zone-label code {
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-size: 11.5px;
  color: var(--accent);
}

/* ============================================================
   FOOTER
============================================================ */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-base);
}

.footer-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.footer-logo-mark {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 16px;
  border-left: 1px solid var(--border-subtle);
}

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

/* ============================================================
   ENTRANCE ANIMATIONS
   Hero elements animate on load; sections on scroll via JS.
============================================================ */
.anim-up {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity var(--dur-slow) var(--ease-spring),
    transform var(--dur-slow) var(--ease-spring);
}

.anim-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero staggered delays */
.hero-badge  { animation: fadeUp var(--dur-slow) var(--ease-spring) 0ms   both; }
.hero-headline { animation: fadeUp var(--dur-slow) var(--ease-spring) 80ms  both; }
.hero-sub    { animation: fadeUp var(--dur-slow) var(--ease-spring) 160ms both; }
.hero-cta    { animation: fadeUp var(--dur-slow) var(--ease-spring) 240ms both; }
.hero-stats  { animation: fadeUp var(--dur-slow) var(--ease-spring) 320ms both; }
.hero-dashboard { animation: fadeUp var(--dur-slow) var(--ease-spring) 420ms both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 800px) {
  section { padding: 80px 0; }
  #hero   { padding: 96px 0 72px; }

  .pain-layout    { grid-template-columns: 1fr; gap: 48px; }
  .feature-grid   { grid-template-columns: 1fr; }
  .dash-metrics   { grid-template-columns: repeat(2, 1fr); }
  .stats-inner    { grid-template-columns: 1fr; }
  .stat-block     { border-right: none; border-bottom: 1px solid var(--border-subtle); padding: 28px 24px; }
  .stat-block:last-child { border-bottom: none; }
  .footer-inner   { flex-direction: column; text-align: center; gap: 12px; }
  .footer-left    { flex-direction: column; gap: 8px; }
  .footer-tagline { border-left: none; padding-left: 0; }
  .hero-stats     { display: none; }
}

@media (max-width: 560px) {
  .container,
  .container--wide { padding: 0 16px; }

  .hero-cta { width: 100%; }
  .btn--lg  { width: 100%; justify-content: center; }

  .trust-banner { flex-direction: column; }

  .dash-tabs { overflow-x: auto; }
  .dash-metrics { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .dash-metric-value { font-size: 15px; }

  .nav-actions .btn--ghost { display: none; }
}

/* ============================================================
   ABOUT SECTION
============================================================ */
#about {
  padding: 80px 20px;
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-surface) 100%);
  border-top: 1px solid var(--border-subtle);
}

.about-inner {
  max-width: 700px;
  margin: 0 auto;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
}

.about-content p {
  color: var(--text-secondary);
}

.about-team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.team-card {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.team-card:hover {
  border-color: var(--accent-border);
  background: rgba(99, 102, 241, 0.03);
}

.team-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

@media (max-width: 640px) {
  .about-team {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   ROADMAP SECTION
============================================================ */
#roadmap {
  padding: 80px 20px;
  background: var(--bg-base);
  border-top: 1px solid var(--border-subtle);
}

.roadmap-inner {
  max-width: 800px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  margin: 60px 0;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
}

.timeline-item {
  margin-bottom: 48px;
  position: relative;
}

.timeline-marker {
  position: absolute;
  left: -50px;
  top: 4px;
}

.timeline-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 2px solid var(--border-base);
  box-shadow: 0 0 0 4px var(--bg-base);
  transition: all 0.3s ease;
}

.timeline-item.active .timeline-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

.timeline-content {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.timeline-item.active .timeline-content {
  border-color: var(--accent-border);
  background: rgba(99, 102, 241, 0.04);
}

.timeline-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.timeline-status {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.timeline-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 8px;
}

.roadmap-note {
  margin-top: 60px;
  padding: 24px;
  background: rgba(99, 102, 241, 0.06);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
}

.roadmap-note p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

@media (max-width: 640px) {
  #roadmap {
    padding: 60px 20px;
  }

  .timeline {
    padding-left: 24px;
  }

  .timeline::before {
    left: -2px;
  }

  .timeline-marker {
    left: -35px;
  }

  .timeline-dot {
    width: 14px;
    height: 14px;
  }

  .timeline-content {
    padding: 16px;
  }

  .timeline-content h3 {
    font-size: 14px;
  }
}
