/* =========================================================
   Tona Digital — Warm-Dark Cyberpunk Design System
   ========================================================= */
:root {
  /* base */
  --bg: #0a0c10;
  --bg-1: #0e1116;
  --bg-2: #141821;
  --bg-3: #1c2230;
  --line: rgba(245, 165, 36, 0.10);
  --line-strong: rgba(245, 165, 36, 0.22);

  /* text */
  --fg: #f4ead8;
  --fg-soft: #c9bfa8;
  --fg-mute: #8a8170;
  --fg-dim: #5b5547;

  /* accents */
  --amber: #f5a524;
  --amber-1: #ffb84a;
  --amber-2: #d98a0c;
  --copper: #c2410c;
  --copper-deep: #7c2d12;
  --rust: #b45309;

  /* signals */
  --ok: #84cc16;
  --warn: #facc15;
  --err: #ef4444;
  --info: #38bdf8;

  /* surfaces */
  --card: rgba(20, 24, 33, 0.72);
  --card-hover: rgba(28, 34, 48, 0.88);
  --glass: rgba(244, 234, 216, 0.04);
  --glass-stronger: rgba(244, 234, 216, 0.08);

  /* shadow / glow */
  --glow-amber: 0 0 40px rgba(245, 165, 36, 0.35), 0 0 80px rgba(245, 165, 36, 0.12);
  --glow-soft: 0 0 24px rgba(245, 165, 36, 0.18);
  --shadow-1: 0 1px 0 rgba(255,255,255,0.04), 0 24px 60px -20px rgba(0,0,0,0.8);

  /* type */
  --ff-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --ff-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* spacing */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* container */
  --max: 1280px;
  --pad-x: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ambient backdrop: warm grid + soft radial gradients */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(245, 165, 36, 0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(194, 65, 12, 0.10), transparent 60%),
    radial-gradient(800px 500px at 60% 110%, rgba(245, 165, 36, 0.06), transparent 60%),
    linear-gradient(180deg, #07090c 0%, #0a0c10 100%);
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(245, 165, 36, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 165, 36, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 90%);
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(2.5rem, 6vw, 5.25rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); letter-spacing: -0.02em; }
h4 { font-size: 1.1rem; letter-spacing: -0.01em; }
p { margin: 0; }
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--amber);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; background: var(--amber);
  box-shadow: 0 0 12px var(--amber); border-radius: 50%;
}
.mono { font-family: var(--ff-mono); }
.text-mute { color: var(--fg-mute); }
.text-soft { color: var(--fg-soft); }
.text-amber { color: var(--amber); }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--fg-soft);
  max-width: 60ch;
  line-height: 1.55;
}

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }
section { position: relative; padding: clamp(80px, 10vw, 140px) 0; }
.section-head { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: clamp(40px, 5vw, 64px); max-width: 820px; }
.grid { display: grid; gap: 24px; }
.row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.split { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; gap: 64px; } }

/* ---------- nav ---------- */
.nav-wrap {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  background: rgba(10, 12, 16, 0.55);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--ff-display); font-weight: 600; letter-spacing: -0.02em; font-size: 18px; color: var(--fg); }
.brand-mark {
  width: 34px; height: 34px;
  background: url("../img/logo-mark.svg") center/contain no-repeat;
  border-radius: 8px;
  box-shadow: var(--glow-soft);
  position: relative;
  flex: none;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .3s;
}
.brand:hover .brand-mark { transform: rotate(-4deg) scale(1.04); box-shadow: var(--glow-amber); }
.brand-mark--lg { width: 48px; height: 48px; }
.brand-mark--xl { width: 72px; height: 72px; }
.brand-mark--animated { background-image: url("../img/logo-mark-animated.svg"); }
.brand small { color: var(--fg-mute); font-size: 11px; font-family: var(--ff-mono); letter-spacing: 0.12em; text-transform: uppercase; margin-left: 4px; }
.nav-links { display: none; gap: 6px; align-items: center; }
@media (min-width: 860px) { .nav-links { display: flex; } }
.nav-links a {
  padding: 8px 14px; font-size: 14px; color: var(--fg-soft);
  border-radius: 999px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--amber); background: rgba(245, 165, 36, 0.06); }
