/* Tick Terminal landing page
   Layout: one centred column (max 1240 px). Hero = copy + Market Pulse Ring; then price tape, live board,
   screens, country characters, alerts and briefs, devices, Q&A, call to action, footer. Everything is fluid down to a 360 px phone. */

:root {
  --bg: #07080B;
  --bg-2: #0B0C10;
  --panel: #0E0F13;
  --panel-2: #111217;
  --panel-3: #15161B;
  --edge: #1F2128;
  --edge-2: #2A2C34;
  --text: #ECECEA;
  --text-2: #C9CBD0;
  --muted: #B4B7BE;
  --muted-2: #A3A6AD;
  --muted-3: #8C9099;
  --gold: #F5B642;
  --gold-hover: #FFD27A;
  --on-gold: #1A1305;
  --up: #4ADE80;
  --down: #F87171;

  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --wrap: 1240px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); }
a:hover { color: var(--gold-hover); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}
.mono { font-family: var(--font-mono); }
.up { color: var(--up); }
.down { color: var(--down); }
.eyebrow { font: 700 13px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.h2 { margin: 0; font: 800 clamp(34px, 4.4vw, 56px)/1.02 var(--font-display); letter-spacing: -.03em; text-wrap: balance; }
.lead { margin: 0; color: var(--muted); }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 700px; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 15px 26px; border-radius: 14px;
  font-weight: 700; font-size: 17px; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { color: var(--on-gold); background: var(--gold-hover); }
.btn-ghost { background: var(--panel-2); border: 1px solid #2E3039; color: var(--text); }
.btn-ghost:hover { color: var(--text); }
.btn-sm { padding: 11px 20px; border-radius: 12px; font-size: 16px; }

/* ---------- nav */
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 34px; height: 34px; }
.brand span { font: 800 24px/1 var(--font-display); letter-spacing: -.02em; }
.brand em, .h1 em { font-style: normal; color: var(--gold); }
.brand:hover { color: var(--text); }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-left: auto; font-weight: 600; font-size: 16px; }
.nav-links a { color: var(--text-2); text-decoration: none; }
.nav-links a:hover { color: var(--text); }

/* ---------- hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 40px; padding-bottom: 56px; }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.live-pill {
  align-self: flex-start; display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px; background: var(--panel-2); border: 1px solid #23252D;
  font: 600 14px var(--font-mono); color: var(--text-2);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.h1 { margin: 0; font: 800 clamp(46px, 6.4vw, 86px)/.95 var(--font-display); letter-spacing: -.04em; text-wrap: balance; }
.hero-sub { margin: 0; font-size: 20px; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 520px; padding-top: 8px; }
.stats div { display: flex; flex-direction: column; }
.stats b { font: 800 34px/1 var(--font-display); }
.stats span { font-size: 14px; color: var(--muted-2); }

/* ---------- Market Pulse Ring */
.pulse-wrap { flex: 1 1 480px; min-width: 0; max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.pulse { position: relative; width: 100%; aspect-ratio: 1 / 1; container-type: inline-size; }
.pulse-halo-clip { position: absolute; inset: 4%; border-radius: 50%; overflow: hidden; }
.pulse-halo {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(245,182,66,0) 0deg, rgba(245,182,66,.07) 40deg, rgba(245,182,66,0) 90deg,
    rgba(245,182,66,0) 180deg, rgba(245,182,66,.06) 230deg, rgba(245,182,66,0) 280deg);
  animation: spin 90s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pulse-base { position: absolute; inset: 26%; border-radius: 50%; border: 1px solid rgba(236,236,234,.14); background: var(--bg-2); }
.pulse-guide { position: absolute; border-radius: 50%; border: 1px dashed rgba(236,236,234,.07); }
.pulse-guide.g1 { inset: 16%; }
.pulse-guide.g2 { inset: 6%; }

.spoke {
  position: absolute; left: 50%; top: 50%;
  height: 1.15cqw; margin-top: -.575cqw; border-radius: 1cqw;
  transform-origin: 0 50%;
  transition: width .9s cubic-bezier(.2,.8,.2,1), opacity .6s ease;
}
.spoke i {
  position: absolute; right: -.55cqw; top: 50%; width: 1.5cqw; height: 1.5cqw; margin-top: -.75cqw; border-radius: 50%;
  transition: box-shadow .45s ease, background-color .45s ease;
}
.ring-label {
  position: absolute; transform: translate(-50%, -50%); pointer-events: none; text-align: center; white-space: pre-line;
  font: 700 max(1.2cqw, 8.5px)/1.1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-3);
}
.spoke-tag {
  position: absolute; transform: translate(-50%, -50%); pointer-events: none; white-space: nowrap;
  padding: .35cqw .9cqw; border-radius: .8cqw; background: rgba(12,13,17,.9); border: 1px solid var(--edge-2);
  font: 700 max(1.4cqw, 10px)/1.2 var(--font-mono);
  transition: left .9s cubic-bezier(.2,.8,.2,1), top .9s cubic-bezier(.2,.8,.2,1);
}
.core {
  position: absolute; left: 50%; top: 50%; width: 27%; aspect-ratio: 1 / 1; transform: translate(-50%, -50%);
  border-radius: 50%; padding: .9cqw; animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 .6cqw rgba(245,182,66,.08), 0 0 5cqw rgba(245,182,66,.18); }
  50% { box-shadow: 0 0 0 1.4cqw rgba(245,182,66,.12), 0 0 9cqw rgba(245,182,66,.32); }
}
.core-in {
  width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #1B1C22 0%, var(--panel) 72%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35cqw;
}
.core-label { font: 700 max(1.25cqw, 8px)/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.core-in img { width: 28%; height: auto; }
.core-mood { font: 800 max(2.6cqw, 15px)/1 var(--font-display); letter-spacing: -.02em; color: var(--gold); }
.core-count { font: 700 max(1.45cqw, 10px)/1 var(--font-mono); white-space: nowrap; }

@container (max-width: 520px) { .spoke-tag:nth-child(n+5) { display: none; } }
.movers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.mover {
  display: flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px;
  background: var(--panel); border: 1px solid #23252D; font: 600 13px var(--font-mono); white-space: nowrap;
  transition: background-color .5s ease;
}
.mover.ticked { background: rgba(245,182,66,.16); }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 14px; color: var(--muted-2); }

