/* ──────────────────────────────────────────────────────────────────────────
   Panopticon web — design tokens
   Mirrors the desktop client palette: violet/indigo accents in dark mode,
   warm orange accent in light mode. Surfaces are kept calm (no thick
   coloured borders or glow halos), echoing the desktop's panel look.
   ────────────────────────────────────────────────────────────────────────── */
:root {
  /* Dark theme defaults — slate palette to match Tauri shell */
  --bg: #020617;
  --bg-elev: #0a0f1f;
  --surface: #0f172a;
  --surface-2: #1e293b;
  --surface-3: #243044;
  --border: #1e293b;
  --border-2: #334155;
  --text: #e2e8f0;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --accent: #a78bfa;          /* violet-400 */
  --accent-strong: #8b5cf6;   /* violet-500 */
  --accent-soft: rgba(167, 139, 250, 0.12);
  --accent-border: rgba(167, 139, 250, 0.28);
  --accent-fg: #0f172a;       /* text colour on accent backgrounds */
  --info: #60a5fa;
  --red: #ef4444;
  --green: #22c55e;
  --yellow: #eab308;
  --font-mono: "JetBrains Mono", "Fira Code", "Cascadia Code", ui-monospace, monospace;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow: 0 1px 2px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.55);
}

[data-theme="light"] {
  --bg: #f8fafc;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --surface-3: #e2e8f0;
  --border: #e2e8f0;
  --border-2: #cbd5e1;
  --text: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --accent: #ea580c;          /* orange-600 */
  --accent-strong: #c2410c;   /* orange-700 */
  --accent-soft: rgba(234, 88, 12, 0.10);
  --accent-border: rgba(234, 88, 12, 0.4);
  --accent-fg: #ffffff;
  --info: #0284c7;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.10);
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.2s, color 0.2s;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
img { max-width: 100%; }
hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 480px; margin: 0 auto; padding: 0 24px; }
.container-md { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
}
.navbar-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.navbar-logo-img {
  width: 32px; height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.35));
}
[data-theme="light"] .navbar-logo-img {
  filter: drop-shadow(0 0 6px rgba(234, 88, 12, 0.20));
}
.navbar-wordmark {
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 800;
  color: var(--text); letter-spacing: 3px;
  text-transform: uppercase;
}
.navbar-nav {
  display: flex; align-items: center; gap: 2px;
  list-style: none;
}
.navbar-nav a {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 8px 14px; border-radius: 0;
  text-decoration: none; transition: color 0.15s, background 0.15s;
}
.navbar-nav a:hover { color: var(--text); }
.navbar-nav a.active { color: var(--accent); }
.navbar-actions { display: flex; align-items: center; gap: 6px; }

