/* SPYRE landing — Emerald Halo design system shared with app pages */
:root {
  --bg: #0a0d14;
  --panel: rgba(17, 22, 31, 0.82);
  --panel-solid: #11161f;
  --panel-2: #161d29;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #e6ecf4;
  --muted: #94a3b8;
  --faint: #64748b;
  --yes: #2dd4bf;
  --no: #fbbf24;
  --yes-mark: #0d9488;
  --no-mark: #d97706;
  --accent: #38bdf8;
  --good: #34d399;
  --danger: #f87171;
  --grad-brand: linear-gradient(135deg, #2dd4bf 0%, #38bdf8 100%);
  --glow-teal: 0 0 24px rgba(45, 212, 191, 0.25);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --font-display: "Archivo Expanded", "Archivo", system-ui, sans-serif;
  --font-ui: "Archivo", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  font-size: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
::selection { background: rgba(45, 212, 191, 0.3); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* 3D starfield canvas */
#starfield {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  opacity: 0.85;
  mask-image: linear-gradient(black 0%, black 55%, transparent 90%);
}

/* minimal hero (beats the base .hero grid rule) */
.hero.hero-min {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 7.5rem 2rem 6rem; max-width: 900px; margin: 0 auto; gap: 0;
}
.hero.hero-min h1 { font-size: 4rem; line-height: 1.05; }
.hero.hero-min .sub { margin: 1.6rem auto 2.2rem; font-size: 1.15rem; max-width: 32rem; }
.hero.hero-min .kicker { margin-bottom: 1.4rem; }

/* mirror section */
.mirror-grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: center;
}
@media (max-width: 900px) {
  .hero-min h1 { font-size: 2.4rem; }
  .mirror-grid { grid-template-columns: 1fr; }
}

/* ambient glow field */
.glow-field { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.glow-field::before, .glow-field::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px);
}
.glow-field::before {
  width: 700px; height: 700px; top: -280px; left: -180px;
  background: radial-gradient(circle, rgba(45,212,191,0.14), transparent 65%);
  animation: drift 16s ease-in-out infinite alternate;
}
.glow-field::after {
  width: 800px; height: 600px; top: -180px; right: -260px;
  background: radial-gradient(circle, rgba(56,189,248,0.11), transparent 65%);
  animation: drift 20s ease-in-out infinite alternate-reverse;
}
@keyframes drift { from { transform: translateY(0) } to { transform: translateY(60px) } }

.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.9rem 2rem; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: rgba(10,13,20,0.75);
  backdrop-filter: blur(14px); z-index: 50;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-logo { width: 27px; height: 32px; filter: drop-shadow(0 0 8px rgba(45,212,191,.5)); }
.brand-name {
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.24em;
  background: var(--grad-brand); -webkit-background-clip: text;
  background-clip: text; color: transparent;
}
.brand-tag { color: var(--muted); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.16em; border: 1px solid var(--border-strong); padding: 0.16rem 0.55rem; border-radius: 999px; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; font-size: 0.9rem; }
.nav-links a:not(.btn) { color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--text); }

