/* ============================================================
   ScanEngine — marketing site
   Premium dark theme with gold accents. No product internals.
   ============================================================ */

:root {
  --bg:        #0a0e17;
  --bg-2:      #0f1420;
  --bg-3:      #141a28;
  --surface:   #161d2e;
  --surface-2: #1c2438;
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.14);

  --text:      #eef2fb;
  --text-dim:  #a7b0c4;
  --text-mute: #6b7690;

  --gold:      #e7c063;
  --gold-2:    #f4d78a;
  --gold-deep: #b8922f;
  --silver:    #c8d0e0;
  --diamond:   #7fd4e6;
  --diamond-1: #8fe3ff;
  --diamond-2: #b8f0ff;

  --green:     #4ade80;
  --red:       #f87171;
  --blue:      #60a5fa;

  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 20px 55px -18px rgba(231, 192, 99, 0.35);

  --maxw: 1180px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Sora', var(--font);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient background glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1000px 600px at 78% -8%, rgba(231, 192, 99, 0.10), transparent 60%),
    radial-gradient(900px 640px at 10% 8%, rgba(96, 165, 250, 0.08), transparent 55%),
    radial-gradient(1200px 800px at 50% 110%, rgba(143, 227, 255, 0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-2);
  padding: 7px 14px; border-radius: 999px;
  background: rgba(231, 192, 99, 0.08);
  border: 1px solid rgba(231, 192, 99, 0.22);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }

.gradient-text {
  background: linear-gradient(120deg, var(--gold-2) 0%, var(--gold) 40%, #fff 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.section { padding: 110px 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); margin: 20px 0 16px; }
.section-head p { color: var(--text-dim); font-size: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1px solid transparent; transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #1a1405; box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 26px 60px -16px rgba(231, 192, 99, 0.5); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04); color: var(--text);
  border-color: var(--line-2); backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.08); border-color: var(--gold); }
.btn-telegram { background: linear-gradient(120deg, #2aa8e0, #1f8fd0); color: #fff; box-shadow: 0 20px 45px -18px rgba(42, 168, 224, 0.6); }
.btn-telegram:hover { transform: translateY(-2px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, border-color .3s ease, padding .3s ease;
  border-bottom: 1px solid transparent; padding: 18px 0;
}
.nav.scrolled { background: rgba(10, 14, 23, 0.82); backdrop-filter: blur(16px); border-bottom-color: var(--line); padding: 12px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.logo-img {
  width: 46px; height: 46px; object-fit: contain; display: block;
  filter: drop-shadow(0 6px 16px rgba(231, 192, 99, 0.45));
}
.footer .logo-img { width: 38px; height: 38px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--text-dim); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 170px 0 90px; text-align: center; position: relative; }
.hero-logo {
  width: clamp(104px, 16vw, 148px); height: auto; display: block; margin: 0 auto 24px;
  filter: drop-shadow(0 16px 40px rgba(231, 192, 99, 0.4));
}
.hero h1 { font-size: clamp(40px, 7vw, 76px); margin: 26px auto 22px; max-width: 15ch; }
.hero .sub { font-size: clamp(17px, 2.4vw, 21px); color: var(--text-dim); max-width: 620px; margin: 0 auto 38px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 54px; }
.hero-stats { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; }
.hstat { text-align: center; }
.hstat .num { font-family: var(--font-display); font-size: 40px; font-weight: 800; }
.hstat .lbl { color: var(--text-mute); font-size: 14px; letter-spacing: 0.04em; margin-top: 2px; }

/* Phone mockup */
.hero-phone {
  margin: 60px auto 0; max-width: 360px; position: relative;
}
.phone {
  background: linear-gradient(160deg, #1a2233, #0d121d);
  border: 1px solid var(--line-2); border-radius: 34px; padding: 16px 14px 22px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(231,192,99,0.06);
}
.phone-notch { width: 120px; height: 22px; background: #000; border-radius: 0 0 14px 14px; margin: -16px auto 14px; }
.chat { display: flex; flex-direction: column; gap: 10px; }
.msg {
  padding: 11px 14px; border-radius: 14px; font-size: 13.5px; max-width: 92%;
  animation: floatIn .6s ease both;
}
.msg.user { align-self: flex-end; background: linear-gradient(120deg, #2f7d4f, #276b43); color: #eafff1; border-bottom-right-radius: 5px; }
.msg.bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg.bot .card-title { font-weight: 700; color: var(--gold-2); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.msg.bot .row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-dim); padding: 1px 0; }
.msg.bot .row b { color: var(--text); }
.msg .score-pill {
  display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgba(74, 222, 128, 0.14); color: var(--green); border: 1px solid rgba(74, 222, 128, 0.3);
}
.msg .did-you-mean { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.msg .dym-btn { background: rgba(96,165,250,0.12); border: 1px solid rgba(96,165,250,0.3); color: #bcd8ff; padding: 7px 10px; border-radius: 9px; font-size: 12px; text-align: left; }

/* ---------- Pain points ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.pain-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  position: relative; overflow: hidden;
}
.pain-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red), transparent); opacity: .5;
}
.pain-card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow); }
.pain-icon { font-size: 30px; margin-bottom: 16px; }
.pain-card h3 { font-size: 19px; margin-bottom: 10px; }
.pain-card p { color: var(--text-dim); font-size: 15px; }
.pain-card .fix { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--gold-2); display: flex; gap: 8px; align-items: flex-start; }
.pain-card .fix svg { flex-shrink: 0; margin-top: 3px; }

/* ---------- Markets ---------- */
.markets { text-align: center; }
.market-badges { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.market-badge {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 30px 42px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); min-width: 190px;
  transition: transform .3s ease, border-color .3s ease;
}
.market-badge:hover { transform: translateY(-6px); border-color: var(--gold); }
.market-flag { font-size: 46px; line-height: 1; }
.market-badge .mname { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.market-badge .mmeta { color: var(--text-mute); font-size: 13px; }

/* ---------- Features ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.feat-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.feat-card:hover { transform: translateY(-6px); border-color: rgba(231,192,99,0.4); box-shadow: var(--shadow); }
.feat-icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(231, 192, 99, 0.1); border: 1px solid rgba(231, 192, 99, 0.24); color: var(--gold-2);
}
.feat-icon svg { width: 26px; height: 26px; }
.feat-card h3 { font-size: 19px; margin-bottom: 10px; }
.feat-card p { color: var(--text-dim); font-size: 15px; }

/* ---------- How it works (SVG diagram) ---------- */
.how { background: linear-gradient(180deg, transparent, rgba(15, 20, 32, 0.6), transparent); }
.flow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch;
  margin-top: 10px;
}
.flow-step {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; text-align: center;
  position: relative;
}
.flow-step .fnum {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #1a1405;
  font-weight: 800; font-size: 14px; font-family: var(--font-display);
}
.flow-step .ficon { font-size: 34px; margin: 8px 0 14px; }
.flow-step h4 { font-size: 17px; margin-bottom: 8px; }
.flow-step p { color: var(--text-dim); font-size: 14px; }
.flow-arrow { display: grid; place-items: center; color: var(--gold); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: stretch; }
.tier {
  position: relative; border-radius: var(--radius); padding: 38px 30px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease;
}
.tier:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.tier-silver { border-top: 3px solid var(--silver); }
.tier-gold {
  border: 1px solid rgba(231, 192, 99, 0.4); border-top: 3px solid var(--gold);
  background: linear-gradient(180deg, rgba(231,192,99,0.06), var(--bg-2));
  box-shadow: var(--shadow-gold);
}
.tier-diamond { border-top: 3px solid var(--diamond-1); }
.tier-tag {
  position: absolute; top: -13px; right: 24px; padding: 5px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: linear-gradient(120deg, var(--gold), var(--gold-2)); color: #1a1405;
}
.tier-crown { font-size: 30px; margin-bottom: 8px; }
.tier h3 { font-size: 24px; margin-bottom: 4px; }
.tier .tier-sub { color: var(--text-mute); font-size: 14px; margin-bottom: 22px; }
.tier .price { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 22px; color: var(--text); }
.tier .price .soon { display: block; font-size: 13px; font-weight: 500; color: var(--text-mute); font-family: var(--font); margin-top: 2px; }
.tier ul { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-bottom: 28px; flex: 1; }
.tier li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--text-dim); }
.tier li svg { flex-shrink: 0; margin-top: 3px; color: var(--gold); }
.tier li.muted { color: var(--text-mute); }
.tier li.muted svg { color: var(--text-mute); }
.tier .btn { justify-content: center; width: 100%; }

/* ---------- Feedback ---------- */
.feedback-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: start;
  max-width: 1000px; margin: 0 auto;
}

/* approved testimonials */
.fb-list { display: flex; flex-direction: column; gap: 16px; }
.fb-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
  animation: floatIn .5s ease both;
}
.fb-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.fb-card-name { font-weight: 700; font-size: 15px; }
.fb-card-rate { color: var(--gold); font-size: 14px; letter-spacing: 1px; white-space: nowrap; }
.fb-card-rate .off { color: var(--line-2); }
.fb-card-msg { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; }
.fb-card-date { color: var(--text-mute); font-size: 12px; margin-top: 10px; }
.fb-empty { color: var(--text-mute); font-size: 14px; padding: 8px 2px; }

/* submission form */
.fb-form {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px;
  box-shadow: var(--shadow); position: sticky; top: 90px;
}
.fb-form h3 { font-size: 20px; margin-bottom: 4px; }
.fb-form-sub { color: var(--text-dim); font-size: 14px; margin-bottom: 20px; }
.fb-field { display: block; margin-bottom: 18px; }
.fb-label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 7px; }
.fb-form input[type="text"], .fb-form textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  background: rgba(255,255,255,0.03); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 14px; transition: border-color .2s;
}
.fb-form input[type="text"]:focus, .fb-form textarea:focus {
  outline: none; border-color: var(--gold);
}
.fb-form textarea { resize: vertical; min-height: 96px; }

/* star rating */
.fb-stars { display: inline-flex; gap: 4px; }
.fb-star {
  background: none; border: none; cursor: pointer; padding: 2px;
  font-size: 26px; line-height: 1; color: var(--line-2); transition: color .15s, transform .1s;
}
.fb-star:hover { transform: scale(1.12); }
.fb-star.on { color: var(--gold); }

.fb-submit { width: 100%; margin-top: 4px; justify-content: center; }
.fb-submit:disabled { opacity: .6; cursor: not-allowed; }
.fb-status { font-size: 13.5px; margin-top: 12px; min-height: 18px; }
.fb-status.ok { color: var(--green); }
.fb-status.err { color: var(--red); }
.fb-note { color: var(--text-mute); font-size: 12px; margin-top: 14px; line-height: 1.5; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact-card {
  max-width: 680px; margin: 0 auto;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 48px 40px;
  box-shadow: var(--shadow);
}
.contact-methods { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: 30px 0 20px; }
.contact-method {
  display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03); border: 1px solid var(--line); transition: border-color .25s, transform .25s;
}
.contact-method:hover { border-color: var(--gold); transform: translateY(-3px); }
.contact-method .cm-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.cm-icon.mail { background: rgba(231,192,99,0.12); color: var(--gold-2); }
.cm-icon.tg { background: rgba(42,168,224,0.14); color: #6cc5ee; }
.contact-method .cm-text { text-align: left; }
.contact-method .cm-text .lbl { font-size: 12px; color: var(--text-mute); }
.contact-method .cm-text .val { font-weight: 600; font-size: 15px; }
.reply-note {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
  color: var(--text-dim); font-size: 14px;
}
.reply-note .badge { color: var(--gold-2); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer p { color: var(--text-mute); font-size: 14px; }
.footer .disclaimer { max-width: 640px; font-size: 12.5px; color: var(--text-mute); margin-top: 14px; line-height: 1.6; }

/* ---------- Anatomy of a signal ---------- */
.anatomy { background: linear-gradient(180deg, transparent, rgba(15, 20, 32, 0.5), transparent); }
.anatomy-stage {
  display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 54px;
  align-items: center; max-width: 960px; margin: 0 auto;
}
.sig-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid rgba(231,192,99,0.28); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow);
  font-size: 14.5px;
}
.sig-badge {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  color: var(--gold-2); font-size: 16px; margin-bottom: 10px;
}
.sig-name { font-weight: 700; font-size: 16px; }
.sig-meta { color: var(--text-mute); font-size: 12.5px; margin-bottom: 14px; }
.sig-block { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.sig-h { color: var(--gold-2); font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.sig-conf { color: var(--text-dim); }
.sig-conf.dim { color: var(--text-mute); font-size: 13px; margin-top: 2px; }
.sig-line { color: var(--text-dim); }
.sig-line b { color: var(--text); }
.sig-foot { margin-top: 16px; font-size: 11px; color: var(--text-mute); }

.anno-dot {
  position: absolute; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #1a1405;
  box-shadow: 0 0 0 4px rgba(231,192,99,0.16); font-family: var(--font-display);
}
.anno-dot::before { content: attr(data-n); }
.anno-dot.d-grade { top: 14px; right: -13px; }
.anno-dot.d-conf  { top: 128px; right: -13px; }
.anno-dot.d-vol   { top: 128px; left: -13px; }
.anno-dot.d-setup { bottom: 66px; right: -13px; }

.anatomy-legend { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.anatomy-legend li { display: flex; gap: 15px; align-items: flex-start; }
.anatomy-legend .al-n {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
  background: rgba(231,192,99,0.12); border: 1px solid rgba(231,192,99,0.3);
  color: var(--gold-2); font-family: var(--font-display);
}
.anatomy-legend b { display: block; font-size: 16px; margin-bottom: 3px; }
.anatomy-legend em { color: var(--text-dim); font-style: normal; font-size: 14.5px; }

/* ---------- Track record (weekly report) ---------- */
.track { background: linear-gradient(180deg, transparent, rgba(15, 20, 32, 0.5), transparent); }
.track-stage {
  display: grid; grid-template-columns: minmax(320px, 1fr) minmax(280px, 380px); gap: 54px;
  align-items: start; max-width: 1000px; margin: 0 auto;
}
.report-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid rgba(231,192,99,0.28); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow);
}
.rc-title { font-family: var(--font-display); font-weight: 700; color: var(--gold-2); font-size: 16px; }
.rc-sub { color: var(--text-mute); font-size: 12.5px; margin: 2px 0 14px; }
.rc-h {
  color: var(--gold-2); font-weight: 600; font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; margin: 16px 0 6px;
}
.rc-table {
  margin: 0; padding: 12px 14px; overflow-x: auto;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: 'SFMono-Regular', ui-monospace, 'Menlo', 'Consolas', monospace;
  font-size: 12px; line-height: 1.6; color: var(--text-dim);
  white-space: pre; -webkit-overflow-scrolling: touch;
}
.rc-table .rc-col  { color: var(--text-mute); }
.rc-table .rc-rule { color: var(--line-2); }
.rc-table .rc-week { color: var(--gold-2); font-weight: 700; display: inline-block; margin-top: 2px; }
.rc-table .rc-win  { color: var(--green); }
.rc-table .rc-loss { color: var(--red); }
.rc-table .rc-open { color: var(--blue); }
.rc-table .rc-exp  { color: var(--text-mute); }
.rc-totals { display: flex; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.rc-tot {
  flex: 1 1 140px; display: flex; flex-direction: column; gap: 2px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 14px;
}
.rc-tot .lbl { color: var(--text-mute); font-size: 12px; letter-spacing: 0.04em; }
.rc-tot b { font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.rc-tot b.up { color: var(--green); }
.rc-tot b.down { color: var(--red); }
.rc-tot em { color: var(--text-dim); font-style: normal; font-size: 12.5px; }

.track-legend { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.track-legend li { display: flex; gap: 15px; align-items: flex-start; }
.track-legend .al-n {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
  background: rgba(231,192,99,0.12); border: 1px solid rgba(231,192,99,0.3);
  color: var(--gold-2); font-family: var(--font-display);
}
.track-legend b { display: block; font-size: 16px; margin-bottom: 3px; }
.track-legend em { color: var(--text-dim); font-style: normal; font-size: 14.5px; }
.track-legend em b { display: inline; font-size: inherit; color: var(--blue); }

/* ---------- Score gauge (feature card) ---------- */
.score-gauge { margin-top: 16px; }
.sg-track { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; }
.sg-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-2));
}
.sg-scale { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--text-mute); }

/* ---------- How it works — hub + branching numbered steps ---------- */
.workflow {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  align-items: center;
  gap: 56px;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

/* central hub */
.wf-hub {
  position: relative;
  justify-self: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  width: 200px; height: 200px; border-radius: 50%;
  padding: 24px; text-align: center;
  background: radial-gradient(circle at 50% 35%, rgba(231,192,99,0.14), var(--surface) 70%);
  border: 1px solid rgba(231,192,99,0.3);
  box-shadow: 0 0 0 8px rgba(231,192,99,0.04), 0 18px 48px rgba(0,0,0,0.35);
}
.wf-hub img { border-radius: 12px; }
.wf-hub span {
  font-family: var(--font-display); font-weight: 700;
  font-size: 15px; line-height: 1.3; color: var(--gold-2);
}

/* branch line from hub to the step column */
.wf-hub::after {
  content: ""; position: absolute; top: 50%; left: 100%;
  width: 56px; height: 2px; transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(231,192,99,0.5), rgba(231,192,99,0.12));
}

/* stacked step bars */
.wf-steps {
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
}
/* vertical spine the branches hang off */
.wf-steps::before {
  content: ""; position: absolute; top: 20px; bottom: 20px; left: -28px;
  width: 2px; background: linear-gradient(180deg, rgba(231,192,99,0.35), rgba(231,192,99,0.1));
}

.wf-step {
  position: relative;
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px;
}
/* connector from spine to each step */
.wf-step::before {
  content: ""; position: absolute; top: 50%; left: -28px;
  width: 28px; height: 2px; transform: translateY(-50%);
  background: rgba(231,192,99,0.28);
}

.wf-num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #1a1405;
  font-weight: 800; font-size: 17px; font-family: var(--font-display);
  box-shadow: 0 4px 14px rgba(231,192,99,0.3); z-index: 1;
}

/* chevron-shaped body bar */
.wf-bar {
  min-width: 0;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 22px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
  transition: border-color .25s ease, transform .25s ease;
}
.wf-step:hover .wf-bar { border-color: rgba(231,192,99,0.4); transform: translateX(4px); }
.wf-bar h4 { font-size: 16px; margin: 0 0 4px; }
.wf-bar p { color: var(--text-dim); font-size: 14px; line-height: 1.5; margin: 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

@keyframes floatIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); padding: 4px 0; }
  .workflow { grid-template-columns: 1fr; gap: 36px; max-width: 480px; }
  .wf-hub { width: 168px; height: 168px; }
  .wf-hub::after { display: none; }
  .wf-steps::before, .wf-step::before { display: none; }
  .anatomy-stage { grid-template-columns: 1fr; gap: 40px; max-width: 440px; }
  .track-stage { grid-template-columns: 1fr; gap: 36px; max-width: 560px; }
  .feedback-grid { grid-template-columns: 1fr; gap: 24px; max-width: 560px; }
  .fb-form { position: static; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(10,14,23,0.96); backdrop-filter: blur(16px); padding: 24px; gap: 18px; border-bottom: 1px solid var(--line);
  }
  .section { padding: 80px 0; }
  .hero { padding: 140px 0 70px; }
  .hero-stats { gap: 32px; }
}
@media (max-width: 520px) {
  .hero-stats { gap: 24px; }
  .hstat .num { font-size: 32px; }
  .contact-card { padding: 34px 24px; }
  .report-card { padding: 18px 16px; }
  .rc-table { font-size: 10.5px; padding: 10px; }
}
