/* ==========================================================================
   KSM Live Agency
   Single stylesheet. No build step, no framework.
   Sections: tokens > reset > layout > header > buttons > hero > components
             > page blocks > footer > responsive > motion
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #07060d;
  --bg-soft: #0c0a16;
  --bg-card: #100d1e;
  --bg-raised: #16122a;

  --line: #241d3f;
  --line-soft: #1b1631;

  --text: #f4f2fb;
  --text-dim: #b3aecd;
  --text-faint: #7d789a;

  --cyan: #29e0ff;
  --cyan-deep: #0aa5c9;
  --purple: #a855f7;
  --magenta: #ff3ea5;
  --violet: #7c5cff;

  --grad-brand: linear-gradient(100deg, #29e0ff 0%, #7c5cff 48%, #ff3ea5 100%);
  --grad-cool: linear-gradient(120deg, #29e0ff 0%, #a855f7 100%);
  --grad-text: linear-gradient(100deg, #6ff0ff 0%, #b98bff 45%, #ff7ac4 100%);

  --glow-cyan: 0 0 32px rgba(41, 224, 255, 0.32);
  --glow-purple: 0 0 40px rgba(168, 85, 247, 0.30);

  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shell: 1180px;
  --gutter: 22px;
  --header-h: 74px;

  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #7ceaff; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.14;
  letter-spacing: -0.022em;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 6.2vw, 4.15rem); }
h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.14rem, 2vw, 1.34rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: 0.5em; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: var(--bg-raised);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid var(--line);
  z-index: 200;
}
.skip-link:focus { left: 16px; }

/* ---------- Layout ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell-narrow {
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { position: relative; }

.band { padding: clamp(64px, 9vw, 116px) 0; }
.band-tight { padding: clamp(48px, 6vw, 76px) 0; }
.band-soft { background: var(--bg-soft); }

.band-line { border-top: 1px solid var(--line-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-size: 0.745rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-cool);
}

.lede {
  font-size: clamp(1.04rem, 2vw, 1.19rem);
  color: var(--text-dim);
  max-width: 62ch;
}

.section-head { max-width: 680px; margin-bottom: clamp(38px, 5vw, 58px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lede { margin-inline: auto; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Ambient background ---------- */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 92, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 92, 255, 0.045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 5%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 5%, transparent 72%);
}

/* Soft colour wash. Plain radial gradients rather than blurred elements:
   a blur filter this large forces expensive compositing on every scroll,
   which matters a lot on the phones our hosts are actually browsing on. */
.orb {
  position: absolute;
  inset: 0;
}
.orb-1 {
  background:
    radial-gradient(620px 620px at 8% -14%, rgba(41, 224, 255, 0.17), transparent 62%);
}
.orb-2 {
  background:
    radial-gradient(560px 560px at 94% -8%, rgba(255, 62, 165, 0.15), transparent 62%);
}
.orb-3 {
  background:
    radial-gradient(760px 700px at 62% 52%, rgba(124, 92, 255, 0.10), transparent 64%);
}

/* diagonal speed streaks, lifted from the logo artwork */
.streaks {
  position: absolute;
  inset: -20% -10%;
  opacity: 0.45;
  background-image:
    linear-gradient(115deg, transparent 48.6%, rgba(41, 224, 255, 0.5) 49%, transparent 49.4%),
    linear-gradient(115deg, transparent 61.6%, rgba(255, 62, 165, 0.38) 62%, transparent 62.4%),
    linear-gradient(115deg, transparent 71.7%, rgba(124, 92, 255, 0.36) 72%, transparent 72.3%),
    linear-gradient(115deg, transparent 33.7%, rgba(41, 224, 255, 0.28) 34%, transparent 34.3%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 10%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 10%, #000, transparent 70%);
}

.page-wrap { position: relative; z-index: 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(7, 6, 13, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line-soft);
  background: rgba(7, 6, 13, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  flex-shrink: 0;
}
.brand:hover { color: var(--text); }

.brand img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(124, 92, 255, 0.34);
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.03rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
}
.brand-name span { color: var(--magenta); }
.brand-sub {
  display: block;
  font-family: var(--font-head);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  color: var(--text-dim);
  font-size: 0.925rem;
  font-weight: 500;
  padding: 9px 13px;
  border-radius: 9px;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
  white-space: nowrap;
}
.nav a:hover { color: var(--text); background: rgba(124, 92, 255, 0.11); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 4px;
  border-radius: 2px;
  background: var(--grad-cool);
}

.header-cta { margin-left: 10px; flex-shrink: 0; }

/* The in-nav Discord button is for the mobile drawer only */
.nav > .btn { display: none; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: background 0.2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 19px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.24s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.955rem;
  letter-spacing: 0.005em;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.24s var(--ease),
              background 0.24s var(--ease), border-color 0.24s var(--ease);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { flex-shrink: 0; }

.btn-primary {
  background: var(--grad-brand);
  color: #06050c;
  font-weight: 700;
  box-shadow: 0 8px 26px rgba(124, 92, 255, 0.34);
}
.btn-primary:hover {
  color: #06050c;
  box-shadow: 0 12px 36px rgba(168, 85, 247, 0.48);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--cyan);
  background: rgba(41, 224, 255, 0.08);
}

.btn-sm { padding: 9px 17px; font-size: 0.87rem; }
.btn-lg { padding: 16px 32px; font-size: 1.03rem; }
.btn-block { display: flex; width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: center;
}
.btn-row.center { justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0 clamp(58px, 8vw, 96px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(34px, 5vw, 68px);
  align-items: center;
}

.hero h1 { margin-bottom: 0.42em; }

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--text-dim);
  max-width: 54ch;
  margin-bottom: 32px;
}

.hero-note {
  margin-top: 20px;
  font-size: 0.87rem;
  color: var(--text-faint);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.hero-note svg { flex-shrink: 0; margin-top: 5px; }

.hero-art { position: relative; }

/* The logo art is a square piece of dark artwork, so rather than fight its
   background we frame it on purpose: gradient ring, inset art, outer glow. */
.badge-frame {
  position: relative;
  padding: 13px;
  border-radius: 30px;
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, #14101f, #0d0a18) padding-box,
    var(--grad-brand) border-box;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 0 100px rgba(124, 92, 255, 0.20);
}

.badge-frame img {
  width: 100%;
  border-radius: 20px;
  display: block;
}

.badge-frame::after {
  content: "";
  position: absolute;
  inset: -26%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.26), transparent 62%);
  z-index: -1;
  pointer-events: none;
}

/* small floating status chip on the framed art */
.frame-chip {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: #100d1e;
  border: 1px solid rgba(124, 92, 255, 0.4);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}

/* Compact framed badge, used on the CTA bands and interior pages */
.badge-art {
  border-radius: 20px;
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, #14101f, #0d0a18) padding-box,
    var(--grad-brand) border-box;
  padding: 6px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 60px rgba(124, 92, 255, 0.16);
}

.pill-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px 6px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 62, 165, 0.35);
  background: rgba(255, 62, 165, 0.09);
  font-family: var(--font-head);
  font-size: 0.755rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff8ec7;
  margin-bottom: 24px;
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3ea5;
  box-shadow: 0 0 0 0 rgba(255, 62, 165, 0.7);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 62, 165, 0.65); }
  70%  { box-shadow: 0 0 0 11px rgba(255, 62, 165, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 62, 165, 0); }
}

/* ---------- Trust strip ---------- */
.strip {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(12, 10, 22, 0.6);
  padding: 22px 0;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: center;
}

.strip-item {
  font-family: var(--font-head);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.strip-item svg { color: var(--cyan); flex-shrink: 0; }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 20px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.26s var(--ease), border-color 0.26s var(--ease),
              box-shadow 0.26s var(--ease);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity 0.26s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.card:hover::before { opacity: 1; }

.card h3 { margin-bottom: 0.44em; }
.card p { color: var(--text-dim); font-size: 0.955rem; margin-bottom: 0; }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(140deg, rgba(41, 224, 255, 0.16), rgba(168, 85, 247, 0.16));
  border: 1px solid rgba(124, 92, 255, 0.28);
  color: var(--cyan);
}

.card-num {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--magenta);
  margin-bottom: 12px;
  display: block;
}

/* feature card with left accent */
.card-accent {
  border-left: 2px solid transparent;
  border-image: none;
}
.card-accent::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--grad-brand);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: 18px;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 22px;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px 28px;
  transition: border-color 0.24s var(--ease), transform 0.24s var(--ease);
}
.step:hover { border-color: var(--line); transform: translateX(3px); }

.step-num {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 1.42rem;
  font-weight: 700;
  color: #06050c;
  background: var(--grad-brand);
  box-shadow: 0 6px 20px rgba(124, 92, 255, 0.3);
}

.step h3 { margin-bottom: 0.35em; }
.step p { color: var(--text-dim); font-size: 0.965rem; margin-bottom: 0; }

/* ---------- Compare table ---------- */
.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.compare th,
.compare td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.95rem;
}

.compare thead th {
  font-family: var(--font-head);
  font-size: 0.79rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.018);
  font-weight: 600;
}

.compare tbody th {
  font-weight: 500;
  color: var(--text);
  font-family: var(--font-body);
  width: 40%;
}

.compare td { color: var(--text-dim); }
.compare tr:last-child th,
.compare tr:last-child td { border-bottom: none; }

.compare .col-ksm {
  color: var(--text);
  background: rgba(124, 92, 255, 0.055);
}
.compare thead .col-ksm { color: var(--cyan); }

.mark-yes { color: #4ade80; font-weight: 600; }
.mark-no { color: #f87171; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }

.checklist li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 13px;
  align-items: start;
  margin: 0;
  color: var(--text-dim);
  font-size: 0.985rem;
}

.checklist li::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306050c' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat,
    var(--grad-cool);
}

.checklist strong { color: var(--text); font-weight: 600; }

.crosslist { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.crosslist li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 13px;
  align-items: start;
  margin: 0;
  color: var(--text-dim);
  font-size: 0.985rem;
}
.crosslist li::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border-radius: 50%;
  border: 1px solid rgba(248, 113, 113, 0.4);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f87171' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center / 11px no-repeat,
    rgba(248, 113, 113, 0.09);
}

/* ---------- Split block ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 62px);
  align-items: center;
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.5vw, 38px);
}

.panel-glow {
  position: relative;
  background: linear-gradient(160deg, rgba(41, 224, 255, 0.07), rgba(255, 62, 165, 0.05));
  border: 1px solid rgba(124, 92, 255, 0.24);
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.22s var(--ease);
}
.faq details[open] { border-color: rgba(124, 92, 255, 0.4); }

.faq summary {
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  position: relative;
  list-style: none;
  transition: color 0.2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--cyan); }

.faq summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -6px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg);
  transition: transform 0.24s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }

.faq-body {
  padding: 0 24px 22px;
  color: var(--text-dim);
  font-size: 0.975rem;
}
.faq-body p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse 70% 100% at 50% 100%, rgba(124, 92, 255, 0.20), transparent 70%),
    var(--bg-soft);
  text-align: center;
}

.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band .lede { margin-inline: auto; margin-bottom: 32px; }

.cta-badge {
  width: 92px;
  margin: 0 auto 26px;
  border-radius: 22px;
  border: 1px solid transparent;
  padding: 6px;
  background:
    linear-gradient(160deg, #14101f, #0d0a18) padding-box,
    var(--grad-brand) border-box;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 60px rgba(124, 92, 255, 0.18);
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding: clamp(48px, 7vw, 84px) 0 clamp(34px, 4vw, 50px);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}
.page-hero h1 { font-size: clamp(2.05rem, 5vw, 3.3rem); }
.page-hero .lede { margin-bottom: 0; }

.crumb {
  font-size: 0.83rem;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.crumb a { color: var(--text-faint); }
.crumb a:hover { color: var(--cyan); }

/* ---------- Stat / callout ---------- */
.callout {
  border: 1px solid rgba(41, 224, 255, 0.3);
  background: rgba(41, 224, 255, 0.055);
  border-radius: var(--radius);
  padding: 22px 26px;
  color: var(--text-dim);
  font-size: 0.965rem;
}
.callout strong { color: var(--text); }
.callout-warn {
  border-color: rgba(255, 62, 165, 0.32);
  background: rgba(255, 62, 165, 0.055);
}

.kv {
  display: grid;
  gap: 2px;
}
.kv dt {
  font-family: var(--font-head);
  font-size: 0.76rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.kv dd {
  margin: 0 0 18px;
  font-size: 1.02rem;
  color: var(--text);
}
.kv dd:last-child { margin-bottom: 0; }

/* ---------- Tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 9px; }
.tag {
  font-family: var(--font-head);
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: #06050b;
  padding: clamp(46px, 6vw, 66px) 0 30px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 38px;
  margin-bottom: 42px;
}

.footer-brand img {
  width: 46px;
  border-radius: 11px;
  border: 1px solid rgba(124, 92, 255, 0.3);
  margin-bottom: 15px;
}
.footer-brand p {
  color: var(--text-faint);
  font-size: 0.9rem;
  max-width: 34ch;
}

.footer-col h4 {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 15px;
  font-weight: 600;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-dim); font-size: 0.925rem; }
.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.845rem;
  color: var(--text-faint);
}
.footer-bottom p { margin: 0; }

.disclaimer {
  font-size: 0.78rem;
  color: #5f5b77;
  line-height: 1.6;
  max-width: 78ch;
  margin-top: 18px;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 330px; margin-inline: auto; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #0a0812;
    border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter) 24px;
    margin: 0;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s var(--ease), transform 0.24s var(--ease),
                visibility 0.24s var(--ease);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  .nav a { padding: 13px 14px; font-size: 1rem; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { background: rgba(124, 92, 255, 0.14); }
  .nav > .btn { display: flex; margin-top: 12px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --gutter: 18px; }

  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: 1fr; text-align: left; }
  .strip-item { justify-content: flex-start; }

  .step { grid-template-columns: 1fr; gap: 15px; padding: 22px 20px; }
  .step-num { width: 48px; height: 48px; font-size: 1.2rem; }

  .card { padding: 24px 21px; }
  .hero-art { max-width: 250px; }
  .badge-frame { padding: 9px; border-radius: 24px; }
  .badge-frame img { border-radius: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .btn-row .btn { width: 100%; }
  .brand-sub { display: none; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .ambient, .site-header, .cta-band, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
}
