/* ════════════════════════════════════════
   Alukit — Soft Graphite Theme
   Deep blue-gray surfaces instead of pure black, off-white text instead of
   pure white: less glare, same monochrome feel.
   ════════════════════════════════════════ */

:root {
  --bg:       #121418;
  --bg1:      #171a1f;
  --bg2:      #1d2127;
  --bg3:      #252a31;
  --border:   rgba(255,255,255,0.08);
  --border2:  rgba(255,255,255,0.14);
  --text:     #e9ebef;
  --muted:    #8d939e;
  --soft:     #b7bcc5;
  --white:    #f6f7f9;
  --ink:      #14171c;   /* dark text on the white buttons */
  /* The one accent. Used sparingly: main buttons, live dots, section labels, icons. */
  /* To change the accent, edit only the three values marked "edit". Everything else,
     including every glow and tint in this file, is derived from them. */
  --accent-rgb:        124,151,255;        /* edit: light blue for text, dots and icons */
  --accent-strong-rgb: 66,99,235;          /* edit: deeper blue for button fills (white text passes AA) */
  --accent-hover:      #5574f7;            /* edit: button fill on hover */
  --accent:        rgb(var(--accent-rgb));
  --accent-strong: rgb(var(--accent-strong-rgb));
  --accent-soft:   rgba(var(--accent-rgb),0.12); /* tinted fills behind accent icons */
  --accent-line:   rgba(var(--accent-rgb),0.28); /* tinted borders */
  --r:        14px;
  --r-lg:     20px;
  --font:     "Inter", system-ui, sans-serif;
  --max:      1120px;
  --ease:     cubic-bezier(0.22,1,0.36,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* No CSS smooth scrolling here on purpose. The nav script animates in-page links itself;
   turning it on for the whole page made the browser slide down the page on every refresh. */
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
h1,h2,h3 { line-height: 1.1; letter-spacing: -0.025em; }
::selection { background: rgba(var(--accent-rgb),0.35); color: var(--white); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── NOISE TEXTURE ── */
.noise {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── NAV ── */
.nav {
  position: fixed; top: 14px; left: 0; right: 0;
  z-index: 100; padding: 0 1rem;
  transition: top 0.3s var(--ease);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; max-width: var(--max); margin-inline: auto; padding: 0 0.7rem 0 1.3rem;
  border-radius: 999px;
  background: rgba(23,26,31,0.72);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px -16px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled .nav-inner { background: rgba(20,23,28,0.86); box-shadow: 0 16px 48px -16px rgba(0,0,0,0.95), inset 0 1px 0 rgba(255,255,255,0.05); }
.nav-logo {
  display: inline-flex; align-items: center; gap: 0.55rem;
}
.nav-logo-img {
  width: 30px; height: 30px;
  object-fit: contain;
  border-radius: 6px;
}
.nav-logo-text {
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.04em; color: var(--white);
}
.nav-links { position: relative; display: flex; align-items: center; gap: 0.15rem; padding: 0.3rem; }
.nav-links a {
  position: relative; z-index: 1;
  padding: 0.5rem 1rem; border-radius: 999px;
  font-size: 0.875rem; font-weight: 500; color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-pill {
  position: absolute; top: 0.3rem; left: 0; width: 0; height: calc(100% - 0.6rem);
  border-radius: 999px; opacity: 0;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  transition: left 0.4s var(--ease), width 0.4s var(--ease), opacity 0.25s;
  pointer-events: none;
}
section { scroll-margin-top: 0; }
.nav-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  color: var(--muted);
  border: 1px solid var(--border); background: rgba(255,255,255,0.03);
  transition: color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.nav-x:hover { color: var(--white); border-color: var(--border2); transform: translateY(-1px); }
.nav-actions { display: flex; align-items: center; gap: 0.6rem; }

/* ── BUTTONS ── */
.btn-white {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.6rem; border-radius: var(--r);
  background: var(--white); color: var(--ink);
  font-size: 0.95rem; font-weight: 700;
  transition: opacity 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
  border: none;
}
.btn-white:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 8px 28px -6px rgba(255,255,255,0.18); }
.btn-white.btn-lg { padding: 0.95rem 2rem; font-size: 1rem; }
.btn-white.btn-xl { padding: 1.15rem 2.5rem; font-size: 1.1rem; gap: 0.65rem; border-radius: 16px; }
/* Primary call to action: same shape as .btn-white, filled with the accent.
   Used together with it (class="btn-white btn-primary") so sizes and layout stay shared. */
.btn-white.btn-primary {
  background: var(--accent-strong); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 10px 30px -12px rgba(var(--accent-strong-rgb),0.7);
  transition: background 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.btn-white.btn-primary:hover {
  opacity: 1; background: var(--accent-hover);
  box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset, 0 14px 36px -10px rgba(var(--accent-strong-rgb),0.85);
}
.btn-popout { flex-shrink: 0; transition: transform 0.25s var(--ease); }
.btn-white:hover .btn-popout { transform: translate(2px, -2px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.6rem; border-radius: var(--r);
  border: 1px solid rgba(255,255,255,0.28); color: var(--white);
  font-size: 0.95rem; font-weight: 600;
  transition: border-color 0.2s, color 0.2s, transform 0.25s var(--ease);
}
.btn-outline:hover { border-color: var(--white); transform: translateY(-1px); }

/* ── HERO ── */
.hero {
  position: relative; z-index: 1;
  /* leave room for the marquee band so it sits inside the first screen */
  min-height: calc(100vh - 110px);
  min-height: calc(100svh - 110px);
  display: flex; align-items: center; gap: 4rem;
  max-width: var(--max); margin-inline: auto;
  padding: 7rem 2rem 3.5rem;
}
.hero-glow {
  position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  /* never wider than the page: a fixed 900px made phones lay the page out too wide and zoom out */
  width: 900px; max-width: 100%; height: 500px;
  background: radial-gradient(ellipse at center, rgba(var(--accent-rgb),0.10) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero-left { flex: 1; min-width: 0; position: relative; z-index: 1; }
.hero-right { flex-shrink: 0; width: 410px; position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.8rem; font-weight: 500; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 0.35rem 0.9rem; margin-bottom: 2rem;
  letter-spacing: 0.01em;
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb),0.8);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.35} }

.hero-h1 {
  font-size: clamp(3rem, 6.5vw, 5rem);
  font-weight: 900; color: var(--white);
  margin-bottom: 1.5rem; line-height: 1.05;
}
/* one block per line, so every line starts from the same edge and is shaped on its own */
.h1-line { display: block; }
.h1-accent {
  background: linear-gradient(90deg, #fff 0%, #9fb3ff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-p {
  font-size: 1.05rem; color: var(--soft); line-height: 1.75;
  max-width: 50ch; margin-bottom: 2.25rem;
}
.hero-p strong { color: var(--white); font-weight: 700; }
.hero-btns { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-metrics {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.hm { display: flex; flex-direction: column; gap: 0.1rem; }
.hm strong { font-size: 1.6rem; font-weight: 800; color: var(--white); letter-spacing: -0.03em; }
.hm span { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }
.hm-sep { width: 1px; height: 36px; background: var(--border); flex-shrink: 0; }

/* HERO CARD UI */
.tool-card-ui {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 590px;
  display: flex; flex-direction: column;
  box-shadow: 0 32px 80px -20px rgba(0,0,0,0.9), 0 0 0 1px var(--border);
  transition: transform 0.5s var(--ease);
}
.tool-card-ui.tilting { transition: transform 0.12s ease-out; }

/* Desktop: the hero is designed for a window about 950px tall. --u is one "design pixel":
   1px at that height or taller, shrinking in step with the window down to 0.68px. Every
   hero size below is a multiple of it, so a laptop or a half-size window shows the same
   composition as a full monitor instead of a cramped one, and the marquee stays in the
   first view. Text has px floors so it never gets too small to read.
   Keep this block below the base hero rules so it wins. */
@media (min-width: 901px) {
  /* --w is the same idea for widths and the demo card. It stops at 76%, where the body text
     and the card reach their minimum sizes, so the row never gets too narrow to hold them. */
  :root { --u: clamp(0.68px, 0.1053vh, 1px); --w: clamp(0.76px, 0.1053vh, 1px); }
  /* The layout width shrinks with the content. Without this the text and the card get
     smaller but stay pinned to the edges of a 1120px row, leaving a dead zone between them.
     The nav pill follows, so its edges keep lining up with the hero like on a big monitor. */
  .nav-inner { max-width: calc(var(--w) * 1120); }
  .hero {
    max-width: calc(var(--w) * 1120);
    gap: clamp(1.5rem, 4vw, calc(var(--u) * 64));
    /* the nav's height does not scale, so the top padding never drops below what clears it */
    padding: clamp(96px, 13.5vh, 112px) calc(var(--u) * 32) max(24px, calc(var(--u) * 56));
  }
  /* the demo card is a mock UI, so it shrinks like a picture: its box follows --w and the
     zoom steps further down scale what is inside to match */
  .hero-right { width: calc(var(--w) * 410); }
  .eyebrow {
    font-size: max(11px, calc(var(--u) * 12.8));
    padding: calc(var(--u) * 5.6) calc(var(--u) * 14.4);
    margin-bottom: calc(var(--u) * 32);
  }
  /* also capped by the column width, so the longest line never wraps in a narrow window */
  .hero-h1 {
    font-size: max(2.25rem, min(calc(var(--u) * 80), calc((100vw - 560px) / 6.6)));
    margin-bottom: calc(var(--u) * 24);
  }
  /* Optical alignment. Every glyph has a little built-in space on its left, and at this size
     it shows: Inter Black's "T" starts 0.028em in, its "F" 0.046em. Pulling each line
     back by its own first letter's amount puts the ink of all three lines flush with the
     pill above and the paragraph and button below. Update these if the wording changes. */
  .h1-line { margin-left: -0.028em; }
  /* The F is deliberately left about 2px short of flush. Its stem is a solid full-height
     edge, while a T only reaches the margin with the thin tip of its crossbar, so a
     mathematically flush F looks like it sticks out past the lines above. */
  .h1-line:last-child { margin-left: -0.02em; }
  .hero-p { font-size: max(13.5px, calc(var(--u) * 16.8)); margin-bottom: calc(var(--u) * 36); }
  .hero-btns { gap: calc(var(--u) * 14.4); margin-bottom: calc(var(--u) * 48); }
  .hero-btns .btn-outline, .hero-btns .btn-white {
    font-size: max(13px, calc(var(--u) * 15.2));
    padding: calc(var(--u) * 12.8) calc(var(--u) * 25.6);
  }
  .hero-metrics { gap: clamp(0.6rem, calc(3vw - 16px), calc(var(--u) * 24)); }
  .hm strong { font-size: max(20px, calc(var(--u) * 25.6)); }
  .hm-sep { height: calc(var(--u) * 36); }
  .tool-card-ui { min-height: calc(var(--w) * 590); }
}
/* Zoom for the card's contents, one step per 50px of window height. Each step uses the scale
   at the bottom of its range so the contents always fit the box. The fake cursor is left out:
   the demo script positions it in real pixels relative to the card. */
@media (min-width: 901px) and (max-height: 949px) { .tool-card-ui > :not(.tcu-cursor) { zoom: 0.947; } }
@media (min-width: 901px) and (max-height: 899px) { .tool-card-ui > :not(.tcu-cursor) { zoom: 0.895; } }
@media (min-width: 901px) and (max-height: 849px) { .tool-card-ui > :not(.tcu-cursor) { zoom: 0.842; } }
@media (min-width: 901px) and (max-height: 799px) { .tool-card-ui > :not(.tcu-cursor) { zoom: 0.789; } }
@media (min-width: 901px) and (max-height: 749px) { .tool-card-ui > :not(.tcu-cursor) { zoom: 0.76; } }
.tcu-header {
  display: flex; align-items: center; gap: 0.25rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.tcu-logo { width: 24px; height: 24px; border-radius: 6px; object-fit: contain; }
.tcu-title { flex: 1; font-size: 0.9rem; font-weight: 700; color: var(--white); }
.tcu-live {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.7rem; color: var(--white); font-weight: 600;
}
.tcu-live i {
  display: block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px rgba(var(--accent-rgb),0.8);
  animation: blink 2s infinite;
}
.tcu-list { flex: 1; padding: 1rem; display: flex; flex-direction: column; justify-content: center; gap: 0.6rem; }
.tcu-item {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.95rem 1rem;
  border-radius: var(--r);
  border: 1px solid var(--border);
  font-size: 0.95rem; font-weight: 500; color: var(--muted);
  transition: border-color 0.2s;
}
.tcu-item svg { flex-shrink: 0; opacity: 0.5; width: 16px; height: 16px; }
.tcu-on { border-color: rgba(255,255,255,0.14); color: var(--white); }
.tcu-on svg { opacity: 1; }
.tcu-badge {
  margin-left: auto; font-size: 0.72rem; font-weight: 700;
  padding: 0.22rem 0.6rem; border-radius: 999px;
  background: rgba(255,255,255,0.12); color: var(--white);
  letter-spacing: 0.04em;
}
.tcu-badge-dim {
  background: rgba(255,255,255,0.04); color: var(--muted);
}
.tcu-footer {
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem; color: var(--muted);
  display: flex; align-items: center; justify-content: flex-end;
}
.tcu-footer span { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--soft); }
.tcu-dot-sm { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--white); }

/* hero demo: row states + fake cursor */
.tcu-item { transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.12s; }
.tcu-item.hover { border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.04); color: var(--white); }
.tcu-item.hover svg { opacity: 1; }
.tcu-item.press { transform: scale(0.985); background: rgba(255,255,255,0.08); }
.tcu-cursor {
  position: absolute; left: 0; top: 0; z-index: 5;
  opacity: 0; pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
  transition: opacity 0.3s;
}
.tcu-cursor svg { display: block; transform-origin: 2px 2px; transition: transform 0.12s; }
.tcu-cursor.visible { opacity: 1; }
.tcu-cursor.click svg { transform: scale(0.82); }

/* hero demo: X Tracker panel */
.tcu-xpanel {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column;
  background: var(--bg2);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.tcu-xpanel.show { opacity: 1; transform: translateY(0); }
.xp-header {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  font-size: 0.86rem;
}
.xp-back {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; margin-right: 0.15rem;
  color: var(--soft); border: 1px solid var(--border); background: rgba(255,255,255,0.03);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.12s;
}
.xp-back.hover { background: rgba(255,255,255,0.08); border-color: var(--border2); color: var(--white); }
.xp-back.press { transform: scale(0.9); background: rgba(255,255,255,0.14); }
.xp-logo { width: 18px; height: 18px; border-radius: 4px; object-fit: contain; margin-right: -0.15rem; }
.xp-brand { font-weight: 700; color: var(--white); }
.xp-sep { color: var(--border2); }
.xp-title { color: var(--soft); font-weight: 500; flex: 1; }
.xp-icons { display: inline-flex; gap: 0.55rem; color: var(--muted); }
.xp-search {
  margin: 0.85rem 0.85rem 0.3rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border); border-radius: var(--r);
  background: rgba(255,255,255,0.02);
  font-size: 0.75rem; color: var(--muted);
}
.xp-list { flex: 1; min-height: 0; overflow: hidden; padding: 0.55rem 0.85rem 0.85rem; display: flex; flex-direction: column; gap: 0.45rem; }
.xp-card {
  flex-shrink: 0;
  padding: 0.6rem 0.7rem;
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
  opacity: 0; transform: translateY(8px);
}
.tcu-xpanel.show .xp-card { animation: xpIn 0.4s var(--ease) forwards; }
.tcu-xpanel.show .xp-card:nth-child(2) { animation-delay: 0.08s; }
.tcu-xpanel.show .xp-card:nth-child(3) { animation-delay: 0.16s; }
.tcu-xpanel.show .xp-card:nth-child(4) { animation-delay: 0.24s; }
@keyframes xpIn { to { opacity: 1; transform: translateY(0); } }
.xp-live { display: none; overflow: hidden; }
.xp-live.on { display: block; animation: xpLive 0.5s var(--ease) forwards !important; }
@keyframes xpLive {
  from { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; transform: translateY(-8px); }
  40%  { opacity: 0; }
  to   { opacity: 1; max-height: 300px; padding-top: 0.6rem; padding-bottom: 0.6rem; transform: translateY(0); }
}
.xp-signal { border-color: rgba(29,155,240,0.35); background: rgba(29,155,240,0.08); }
.xp-top { display: flex; align-items: center; gap: 0.5rem; }
.xp-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 800; color: #fff; letter-spacing: 0.02em;
  object-fit: cover; background: #222;
}
.xp-av-a { background: #2b4a7a; } .xp-av-b { background: #5a3b7a; } .xp-av-c { background: #2f6b4f; } .xp-av-d { background: #7a2b2b; }
.xp-who { min-width: 0; }
.xp-name { font-size: 0.86rem; font-weight: 700; color: var(--white); display: flex; align-items: center; gap: 0.35rem; }
.xp-tag { font-size: 0.55rem; font-weight: 700; color: #1d9bf0; border: 1px solid rgba(29,155,240,0.5); border-radius: 999px; padding: 0.05rem 0.4rem; letter-spacing: 0.05em; text-transform: uppercase; }
.xp-meta { font-size: 0.72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-text { font-size: 0.82rem; line-height: 1.5; color: var(--soft); margin-top: 0.45rem; }

/* hero demo: Advanced Filters panel */
.tcu-fpanel {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column;
  background: var(--bg2);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.tcu-fpanel.show { opacity: 1; transform: translateY(0); }
.af-body { flex: 1; min-height: 0; overflow: hidden; padding: 0.8rem 0.9rem 0; display: flex; flex-direction: column; gap: 0.6rem; }
.af-chips { display: flex; gap: 0.25rem; padding: 0.25rem; border: 1px solid var(--border); border-radius: var(--r); background: rgba(255,255,255,0.02); }
.af-chip { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.35rem; padding: 0.4rem 0.3rem; border-radius: 6px; font-size: 0.7rem; color: var(--muted); white-space: nowrap; }
.af-chip b { font-size: 0.58rem; font-weight: 700; color: var(--muted); background: rgba(255,255,255,0.08); border-radius: 999px; padding: 0.05rem 0.4rem; }
.af-chip.on { background: rgba(255,255,255,0.1); color: var(--white); font-weight: 600; }
.af-ranges { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 0.6rem; }
.af-range:last-child { grid-column: 1 / -1; }
.af-lab { font-size: 0.64rem; color: var(--soft); margin-bottom: 0.2rem; }
.af-inputs { display: flex; gap: 0.35rem; }
.af-inputs span { flex: 1; padding: 0.4rem 0.55rem; border: 1px solid var(--border); border-radius: 6px; background: rgba(255,255,255,0.02); font-size: 0.66rem; color: var(--muted); }
.af-head { display: flex; align-items: center; gap: 0.4rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); padding-bottom: 0.3rem; border-bottom: 1px solid var(--border); margin-top: 0.1rem; }
.af-head i { width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--border2); font-size: 0.55rem; font-style: italic; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; color: var(--soft); }
.af-list { display: flex; flex-direction: column; gap: 0.15rem; }
.af-item { display: flex; align-items: center; gap: 0.55rem; padding: 0.3rem 0.35rem; border-radius: 6px; font-size: 0.76rem; color: var(--soft); transition: background 0.15s, transform 0.12s; }
.af-item.press { background: rgba(255,255,255,0.06); transform: scale(0.99); }
.af-box { width: 15px; height: 15px; flex-shrink: 0; border-radius: 4px; border: 1px solid var(--border2); background: rgba(255,255,255,0.04); position: relative; transition: background 0.15s, border-color 0.15s; }
.af-item.on { color: var(--white); }
.af-item.on .af-box { background: var(--white); border-color: var(--white); }
.af-item.on .af-box::after { content: ''; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.af-foot { display: flex; align-items: center; gap: 0.4rem; padding: 0.7rem 0.9rem; border-top: 1px solid var(--border); }
.af-io { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--soft); }
.af-save { margin-left: auto; padding: 0.45rem 1.1rem; border-radius: 999px; background: var(--white); color: var(--ink); font-size: 0.74rem; font-weight: 700; }
.af-save { transition: opacity 0.15s, transform 0.12s, background 0.2s; }
.af-save.hover { opacity: 0.85; }
.af-save.press { transform: scale(0.95); }
.af-save.on { background: #30a46c; color: #fff; }

/* hero demo: Coin Scanner panel */
.tcu-rpanel {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column;
  background: var(--bg2);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.tcu-rpanel.show { opacity: 1; transform: translateY(0); }
.rp-body { flex: 1; min-height: 0; overflow: hidden; padding: 0.9rem 0.9rem 0; display: flex; flex-direction: column; gap: 0.6rem; }
.rp-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.rp-label { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.rp-coin { font-size: 1.1rem; font-weight: 800; color: var(--white); margin-top: 0.1rem; }
.rp-coin span { font-weight: 500; color: var(--soft); }
.rp-refresh {
  width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); color: var(--soft); background: rgba(255,255,255,0.03);
}
.tcu-rpanel.show:not(.done) .rp-refresh svg { animation: rpSpin 0.9s linear infinite; }
@keyframes rpSpin { to { transform: rotate(360deg); } }
.rp-status {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 0.7rem; border: 1px solid var(--border); border-radius: var(--r);
  font-size: 0.8rem; color: #bbb; text-align: center;
}
.rp-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; animation: rpPulse 0.9s ease-in-out infinite; }
@keyframes rpPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.7); } }
.tcu-rpanel.done .rp-status { display: none; }
.rp-results { display: none; flex-direction: column; gap: 0.6rem; }
.tcu-rpanel.done .rp-results { display: flex; }
.tcu-rpanel.done .rp-results > * { opacity: 0; transform: translateY(6px); animation: xpIn 0.35s var(--ease) forwards; }
.tcu-rpanel.done .rp-results > :nth-child(2) { animation-delay: 0.08s; }
.tcu-rpanel.done .rp-results > :nth-child(3) { animation-delay: 0.16s; }
.tcu-rpanel.done .rp-results > :nth-child(4) { animation-delay: 0.24s; }
.rp-trust {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.8rem 0.9rem; border-radius: var(--r);
  border: 1px solid rgba(229,72,77,0.45); background: rgba(229,72,77,0.06);
}
.rp-gauge { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.rp-gauge svg { width: 64px; height: 64px; }
.rp-gauge b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 800; color: var(--white); }
.tcu-rpanel.done .rp-gauge-arc { animation: rpArc 0.9s var(--ease) 0.2s forwards; }
@keyframes rpArc { to { stroke-dashoffset: 74; } }
.rp-risk { font-size: 0.95rem; font-weight: 800; color: #e5484d; margin: 0.05rem 0 0.2rem; }
.rp-row { display: flex; align-items: center; gap: 0.4rem; font-size: 0.7rem; color: var(--soft); line-height: 1.5; }
.rp-row i { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.rp-dot-red { background: #e5484d; } .rp-dot-green { background: #30a46c; } .rp-dot-amber { background: #f5a524; }
.rp-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
.rp-tile { padding: 0.7rem 0.6rem; border-radius: var(--r); border: 1px solid var(--border); background: rgba(255,255,255,0.03); text-align: center; }
.rp-big { font-size: 1.25rem; font-weight: 800; margin: 0.15rem 0 0.1rem; }
.rp-blue { color: #5b8cff; } .rp-amber { color: #f5a524; }
.rp-sub { font-size: 0.68rem; color: var(--muted); line-height: 1.4; }
.rp-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.65rem 0.75rem; border-radius: var(--r);
  border: 1px solid var(--border); border-left: 3px solid #e5484d; background: rgba(255,255,255,0.03);
}
.rp-bar-val { text-align: right; flex-shrink: 0; }
.rp-bar-val b { display: block; font-size: 0.95rem; font-weight: 800; color: #e5484d; }
.rp-bar-val span { font-size: 0.66rem; color: var(--muted); }
.xp-ctx { font-size: 0.66rem; color: var(--muted); margin-top: 0.35rem; }
.xp-video { position: relative; margin-top: 0.45rem; }
.xp-video .xp-media { margin-top: 0; }
.xp-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.6); color: #fff; border: 1px solid rgba(255,255,255,0.35);
}
.xp-media { display: block; width: 100%; max-height: 120px; object-fit: cover; border-radius: 6px; margin-top: 0.45rem; background: var(--bg2); }
.xp-avatar[src] { background: #222; object-fit: cover; }

/* ── MARQUEE ── */
.marquee-band {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 0.9rem 0; overflow: hidden;
  background: var(--bg1);
}
.marquee-track {
  display: flex; align-items: center;
  width: max-content;
  animation: marquee 30s linear infinite;
  will-change: transform;
  white-space: nowrap;
}
.marquee-group { display: flex; align-items: center; gap: 1.5rem; padding-right: 1.5rem; flex-shrink: 0; }
.marquee-track span { font-size: 0.82rem; font-weight: 500; color: var(--muted); }
.marquee-track b { color: var(--border2); font-weight: 400; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track.js { animation: none; }

/* ── DEMO VIDEO ── */
/* Section spacing: about 8.5rem of air between one block of content and the next,
   split between the bottom padding of one section and the top padding of the one after. */
.demo { padding: 4.5rem 2rem 3rem; }
.demo-wrap { max-width: 1040px; margin-inline: auto; }
.demo-frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg1); border: 1px solid var(--border2);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.95), 0 0 0 1px var(--border);
  aspect-ratio: 16 / 9;
}
.demo-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.demo-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(246,247,249,0.92); color: var(--ink);
  display: flex; align-items: center; justify-content: center; padding-left: 4px;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.8);
  transition: transform 0.25s var(--ease), opacity 0.25s, background 0.2s;
}
.demo-play:hover { transform: translate(-50%, -50%) scale(1.06); background: var(--white); }
.demo-play.hidden { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(0.8); }
@media (max-width: 600px) { .demo { padding: 4rem 1rem 2rem; } .demo-play { width: 64px; height: 64px; } }

/* ── SECTION SHARED ── */
section { position: relative; z-index: 1; }
.sec-head {
  text-align: center; margin-bottom: 2.75rem;
  max-width: var(--max); margin-inline: auto; padding-inline: 2rem;
}
.sec-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; color: var(--white); margin-bottom: 0.9rem;
}
.sec-head p { font-size: 1rem; color: var(--soft); max-width: 48ch; margin-inline: auto; line-height: 1.7; }
.sec-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 0.9rem;
}

/* ── FEATURES ── */
.features { padding: 5.5rem 2rem 4rem; }
.bc-ico {
  width: 40px; height: 40px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: var(--r);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}
.bc-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; }
.bc-tags span {
  padding: 0.22rem 0.6rem; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted);
  font-size: 0.7rem; font-weight: 500;
}

/* ── FEATURES: live tool demos ── */
.tools-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
  max-width: 1400px; margin-inline: auto; padding-inline: 2rem;
}
.tool-demo {
  min-width: 0;
  display: flex; flex-direction: column; gap: 1rem;
  padding: 1.2rem; border-radius: var(--r-lg);
  background: var(--bg1); border: 1px solid var(--border);
}
.td-head { display: flex; align-items: flex-start; gap: 0.9rem; }
.td-head h3 { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 0.35rem; }
.td-head p { font-size: 0.84rem; color: var(--soft); line-height: 1.6; }
.demo-panel {
  --panel-h: 600px;
  position: relative; height: var(--panel-h);
  display: flex; flex-direction: column;
  background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.9), 0 0 0 1px var(--border);
}
.td-hint { font-size: 0.76rem; color: var(--muted); line-height: 1.5; }
.td-hint b { color: var(--soft); font-weight: 600; }
.xp-search-input {
  margin: 0.85rem 0.85rem 0.3rem; padding: 0.6rem 0.8rem;
  border: 1px solid var(--border); border-radius: var(--r);
  background: rgba(255,255,255,0.02); color: var(--white);
  font: inherit; font-size: 0.8rem; outline: none; transition: border-color 0.2s;
}
.xp-search-input::placeholder { color: var(--muted); }
.xp-search-input:focus { border-color: rgba(255,255,255,0.35); }
.xp-paused {
  display: none; align-items: center; gap: 0.3rem;
  margin-right: 0.5rem; padding: 0.15rem 0.5rem; border-radius: 999px;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #e5484d; border: 1px solid rgba(229,72,77,0.5); background: rgba(229,72,77,0.1);
}
.demo-panel.paused .xp-paused { display: inline-flex; animation: xpIn 0.2s var(--ease) both; }
.demo-panel .xp-card { flex-shrink: 0; }
.demo-panel .xp-live { display: block; }
.demo-panel .xp-live.on { animation: xpLive 0.5s var(--ease) forwards; }
.demo-panel .xp-list { overflow: auto; overflow-anchor: none; scrollbar-width: thin; scrollbar-color: var(--border2) transparent; scrollbar-gutter: stable; }
.demo-panel .xp-list .xp-card { opacity: 1; transform: none; }
.demo-panel a.xp-card { display: block; color: inherit; cursor: pointer; transition: background 0.15s; }
.demo-panel a.xp-card:hover { background: rgba(29,155,240,0.14); }

