:root {
  --bg: #0a0d14;
  --bg-2: #0f1218;
  --panel: #161a23;
  --panel-2: #1d2230;
  --border: #262c3a;
  --border-2: #323a4d;
  --text: #eef1f7;
  --muted: #8b93a5;
  --muted-2: #6b7385;
  --accent: #6ba6ff;
  --accent-2: #4787e8;
  --accent-glow: rgba(107, 166, 255, 0.25);
  --good: #4cd394;
  --warn: #ffc46b;
  --bad: #ff6b6b;
  --purple: #b07bff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body {
  margin: 0; padding: 0; background: var(--bg); color: var(--text); min-height: 100%;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body { position: relative; overflow-x: hidden; }
a { color: var(--accent); }
[hidden] { display: none !important; }

/* ── Background decoration ── */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(107, 166, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 166, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at top, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at top, black 30%, transparent 75%);
}
.bg-glow {
  position: fixed; top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 60%);
  z-index: 0; pointer-events: none; filter: blur(40px);
}

main, nav, footer { position: relative; z-index: 1; }

/* ── Top nav ── */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px;
  padding: 14px 28px;
  background: rgba(10, 13, 20, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav .brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 16px; color: var(--text); text-decoration: none;
  letter-spacing: -0.01em;
}
.nav .brand img { width: 26px; height: 26px; display: block; }
.nav .nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav .nav-links a {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 8px; transition: color 120ms ease, background 120ms ease;
}
.nav .nav-links a:hover { color: var(--text); background: var(--panel); }
.nav .nav-links a.cta {
  color: #0a1018; background: var(--accent); font-weight: 700;
  box-shadow: 0 0 24px var(--accent-glow);
}
.nav .nav-links a.cta:hover { background: var(--accent-2); color: #0a1018; transform: translateY(-1px); }

.wrap { max-width: 980px; margin: 0 auto; padding: 56px 24px 60px; }

/* ── Hero ── */
header.hero { text-align: center; margin-bottom: 80px; position: relative; }

/* ── Interest hype block (under CTA) ── */
.interest-hype {
  margin: 44px auto 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 28px 56px;
  border: 1px solid rgba(76, 211, 148, 0.45);
  background:
    radial-gradient(ellipse at top, rgba(76, 211, 148, 0.18) 0%, transparent 70%),
    linear-gradient(180deg, rgba(76, 211, 148, 0.08) 0%, rgba(22, 26, 35, 0.6) 100%);
  border-radius: 24px;
  box-shadow:
    0 24px 70px rgba(76, 211, 148, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  max-width: max-content;
  position: relative;
}
.hype-live {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; color: var(--good);
  letter-spacing: 2.5px; text-transform: uppercase;
  margin-bottom: 4px;
}
.hype-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--good);
  box-shadow: 0 0 14px var(--good);
  animation: pulse 1.6s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(76, 211, 148, 0.7), 0 0 14px var(--good); }
  70%  { box-shadow: 0 0 0 12px rgba(76, 211, 148, 0), 0 0 14px var(--good); }
  100% { box-shadow: 0 0 0 0   rgba(76, 211, 148, 0), 0 0 14px var(--good); }
}
.hype-num {
  font-size: 96px; font-weight: 800; line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff 0%, #9bf0c4 60%, #4cd394 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.08em;
  filter: drop-shadow(0 0 28px rgba(76, 211, 148, 0.4));
}
.hype-label {
  font-size: 17px; color: #fff; font-weight: 600;
  letter-spacing: -0.005em; opacity: 0.92;
}

