/* Nexus marketing site — tokens are law, sourced from Nexus/DESIGN.md */

:root {
  --canvas: #0A0B0F;
  --panel: #14161D;
  --panel2: #1A1D26;
  --line: #232733;
  --text: #E6E8EF;
  --muted: #8A90A6;
  --accent: #6E56F7;
  --live: #3DD4D0;
  --ok: #36D399;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  --dur-quick: 150ms;
  --dur-ui: 220ms;
  --dur-view: 340ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font-ui: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;

  --container: 1120px;
}

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

/* author display rules (flex/grid/inline-block) must never resurrect [hidden] */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.02em; }
.muted { color: var(--muted); }

img { max-width: 100%; display: block; }

a { color: var(--live); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--live);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection { background: rgba(110, 86, 247, 0.4); }

h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }

h1 { font-size: clamp(2.5rem, 1.4rem + 4.5vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); margin-bottom: 12px; }
h3 { font-size: 1.125rem; margin-bottom: 8px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }
.center { text-align: center; }

.section { padding: 96px 0; position: relative; scroll-margin-top: 64px; }

.kicker {
  color: var(--live);
  margin-bottom: 12px;
}

.lead {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 56ch;
  margin-bottom: 40px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 12px 22px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: transform var(--dur-quick) var(--ease-standard),
              background var(--dur-quick) var(--ease-standard),
              border-color var(--dur-quick) var(--ease-standard),
              box-shadow var(--dur-quick) var(--ease-standard);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 rgba(110, 86, 247, 0);
}
.btn-primary:hover { box-shadow: 0 4px 24px rgba(110, 86, 247, 0.35); }

.btn-secondary {
  background: var(--panel2);
  color: var(--text);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--muted); }

.btn-ghost { background: transparent; color: var(--muted); border-color: var(--line); }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }

.btn-small { padding: 8px 16px; font-size: 0.875rem; background: var(--panel2); color: var(--text); border-color: var(--line); }
.btn-small:hover { border-color: var(--accent); }

.btn-big { padding: 16px 32px; font-size: 1.0625rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px 24px;
  background: rgba(10, 11, 15, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.wordmark {
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 0.9375rem;
  color: var(--text);
}

.site-nav { display: flex; gap: 24px; margin-left: auto; }
.site-nav a { color: var(--muted); font-size: 0.9375rem; }
.site-nav a:hover { color: var(--text); text-decoration: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Higgsfield art on top; gradients beneath double as the no-art fallback */
  background:
    url("assets/hero-bg.jpg") center bottom / cover no-repeat,
    radial-gradient(120% 70% at 50% 115%, rgba(110, 86, 247, 0.16), transparent 60%),
    radial-gradient(80% 50% at 80% 110%, rgba(61, 212, 208, 0.08), transparent 55%),
    var(--canvas);
}
.hero-bg::after {
  /* keep the reading column dark no matter what the art does */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 50% 45%, rgba(10, 11, 15, 0.72), transparent 100%);
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 120px 24px 80px;
  width: 100%;
}

.hero h1 { max-width: 14ch; margin-bottom: 20px; }

.sub {
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.25rem);
  max-width: 52ch;
  margin-bottom: 32px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }

.trust { color: var(--muted); }

/* heartbeat scan bar — one of the two places the full gradient is allowed */
.scanbar {
  width: 140px;
  height: 2px;
  background: var(--line);
  border-radius: 1px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.scanbar span {
  position: absolute;
  top: 0; left: 0;
  width: 36px; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--live));
  animation: sweep 2.4s var(--ease-standard) infinite;
}
@keyframes sweep {
  0%   { transform: translateX(-40px); }
  100% { transform: translateX(150px); }
}

.final-cta .scanbar { margin: 0 auto 24px; }

/* hero power-up: only when JS is on, only once */
.js [data-boot] {
  opacity: 0;
  transform: translateY(10px);
}
.js.deck-on [data-boot] {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur-view) var(--ease-out), transform var(--dur-view) var(--ease-out);
  transition-delay: calc(var(--i) * 70ms);
}

/* ---------- Provider ticker ---------- */

.ticker-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  padding: 14px 0;
  overflow: hidden;
}

.ticker {
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 48px;
  width: max-content;
  list-style: none;
  color: var(--muted);
  animation: ticker 40s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track li { white-space: nowrap; }
.ticker-track li.more { color: var(--live); }

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ---------- Demo deck ---------- */

.deck {
  display: flex;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(110, 86, 247, 0.07);
  max-width: 860px;
}

.deck-rail {
  width: 52px;
  background: var(--panel2);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 20px;
}
.rail-dot {
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--line);
}
.rail-dot.on { background: var(--accent); }

