/* Dark emerald + gold theme. Mobile first; two-column hero from 900px. */
:root {
  --bg: #0b1410;
  --surface: #13201a;
  --surface-2: #1a2a22;
  --line: #24382e;
  --text: #e8f0ec;
  --muted: #8fa39a;
  --emerald: #10b981;
  --emerald-deep: #0b6e4f;
  --gold: #d4af37;
  --gold-deep: #a8841c;
  --red: #e5484d;
  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; text-wrap: balance; }
.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
.gold { color: var(--gold); }
.muted { color: var(--muted); }

#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .5; }

/* ---------- header + ticker ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 20, 16, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.top-row { display: flex; align-items: center; gap: 12px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font: 700 1.1rem var(--display); }
.nav { display: none; gap: 24px; margin-left: 32px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--text); }
.top-cta { margin-left: auto; display: flex; gap: 8px; }

.ticker { overflow: hidden; border-top: 1px solid var(--line); background: rgba(19, 32, 26, .7); }
.ticker-track { display: flex; gap: 28px; width: max-content; padding: 7px 16px; font: 500 .78rem var(--mono); white-space: nowrap; }
.ticker-track.moving { animation: scroll 60s linear infinite; }
.tick-item { display: inline-flex; gap: 8px; align-items: baseline; }
.tick-item b { color: var(--muted); font-weight: 500; }
.tick-item .ld { color: var(--gold); font-weight: 700; }
.up { color: var(--emerald); }
.down { color: var(--red); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 14px 20px;
  font: 600 1rem var(--body); color: #04140d; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, filter .15s ease;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-sm { padding: 8px 12px; font-size: .85rem; border-radius: 10px; }
.btn-primary { background: linear-gradient(135deg, #16c98f, var(--emerald-deep)); color: #fff; }
.btn-gold { background: linear-gradient(135deg, #e6c55a, var(--gold-deep)); color: #1d1503; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-install {
  width: 100%; margin-top: 12px; background: var(--surface); color: var(--text);
  border: 1px solid var(--emerald-deep); letter-spacing: .06em; text-transform: uppercase; font-size: .9rem;
}

/* ---------- hero ---------- */
.hero { display: grid; gap: 40px; padding-block: 40px 56px; }
.greeting { color: var(--emerald); font-weight: 600; margin: 0 0 8px; }
.hero h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); font-weight: 800; }
.typer { font: 600 clamp(1.05rem, 3.6vw, 1.35rem) var(--display); color: var(--gold); min-height: 1.6em; margin: 14px 0 0; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--gold); margin-left: 3px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.lede { color: var(--muted); max-width: 56ch; margin: 14px 0 0; }
.cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.trust { color: var(--muted); font-size: .85rem; margin: 14px 0 0; }