/* scanner demo states */
#rcDemo .rp-status { display: flex; }
#rcDemo .rp-results { display: none; }
#rcDemo.done .rp-status { display: none; }
#rcDemo.done .rp-results { display: flex; }
#rcDemo.done .rp-results > * { opacity: 0; transform: translateY(6px); animation: xpIn 0.35s var(--ease) forwards; }
#rcDemo.done .rp-results > :nth-child(2) { animation-delay: 0.08s; }
#rcDemo.done .rp-results > :nth-child(3) { animation-delay: 0.16s; }
#rcDemo.done .rp-results > :nth-child(4) { animation-delay: 0.24s; }
#rcDemo:not(.done) .rp-refresh svg { animation: rpSpin 0.9s linear infinite; }
#rcDemo .rc-arc { stroke-dashoffset: 125.6px; }
#rcDemo.done .rc-arc { animation: rcArc 0.9s var(--ease) 0.2s forwards; }
@keyframes rcArc { to { stroke-dashoffset: var(--rc-off, 74px); } }
.rp-trust.risk-high { border-color: rgba(229,72,77,0.45); background: rgba(229,72,77,0.06); }
.rp-trust.risk-mid  { border-color: rgba(245,165,36,0.45); background: rgba(245,165,36,0.06); }
.rp-trust.risk-ok   { border-color: rgba(48,164,108,0.45); background: rgba(48,164,108,0.06); }
.rp-risk.risk-high { color: #e5484d; } .rp-risk.risk-mid { color: #f5a524; } .rp-risk.risk-ok { color: #30a46c; }
.rp-bar.risk-high { border-left-color: #e5484d; } .rp-bar.risk-high .rp-bar-val b { color: #e5484d; }
.rp-bar.risk-mid  { border-left-color: #f5a524; } .rp-bar.risk-mid  .rp-bar-val b { color: #f5a524; }
.rp-bar.risk-ok   { border-left-color: #30a46c; } .rp-bar.risk-ok   .rp-bar-val b { color: #30a46c; }

/* filters demo controls */
#afDemo .af-body { padding: 0.75rem 0.8rem 0; gap: 0.55rem; }
#afDemo .af-chips { gap: 0.15rem; }
#afDemo .af-chip { min-width: 0; padding: 0.38rem 0.2rem; font-size: 0.62rem; gap: 0.25rem; overflow: hidden; }
#afDemo .af-chip b { font-size: 0.52rem; padding: 0.02rem 0.32rem; }
#afDemo .af-ranges { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem 0.5rem; }
#afDemo .af-range { min-width: 0; }
#afDemo .af-lab { font-size: 0.6rem; }
#afDemo .af-head { font-size: 0.62rem; }
#afDemo .af-list { gap: 0.05rem; }
#afDemo .af-item { font-size: 0.72rem; padding: 0.28rem 0.3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#afDemo .af-foot { padding: 0.6rem 0.8rem; }
#afDemo .af-chip { border: none; font-family: inherit; cursor: pointer; transition: background 0.15s, color 0.15s; }
#afDemo .af-chip:hover:not(.on) { color: var(--soft); }
#afDemo .af-inputs input {
  flex: 1; min-width: 0; padding: 0.45rem 0.6rem; border: 1px solid var(--border); border-radius: 6px;
  background: rgba(255,255,255,0.02); color: var(--white); font-family: inherit; font-size: 0.72rem; outline: none; transition: border-color 0.2s;
}
#afDemo .af-inputs input::placeholder { color: var(--muted); }
#afDemo .af-inputs input:focus { border-color: rgba(255,255,255,0.35); }
#afDemo .af-item { background: none; border: none; font-family: inherit; text-align: left; width: 100%; cursor: pointer; }
#afDemo .af-item:hover { background: rgba(255,255,255,0.05); color: var(--white); }
#afDemo .af-save { border: none; font-family: inherit; cursor: pointer; transition: opacity 0.15s, transform 0.12s, background 0.2s; }
#afDemo .af-save:hover { opacity: 0.88; }
#afDemo .af-save:active { transform: scale(0.95); }
#afDemo .af-save.on { background: #30a46c; color: #fff; }
#afDemo .af-io { cursor: default; }

/* the other three tools */
.tools-mini {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
  max-width: 1400px; margin: 0 auto 1rem; padding-inline: 2rem;
}
.mini-card {
  display: flex; align-items: flex-start; gap: 0.9rem;
  padding: 1.4rem; border-radius: var(--r-lg);
  background: var(--bg1); border: 1px solid var(--border);
}
.mini-card h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 0.35rem; }
.mini-card p { font-size: 0.82rem; color: var(--soft); line-height: 1.6; margin-bottom: 0.8rem; }
@media (max-width: 1100px) { .tools-grid, .tools-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .tools-grid, .tools-mini { grid-template-columns: 1fr; } .demo-panel { --panel-h: 580px; } }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ── HOW IT WORKS ── */
.how { padding: 5.5rem 2rem; background: var(--bg1); }
.how-cta { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; margin-top: 2.75rem; }
/* Original design: three dark boxes joined by dotted connectors. */
.how-steps {
  display: flex; align-items: stretch; justify-content: center;
  gap: 0; max-width: 900px; margin-inline: auto;
  flex-wrap: wrap;
}
.how-step {
  flex: 1; min-width: 220px;
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg);
  text-align: center;
  transition: border-color 0.25s, transform 0.3s var(--ease);
}
.how-step:hover { border-color: var(--border2); transform: translateY(-4px); }
.hs-num {
  font-size: 3rem; font-weight: 900; color: rgba(255,255,255,0.06);
  letter-spacing: -0.05em; line-height: 1; margin-bottom: 1rem;
}
.hs-icon {
  width: 52px; height: 52px; margin-inline: auto; margin-bottom: 1rem;
  display: grid; place-items: center;
  border-radius: var(--r); border: 1px solid var(--border2);
  background: rgba(255,255,255,0.04); color: var(--white);
}
.how-step h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 0.5rem; }
.how-step p { font-size: 0.875rem; color: var(--soft); line-height: 1.65; }
.how-line { flex-shrink: 0; padding: 0 1.5rem; color: var(--border2); display: flex; align-items: center; }

