/* Arbitronik landing — base styles + tokens + utilities */

:root {
  /* surfaces */
  --bg:        #0a0a0a;
  --bg-2:      #0e0e0e;
  --surf:      #141414;
  --surf-2:    #1a1a1a;
  --surf-3:    #1f1f1f;
  --border:    #262626;
  --border-h:  #363636;

  /* ink */
  --ink:       #f5f1e8;     /* warm cream, matches product */
  --ink-2:     #d6d2c5;
  --muted:     #8a8275;
  --muted-2:   #57534e;

  /* accents (logo + product trading palette) */
  --lime:      #a3e635;
  --lime-2:    #84cc16;
  --orange:    #f97316;
  --orange-2:  #ea580c;
  --green:     #22c55e;
  --red:       #ef4444;
  --purple:    #7c83ff;
  --purple-2:  #6366f1;
  --yellow:    #fde047;

  /* fonts (fixed — Geist / Geist Mono) */
  --font-sans: 'Geist', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  overflow-x: clip;            /* hard cap on horizontal scroll */
  max-width: 100%;
}
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans, 'Space Grotesk', system-ui, sans-serif);
  font-feature-settings: "ss01" 1, "ss02" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.4;
  min-height: 100vh;
  min-height: 100dvh;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

img { max-width:100%; display:block; }
button { font: inherit; color: inherit; background:none; border:none; padding:0; cursor:pointer; }
a { color: inherit; text-decoration: none; }

/* monospace numerics */
.mono, .num { font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace); font-feature-settings: "tnum" 1, "zero" 1; }

/* container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 720px) { .container { padding: 0 16px; } }

/* base headings */
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.05; letter-spacing: -0.025em; }
h1 {
  font-size: clamp(2rem, 7vw, 6rem);
  line-height: 1.05;
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}
@media (max-width: 480px) {
  h1 { font-size: clamp(1.75rem, 11vw, 3rem); line-height: 1.08; }
}
h2 { font-size: clamp(24px, 3.2vw, 44px); text-wrap: balance; }
h3 { font-size: clamp(20px, 2.4vw, 28px); }
h4 { font-size: 18px; letter-spacing: -0.015em; font-weight: 600; }
p { margin: 0; }

/* page nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,10,0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display:flex; align-items:center; gap: 28px; padding: 14px 24px; max-width: 1200px; margin: 0 auto; }
.nav-links { display: flex; gap: 22px; color: var(--muted); font-size: 14px; }
.nav-links a:hover { color: var(--ink); }
.nav-spacer { flex: 1; }

/* mobile nav */
.nav-burger { display: none; width: 36px; height: 36px; border-radius: 8px; align-items:center; justify-content:center; }
.nav-burger:hover { background: var(--surf); }
.nav-burger svg { width: 18px; height: 18px; stroke: var(--ink); }
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-inner { gap: 12px; padding: 12px 16px; }
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 18px;
  border-radius: 8px;
  font-size: 15px; font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--lime    { background: var(--lime); color: #0a1404; }
.btn--lime:hover { background: var(--lime-2); }
.btn--ghost   { background: transparent; color: var(--ink); border: 1px solid var(--border-h); }
.btn--ghost:hover { border-color: var(--ink); background: var(--surf); }
.btn--sm      { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 7px; }
.btn--lg      { height: 52px; padding: 0 22px; font-size: 16px; border-radius: 10px; }
.btn .arrow   { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(2px); }

/* tag / chip */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid currentColor;
  background: transparent;
}
.tag-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag--soft { background: color-mix(in oklab, currentColor 14%, transparent); }

/* live dot */
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 var(--lime);
  animation: livePulse 1.6s ease-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(163,230,53,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(163,230,53,0); }
  100% { box-shadow: 0 0 0 0 rgba(163,230,53,0); }
}

/* cards */
.card {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color .15s ease, background .15s ease;
}
.card:hover { border-color: var(--border-h); }
.card--accent-lime   { border-color: rgba(163,230,53,.35); }
.card--accent-orange { border-color: rgba(249,115,22,.35); }
.card--accent-purple { border-color: rgba(124,131,255,.35); }
.card--accent-red    { border-color: rgba(239,68,68,.35); }

/* section spacing */
section { padding: 96px 0; }
@media (max-width: 820px) { section { padding: 64px 0; } }
.section-eyebrow {
  font-size: 13px; color: var(--muted); letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
}
.section-eyebrow::before {
  content: ''; width: 22px; height: 1px; background: currentColor;
}