.nav-links a.active { color: var(--amber); background: rgba(245, 165, 36, 0.10); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; }

/* mobile menu */
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--fg);
  cursor: pointer;
}
@media (min-width: 860px) { .menu-btn { display: none; } }
.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 12px var(--pad-x) 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 12, 16, 0.95);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px; border-radius: 8px; color: var(--fg-soft); }
.mobile-menu a:hover { color: var(--amber); background: rgba(245,165,36,0.06); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--amber);
  --border: rgba(245,165,36,0.6);
  --color: #1a1206;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px;
  font: 500 14px/1 var(--ff-body);
  letter-spacing: 0.01em;
  color: var(--color);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--glow-amber); background: var(--amber-1); }
.btn:active { transform: translateY(0); }
.btn--ghost {
  --bg: transparent; --color: var(--fg); --border: var(--line-strong);
}
.btn--ghost:hover { background: rgba(245,165,36,0.06); box-shadow: none; border-color: var(--amber); color: var(--amber); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn--lg { height: 54px; padding: 0 28px; font-size: 15px; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- cards ---------- */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color .25s, transform .25s, background .25s;
  overflow: hidden;
}
.card:hover { border-color: var(--line-strong); background: var(--card-hover); }
.card--glow::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(245,165,36,0.4), transparent 40%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  padding: 1px;
  opacity: 0;
  transition: opacity .3s;
}
.card--glow:hover::before { opacity: 1; }

/* tag / chip */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 26px; padding: 0 10px;
  background: rgba(245, 165, 36, 0.08);
  border: 1px solid rgba(245, 165, 36, 0.20);
  color: var(--amber);
  font: 500 11px/1 var(--ff-mono);
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 999px;
}
.chip--ghost { background: transparent; color: var(--fg-mute); border-color: var(--line); }

/* status dot */
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 11px/1 var(--ff-mono);
  color: var(--fg-soft);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 8px var(--ok);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field label {
  font: 500 11px/1 var(--ff-mono);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-mute);
}
.input, .textarea, select.input {
  width: 100%;
  background: var(--bg-1);
  border: 1px solid var(--line);
  color: var(--fg);
  font: 400 15px/1.5 var(--ff-body);
  padding: 14px 16px;
  border-radius: 10px;
  transition: border-color .2s, background .2s, box-shadow .2s;
  outline: none;
}
.input:focus, .textarea:focus, select.input:focus {
  border-color: var(--amber);
  background: var(--bg-2);
  box-shadow: 0 0 0 4px rgba(245,165,36,0.10);
}
.textarea { min-height: 140px; resize: vertical; font-family: var(--ff-body); }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 80px 0 40px;
  margin-top: 80px;
  background: linear-gradient(180deg, transparent, rgba(245, 165, 36, 0.02));
}
.footer-grid {
  display: grid; gap: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer h5 {
  font: 500 11px/1 var(--ff-mono);
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber);
  margin: 0 0 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: var(--fg-soft); font-size: 14px; transition: color .2s; }
.footer a:hover { color: var(--amber); }
.footer-bottom {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-family: var(--ff-mono); font-size: 12px; color: var(--fg-mute);
}

/* ---------- utility: reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* ---------- hero ---------- */
.hero { padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 8vw, 100px); position: relative; }
.hero-canvas {
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none;
  overflow: hidden;
}
.hero-canvas canvas { width: 100%; height: 100%; display: block; opacity: 0.6; }
.hero-content { position: relative; z-index: 2; }