/* ── Bracket button — terminal-style framed CTA ─────────────────────────── */
.btn-bracket {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 8px 18px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
}
.btn-bracket:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent-border);
}
.btn-bracket-primary {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.btn-bracket-primary:hover {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none; transition: all 0.15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: var(--accent-fg);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-fg); }
.btn-secondary {
  background: var(--surface-2); color: var(--text);
  border-color: var(--border-2);
}
.btn-secondary:hover { background: var(--surface-3); border-color: var(--accent-border); }
.btn-ghost {
  background: transparent; color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-danger {
  background: var(--red); color: #fff;
  border-color: var(--red);
}
.btn-danger:hover { opacity: 0.88; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 12px 26px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--text-secondary); margin-bottom: 6px;
}
.form-control {
  width: 100%;
  background: var(--bg-elev); border: 1px solid var(--border-2);
  color: var(--text); border-radius: var(--radius);
  padding: 10px 12px; font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  outline: none;
  font-family: inherit;
}
[data-theme="light"] .form-control { background: var(--bg); }
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-control::placeholder { color: var(--text-muted); }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* ── Surface / card (low-key panel like the desktop's field-section) ─── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card-sm { padding: 20px; }
.card-flat {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* ── Alerts ─────────────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 14px; margin-bottom: 20px;
  border: 1px solid transparent;
}
.alert-error { background: rgba(239,68,68,0.10); border-color: rgba(239,68,68,0.35); color: #fca5a5; }
.alert-success { background: rgba(34,197,94,0.10); border-color: rgba(34,197,94,0.35); color: #86efac; }
.alert-info { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent); }
[data-theme="light"] .alert-error { color: #b91c1c; }
[data-theme="light"] .alert-success { color: #15803d; }

/* ── Badge ──────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase; font-family: var(--font-mono);
  border: 1px solid transparent;
}
.badge-free { background: rgba(100,116,139,0.18); color: #94a3b8; border-color: rgba(100,116,139,0.30); }
[data-theme="light"] .badge-free { color: #475569; }
.badge-pro { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-border); }
.badge-max { background: rgba(139,92,246,0.18); color: #c4b5fd; border-color: rgba(139,92,246,0.30); }
[data-theme="light"] .badge-max { color: #6d28d9; background: rgba(139,92,246,0.10); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, var(--accent-soft), transparent);
  pointer-events: none;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--accent); letter-spacing: 1.2px;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  padding: 5px 14px; border-radius: 999px;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800; letter-spacing: -2px;
  line-height: 1.1; margin-bottom: 20px;
  color: var(--text);
}
.hero-title .accent { color: var(--accent); }
.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 19px);
  color: var(--text-secondary);
  max-width: 600px; margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; justify-content: center;
  margin-top: 60px; flex-wrap: wrap;
}
.hero-stat-num {
  font-size: 28px; font-weight: 800;
  color: var(--accent); font-family: var(--font-mono);
}
.hero-stat-label { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ── Section ────────────────────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-label {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--accent); letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800; letter-spacing: -1px;
  line-height: 1.2; margin-bottom: 14px;
}
.section-sub {
  font-size: 16px; color: var(--text-secondary);
  max-width: 560px; line-height: 1.7;
}

/* ── Feature grid ────────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px; margin-top: 48px;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
}
.feature-icon {
  width: 40px; height: 40px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius); display: flex;
  align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 16px;
  color: var(--accent);
}
.feature-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ── Pricing ─────────────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-top: 48px;
  align-items: start;
}
.pricing-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  position: relative;
}
.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-border);
}
.pricing-popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-fg);
  font-size: 11px; font-weight: 800; letter-spacing: 1px;
  padding: 3px 14px; border-radius: 20px; text-transform: uppercase;
  font-family: var(--font-mono);
}
.pricing-tier { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-mono); }
.pricing-price {
  font-size: 40px; font-weight: 800; letter-spacing: -1.5px;
  color: var(--text); margin: 10px 0 4px;
}
.pricing-price .currency { font-size: 20px; font-weight: 600; vertical-align: top; margin-top: 8px; display: inline-block; }
.pricing-price .period { font-size: 14px; color: var(--text-muted); font-weight: 400; }
.pricing-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; }
.pricing-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.pricing-features { list-style: none; }
.pricing-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text-secondary); padding: 6px 0;
}
.pricing-features li .check { color: var(--green); font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.pricing-features li .cross { color: var(--text-muted); font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.pricing-cta { width: 100%; margin-top: 24px; }

/* ── Terminal block ──────────────────────────────────────────────────────── */
.terminal {
  background: #000; border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); padding: 20px 24px;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.7;
  overflow-x: auto;
  color: #e2e8f0;
}
[data-theme="light"] .terminal { background: #0f172a; }
.terminal-bar {
  display: flex; gap: 6px; margin-bottom: 16px;
}
.terminal-dot {
  width: 12px; height: 12px; border-radius: 50%;
}
.terminal-dot:nth-child(1) { background: #ef4444; }
.terminal-dot:nth-child(2) { background: #eab308; }
.terminal-dot:nth-child(3) { background: #22c55e; }
.terminal .prompt { color: #a78bfa; }
.terminal .output { color: #94a3b8; }
.terminal .highlight { color: #a78bfa; }

/* ── Auth pages ──────────────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
  padding: 40px 16px;
}
.auth-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px; width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.auth-brand-block {
  display: grid; justify-items: center; gap: 4px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.auth-brand-logo {
  width: 56px; height: 56px;
  object-fit: contain; margin-bottom: 8px;
  filter: drop-shadow(0 0 12px var(--accent-soft));
}
.auth-logo {
  font-size: 14px; font-weight: 800; color: var(--text);
  letter-spacing: 4px;
  text-transform: uppercase; font-family: var(--font-mono);
}
.auth-logo-sub {
  font-size: 10px; color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 1.5px; text-transform: uppercase;
}
.auth-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.auth-subtitle { font-size: 13px; color: var(--text-secondary); margin-bottom: 24px; }
.auth-footer { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 20px; }
.auth-footer a { color: var(--accent); }
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-muted); font-size: 12px; margin: 20px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; border-top: 1px solid var(--border);
}

/* ── Account ─────────────────────────────────────────────────────────────── */
.account-layout {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 32px; padding: 40px 0;
}
.account-sidebar {
  list-style: none;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 8px; height: fit-content;
  position: sticky; top: 76px;
}
.account-sidebar a {
  display: block; padding: 9px 14px; border-radius: var(--radius);
  font-size: 14px; color: var(--text-secondary); text-decoration: none;
  transition: all 0.15s;
}
.account-sidebar a:hover { background: var(--surface-2); color: var(--text); }
.account-sidebar a.active { background: var(--accent-soft); color: var(--accent); }
.account-section { margin-bottom: 20px; }
.account-section-title {
  font-size: 16px; font-weight: 700; margin-bottom: 18px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.avatar-wrap {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--surface-2); border: 2px solid var(--border-2);
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--text-muted);
  font-weight: 700;
}
.avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* ── Download / artifact card ────────────────────────────────────────────── */
.download-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 16px; row-gap: 6px;
  font-size: 13px;
  margin: 16px 0 22px;
}
.download-meta dt { color: var(--text-muted); }
.download-meta dd { color: var(--text); font-family: var(--font-mono); word-break: break-all; }
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.download-tile {
  display: block;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s;
}
.download-tile:hover {
  border-color: var(--accent-border);
  transform: translateY(-1px);
  color: var(--text);
}
.download-tile-name {
  font-weight: 600; font-size: 14px;
  display: flex; align-items: center; gap: 8px;
}
.download-tile-name::before {
  content: "↓"; color: var(--accent); font-weight: 800;
}
.download-tile-meta {
  font-size: 12px; color: var(--text-muted);
  font-family: var(--font-mono); margin-top: 6px;
  word-break: break-all;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0; margin-top: 80px;
  color: var(--text-muted); font-size: 13px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }

/* Mr. Robot footer */
.footer-classified {
  font-family: var(--font-mono);
  text-align: center;
}
.footer-disclaimer {
  font-size: 10.5px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  line-height: 1.8;
  text-transform: uppercase;
  margin-bottom: 32px;
  opacity: 0.65;
}
.footer-classified .footer-inner {
  justify-content: center;
  gap: 28px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.footer-mark {
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--text-secondary);
  text-transform: uppercase;
}
.footer-classified .footer-links { gap: 28px; }
.footer-classified .footer-links a {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-classified .footer-links a:hover { color: var(--accent); }
.footer-tagline {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 16px;
  opacity: 0.6;
}
.footer-sep { color: var(--accent); font-weight: 700; }

/* ── Theme toggle ────────────────────────────────────────────────────────── */
.theme-toggle {
  background: var(--surface-2); border: 1px solid var(--border-2);
  color: var(--text-secondary); border-radius: var(--radius);
  padding: 7px 10px; cursor: pointer; font-size: 15px;
  transition: all 0.15s; line-height: 1;
}
.theme-toggle:hover { color: var(--text); border-color: var(--accent-border); background: var(--surface-3); }

/* ── Utility ─────────────────────────────────────────────────────────────── */
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.text-mono { font-family: var(--font-mono); }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.w-full { width: 100%; }

/* ── Separator grid ──────────────────────────────────────────────────────── */
.divider-h { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* ──────────────────────────────────────────────────────────────────────────
   fsociety / Mr. Robot 2016 vibe
   Used by the public landing. Terminal aesthetic: bracketed CTAs, status
   bars, monospace, oversized hero, subtle CRT-like grid background.
   ────────────────────────────────────────────────────────────────────────── */
.hero-classified {
  position: relative;
  padding: 80px 0 100px;
  text-align: center;
  overflow: hidden;
  background: var(--bg);
}
.hero-classified .hero-inner {
  position: relative;
  z-index: 2;
}

/* Subtle grid + diffuse glow — that "we are watching" feel. */
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 60% 60% at 50% 30%, var(--accent-soft), transparent 70%),
    radial-gradient(ellipse 60% 60% at 50% 100%, rgba(139, 92, 246, 0.05), transparent 70%),
    linear-gradient(rgba(167, 139, 250, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 139, 250, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
  z-index: 1;
}
[data-theme="light"] .hero-grid {
  background-image:
    radial-gradient(ellipse 60% 60% at 50% 30%, var(--accent-soft), transparent 70%),
    radial-gradient(ellipse 60% 60% at 50% 100%, rgba(234, 88, 12, 0.04), transparent 70%),
    linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px;
}

/* Top bracketed tag */
.hero-bracket {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 4px;
  color: var(--accent);
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  padding: 8px 18px;
  border-radius: 2px;
  margin-bottom: 48px;
  text-transform: uppercase;
}

/* The massive hero title — uppercase, tight leading, white. */
.hero-title-massive {
  font-size: clamp(56px, 11vw, 144px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -3px;
  color: var(--text);
  margin: 0 0 32px;
  position: relative;
}
[data-theme="light"] .hero-title-massive { color: var(--text); }

.hero-quote {
  font-family: var(--font-mono);
  font-size: 14px;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin: 36px 0 48px;
  line-height: 1.7;
}

.hero-actions-classified { margin: 8px 0 36px; }

/* Big white classified CTA, like a stamped permit. */
.btn-classified {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 18px 56px;
  background: var(--text);
  color: var(--bg);
  border: 2px solid var(--text);
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn-classified:hover {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-soft);
}
[data-theme="light"] .btn-classified:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Status bar — bottom of hero, like a terminal line. */
.hero-status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
  animation: status-pulse 2.4s ease-in-out infinite;
}
.status-sep { color: var(--accent); font-weight: 700; }
@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

/* Strip band — the categorised activities row. */
.strip-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 24px 0;
}
.strip-row {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.strip-sep { color: var(--accent); font-weight: 700; }

/* Section label // CAPABILITIES */
.section-label { letter-spacing: 4px; }

/* Feature cards — numbered, mono, more terminal-feeling. */
.feature-card { position: relative; padding: 28px 24px 24px; }
.feature-id {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 14px;
}
.feature-card .feature-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Workflow */
.section-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px; margin-top: 48px;
  text-align: center;
}
.workflow-step { padding: 0 12px; }
.workflow-num {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 700;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 18px;
}
.workflow-name {
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
}
.workflow-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* CTA classified */
.section-cta-classified {
  position: relative;
  background:
    radial-gradient(ellipse 50% 60% at 50% 50%, var(--accent-soft), transparent 70%),
    var(--bg);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  body { font-size: 14px; }
  .container,
  .container-md,
  .container-sm { padding: 0 16px; }

  .account-layout { grid-template-columns: 1fr; gap: 18px; padding: 24px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .account-sidebar {
    position: static;
    display: flex; flex-wrap: wrap; gap: 4px;
    background: transparent; border: none; padding: 0;
  }
  .account-sidebar a {
    padding: 7px 12px;
    background: var(--surface); border: 1px solid var(--border);
  }

  /* Navbar: shrink wordmark, allow actions to wrap, tighten spacing. */
  .navbar-nav { display: none; }
  .navbar-inner {
    height: auto; min-height: 60px;
    padding: 10px 16px;
    gap: 10px; flex-wrap: wrap;
  }
  .navbar-brand { gap: 8px; flex: 0 0 auto; min-width: 0; }
  .navbar-wordmark { font-size: 12px; letter-spacing: 2px; }
  .navbar-logo-img { width: 28px; height: 28px; }
  .navbar-actions { gap: 6px; flex-wrap: wrap; }
  .navbar-actions .btn-bracket {
    padding: 7px 10px;
    font-size: 10.5px; letter-spacing: 1.2px;
  }

  .hero { padding: 64px 0 48px; }
  .hero-classified { padding: 48px 0 64px; }
  .section { padding: 48px 0; }
  .hero-bracket { font-size: 10px; letter-spacing: 2px; padding: 6px 12px; margin-bottom: 28px; }
  .hero-quote { font-size: 13px; margin: 28px 0 36px; }
  .btn-classified { padding: 14px 28px; font-size: 11px; letter-spacing: 2px; }
  .strip-row { gap: 14px; font-size: 10px; letter-spacing: 2px; padding: 0 8px; }

  /* Hero massive title — shrink and break long words on phones. */
  .hero-title-massive {
    font-size: clamp(40px, 14vw, 64px);
    letter-spacing: -1.5px;
    line-height: 1;
    overflow-wrap: anywhere;
    word-break: break-word;
    margin-bottom: 24px;
  }
  .hero-title { font-size: clamp(28px, 8vw, 44px); letter-spacing: -1px; }

  /* Cards / forms breathe a bit less on phones. */
  .card { padding: 20px; }
  .card-flat { padding: 18px; }
  .auth-card { padding: 26px 22px; }

  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card { padding: 22px; }
  .pricing-price { font-size: 34px; }

  .download-grid { grid-template-columns: 1fr; }
  .download-meta { grid-template-columns: 1fr; row-gap: 2px; }
  .download-meta dt { color: var(--text-muted); margin-top: 8px; }

  .footer { padding: 28px 0; margin-top: 56px; }
  .footer-classified .footer-inner { flex-direction: column; gap: 14px; padding: 14px 0; }
  .footer-disclaimer { letter-spacing: 1px; line-height: 1.7; }
  .footer-classified .footer-links { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .workflow-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .navbar-wordmark { font-size: 11px; letter-spacing: 1.5px; }
  .navbar-actions .theme-toggle { padding: 6px 8px; font-size: 14px; }
  .navbar-actions .btn-bracket {
    padding: 6px 9px;
    font-size: 10px; letter-spacing: 1px;
  }
  .hero { padding: 48px 0 36px; }
  .hero-classified { padding: 36px 0 56px; }
  .section { padding: 36px 0; }
  .auth-card { padding: 22px 18px; }
  .auth-page { padding: 20px 12px; }
  .card { padding: 16px; }
  .btn-classified { padding: 12px 22px; font-size: 10.5px; letter-spacing: 1.5px; }
}