.deck-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.deck-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.deck-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deck-model {
  margin-left: auto;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 4px 10px;
  color: var(--text);
  white-space: nowrap;
}
.deck-live { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--live); font-family: var(--font-mono); }
.deck-live i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--live);
  animation: pulse 2.4s var(--ease-standard) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.deck-chat { padding: 20px 16px; display: flex; flex-direction: column; gap: 14px; min-height: 190px; }

.msg { max-width: 85%; }
.msg p { font-size: 0.9375rem; line-height: 1.5; }
.msg.user {
  align-self: flex-end;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 14px;
}
.msg.bot { align-self: flex-start; padding: 2px 4px; }
.msg.tool {
  align-self: flex-start;
  color: var(--live);
  background: rgba(61, 212, 208, 0.06);
  border: 1px solid rgba(61, 212, 208, 0.25);
  border-radius: var(--r-sm);
  padding: 4px 10px;
  font-size: 0.75rem;
}

.caret {
  display: inline-block;
  width: 8px; height: 1.05em;
  background: var(--live);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: pulse 1s steps(2, start) infinite;
}
.caret.done { display: none; }

.deck-compose {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 16px 12px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 14px;
  color: var(--muted);
}
.compose-send {
  margin-left: auto;
  width: 28px; height: 28px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.875rem;
}

.deck-status {
  display: flex;
  gap: 20px;
  padding: 8px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}
.deck-status .ok { color: var(--ok); }

/* ---------- Cards & grids ---------- */

.grid { display: grid; gap: 20px; }
.features { grid-template-columns: repeat(3, 1fr); }
.compare { grid-template-columns: repeat(3, 1fr); }
.pricing { grid-template-columns: repeat(2, 1fr); max-width: 760px; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: border-color var(--dur-quick) var(--ease-standard),
              transform var(--dur-quick) var(--ease-standard);
}
.features .card:hover {
  border-color: rgba(110, 86, 247, 0.45);
  transform: translateY(-2px);
}
.card p { color: var(--muted); font-size: 0.9375rem; }

.card.featured {
  border-color: rgba(110, 86, 247, 0.55);
  box-shadow: 0 0 40px rgba(110, 86, 247, 0.10);
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.steps li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
}
.steps p { color: var(--muted); font-size: 0.9375rem; }
.step-n {
  display: block;
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

/* ---------- Comparison ---------- */

.compare-section { isolation: isolate; }
.section-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/section-bg.jpg") center / cover no-repeat;
  opacity: 0.55;
}

.checklist { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.checklist li { color: var(--muted); font-size: 0.9375rem; padding-left: 26px; position: relative; }
.checklist li::before {
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
}
.checklist li.no::before { content: "✕"; color: var(--muted); opacity: 0.7; }
.checklist li.yes { color: var(--text); }
.checklist li.yes::before { content: "✓"; color: var(--ok); }

/* ---------- Pricing ---------- */

.price-card { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.price { font-size: 2.25rem; color: var(--text); font-weight: 700; }
.price-per { font-size: 0.875rem; color: var(--muted); font-weight: 400; }
.price-note { min-height: 48px; }
.price-card .btn { margin-top: 6px; }
.alt-downloads { color: var(--muted); font-size: 0.75rem; }
.alt-downloads a { color: var(--muted); text-decoration: underline; }
.alt-downloads a:hover { color: var(--text); }

/* ---------- FAQ ---------- */

.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }

.faq-list details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 44px;
  transition: color var(--dur-quick) var(--ease-standard);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--live);
  font-family: var(--font-mono);
  font-size: 1.125rem;
  transition: transform var(--dur-ui) var(--ease-standard);
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list summary:hover { color: var(--live); }
.faq-list details p { padding: 0 20px 16px; color: var(--muted); }

/* ---------- Final CTA & footer ---------- */

