:root {
  color-scheme: dark;
  --bg: #0a0d12;
  --line: rgba(255, 255, 255, 0.11);
  --text: #f4f6f8;
  --muted: #9ca8b8;
  --cyan: #48d5f5;
  --orange: #ff8a3d;
  --green: #67e29d;
  --danger: #ff7a7a;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 14%, rgba(72, 213, 245, 0.12), transparent 28rem),
    radial-gradient(circle at 88% 72%, rgba(255, 138, 61, 0.1), transparent 24rem),
    var(--bg);
}
a { color: inherit; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.track-lines {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.28;
  background-image:
    linear-gradient(115deg, transparent 0 51%, rgba(255,255,255,.035) 51.1% 51.25%, transparent 51.35%),
    linear-gradient(115deg, transparent 0 64%, rgba(255,255,255,.025) 64.1% 64.25%, transparent 64.35%);
  background-size: 140px 140px, 210px 210px;
  transform: skewX(-7deg) scale(1.15);
}
.site-header { display: flex; align-items: center; justify-content: space-between; }
.site-header { min-height: 88px; border-bottom: 1px solid var(--line); }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .19em;
  text-decoration: none;
}
.product-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.setupforge-lockup {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  letter-spacing: 0;
  text-transform: none;
}
.setupforge-lockup svg { width: 25px; height: 25px; }
.setupforge-lockup strong { font-size: .86rem; }
.product-note:hover .setupforge-lockup { color: var(--cyan); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
  min-height: calc(100vh - 176px);
  padding-block: 72px;
}
.eyebrow, .card-kicker {
  color: var(--cyan);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.signal {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(103, 226, 157, .72);
}
h1, h2, p { margin-top: 0; }
.hero h1, .legal h1 {
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 7.7vw, 7rem);
  line-height: .91;
  letter-spacing: -.065em;
}
.hero h1 span { color: var(--orange); }
.lede {
  max-width: 650px;
  color: #c2cad5;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.65;
}
.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 38px;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.proof-row span { display: inline-flex; gap: 8px; }
.proof-row strong { color: var(--cyan); }
.join-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(24, 31, 42, .96), rgba(14, 18, 25, .96));
  box-shadow: var(--shadow);
}
.card-stripe {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan) 0 58%, var(--orange) 58% 100%);
}
.join-card h2, .confirmation-card h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1;
  letter-spacing: -.045em;
}
.join-card > p:not(.card-kicker):not(.form-status):not(.privacy-note) { color: var(--muted); line-height: 1.6; }
.join-form { margin-top: 30px; }
.join-form > label:first-child { display: block; margin-bottom: 9px; color: #d6dce4; font-size: .8rem; font-weight: 700; }
.field-row { display: grid; gap: 12px; }
input, button { min-height: 54px; border-radius: 10px; font: inherit; }
input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .16);
  outline: none;
  padding: 0 16px;
  color: var(--text);
  background: rgba(5, 8, 12, .58);
}
input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(72, 213, 245, .13); }
button, .discord-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 0;
  padding: 0 19px;
  color: #081017;
  background: linear-gradient(120deg, var(--cyan), #8ce9f8);
  font-weight: 850;
  cursor: pointer;
  text-decoration: none;
}
button:hover, .discord-link:hover { filter: brightness(1.08); }
button:disabled { cursor: wait; opacity: .62; }
.bot-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
}
.form-status { min-height: 24px; margin: 16px 0 0; color: var(--green); line-height: 1.5; }
.form-status[data-state="error"], .confirm-result[data-state="error"] { color: var(--danger); }
.privacy-note { margin: 18px 0 0; color: var(--muted); font-size: .77rem; line-height: 1.55; }
.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 96px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .76rem;
}
.site-footer a { text-decoration: none; }
.footer-left { justify-self: start; }
.footer-made {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.heart { color: var(--green); }
.ringrider-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
}
.ringrider-link img { width: 24px; height: 24px; border-radius: 50%; }
.footer-brand {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.footer-brand strong { color: var(--text); letter-spacing: .13em; }
.site-footer a:hover { color: var(--cyan); }
.confirmation-shell {
  display: grid;
  min-height: calc(100vh - 176px);
  place-items: center;
  padding-block: 60px;
}
.confirmation-card { width: min(640px, 100%); }
.confirm-result { display: grid; gap: 18px; justify-items: start; margin-top: 30px; color: var(--muted); }
.confirm-result p { margin: 0; line-height: 1.6; }
.spinner {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(255,255,255,.12);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.discord-link { min-height: 54px; border-radius: 10px; }
.legal { max-width: 760px; min-height: calc(100vh - 176px); padding-block: 72px; }
.legal h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
.legal p { color: #c2cad5; font-size: 1.05rem; line-height: 1.75; }
.legal a { color: var(--cyan); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding-top: 20px; }
  .join-card { margin-bottom: 28px; }
  .site-footer { grid-template-columns: 1fr; justify-items: start; padding-block: 24px; }
  .footer-left, .footer-made, .footer-brand { justify-self: start; }
  .footer-made { flex-wrap: wrap; white-space: normal; }
}
@media (max-width: 540px) {
  .shell { width: min(100% - 24px, 1160px); }
  .site-header { min-height: 72px; }
  .product-note { gap: 4px; font-size: .63rem; }
  .setupforge-lockup { gap: 3px; }
  .setupforge-lockup svg { width: 20px; height: 20px; }
  .setupforge-lockup strong { font-size: .72rem; }
  .hero { padding-block: 48px; }
  .hero h1 { font-size: clamp(3rem, 16vw, 4.8rem); }
  .proof-row { display: grid; gap: 12px; }
  .join-card { padding: 28px 20px; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spinner { animation: none; border-top-color: var(--green); }
}