.hero-brand {
  display: inline-flex; align-items: center; justify-content: center; gap: 22px;
  margin-bottom: 18px;
}
.hero-brand img {
  width: 108px; height: 108px; display: block;
  filter: drop-shadow(0 0 28px var(--accent-glow));
}
.hero-name {
  font-size: 96px; font-weight: 800; color: #fff;
  letter-spacing: -0.04em; line-height: 1.15;
  padding-bottom: 0.08em;
  background: linear-gradient(180deg, #ffffff 0%, #b8c2d4 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-headline {
  font-size: 26px; font-weight: 700; color: var(--text);
  margin: 0 0 18px; letter-spacing: -0.015em; line-height: 1.25;
}
.tagline {
  font-size: 18px; color: var(--muted); margin: 0 auto;
  max-width: 560px; line-height: 1.55;
}

/* ── Launch banner ── */
.launch-banner {
  margin: 40px auto 36px;
  display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap;
  gap: 14px;
  font-size: 44px; font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.15;
  padding-bottom: 0.08em;
}
.lb-word { color: #fff; }
.lb-accent {
  color: #ffd66b;
  background: linear-gradient(180deg, #ffe488 0%, #f0b13b 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(240, 177, 59, 0.35);
}

/* ── Buttons ── */
.hero-cta { margin-top: 8px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  background: var(--accent); color: #08121f; text-decoration: none; font-weight: 700;
  padding: 14px 28px; border-radius: 12px; font-size: 15px;
  box-shadow:
    0 8px 24px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
  border: none; cursor: pointer; font-family: inherit;
  letter-spacing: -0.01em;
}
.btn-primary:hover {
  background: var(--accent-2); transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary .btn-ico { font-size: 14px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  background: rgba(22, 26, 35, 0.6); color: var(--text); text-decoration: none; font-weight: 600;
  padding: 14px 26px; border-radius: 12px; font-size: 15px;
  border: 1px solid var(--border-2);
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(107, 166, 255, 0.08); transform: translateY(-2px); }
.btn-block { display: flex; width: 100%; }

/* ── Section scaffolding ── */
.section { margin-top: 96px; scroll-margin-top: 80px; }
.section-title {
  font-size: 36px; font-weight: 800; margin: 0 0 12px;
  letter-spacing: -0.025em; line-height: 1.2;
  padding-bottom: 0.05em;
  background: linear-gradient(180deg, #ffffff 0%, #c8d0e0 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-lead { color: var(--muted); font-size: 16px; line-height: 1.65; margin: 0 0 18px; max-width: 640px; }

/* ── Feature grid ── */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
.feature {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 24px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.feature:hover { border-color: var(--border-2); transform: translateY(-2px); }
.feature .feature-ico {
  font-size: 26px; margin-bottom: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(107, 166, 255, 0.1);
  border: 1px solid rgba(107, 166, 255, 0.2);
}
.feature h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ── Why Relay comparison grid ── */
.vs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 28px;
}
.vs-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px;
  position: relative;
}
.vs-card h3 { margin: 14px 0 8px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.vs-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.vs-mark {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
}
.vs-bad .vs-mark { background: rgba(255, 107, 107, 0.12); color: var(--bad); border: 1px solid rgba(255, 107, 107, 0.3); }
.vs-good {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(76, 211, 148, 0.08) 0%, var(--panel) 60%);
  border-color: rgba(76, 211, 148, 0.35);
  box-shadow: 0 12px 40px rgba(76, 211, 148, 0.08);
}
.vs-good .vs-mark { background: rgba(76, 211, 148, 0.15); color: var(--good); border: 1px solid rgba(76, 211, 148, 0.4); }
.vs-good h3 { font-size: 20px; color: #fff; }

/* ── Pricing tiers ── */
.tier-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 36px;
}
.tier {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 18px; padding: 32px 26px;
  display: flex; flex-direction: column; gap: 22px;
  position: relative;
  transition: transform 200ms ease, border-color 200ms ease;
}
.tier:hover { transform: translateY(-3px); border-color: var(--border-2); }
.tier-featured {
  border-color: var(--accent);
  background:
    linear-gradient(180deg, rgba(107, 166, 255, 0.1) 0%, var(--panel) 70%);
  box-shadow:
    0 20px 60px rgba(107, 166, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(-6px);
}
.tier-featured:hover { transform: translateY(-9px); }
.tier-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #08121f;
  font-size: 11px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px;
  box-shadow: 0 6px 20px var(--accent-glow);
}
.tier-head h3 {
  font-size: 13px; color: var(--muted); margin: 0 0 12px;
  text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700;
}
.tier-featured .tier-head h3 { color: var(--accent); }
.tier-price { display: flex; align-items: baseline; gap: 4px; }
.tp-num { font-size: 52px; font-weight: 800; color: #fff; letter-spacing: -0.035em; line-height: 1; }
.tp-per { color: var(--muted); font-size: 15px; font-weight: 500; }
.tier-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
  flex: 1;
}
.tier-list li {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-size: 14px; line-height: 1.4;
}
.tier-list li .ti {
  flex-shrink: 0; font-size: 15px; line-height: 1; width: 18px;
  display: inline-flex; align-items: center; justify-content: center;
}
.tier-list li.off { color: var(--muted-2); }
.tier-list li.off .tl { text-decoration: line-through; text-decoration-color: rgba(139, 147, 165, 0.4); }
.tier-cta-row { margin-top: 4px; }
.pricing-foot { color: var(--muted); font-size: 13px; text-align: center; margin: 28px 0 0; }

/* ── Waitlist card ── */
.waitlist-card {
  background:
    linear-gradient(135deg, rgba(107, 166, 255, 0.1) 0%, rgba(176, 123, 255, 0.06) 100%),
    var(--panel);
  border: 1px solid var(--accent);
  border-radius: 22px; padding: 44px 36px;
  text-align: center;
  box-shadow:
    0 24px 60px rgba(107, 166, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative; overflow: hidden;
}
.waitlist-card::before {
  content: ""; position: absolute; top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.waitlist-card h2 {
  font-size: 30px; font-weight: 800; margin: 0 0 10px; letter-spacing: -0.02em;
  position: relative;
}
.waitlist-lead {
  color: var(--muted); font-size: 15px; line-height: 1.6;
  max-width: 500px; margin: 0 auto 26px;
  position: relative;
}
.waitlist-form {
  display: flex; gap: 10px; flex-wrap: wrap;
  max-width: 540px; margin: 0 auto;
  position: relative;
}
.waitlist-form input {
  flex: 1 1 240px;
  background: rgba(10, 13, 20, 0.6); border: 1px solid var(--border-2); border-radius: 12px;
  color: var(--text); padding: 14px 18px; font-size: 15px; font-family: inherit;
  transition: border-color 120ms ease, background 120ms ease;
  backdrop-filter: blur(8px);
}
.waitlist-form input::placeholder { color: var(--muted-2); }
.waitlist-form input:focus {
  outline: none; border-color: var(--accent);
  background: rgba(10, 13, 20, 0.85);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.waitlist-status {
  margin: 18px 0 0; font-size: 14px; color: var(--muted);
  position: relative;
}
.waitlist-status.ok { color: var(--good); }
.waitlist-status.err { color: var(--bad); }

/* ── FAQ ── */
.faq { margin-top: 72px; }
.faq h2 {
  font-size: 13px; color: var(--muted); margin: 0 0 20px;
  text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700;
}
details {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 20px; margin-bottom: 10px;
  transition: border-color 120ms ease;
}
details:hover { border-color: var(--border-2); }
details summary {
  cursor: pointer; font-weight: 600; color: var(--text); list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 15px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+"; color: var(--muted); font-size: 20px; font-weight: 400;
  transition: transform 200ms ease;
}
details[open] summary::after { content: "−"; }
details > p { color: var(--muted); margin: 14px 0 0; line-height: 1.6; font-size: 14px; }

/* ── Legal / prose pages ── */
.prose { max-width: 760px; }
.prose .updated { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.prose .review-note {
  background: rgba(255, 196, 107, 0.1); border: 1px solid var(--warn); color: var(--warn);
  border-radius: 10px; padding: 12px 16px; font-size: 13px; line-height: 1.5; margin: 18px 0 28px;
}
.prose h2 { font-size: 22px; margin: 36px 0 12px; }
.prose h3 { font-size: 17px; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--muted); line-height: 1.7; font-size: 15px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose a { color: var(--accent); }

footer {
  text-align: center; margin-top: 80px; padding-top: 36px;
  border-top: 1px solid var(--border); color: var(--muted); font-size: 13px;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--accent); }
footer .foot-links { margin-bottom: 8px; }

/* ── Tablet (820px) ── */
@media (max-width: 820px) {
  .wrap { padding: 44px 22px 50px; }
  .section { margin-top: 72px; }
  .tier-grid { grid-template-columns: 1fr; gap: 14px; }
  .tier-featured { order: -1; transform: none; }
  .tier-featured:hover { transform: translateY(-3px); }
  .vs-grid { grid-template-columns: 1fr; }
  .vs-good { grid-column: auto; }
  .hero-brand img { width: 84px; height: 84px; }
  .hero-name { font-size: 76px; }
  .launch-banner { font-size: 36px; }
  .section-title { font-size: 30px; }
}

/* ── Phone (600px) ── */
@media (max-width: 600px) {
  html { font-size: 15px; }
  .wrap { padding: 28px 16px 40px; }
  .section { margin-top: 56px; scroll-margin-top: 70px; }

  /* Nav — keep brand visible, give links breathing room without wrapping */
  .nav { padding: 10px 14px; gap: 8px; }
  .nav .brand { font-size: 15px; }
  .nav .brand img { width: 22px; height: 22px; }
  .nav .nav-links { gap: 0; }
  .nav .nav-links a { padding: 6px 9px; font-size: 12px; }
  .nav .nav-links a.cta { padding: 7px 12px; font-size: 12px; }

  /* Hero */
  .hero-brand { gap: 12px; margin-bottom: 14px; }
  .hero-brand img { width: 58px; height: 58px; }
  .hero-name { font-size: 54px; }
  .hero-headline { font-size: 19px; margin: 0 0 14px; }
  .tagline { font-size: 15px; max-width: 92%; }

  /* Launch banner — keep on one line by easing the font */
  .launch-banner { font-size: 26px; gap: 8px; margin: 24px auto 24px; padding-bottom: 0.12em; }

  /* Hero CTA buttons stack full-width for tap-friendly targets */
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta .btn-primary, .hero-cta .btn-ghost { width: 100%; padding: 14px 18px; font-size: 15px; }

  /* Interest hype block */
  header.hero { margin-bottom: 56px; }
  .interest-hype { padding: 22px 24px; margin-top: 28px; max-width: 100%; }
  .hype-live { font-size: 11px; letter-spacing: 2px; }
  .hype-num { font-size: 64px; }
  .hype-label { font-size: 14px; }

  /* Section content */
  .section-title { font-size: 26px; }
  .section-lead { font-size: 15px; }
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature { padding: 18px; }
  .feature .feature-ico { width: 38px; height: 38px; font-size: 22px; }

  /* Pricing */
  .tier { padding: 26px 22px; gap: 18px; }
  .tier-featured { transform: none; }
  .tp-num { font-size: 42px; }
  .tier-list li { font-size: 14px; }

  /* Comparison */
  .vs-card { padding: 18px; }
  .vs-good h3 { font-size: 18px; }

  /* Waitlist */
  .waitlist-card { padding: 28px 20px; border-radius: 18px; }
  .waitlist-card h2 { font-size: 22px; }
  .waitlist-lead { font-size: 14px; margin-bottom: 20px; }
  .waitlist-form { flex-direction: column; }
  .waitlist-form input, .waitlist-form .btn-primary { width: 100%; }

  /* FAQ */
  .faq { margin-top: 56px; }
  details { padding: 14px 16px; }
  details summary { font-size: 14px; }
}

/* ── Very small phones (380px) ── */
@media (max-width: 380px) {
  .hero-brand { flex-direction: column; gap: 8px; }
  .hero-brand img { width: 64px; height: 64px; }
  .hero-name { font-size: 46px; }
  .launch-banner { font-size: 22px; flex-wrap: wrap; }
  .hype-num { font-size: 54px; }
  .nav .nav-links a { padding: 5px 7px; font-size: 11px; }
}