.btn { border-radius: 10px; padding: 0.55rem 1.2rem; font-size: 0.9rem; font-weight: 650; display: inline-block; transition: all .15s; }
.btn-solid { background: var(--grad-brand); color: #06251f; box-shadow: var(--glow-teal); }
.btn-solid:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--yes); color: var(--yes); }
.btn-lg { padding: 0.85rem 1.7rem; font-size: 1rem; }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 3.5rem;
  padding: 5rem 2rem 3.5rem; max-width: 1200px; margin: 0 auto; align-items: center;
  position: relative;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(148,163,184,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 30%, transparent 70%);
}
.kicker { color: var(--accent); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 600; }
h1 {
  font-family: var(--font-display); font-size: 3rem; line-height: 1.08;
  font-weight: 700; letter-spacing: -0.02em;
}
.grad {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub { color: var(--muted); margin: 1.4rem 0 2rem; font-size: 1.1rem; max-width: 34rem; }
.sub strong { color: var(--text); }
.hero-ctas { display: flex; justify-content: center; gap: 0.9rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.4rem; margin-top: 2.6rem; }
.stat-n { display: block; font-size: 1.7rem; font-weight: 700; color: var(--yes); font-family: var(--font-mono); }
.stat-l { color: var(--faint); font-size: 0.76rem; }

.hero-panel {
  background: var(--panel); border: 1px solid var(--border-strong);
  border-radius: 18px; padding: 1.2rem; backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-panel::before {
  content: ""; position: absolute; inset: -1px; border-radius: 18px; z-index: -1;
  background: linear-gradient(135deg, rgba(45,212,191,.4), transparent 40%, transparent 60%, rgba(56,189,248,.3));
  filter: blur(6px); opacity: .5;
}
.panel-title { font-size: 0.68rem; letter-spacing: 0.18em; color: var(--muted); display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.9rem; font-weight: 600; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yes); animation: pulse 1.6s infinite; box-shadow: 0 0 8px var(--yes); }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: 0.25 } }
.hero-markets { display: flex; flex-direction: column; gap: 0.5rem; min-height: 250px; }
.hm-loading { color: var(--muted); font-size: 0.85rem; }
.hm {
  display: flex; justify-content: space-between; align-items: center; gap: 0.8rem;
  background: rgba(148,163,184,.06); border: 1px solid transparent;
  border-radius: 10px; padding: 0.55rem 0.75rem; font-size: 0.83rem;
  transition: border-color .3s;
}
.hm:hover { border-color: var(--border-strong); }
.hm-q { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-px { font-family: var(--font-mono); font-weight: 650; transition: background 0.5s; border-radius: 6px; padding: 0.12rem 0.45rem; }
.hm-px.flash { background: rgba(45,212,191,.25); transition: none; }
.hm-yes { color: var(--yes); }
.hm-no { color: var(--no); }
.panel-foot { color: var(--faint); font-size: 0.72rem; margin-top: 0.8rem; text-align: center; }

/* ticker */
.ticker-wrap {
  overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--panel-solid); position: relative;
}
.ticker-wrap::before, .ticker-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.ticker-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.ticker-wrap::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.ticker { display: inline-flex; gap: 2.6rem; padding: 0.6rem 0; white-space: nowrap; animation: scroll 50s linear infinite; font-size: 0.8rem; font-family: var(--font-mono); }
.ticker:hover { animation-play-state: paused; }
.ticker span b { color: var(--yes); font-weight: 650; }
@keyframes scroll { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* sections */
.section { max-width: 1200px; margin: 0 auto; padding: 4.5rem 2rem; }
.section-alt { max-width: none; background: linear-gradient(rgba(148,163,184,.02), transparent), var(--panel-solid); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-alt > * { max-width: 1136px; margin-left: auto; margin-right: auto; }
h2 { font-family: var(--font-display); font-size: 1.9rem; letter-spacing: -0.015em; margin-bottom: 0.6rem; font-weight: 700; }
.section-sub { color: var(--muted); max-width: 46rem; margin-bottom: 2rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 2rem; }
.step {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.6rem; transition: transform .18s, border-color .18s, box-shadow .18s;
  backdrop-filter: blur(8px);
}
.step:hover { transform: translateY(-4px); border-color: rgba(45,212,191,.4); box-shadow: var(--shadow-lg); }
.step-n {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad-brand);
  color: #06251f; font-weight: 700; display: flex; align-items: center;
  justify-content: center; margin-bottom: 1rem; font-family: var(--font-display);
  box-shadow: var(--glow-teal);
}
.step h3 { margin-bottom: 0.5rem; font-size: 1.08rem; font-family: var(--font-display); }
.step p { color: var(--muted); font-size: 0.92rem; }

.rules-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.6rem; }
.rule {
  background: rgba(10,13,20,.6); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.1rem 1.2rem; transition: border-color .15s;
}
.rule:hover { border-color: var(--border-strong); }
.rule-hard { border-color: rgba(251,191,36,.45); background: linear-gradient(rgba(251,191,36,.04), transparent), rgba(10,13,20,.6); }
.rule-k { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); font-weight: 600; }
.rule-v { font-weight: 650; margin: 0.3rem 0 0.4rem; }
.rule-why { color: var(--muted); font-size: 0.85rem; }
.rules-pledge {
  margin-top: 1.8rem; color: var(--text);
  background: linear-gradient(100deg, rgba(45,212,191,.08), rgba(56,189,248,.05)), rgba(10,13,20,.6);
  border: 1px solid rgba(45,212,191,.4); border-radius: 12px;
  padding: 1rem 1.2rem; font-size: 0.95rem;
}

.diff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; margin-top: 2rem; }
.diff h3 { font-size: 1rem; margin-bottom: 0.45rem; color: var(--yes); font-family: var(--font-display); }
.diff p { color: var(--muted); font-size: 0.88rem; }

.waitlist-form { display: flex; gap: 0.8rem; max-width: 480px; margin-top: 1.3rem; }
.waitlist-form input {
  flex: 1; background: rgba(10,13,20,.7); border: 1px solid var(--border-strong);
  color: var(--text); border-radius: 10px; padding: 0.75rem 1rem; font: inherit; font-size: 0.93rem;
}
.waitlist-form input:focus { outline: none; border-color: var(--yes); box-shadow: var(--glow-teal); }
.waitlist-msg { margin-top: 0.8rem; font-size: 0.88rem; color: var(--good); min-height: 1.3rem; }
.waitlist-msg.err { color: var(--danger); }
.community-cta { margin-top: 1.6rem; }

footer { padding: 2.2rem; text-align: center; color: var(--faint); font-size: 0.75rem; max-width: 62rem; margin: 0 auto; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 2.8rem; gap: 2.4rem; }
  h1 { font-size: 2.1rem; }
  .steps, .rules-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links a:not(.btn) { display: none; }
}

/* ---------------- phones ---------------- */
@media (max-width: 640px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  * { min-width: 0; }
  .starfield, canvas { max-width: 100vw; }
  .nav { padding: 0.7rem 0.8rem; gap: 0.5rem; }
  .brand { flex-shrink: 0; }
  .brand-tag { display: none; }
  .nav-links { gap: 0.5rem; }
  .nav-links .btn { padding: 0.45rem 0.7rem; font-size: 0.78rem; white-space: nowrap; }
  .section { padding: 3rem 1.1rem; }
  .hero.hero-min { padding: 4.5rem 1.1rem 3.5rem; }
  .hero.hero-min h1 { font-size: 2rem; line-height: 1.1; }
  .hero.hero-min .sub { font-size: 1rem; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  .section-sub { font-size: 0.95rem; }
  .diff-grid { grid-template-columns: 1fr !important; }
  .hero-stats { gap: 1.4rem; flex-wrap: wrap; }
  .ticker-wrap { display: none; }   /* hide the auto-scrolling ticker strip on phones */
}