/* phone preview */
.phone {
  justify-self: center; width: min(340px, 100%);
  background: linear-gradient(180deg, #102019, #0c1712);
  border: 1px solid var(--line); border-radius: 34px; padding: 14px 14px 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 6px #08100c, 0 0 60px rgba(16, 185, 129, .12);
  display: flex; flex-direction: column; gap: 12px;
}
.phone-notch { width: 90px; height: 6px; border-radius: 9px; background: #22332a; margin: 0 auto 4px; }
.phone-tabs { display: flex; gap: 6px; font-size: .72rem; font-weight: 600; }
.phone-tabs span { flex: 1; text-align: center; padding: 7px 4px; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
.phone-tabs .on { background: var(--emerald-deep); color: #fff; }
.bot-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.bot-card small { color: var(--muted); }
.bot-top { display: flex; justify-content: space-between; }
.chip, .risk { font-size: .64rem; font-weight: 700; letter-spacing: .06em; padding: 3px 8px; border-radius: 99px; }
.chip { background: rgba(212, 175, 55, .14); color: var(--gold); }
.risk-high { background: rgba(229, 72, 77, .14); color: #ff8a8d; }
.digits-head { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); }
.live { color: var(--emerald); font-weight: 700; letter-spacing: .1em; }
.live::before { content: "● "; animation: blink 1.4s steps(1) infinite; }
.digits { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; min-height: 30px; }
.digits span {
  font: 600 .85rem var(--mono); text-align: center; padding: 5px 0; border-radius: 8px;
  background: var(--surface-2);
}
.digits .even { color: var(--emerald); }
.digits .odd { color: var(--gold); }
.digits span:last-child { outline: 1px solid var(--emerald); }
.dist { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; align-items: end; height: 56px; }
.dist div { background: linear-gradient(180deg, var(--emerald), var(--emerald-deep)); border-radius: 4px 4px 0 0; min-height: 3px; position: relative; transition: height .4s ease; }
.dist div::after { content: attr(data-d); position: absolute; bottom: -16px; left: 0; right: 0; text-align: center; font: 500 .6rem var(--mono); color: var(--muted); }
.runbar { margin-top: 14px; display: flex; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.run { background: var(--emerald-deep); color: #fff; font-weight: 700; border-radius: 10px; padding: 8px 14px; font-size: .85rem; }
.status { color: var(--muted); font-size: .82rem; flex: 1; text-align: center; }

/* ---------- sections ---------- */
.section { padding-block: 48px; }
.eyebrow { color: var(--emerald); font: 600 .78rem var(--body); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 8px; }
.section h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); max-width: 22ch; }
.cards { display: grid; gap: 14px; margin-top: 28px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.card h3 { font-size: 1.1rem; margin: 14px 0 6px; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(16, 185, 129, .12); color: var(--emerald); }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-gold { border-color: rgba(212, 175, 55, .45); background: linear-gradient(160deg, rgba(212, 175, 55, .1), var(--surface) 55%); }
.card-gold .icon { background: rgba(212, 175, 55, .14); color: var(--gold); }

.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 1.1rem var(--display); color: #1d1503; background: var(--gold); }
.steps strong { font-family: var(--display); }
.steps span { color: var(--muted); font-size: .95rem; }

.safety { display: grid; gap: 28px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding: 14px 16px 14px 48px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--muted); }
.checks li strong { color: var(--text); }
.checks li::before { content: ""; position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; border-radius: 50%; background: var(--emerald) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }

.markets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.markets span { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: .9rem; }

.band { margin-top: 24px; padding-block: 44px; background: linear-gradient(135deg, rgba(16, 185, 129, .16), rgba(212, 175, 55, .1)); border-block: 1px solid var(--line); }
.band-row { display: grid; gap: 8px; }
.band h2 { font-size: clamp(1.5rem, 4vw, 2rem); }

.foot { padding-block: 36px calc(36px + env(safe-area-inset-bottom)); display: grid; gap: 14px; }
.foot-brand { display: flex; align-items: center; gap: 8px; font: 700 1rem var(--display); }
.risk-note { color: var(--muted); font-size: .85rem; max-width: 80ch; margin: 0; padding: 12px 14px; border-left: 3px solid var(--gold); background: var(--surface); border-radius: 0 10px 10px 0; }
.small { color: var(--muted); font-size: .8rem; margin: 0; }

/* ---------- sheet (dialog) ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .6); display: grid; align-items: end; justify-items: center; padding: 16px; }
.sheet-card { width: min(460px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; margin-bottom: env(safe-area-inset-bottom); }
.sheet-card p { color: var(--muted); margin: 10px 0 0; }

/* ---------- larger screens ---------- */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { grid-template-columns: 1fr; row-gap: 8px; }
  .steps li::before { grid-row: auto; }
  .cta-row { display: flex; }
  .btn-install { width: auto; }
  .sheet { align-items: center; }
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .hero { grid-template-columns: 1.1fr .9fr; align-items: center; padding-block: 72px 80px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .safety { grid-template-columns: 1fr 1fr; align-items: center; }
  .band-row { grid-template-columns: 1fr auto; align-items: center; }
  .band .cta-row { margin-top: 0; }
}
@media (max-width: 380px) {
  .top-cta .btn-gold { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track.moving, .caret, .live::before { animation: none; }
  html { scroll-behavior: auto; }
}