/* ---------- tape */
.tape { border-top: 1px solid #1C1E25; border-bottom: 1px solid #1C1E25; background: var(--bg-2); overflow: hidden; padding: 14px 0; }
.tape-track { display: flex; gap: 34px; width: max-content; font: 500 15px var(--font-mono); white-space: nowrap; animation: tape 90s linear infinite; }
.tape-track > span { display: flex; gap: 9px; }
.tape-track b { color: var(--text); }
.tape-track .px { color: var(--muted); }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- live board */
.board { display: flex; flex-direction: column; gap: 28px; padding-top: 96px; padding-bottom: 40px; }
.board-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.board-stats { display: flex; gap: 18px; font: 600 15px var(--font-mono); }
.board-stats .clock { color: var(--muted-2); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--edge-2);
  background: var(--panel-2); color: var(--text); font: 700 15px var(--font-body); cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.groups { columns: 3 340px; column-gap: 20px; }
.group { break-inside: avoid; margin: 0 0 20px; background: var(--panel); border: 1px solid var(--edge); border-radius: 20px; padding: 16px 8px 8px; }
.group[hidden] { display: none; }
.group header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 12px 10px; }
.group h3 { margin: 0; font: 800 21px var(--font-display); }
.group h3 small, .group .avg { font: 600 13px var(--font-mono); }
.group h3 small { color: var(--muted-2); }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) 60px auto 74px; gap: 10px; align-items: center;
  padding: 7px 12px; border-radius: 10px; transition: background-color .9s ease;
}
.row.flash-up { background: rgba(74,222,128,.16); }
.row.flash-down { background: rgba(248,113,113,.16); }
.row .name { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row svg { display: block; }
.row .price { font: 500 14px var(--font-mono); text-align: right; font-variant-numeric: tabular-nums; }
.row .pct { font: 700 13px var(--font-mono); text-align: right; padding: 3px 6px; border-radius: 6px; }
.row .pct.up { background: rgba(74,222,128,.10); }
.row .pct.down { background: rgba(248,113,113,.10); }
.note { margin: 0; font-size: 14px; color: var(--muted-3); }

/* ---------- screens */
.screens { display: flex; flex-direction: column; gap: 32px; padding-top: 80px; padding-bottom: 80px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs button {
  min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--edge-2);
  background: var(--panel-2); color: var(--text); font: 700 15px var(--font-body); cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.shot { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.browser { padding: 12px; border-radius: 22px; background: var(--panel-3); border: 1px solid var(--edge-2); }
.browser-dots { display: flex; gap: 7px; padding: 2px 6px 12px; }
.browser-dots span { width: 11px; height: 11px; border-radius: 50%; background: #3A3C45; }
.browser img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.shot figcaption { color: var(--muted); }
.screen-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.screen-card { display: flex; gap: 14px; padding: 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--edge); }
.key {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px;
  border: 1px solid #33363F; border-bottom-width: 3px; font: 700 15px var(--font-mono); color: var(--gold);
}
.screen-card b { font: 800 18px var(--font-display); }
.screen-card p { margin: 2px 0 0; font-size: 15px; color: var(--muted-2); }

/* ---------- devices */
.devices { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 80px; padding-bottom: 80px; }
.devices-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.devices-copy ul { margin: 0; padding-left: 20px; color: var(--text-2); display: flex; flex-direction: column; gap: 6px; }
.devices-art { flex: 1 1 520px; min-width: 0; display: flex; align-items: flex-end; justify-content: center; gap: 20px; }
.tablet { flex: 1 1 0; max-width: 440px; min-width: 0; padding: 12px; border-radius: 30px; background: var(--panel-3); border: 1px solid var(--edge-2); }
.tablet img { width: 100%; height: auto; aspect-ratio: 834 / 1060; object-fit: cover; object-position: top; border-radius: 20px; }
.phone { flex: 0 1 220px; min-width: 0; padding: 8px; border-radius: 34px; background: var(--panel-3); border: 1px solid var(--edge-2); }
.phone img { width: 100%; height: auto; aspect-ratio: 390 / 820; object-fit: cover; object-position: top; border-radius: 27px; }

/* ---------- Q&A */
.faq { max-width: 900px; display: flex; flex-direction: column; gap: 24px; padding-top: 80px; padding-bottom: 80px; }
.faq h2 { margin: 0; font: 800 clamp(30px, 3.6vw, 46px)/1.05 var(--font-display); letter-spacing: -.03em; }
.faq-list { border: 1px solid var(--edge); border-radius: 18px; background: var(--panel); }
.faq-list details { padding: 0 22px; border-bottom: 1px solid var(--edge); }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 44px; padding: 18px 0; font-weight: 700; font-size: 18px; cursor: pointer; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { font-size: 26px; line-height: 1; color: var(--gold); transition: transform .2s ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list p { margin: 0 0 18px; color: var(--muted); }
.more { font-weight: 700; text-decoration: none; }

/* ---------- call to action */
.cta { padding-top: 40px; padding-bottom: 96px; }
.cta-box {
  border-radius: 28px; background: var(--panel-2); border: 1px solid var(--edge-2); padding: clamp(32px, 5vw, 64px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
.cta-copy { display: flex; align-items: center; gap: 24px; min-width: 0; flex: 1 1 420px; }
.cta-copy img { width: 78px; height: auto; flex: none; }
.cta-copy h2 { margin: 0; font: 800 clamp(30px, 3.6vw, 48px)/1.04 var(--font-display); letter-spacing: -.03em; text-wrap: balance; }
.cta-copy p { margin: 8px 0 0; color: var(--muted); }
.btn-lg { padding: 17px 30px; font-weight: 800; font-size: 18px; }

/* ---------- footer */
.footer { border-top: 1px solid #1C1E25; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 40px; padding-top: 28px; padding-bottom: 40px; font-size: 14px; color: var(--muted-3); }
.footer b { color: var(--text); font-family: var(--font-display); }
.footer span:last-child { max-width: 640px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse-halo, .core, .tape-track, .live-dot { animation: none; }
  .spoke, .spoke-tag { transition: none; }
}

/* ---------- country characters */
.characters { display: flex; flex-direction: column; gap: 28px; padding-top: 40px; padding-bottom: 80px; }
.char-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 12px; }
.char { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px 16px; border-radius: 18px; background: var(--panel); border: 1px solid var(--edge); text-align: center; }
.char img { width: 104px; height: auto; display: block; }
.char b { font-size: 15px; }
.char span { font-size: 13px; color: var(--muted-2); }

/* ---------- alerts and daily briefs */
.alerts { display: flex; flex-direction: column; gap: 28px; padding-top: 80px; padding-bottom: 80px; }
.briefs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.brief { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 20px; background: var(--panel); border: 1px solid var(--edge); }
.brief .when { font: 700 14px var(--font-mono); color: var(--gold); }
.brief b { font: 800 22px/1.2 var(--font-display); }
.brief p { margin: 0; font-size: 15px; color: var(--muted-2); }
.alert-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.alert-chips li { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--edge-2); font-size: 15px; color: var(--text-2); }
.alert-chips li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }
