/* ══════════════════════════════════════════════════════════
   Reroute — coming soon
   ══════════════════════════════════════════════════════════ */

:root {
  --bg:        #070810;
  --bg-soft:   #0b0d1a;
  --surface:   rgba(255, 255, 255, 0.028);
  --surface-2: rgba(255, 255, 255, 0.055);
  --border:    rgba(255, 255, 255, 0.085);
  --border-hi: rgba(255, 255, 255, 0.16);

  --text:      #eceffa;
  --muted:     #969ec0;
  --faint:     #6a7290;

  --accent:    #7c5cff;
  --accent-2:  #22d3ee;
  --success:   #34d399;
  --danger:    #fb7185;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

  --maxw: 1140px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;

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

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

h1, h2, h3 { margin: 0; font-weight: 640; letter-spacing: -0.035em; line-height: 1.08; }
p { margin: 0; }
a { color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 18px;
  border-radius: var(--r-sm); text-decoration: none; font-weight: 600;
}
.skip-link:focus { left: 16px; }

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

/* ───────────────── Backdrop ───────────────── */

.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; }

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
}
.glow-a {
  width: 780px; height: 780px;
  top: -340px; left: 48%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.55), transparent 68%);
  animation: drift-a 26s var(--ease) infinite alternate;
}
.glow-b {
  width: 620px; height: 620px;
  top: 180px; left: -220px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.28), transparent 68%);
  animation: drift-b 32s var(--ease) infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(-140px, 90px, 0) scale(1.14); } }
@keyframes drift-b { to { transform: translate3d(120px, -70px, 0) scale(1.1); } }

.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 20%, transparent 78%);
}

/* ───────────────── Nav ───────────────── */

.nav {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.brand-mark { width: 24px; height: 24px; color: var(--accent-2); flex: none; }
.brand-name {
  font-size: 19px; font-weight: 660; letter-spacing: -0.03em;
}

.nav-cta {
  font-size: 14.5px; font-weight: 560; text-decoration: none;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(10px);
  transition: border-color 0.22s, background 0.22s, transform 0.22s;
}
.nav-cta:hover {
  border-color: var(--border-hi);
  background: var(--surface-2);
  transform: translateY(-1px);
}

/* ───────────────── Hero ───────────────── */

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 26px;
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.65);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

h1 {
  font-size: clamp(2.85rem, 6.4vw, 4.4rem);
  margin-bottom: 22px;
}
.grad {
  background: linear-gradient(105deg, var(--accent) 8%, var(--accent-2) 92%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.17rem);
  color: var(--muted);
  max-width: 33em;
  margin-bottom: 34px;
}
.lede strong { color: var(--text); font-weight: 600; }

/* ───────────────── Sign-up form ───────────────── */

.signup { max-width: 520px; }

.field {
  display: flex;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(14px);
  transition: border-color 0.22s, box-shadow 0.22s;
}
.field:focus-within {
  border-color: rgba(124, 92, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.13);
}
.field.invalid {
  border-color: rgba(251, 113, 133, 0.65);
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.12);
}

.field input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: none;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
}
.field input::placeholder { color: #5d6485; }

.btn {
  flex: none;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 15px;
  padding: 13px 22px;
  font: inherit; font-size: 15.5px; font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  background: linear-gradient(135deg, #8b6bff, #6d4dfa 55%, #4f9dff);
  box-shadow: 0 6px 22px -8px rgba(124, 92, 255, 0.9);
  transition: transform 0.18s var(--ease), box-shadow 0.22s, filter 0.22s;
}
.btn:hover { transform: translateY(-1.5px); box-shadow: 0 12px 30px -10px rgba(124, 92, 255, 1); filter: brightness(1.06); }
.btn:active { transform: translateY(0); }
.btn[disabled] { cursor: default; opacity: 0.75; transform: none; }

.btn-lg { padding: 16px 30px; font-size: 16.5px; border-radius: 17px; }

.spinner {
  display: none;
  width: 15px; height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn.loading .spinner { display: block; }
.btn.loading .btn-label { opacity: 0.75; }

.hp {
  position: absolute; left: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}

.microcopy {
  margin-top: 14px;
  font-size: 13.5px;
  color: #6e769a;
}

.status {
  margin-top: 10px;
  font-size: 14px;
  min-height: 20px;
  color: var(--danger);
}
.status:empty { min-height: 0; margin-top: 0; }

/* ── success state ── */

.success {
  display: flex; gap: 16px; align-items: flex-start;
  max-width: 520px;
  padding: 22px 24px;
  border: 1px solid rgba(52, 211, 153, 0.32);
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, rgba(52, 211, 153, 0.11), rgba(52, 211, 153, 0.03));
  animation: rise 0.55s var(--ease) both;
}
.success[hidden] { display: none; }
.success-icon {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--success);
  background: rgba(52, 211, 153, 0.14);
}
.success-icon svg { width: 19px; height: 19px; }
.success-title { font-size: 1.16rem; margin-bottom: 5px; }
.success-body { font-size: 14.8px; color: var(--muted); }
.success-email {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13.6px;
  word-break: break-all;
}

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

/* ───────────────── Hero visual: the listing ───────────────── */

.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 16px; }

