/* ============================================================
   LegacyRelay landing page
   Palette: deep ink blue + warm candlelight gold
   Type: Fraunces (display) / Inter (body)
   ============================================================ */

:root {
  --bg: #0b1020;
  --bg-alt: #0f1630;
  --surface: #141c3a;
  --surface-2: #1a2348;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8eaf2;
  --text-dim: #a3aac2;
  --gold: #e6b45c;
  --gold-soft: #f2cf8d;
  --gold-deep: #b9873a;
  --radius: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow { max-width: 720px; }
.center { text-align: center; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.5em; }
h3 { font-size: 1.25rem; margin-bottom: 0.4em; }

h1 em, h2 em {
  font-style: italic;
  color: var(--gold-soft);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
  color: #1a1206;
  box-shadow: 0 4px 24px rgba(230, 180, 92, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(230, 180, 92, 0.35);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); }

.btn-small { padding: 9px 20px; font-size: 0.85rem; background: rgba(230,180,92,0.12); color: var(--gold-soft); border-color: rgba(230,180,92,0.3); }
.btn-small:hover { background: rgba(230,180,92,0.2); }

.btn-block { width: 100%; }

.btn:disabled { opacity: 0.55; cursor: wait; transform: none; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 16, 32, 0.75);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.brand-mark { width: 26px; height: 26px; color: var(--gold); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
  text-align: center;
}

.hero-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 130%;
  background:
    radial-gradient(ellipse 55% 45% at 50% 10%, rgba(230, 180, 92, 0.14), transparent 65%),
    radial-gradient(ellipse 40% 40% at 20% 45%, rgba(90, 110, 220, 0.12), transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 45%, rgba(90, 110, 220, 0.10), transparent 60%);
  pointer-events: none;
}

.hero-inner { position: relative; }

.lede {
  max-width: 620px;
  margin: 1.5rem auto 2.2rem;
  font-size: 1.15rem;
  color: var(--text-dim);
}

.lede-small {
  max-width: 560px;
  margin: 0 auto 2.4rem;
  color: var(--text-dim);
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 1.2rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ---------- quote strip ---------- */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 26px 0;
}

.strip-inner {
  display: flex;
  gap: 32px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.strip-item {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-dim);
}

/* ---------- sections ---------- */

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-soft);
  border: 1px solid rgba(230, 180, 92, 0.4);
  margin-bottom: 18px;
}

.step p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 180, 92, 0.35);
}

.feature-icon { font-size: 1.6rem; margin-bottom: 14px; }
.feature p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- security ---------- */

.security {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}

.security-copy p { color: var(--text-dim); margin-bottom: 1.4rem; }
.security-copy strong { color: var(--text); }

.security-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.security-list li {
  padding-left: 28px;
  position: relative;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.security-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.security-diagram {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.diagram-box {
  width: 100%;
  max-width: 300px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.diagram-box-alt { border-color: rgba(230, 180, 92, 0.4); background: var(--surface-2); }

.diagram-label {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.diagram-sub { color: var(--text-dim); font-size: 0.85rem; line-height: 1.4; }

.diagram-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
}

.diagram-spark { font-size: 1.1rem; }
.diagram-note { font-size: 0.75rem; color: var(--text-dim); text-align: left; line-height: 1.3; }

/* ---------- form ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}

.form { display: grid; gap: 24px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field { display: grid; gap: 8px; border: none; }

label, legend {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

legend { margin-bottom: 10px; }

.opt { color: var(--text-dim); font-weight: 400; }
.req { color: var(--gold); }

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.15s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
}

textarea { resize: vertical; }

::placeholder { color: #5a617a; }

/* radio chips */

.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }

.chip input { position: absolute; opacity: 0; }

.chip span {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip input:checked + span {
  background: rgba(230, 180, 92, 0.14);
  border-color: var(--gold);
  color: var(--gold-soft);
}

.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* checkboxes */

.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-dim);
  transition: all 0.15s ease;
}

.check:hover { border-color: rgba(230, 180, 92, 0.3); }

.check input {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.check:has(input:checked) {
  background: rgba(230, 180, 92, 0.08);
  border-color: var(--gold);
  color: var(--text);
}

.form-fineprint {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.form-status {
  text-align: center;
  font-size: 0.92rem;
  min-height: 1.4em;
}

.form-status.ok { color: #7fd4a0; }
.form-status.err { color: #e88b8b; }

/* success state */

.form-success {
  text-align: center;
  padding: 24px 0;
}

.form-success h3 {
  font-size: 1.5rem;
  color: var(--gold-soft);
  margin-bottom: 8px;
}

.form-success p { color: var(--text-dim); }

/* ---------- closing ---------- */

.closing {
  padding: 110px 0;
  background:
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(230, 180, 92, 0.10), transparent 70%);
}

.closing h2 { margin-bottom: 1.4rem; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .steps, .features { grid-template-columns: 1fr; }
  .security { grid-template-columns: 1fr; gap: 40px; }
  .strip-inner { justify-content: center; text-align: center; }
  .hero { padding: 80px 0 70px; }
  .section { padding: 64px 0; }
}

@media (max-width: 560px) {
  .form-row, .checks { grid-template-columns: 1fr; }
  .card { padding: 24px 18px; }
}