.final-cta { padding-bottom: 128px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.875rem;
}
.foot-grid { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-grid nav { display: flex; gap: 20px; margin-left: auto; }
.foot-grid nav a { color: var(--muted); }
.foot-grid nav a:hover { color: var(--text); }

/* ---------- Deck glow frame (hero proof) ---------- */

.deck-frame {
  position: relative;
  max-width: 880px;
  padding: 10px;
  border-radius: calc(var(--r-lg) + 10px);
  background: linear-gradient(180deg, rgba(110, 86, 247, 0.14), rgba(61, 212, 208, 0.05));
  box-shadow:
    0 0 90px rgba(110, 86, 247, 0.13),
    0 0 30px rgba(61, 212, 208, 0.05);
}
.deck-frame .deck { max-width: none; }

/* ---------- Account: auth ---------- */

.account-body { display: flex; flex-direction: column; min-height: 100vh; }
.account-main { flex: 1; display: flex; flex-direction: column; }

.auth {
  margin: auto;
  width: 100%;
  max-width: 400px;
  padding: 64px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.auth-mark { margin-bottom: 18px; filter: drop-shadow(0 0 18px rgba(110, 86, 247, 0.4)); }
.auth-title { font-size: 1.75rem; margin-bottom: 6px; }
.auth-sub { color: var(--live); margin-bottom: 28px; }

.auth-card {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.field input {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--text);
  font: inherit;
  padding: 11px 14px;
  transition: border-color var(--dur-quick) var(--ease-standard);
}
.field input:focus { outline: none; border-color: var(--accent); }
.field input::placeholder { color: rgba(138, 144, 166, 0.55); }
.field-hint { font-size: 0.78rem; color: var(--muted); }

.code-input { letter-spacing: 0.5em; text-align: center; font-size: 1.25rem; }

.form-error {
  color: #F87171;
  font-size: 0.875rem;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: var(--r-sm);
  padding: 8px 12px;
}

.btn-block { width: 100%; text-align: center; border: none; cursor: pointer; font: inherit; font-weight: 600; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
button.btn { appearance: none; -webkit-appearance: none; cursor: pointer; font: inherit; font-weight: 600; }

.auth-links { display: flex; justify-content: space-between; gap: 12px; font-size: 0.875rem; }
.auth-links a { color: var(--muted); }
.auth-links a:hover { color: var(--live); }
.auth-foot { margin-top: 22px; color: var(--muted); font-size: 0.78rem; }

/* ---------- Account: dashboard ---------- */

.dash, .topup { padding: 56px 24px 96px; width: 100%; }

.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.dash-title { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); }
.dash-email { color: var(--muted); }

.banner {
  border-radius: var(--r-md);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.9375rem;
}
.banner.warn { background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.35); color: #FBBF24; }
.banner.err { background: rgba(248, 113, 113, 0.08); border: 1px solid rgba(248, 113, 113, 0.35); color: #F87171; }

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
}
.panel-label {
  color: var(--live);
  text-transform: lowercase;
  margin-bottom: 14px;
}
.panel-note { color: var(--muted); font-size: 0.875rem; margin-top: 10px; }
.panel-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

.stat-big { font-size: 3.25rem; font-weight: 700; line-height: 1; color: var(--text); display: flex; align-items: baseline; gap: 10px; }
.stat-unit { font-size: 0.875rem; color: var(--muted); font-weight: 400; letter-spacing: 0.08em; }

.license-row { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.license-cta-copy { color: var(--muted); font-size: 0.9375rem; }

.badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.badge.ok { color: var(--live); border-color: rgba(61, 212, 208, 0.4); background: rgba(61, 212, 208, 0.07); }
.badge.warn { color: #FBBF24; border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.07); }
.badge.err { color: #F87171; border-color: rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.07); }

.keybox {
  margin-top: 14px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: 0.75rem;
  word-break: break-all;
  color: var(--text);
  user-select: all;
}

.activity-panel { min-height: 120px; }
.ledger { list-style: none; display: flex; flex-direction: column; }
.ledger li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.ledger li:last-child { border-bottom: none; }
.ledger-date { color: var(--muted); font-size: 0.78rem; }
.ledger-delta.plus { color: var(--ok); }
.ledger-delta.minus { color: var(--muted); }
.empty { color: var(--muted); padding: 8px 0; }

/* ---------- Account: top-up ---------- */

.topup-panel { max-width: 720px; margin-top: 8px; }

.amount-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 18px;
  cursor: pointer;
  transition: border-color var(--dur-quick) var(--ease-standard), background var(--dur-quick) var(--ease-standard);
}
.chip:hover { border-color: var(--muted); }
.chip.on { border-color: var(--accent); background: rgba(110, 86, 247, 0.12); }
.chip-custom { display: flex; align-items: center; gap: 4px; cursor: text; padding: 0 12px 0 14px; }
.chip-custom input {
  width: 88px;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  padding: 10px 0;
}
.chip-custom input:focus { outline: none; }
.chip-custom:focus-within { border-color: var(--accent); }

.asset-label { margin-top: 26px; }
.asset-cards { display: flex; gap: 12px; flex-wrap: wrap; }
.asset-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  min-width: 170px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 18px;
  cursor: pointer;
  color: var(--text);
  font: inherit;
  transition: border-color var(--dur-quick) var(--ease-standard), background var(--dur-quick) var(--ease-standard);
}
.asset-card:hover { border-color: var(--muted); }
.asset-card.on { border-color: var(--accent); background: rgba(110, 86, 247, 0.1); }
.asset-card.disabled { opacity: 0.45; cursor: not-allowed; }
.asset-name { font-weight: 700; font-size: 1.0625rem; }
.asset-net { color: var(--muted); font-size: 0.75rem; }

.agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.875rem;
  cursor: pointer;
  max-width: 46ch;
}
.agree input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; }

.topup .form-error { margin-top: 16px; }

/* pay step */

.pay-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; max-width: 860px; }
.pay-fields { min-width: 0; }