.listing {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 26px 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(22, 25, 45, 0.9), rgba(11, 13, 26, 0.86));
  backdrop-filter: blur(18px);
  box-shadow: 0 34px 70px -30px rgba(0, 0, 0, 0.95);
  transition: box-shadow 0.7s var(--ease);
}
.listing.reclaimed {
  box-shadow: 0 34px 70px -30px rgba(0, 0, 0, 0.95),
              0 0 0 1px rgba(52, 211, 153, 0.22),
              0 0 46px -14px rgba(52, 211, 153, 0.42);
}

.listing-chip {
  position: absolute; top: -13px; left: 24px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12px; font-weight: 620; letter-spacing: 0.005em;
  background: #1a1020;
  border: 1px solid rgba(251, 113, 133, 0.42);
  color: var(--danger);
  transition: color 0.5s, border-color 0.5s, background 0.5s;
}
.chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.listing.reclaimed .listing-chip {
  background: #0a1a16;
  border-color: rgba(52, 211, 153, 0.45);
  color: var(--success);
}

.listing-body { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }

.listing-thumb {
  flex: none;
  width: 62px; height: 62px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: #7f88ad;
}
.listing-thumb svg { width: 32px; height: 32px; }

.listing-title {
  font-size: 14.6px; font-weight: 560; line-height: 1.35;
  margin-bottom: 5px;
}
.listing-rating { font-size: 12.5px; color: #f0b429; letter-spacing: 0.06em; }
.listing-rating span { color: var(--faint); letter-spacing: 0; margin-left: 4px; }

.listing-price {
  font-size: 2.05rem; font-weight: 620; letter-spacing: -0.04em;
  line-height: 1; margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
  transition: color 0.5s;
}
.listing.reclaimed .listing-price { color: var(--text); }
.listing-price .cur { font-size: 1.15rem; vertical-align: super; margin-right: 1px; color: var(--muted); }

.listing-seller {
  margin: 0 0 20px;
  display: grid; gap: 7px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13.6px;
}
.listing-seller > div { display: flex; gap: 8px; }
.listing-seller dt { color: var(--faint); min-width: 84px; }
.listing-seller dd { margin: 0; color: var(--text); font-weight: 560; }

.seller {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--danger) !important;
  transition: color 0.45s;
}
.listing.reclaimed .seller { color: var(--success) !important; }

.listing-cta {
  text-align: center;
  padding: 11px;
  border-radius: 999px;
  font-size: 14.5px; font-weight: 620;
  color: #2a1f05;
  background: linear-gradient(#ffd97a, #f5b02e);
}

.visual-caption {
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint);
}

/* ───────────────── Sections ───────────────── */

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 76px 24px;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.85rem, 3.6vw, 2.6rem);
  margin-bottom: 44px;
  max-width: 18em;
}

/* ── problem cards ── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(266px, 1fr));
  gap: 18px;
}

.card {
  padding: 28px 26px 30px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color 0.28s, background 0.28s, transform 0.28s var(--ease);
}
.card:hover {
  border-color: var(--border-hi);
  background: var(--surface-2);
  transform: translateY(-3px);
}
.card-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--muted); }

/* ── steps ── */

.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
  gap: 18px;
}
.step {
  padding: 30px 26px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.step-num {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 14px; font-weight: 660;
  color: #fff;
  background: linear-gradient(140deg, var(--accent), #4f9dff);
}
.step h3 { font-size: 1.2rem; }
.step p { font-size: 15px; color: var(--muted); }
.step em { color: var(--text); font-style: normal; font-weight: 600; }

/* ── coverage ── */

.coverage { text-align: center; padding-top: 40px; padding-bottom: 40px; }
.chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-bottom: 16px;
}
.chip {
  padding: 8px 17px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  color: var(--muted);
}
.chip-live {
  border-color: rgba(52, 211, 153, 0.38);
  background: rgba(52, 211, 153, 0.08);
  color: #8ff0cd;
  font-weight: 560;
}
.coverage-note { font-size: 14px; color: var(--faint); }

/* ── final CTA ── */

.final {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 68px 32px 76px;
  text-align: center;
}
.final h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 16px; }
.final p {
  color: var(--muted);
  max-width: 34em; margin: 0 auto 32px;
}

/* ───────────────── Footer ───────────────── */

.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 56px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
}
.footer-brand { opacity: 0.85; }
.footer-note { font-size: 14px; color: var(--muted); }
.footer-note a { color: var(--muted); text-decoration-color: rgba(255, 255, 255, 0.25); }
.footer-note a:hover { color: var(--text); }
.footer-fine { font-size: 12.2px; color: #545b78; max-width: 46em; }

/* ───────────────── Entrance animation ───────────────── */

.hero-copy > *, .hero-visual { animation: rise 0.75s var(--ease) both; }
.hero-copy > *:nth-child(1) { animation-delay: 0.04s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.11s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.18s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.25s; }
.hero-visual { animation-delay: 0.3s; }

/* ───────────────── Responsive ───────────────── */

@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 52px;
    padding-top: 32px;
    padding-bottom: 64px;
  }
  .hero-visual { order: 2; }
  .lede { max-width: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { padding: 20px 20px; }
  .nav-cta { display: none; }
  .hero, .section, .final, .footer { padding-left: 20px; padding-right: 20px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .grad { white-space: normal; }

  .field { flex-direction: column; gap: 7px; border-radius: 18px; }
  .field input { padding: 13px 12px; }
  .btn { width: 100%; padding: 15px 22px; }

  .success { padding: 20px; }
  .final { padding: 48px 20px 56px; }
}

/* ───────────────── Reduced motion ───────────────── */

@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;
  }
}