.hero h1 .gradient {
  background: linear-gradient(120deg, #ffb84a 0%, #f5a524 30%, #c2410c 70%, #7c2d12 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero h1 .strike {
  position: relative; display: inline-block;
  background: linear-gradient(to right, var(--amber) 0%, var(--copper) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) { .hero-meta { grid-template-columns: repeat(4, 1fr); } }
.hero-meta > div { padding: 24px 24px; border-right: 1px solid var(--line); }
.hero-meta > div:last-child { border-right: 0; }
.hero-meta strong { display: block; font: 500 28px/1 var(--ff-display); color: var(--fg); margin-bottom: 6px; letter-spacing: -0.02em; }
.hero-meta span { font: 500 11px/1.4 var(--ff-mono); color: var(--fg-mute); letter-spacing: 0.16em; text-transform: uppercase; }

/* console / terminal box */
.console {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-family: var(--ff-mono);
  font-size: 13px;
  line-height: 1.7;
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.console-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.console-dots { display: inline-flex; gap: 6px; }
.console-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--fg-dim); display: block; }
.console-dots i:nth-child(1) { background: #e76f51; }
.console-dots i:nth-child(2) { background: #f4a261; }
.console-dots i:nth-child(3) { background: #2a9d8f; }
.console-title { color: var(--fg-mute); font-size: 12px; letter-spacing: 0.1em; margin-left: 8px; }
.console-body { padding: 20px 22px; color: var(--fg-soft); }
.console-line { white-space: pre-wrap; word-break: break-word; }
.console-prompt { color: var(--amber); margin-right: 8px; }
.console-comment { color: var(--fg-dim); }
.console-key { color: var(--amber-1); }
.console-string { color: #84cc16; }
.console-cursor {
  display: inline-block; width: 8px; height: 1em; background: var(--amber);
  vertical-align: -2px; margin-left: 2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- product/feature cards ---------- */
.product-grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  transition: border-color .25s, transform .25s, background .25s;
  position: relative; overflow: hidden;
}
.product-card:hover { border-color: var(--amber); transform: translateY(-3px); }
.product-card .icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(245,165,36,0.10);
  border: 1px solid rgba(245,165,36,0.20);
  color: var(--amber);
  border-radius: 10px;
}
.product-card h3 { font-size: 1.25rem; }
.product-card p { color: var(--fg-soft); font-size: 14px; line-height: 1.6; }
.product-card .meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.product-card .link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--amber); font-size: 13px; font-weight: 500;
  font-family: var(--ff-mono);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.product-card .link .arrow { transition: transform .2s; }
.product-card:hover .link .arrow { transform: translateX(4px); }

/* ---------- demo containers for products page ---------- */
.demo-block {
  display: grid; gap: 0;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--card);
}
@media (min-width: 980px) { .demo-block { grid-template-columns: 1.05fr 1fr; } }
.demo-info { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 18px; }
.demo-stage {
  background: linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 100%);
  border-left: 1px solid var(--line);
  padding: clamp(20px, 3vw, 32px);
  min-height: 460px;
  display: flex;
  position: relative;
  overflow: hidden;
}
@media (max-width: 979px) { .demo-stage { border-left: 0; border-top: 1px solid var(--line); } }
.demo-stage::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(245,165,36,0.10), transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(194,65,12,0.10), transparent 50%);
}
.demo-info .feature-list { display: grid; gap: 10px; margin-top: 8px; }
.demo-info .feature-list li {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--fg-soft); font-size: 14.5px;
  list-style: none;
}
.demo-info .feature-list li::before {
  content: ''; flex: none; width: 16px; height: 16px; margin-top: 4px;
  background: linear-gradient(135deg, var(--amber), var(--copper));
  -webkit-mask: url("data:image/svg+xml;utf8,<svg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'><path fill='black' d='M6.4 10.6L3.8 8l-1 1L6.4 12.6 13 6l-1-1z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'><path fill='black' d='M6.4 10.6L3.8 8l-1 1L6.4 12.6 13 6l-1-1z'/></svg>") center/contain no-repeat;
}
.demo-info ul { padding: 0; margin: 0; }