.copybox {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-bottom: 22px;
}
.copy-val { font-size: 1.125rem; color: var(--text); }
.copy-val.addr { font-size: 0.8125rem; word-break: break-all; }
.copy-asset { color: var(--muted); }
.copybox .btn { margin-left: auto; flex-shrink: 0; }

.pay-status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--live);
  font-size: 0.9375rem;
  margin: 6px 0 10px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--live);
  animation: pulse 2.4s var(--ease-standard) infinite;
  flex-shrink: 0;
}
.pay-timer { color: var(--muted); margin-bottom: 8px; }
.pay-timer span { color: var(--text); }

.pay-qr { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.qr-tile {
  width: 168px; height: 168px;
  background: #FFFFFF;
  border-radius: var(--r-md);
  padding: 12px;
  display: grid;
  place-items: center;
}
.qr-tile svg { width: 100%; height: 100%; }
.qr-tile:empty { background: var(--panel2); border: 1px dashed var(--line); }
.field-hint.center { text-align: center; }

.done-panel { text-align: center; padding: 48px 24px; max-width: 560px; margin: 40px auto; }
.done-check {
  width: 54px; height: 54px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: var(--ok);
  background: rgba(54, 211, 153, 0.1);
  border: 1px solid rgba(54, 211, 153, 0.4);
}
.done-panel .lead { margin: 10px auto 0; }
.done-panel .panel-actions.center { justify-content: center; }

/* ---------- Terms ---------- */

.terms { padding: 72px 24px 96px; }
.terms h1 { margin-bottom: 16px; }
.terms h2 { font-size: 1.125rem; margin: 36px 0 8px; }
.terms p { color: var(--muted); max-width: 68ch; }
.terms p b { color: var(--text); }
.terms .lead { margin-bottom: 8px; }
.terms-date { margin-top: 48px; color: var(--muted); font-size: 0.78rem; }

/* ---------- Scroll reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-view) var(--ease-out), transform var(--dur-view) var(--ease-out);
}
.js .reveal.on { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .features, .compare { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .site-nav { display: none; }
  .hero { min-height: 72vh; }
  .hero-inner { padding-top: 80px; }
  .pricing { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .pay-grid { grid-template-columns: 1fr; }
  .pay-qr { order: -1; }
  .stat-big { font-size: 2.5rem; }
}

@media (max-width: 560px) {
  .features, .compare { grid-template-columns: 1fr; }
  .deck-rail { display: none; }
  .deck-title { display: none; }
  .msg { max-width: 100%; }
  .cta-row .btn { width: 100%; text-align: center; }
}

/* ---------- Reduced motion: freeze, don't remove ---------- */

@media (max-width: 560px) {
  .copybox { flex-wrap: wrap; }
  .copybox .btn { margin-left: 0; }
  .amount-chips .chip { flex: 1; text-align: center; }
  .asset-card { flex: 1; }
}

/* ---------- Auth v2: cinematic backdrop + glass card ---------- */

.account-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--canvas);
}
.account-bg-art {
  position: absolute;
  inset: -4%;
  background: url("assets/hero-poster.jpg") center / cover no-repeat;
}
.account-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 11, 15, 0.72) 0%, rgba(10, 11, 15, 0.5) 45%, rgba(10, 11, 15, 0.9) 100%),
    radial-gradient(60% 50% at 50% 42%, rgba(10, 11, 15, 0.45), transparent 100%);
}
@media (prefers-reduced-motion: no-preference) {
  .account-bg-art { animation: bg-drift 46s var(--ease-standard) infinite alternate; }
  @keyframes bg-drift {
    from { transform: scale(1) translateY(0); }
    to   { transform: scale(1.06) translateY(-1.5%); }
  }
}