/* grid helpers */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* split (asymmetric) */
.split {
  display: grid;
  grid-template-columns: minmax(0, var(--split-a, 1fr)) minmax(0, var(--split-b, 1fr));
  gap: 40px;
  align-items: center;
}
@media (max-width: 980px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* hero radial vignette */
.hero-glow {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
          mask-image: linear-gradient(180deg, #000 60%, transparent);
}
.hero-glow::before, .hero-glow::after {
  content: ''; position: absolute; width: 1100px; height: 600px; border-radius: 50%;
  filter: blur(110px); opacity: .22;
}
.hero-glow::before { background: var(--lime); top: -300px; left: 35%; transform: translateX(-50%); }
.hero-glow::after  { background: var(--orange); top: -250px; left: 70%; transform: translateX(-50%); opacity: .14; }

/* ticker strip */
.ticker-wrap {
  overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker { display: flex; gap: 40px; padding: 12px 0; animation: tickerScroll 60s linear infinite; width: max-content; }
.ticker-item { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.ticker-item .num { color: var(--ink); }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* screener card (hero shot) */
.screener {
  border: 1px solid var(--border);
  background: var(--surf);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.screener-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surf-2);
  font-size: 13px; color: var(--muted);
}
.screener-cols, .screener-row {
  display: grid;
  grid-template-columns: 28px 84px 1fr repeat(3, 1fr) 0.6fr 0.6fr 1fr;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  align-items: center;
}
.screener-cols {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}
.screener-row {
  border-bottom: 1px solid #1d1d1d;
}
.screener-row:hover { background: var(--surf-2); }
.cell-r  { text-align: right; }
.cell-c  { text-align: center; }
.cell-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-feature-settings: "tnum" 1; }
.cell-target {
  background: rgba(34,197,94,0.14); color: var(--green);
  border-radius: 4px; padding: 1px 6px; display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-feature-settings: "tnum" 1;
}
.cell-div {
  font-family: 'JetBrains Mono', ui-monospace, monospace; color: var(--green); font-feature-settings: "tnum" 1;
}
.cell-div--forming { color: var(--orange); }
.cell-rsi--hot { color: var(--red); }
.cell-rsi--cold { color: var(--green); }

/* responsive: hide secondary columns on narrow screens */
@media (max-width: 820px) {
  .screener-cols, .screener-row {
    grid-template-columns: 22px 78px 1fr 46px 50px 70px 28px;
    padding: 8px 12px;
    font-size: 12px;
    gap: 4px;
  }
  .screener .col-vol, .screener .col-oi { display: none; }
}
@media (max-width: 560px) {
  .screener-cols, .screener-row {
    grid-template-columns: 76px 44px 50px 60px 28px;
    padding: 8px 10px;
    font-size: 12px;
    gap: 6px;
  }
  .screener .col-idx, .screener .col-status, .screener .col-vol, .screener .col-oi { display: none; }
}
.screener-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 140px;
  background: linear-gradient(180deg, transparent, var(--surf) 70%);
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 22px;
  pointer-events: none;
}
.screener-fade .btn { pointer-events: auto; }

/* number / pill annotations on charts */
.annot { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px;
  padding: 2px 7px; border-radius: 4px; font-feature-settings: "tnum" 1; }
.annot--sl { background: var(--red); color: #fff; }
.annot--tp { background: var(--green); color: #061d0a; font-weight: 700; }
.annot--entry { background: var(--purple); color: #fff; }
.annot--lime { background: var(--lime); color: #0a1404; font-weight: 700; }
.annot--orange { background: var(--orange); color: #fff; }

/* accordion */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surf);
  overflow: hidden;
}
.faq-q {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 18px 22px; font-size: 16px; font-weight: 500;
  color: var(--ink);
  text-align: left;
}
.faq-q:hover { background: var(--surf-2); }
.faq-q .plus { margin-left: auto; transition: transform .2s ease; color: var(--muted); font-size: 20px; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .25s ease;
  padding: 0 22px;
  color: var(--muted);
  font-size: 15px; line-height: 1.55;
}
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 18px; }

/* pricing card */
.price {
  padding: 22px;
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
  height: 100%;
}
.price > .btn { margin-top: auto; }
.price-period { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.price-amount { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; }
.price-amount .unit { font-size: 14px; color: var(--muted); margin-left: 6px; font-weight: 400; }
.price-perday { font-size: 12px; color: var(--muted-2); }
.price-badge {
  position: absolute; top: -10px; right: 14px;
  background: var(--purple); color: #fff;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
}

/* utility */
.muted { color: var(--muted); }
.ink-2 { color: var(--ink-2); }
.lime  { color: var(--lime); }
.orange{ color: var(--orange); }
.purple{ color: var(--purple); }
.green { color: var(--green); }
.red   { color: var(--red); }

/* row helpers */
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* footer */
.footer {
  padding: 48px 0 36px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.footer-inner { display: flex; gap: 28px; align-items: center; }
@media (max-width: 720px) { .footer-inner { flex-direction: column; align-items: flex-start; gap: 18px; } }

/* hover ring for screener row */
.row-hover-ring:hover { outline: 1px solid var(--border-h); outline-offset: -1px; }

/* utilities */
.eyebrow-row { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