/* ---------- pricing ---------- */
.pricing-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card {
  position: relative; padding: 32px;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  display: flex; flex-direction: column; gap: 18px;
  transition: border-color .25s, transform .25s;
}
.price-card:hover { border-color: var(--line-strong); }
.price-card.featured {
  border-color: var(--amber);
  background: linear-gradient(160deg, rgba(245,165,36,0.08), var(--card));
  box-shadow: var(--glow-soft);
}
.price-card .price {
  font-family: var(--ff-display); font-size: 3rem; line-height: 1;
  letter-spacing: -0.03em; color: var(--fg);
  display: flex; align-items: baseline; gap: 6px;
}
.price-card .price small { font-size: 14px; color: var(--fg-mute); font-family: var(--ff-mono); font-weight: 400; }
.price-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.price-card ul li {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--fg-soft); font-size: 14.5px;
}
.price-card ul li::before {
  content: ''; flex: none; width: 16px; height: 16px; margin-top: 4px;
  background: var(--amber);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'><path fill='black' d='M6.4 10.6L3.8 8l-1 1L6.4 12.6 13 6l-1-1z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'><path fill='black' d='M6.4 10.6L3.8 8l-1 1L6.4 12.6 13 6l-1-1z'/></svg>") center/contain no-repeat;
}
.featured-badge {
  position: absolute; top: -12px; right: 20px;
  background: var(--amber); color: #1a1206;
  font: 500 10px/1 var(--ff-mono); letter-spacing: 0.18em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}

/* ---------- service tiles ---------- */
.service-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
.service-tile {
  padding: 28px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--card);
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .25s, transform .25s, background .25s;
  position: relative; overflow: hidden;
}
.service-tile:hover { border-color: var(--amber); background: var(--card-hover); }
.service-tile .num {
  font: 500 12px/1 var(--ff-mono); letter-spacing: 0.18em; color: var(--amber);
}
.service-tile h3 { font-size: 1.3rem; }
.service-tile p { color: var(--fg-soft); font-size: 14.5px; line-height: 1.6; }

/* ---------- legal pages ---------- */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h2 { font-size: 1.5rem; margin: 40px 0 14px; color: var(--amber); }
.legal-content h3 { font-size: 1.1rem; margin: 24px 0 10px; }
.legal-content p, .legal-content ul { color: var(--fg-soft); font-size: 15px; line-height: 1.75; margin: 0 0 12px; }
.legal-content ul { padding-left: 22px; }
.legal-content a { color: var(--amber); text-decoration: underline; text-decoration-color: rgba(245,165,36,0.4); }

/* ---------- alerts ---------- */
.alert {
  padding: 14px 16px; border-radius: 10px;
  font-size: 14px;
  border: 1px solid var(--line);
  display: flex; align-items: flex-start; gap: 10px;
}
.alert--ok { background: rgba(132, 204, 22, 0.08); border-color: rgba(132, 204, 22, 0.30); color: var(--ok); }
.alert--err { background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.30); color: var(--err); }

/* ---------- misc helpers ---------- */
.divider { height: 1px; background: var(--line); width: 100%; margin: 40px 0; }
.flow > * + * { margin-top: 16px; }
.scroll-marquee {
  display: flex; gap: 64px; align-items: center;
  padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--ff-mono); color: var(--fg-mute); font-size: 13px;
  letter-spacing: 0.18em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.scroll-marquee-track { display: inline-flex; gap: 64px; animation: marquee 40s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* selection */
::selection { background: var(--amber); color: #1a1206; }

/* scrollbar */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border: 2px solid var(--bg); border-radius: 12px; }
::-webkit-scrollbar-thumb:hover { background: var(--amber-2); }

/* focus visible */
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

/* small inline icons */
.icon-sm { width: 16px; height: 16px; flex: none; }
.icon-md { width: 20px; height: 20px; flex: none; }
.icon-lg { width: 28px; height: 28px; flex: none; }