.account-body .site-header { background: rgba(10, 11, 15, 0.6); }

.auth { max-width: 424px; }
.auth-mark {
  width: 52px; height: 52px;
  filter: drop-shadow(0 0 22px rgba(110, 86, 247, 0.55)) drop-shadow(0 0 60px rgba(61, 212, 208, 0.2));
}
.auth-title { font-size: 2rem; letter-spacing: -0.02em; }
.auth-sub { margin-bottom: 32px; }

.auth-card {
  padding: 28px;
  border-radius: 20px;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(20, 22, 29, 0.66), rgba(20, 22, 29, 0.66)) padding-box,
    linear-gradient(165deg, rgba(110, 86, 247, 0.5), rgba(35, 39, 51, 0.65) 45%, rgba(61, 212, 208, 0.35)) border-box;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.6),
    0 0 70px rgba(110, 86, 247, 0.13),
    inset 0 1px 0 rgba(230, 232, 239, 0.05);
}

.auth-card .field input {
  background: rgba(10, 11, 15, 0.65);
  transition: border-color var(--dur-quick) var(--ease-standard),
              box-shadow var(--dur-quick) var(--ease-standard);
}
.auth-card .field input:focus {
  border-color: var(--accent);
  box-shadow:
    0 0 0 3px rgba(110, 86, 247, 0.2),
    0 0 26px rgba(110, 86, 247, 0.18);
}

#auth-submit:hover { box-shadow: 0 6px 34px rgba(110, 86, 247, 0.45); }

.auth-foot { opacity: 0.85; }

/* keep dashboard/top-up panels solid & readable over the backdrop */
.dash .panel, .topup .panel { background: rgba(20, 22, 29, 0.92); }

/* ---------- Auth v3: split-screen with the orbit film ---------- */

.auth-wrap { flex: 1; display: flex; padding: 40px 24px; }

.auth-split {
  margin: auto;
  width: min(1160px, 100%);
  display: grid;
  grid-template-columns: minmax(380px, 470px) 1fr;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(16, 18, 24, 0.72), rgba(16, 18, 24, 0.72)) padding-box,
    linear-gradient(165deg, rgba(110, 86, 247, 0.5), rgba(35, 39, 51, 0.65) 45%, rgba(61, 212, 208, 0.35)) border-box;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.65),
    0 0 90px rgba(110, 86, 247, 0.14),
    inset 0 1px 0 rgba(230, 232, 239, 0.05);
}

.auth-split .auth { margin: 0; max-width: none; padding: 56px 48px; }
.auth-split .auth-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  border-radius: 0;
}

.auth-media { position: relative; overflow: hidden; min-height: 620px; }
.auth-media.no-video { background: url("assets/hero-poster.jpg") center / cover no-repeat; }
.auth-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.auth-media-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 11, 15, 0.1) 40%, rgba(10, 11, 15, 0.82) 100%),
    linear-gradient(90deg, rgba(10, 11, 15, 0.5), transparent 26%);
}
.auth-media-copy { position: absolute; left: 34px; right: 34px; bottom: 30px; text-align: left; }
.auth-media-copy .kicker { margin-bottom: 4px; }
.auth-media-copy h2 { font-size: 1.5rem; margin-bottom: 6px; text-shadow: 0 2px 26px rgba(0, 0, 0, 0.8); }
.auth-media-tags { color: var(--muted); }

/* staged entrance */
@media (prefers-reduced-motion: no-preference) {
  .js [data-abo] {
    opacity: 0;
    transform: translateY(12px);
    animation: abo 520ms var(--ease-out) forwards;
    animation-delay: calc(var(--i, 0) * 80ms + 140ms);
  }
  @keyframes abo { to { opacity: 1; transform: none; } }
}

@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-media { display: none; }
  .auth-split .auth { padding: 44px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse-dot { animation: none; }
  .js [data-boot], .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scanbar span {
    animation: none;
    width: 100%;
    opacity: 0.6;
  }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; }
  .deck-live i, .caret { animation: none; }
  .btn, .faq-list summary::after { transition: none; }
}