/* ── CARD DEPTH ──
   One shared treatment for the feature cards and the tool demos:
   a faint top-lit surface and a soft drop shadow. It is static on purpose. There is no
   hover state: no glow, no border change and no lift.
   The How it works steps are left out: they keep their original flat boxes. */
.tool-demo, .mini-card {
  background-image: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0) 55%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 18px 40px -28px rgba(0,0,0,0.9);
}

/* ── REFERRAL ── */
.referral { padding: 5rem 2rem; }
.referral-card {
  max-width: var(--max); margin-inline: auto;
  display: flex; align-items: center; gap: 4rem;
  padding: 4rem;
  border: 1px solid var(--border2);
  border-radius: 28px;
  background: var(--bg1);
  position: relative; overflow: hidden;
}
.referral-card::before {
  content: "";
  position: absolute; top: -60px; right: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.04), transparent 70%);
  pointer-events: none;
}
.ref-left { flex: 1; min-width: 0; }
.ref-left h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; color: var(--white); margin-bottom: 1rem; }
.ref-left p { font-size: 0.95rem; color: var(--soft); line-height: 1.75; margin-bottom: 1.5rem; max-width: 40ch; }
.ref-points { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.ref-points li { position: relative; padding-left: 1.4rem; font-size: 0.88rem; color: var(--soft); }
.ref-points li::before { content: ''; position: absolute; left: 0; top: 0.42em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb),0.6); }
.ref-example {
  flex: 0 0 460px; max-width: 100%; position: relative; z-index: 1;
  border: 1px solid var(--border2); border-radius: var(--r-lg); background: var(--bg2);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.9), 0 0 0 1px var(--border);
  overflow: hidden;
}
.re-head { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 1rem; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.02); }
.re-title { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.re-copy { padding: 0.35rem 0.8rem; border-radius: 999px; border: 1px solid var(--border2); background: rgba(255,255,255,0.04); color: var(--white); font: inherit; font-size: 0.74rem; font-weight: 700; cursor: pointer; transition: background 0.2s, border-color 0.2s, transform 0.12s; }
.re-copy:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); }
.re-copy:active { transform: scale(0.96); }
.re-copy.on { background: #30a46c; border-color: #30a46c; color: #fff; }
.re-row { display: flex; gap: 0.75rem; padding: 0.6rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.84rem; }
.re-key { flex: 0 0 60px; color: var(--muted); }
.re-val { color: var(--white); font-weight: 600; }
.re-email { user-select: all; }
.re-body { margin: 0; padding: 1rem; font: 0.84rem/1.65 inherit; font-family: inherit; color: var(--soft); white-space: pre-wrap; word-break: break-word; }
@media (max-width: 900px) { .ref-example { flex-basis: auto; width: 100%; } }

/* ── FOOTER ── */
/* ── FOOTER ── */
.footer { border-top: 1px solid var(--border); padding: 4rem 2rem 2rem; }
.footer-inner {
  max-width: var(--max); margin-inline: auto;
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 2.5rem;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; }
.footer-tag { font-size: 0.88rem; color: var(--muted); line-height: 1.65; max-width: 32ch; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; }
.footer-h {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--soft); margin-bottom: 0.25rem;
}
.footer-col a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.88rem; color: var(--muted); transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-col a svg { flex-shrink: 0; opacity: 0.8; }
.footer-bottom {
  max-width: var(--max); margin: 3rem auto 0; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem;
}
.footer-copy, .footer-note { font-size: 0.78rem; color: var(--muted); }
@media (max-width: 820px) {
  .footer-inner { grid-template-columns: repeat(3, 1fr); gap: 2rem 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer { padding: 3rem 1.25rem 1.5rem; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════
   CONTACT POPOVER
══════════════════════════════════════ */
.contact-pop {
  position: fixed; z-index: 160; width: 300px;
  padding: 0.9rem 1rem;
  background: var(--bg2); border: 1px solid var(--border2); border-radius: 14px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.9), 0 0 0 1px var(--border);
  opacity: 0; transform: translateY(-6px); transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.contact-pop.above { transform: translateY(6px); }
.contact-pop.open { opacity: 1; transform: none; }
.cp-label { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.cp-row { display: flex; align-items: center; gap: 0.5rem; }
.cp-email { flex: 1; min-width: 0; font-size: 0.88rem; font-weight: 600; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: all; }
.cp-copy {
  flex-shrink: 0; padding: 0.4rem 0.8rem; border-radius: 999px; border: none;
  background: var(--white); color: var(--ink); font-size: 0.76rem; font-weight: 700; cursor: pointer;
  transition: opacity 0.15s, transform 0.12s;
}
.cp-copy:hover { opacity: 0.88; } .cp-copy:active { transform: scale(0.96); }
.cp-copy.on { background: #30a46c; color: #fff; }
.cp-label-2 { margin-top: 0.9rem; padding-top: 0.8rem; border-top: 1px solid var(--border); }
.cp-tg { display: flex; align-items: center; gap: 0.5rem; font-size: 0.86rem; font-weight: 600; color: var(--white); transition: color 0.2s; }
.cp-tg span { flex: 1; }
.cp-tg-arr { color: var(--muted); transition: color 0.2s, transform 0.2s; }
.cp-tg:hover .cp-tg-arr { color: var(--white); transform: translate(1px, -1px); }

/* ══════════════════════════════════════
   MODAL
══════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, background 0.45s ease;
}
.modal-overlay.open {
  opacity: 1; pointer-events: all;
  background: rgba(0,0,0,0.78);
  transition: opacity 0.35s ease, background 0.55s ease;
}

.modal {
  position: relative; width: 100%; max-width: 480px;
  background: #0f0f0f;
  border: 1px solid var(--border2);
  border-radius: 24px;
  padding: 2.5rem 2rem 2rem;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.95);
  opacity: 0; transform: scale(0.94) translateY(28px);
  will-change: transform, opacity;
  transition: transform 0.28s cubic-bezier(0.4, 0, 1, 1), opacity 0.2s ease;
}
.modal-overlay.open .modal {
  opacity: 1; transform: scale(1) translateY(0);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.05s, opacity 0.4s ease 0.05s;
}
/* contents settle in a beat after the card */
.modal > :not(.modal-x) { opacity: 0; transform: translateY(10px); transition: opacity 0.3s ease, transform 0.3s ease; }
.modal-overlay.open .modal > :not(.modal-x) { opacity: 1; transform: none; transition: opacity 0.45s ease 0.18s, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.18s; }
.modal-overlay.open .modal > :nth-child(3) { transition-delay: 0.22s; }
.modal-overlay.open .modal > :nth-child(4) { transition-delay: 0.26s; }
.modal-overlay.open .modal > :nth-child(5), .modal-overlay.open .modal > :nth-child(6) { transition-delay: 0.3s; }

.modal-x {
  position: absolute; top: 1.1rem; right: 1.1rem;
  width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.04);
  color: var(--muted); display: grid; place-items: center;
  transition: color 0.2s, border-color 0.2s;
}
.modal-x:hover { color: var(--white); border-color: var(--border2); }

.modal-tag {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--muted); margin-bottom: 0.65rem;
}
.modal-h2 {
  font-size: 1.55rem; font-weight: 800; color: var(--white);
  margin-bottom: 0.6rem; letter-spacing: -0.025em;
}
.modal-p {
  font-size: 0.875rem; color: var(--soft); line-height: 1.65; margin-bottom: 1.75rem;
}

/* invitation code */
.invite { margin-top: 1.6rem; }
.invite-row { display: flex; gap: 0.6rem; }
.invite-input {
  flex: 1; min-width: 0; padding: 0.85rem 1rem; border-radius: var(--r);
  border: 1px solid var(--border2); background: rgba(255,255,255,0.03);
  color: var(--white); font: inherit; font-size: 0.95rem; letter-spacing: 0.04em; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.invite-input::placeholder { color: var(--muted); letter-spacing: 0; }
.invite-input:focus { border-color: rgba(255,255,255,0.45); box-shadow: 0 0 0 3px rgba(255,255,255,0.06); }
.invite-btn { padding: 0.85rem 1.4rem; white-space: nowrap; }
.invite-error { margin-top: 0.7rem; font-size: 0.82rem; color: #e5484d; }
.invite-input.shake { animation: shake 0.4s var(--ease); border-color: rgba(229,72,77,0.7); }
@keyframes shake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }
.invite-ok { margin-top: 1.6rem; text-align: center; padding: 0.5rem 1rem 0.25rem; display: flex; flex-direction: column; align-items: center; gap: 1.9rem; }
.modal.unlocked .modal-tag, .modal.unlocked .modal-h2, .modal.unlocked > .modal-p { display: none; }
.modal.unlocked .invite-ok { margin-top: 0; padding: 1.75rem 1rem 1.25rem; }
.invite-ok[hidden] { display: none; }
.invite-valid {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.8rem; border-radius: 999px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em;
  color: #30a46c; background: rgba(48,164,108,0.12); border: 1px solid rgba(48,164,108,0.45);
  animation: validIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes validIn { from { opacity: 0; transform: translateY(8px) scale(0.9); } to { opacity: 1; transform: none; } }
.invite-ok .btn-white { display: inline-flex; animation: xpIn 0.4s var(--ease) 0.12s both; }
@media (max-width: 480px) { .invite-row { flex-direction: column; } }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; padding: 8rem 2rem 4rem; }
  .hero-left { display: flex; flex-direction: column; align-items: center; }
  .hero-right { width: 100%; max-width: 410px; }
  .hero-p { max-width: 100%; }
  .hero-btns { justify-content: center; }
  .referral-card { flex-direction: column; padding: 2.5rem; }
  /* three steps and their connectors need about 920px; below that, stack them in one column */
  .how-steps { flex-direction: column; align-items: stretch; gap: 1rem; max-width: 560px; }
  .how-line { display: none; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero-metrics { justify-content: center; }
  .modal { padding: 2rem 1.25rem 1.5rem; }
}
/* Phones: four stats do not fit on one line, so show them as a tidy 2x2 instead of
   letting the last one wrap and leave a divider dangling. */
@media (max-width: 480px) {
  /* sized from the screen width so the longest line, "For Terminals", always fits on one row */
  .hero-h1 { font-size: min(3rem, calc((100vw - 4rem) / 6.9)); }
  .hero-metrics { display: grid; grid-template-columns: repeat(2, auto); gap: 1.1rem 2.75rem; }
  .hm { align-items: center; }
  .hm-sep { display: none; }
}
