:root {
  --bg: #121212;
  --surface: #1a1a1a;
  --line: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --amber: #e4960e;
  --coral: #d74f43;
  --ok: #8fcf9a;
  --radius: 18px;
  --font: 'Onest', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
::selection { background: var(--amber); color: #121212; }

/* header */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 48px);
  background: linear-gradient(var(--bg) 60%, rgba(18, 18, 18, 0));
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: 0.02em; }
.brand svg { width: 26px; height: 26px; }
.brand circle { fill: none; stroke: var(--amber); stroke-width: 2; stroke-dasharray: 3.2 3.6; stroke-linecap: round; }
.lang { display: flex; gap: 4px; }
.lang a {
  padding: 6px 12px; border-radius: 999px; text-decoration: none;
  font-size: 14px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted);
}
.lang a[aria-current] { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.lang a:hover { color: var(--text); }

/* hero */
.hero {
  min-height: calc(100svh - 70px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 24px 16px 72px;
}
.mark {
  position: relative;
  width: min(78vw, 440px); aspect-ratio: 1;
  display: grid; place-items: center;
  margin-bottom: 28px;
}
.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: turn 90s linear infinite; }
.ring circle {
  fill: none; stroke: var(--amber); stroke-width: 1.6;
  stroke-dasharray: 6 10; stroke-linecap: round;
}
.ring-inner { inset: 9%; width: 82%; height: 82%; animation-duration: 140s; animation-direction: reverse; }
.ring-inner circle { stroke: rgba(255, 255, 255, 0.22); stroke-dasharray: 2 12; stroke-width: 2; }
@keyframes turn { to { transform: rotate(360deg); } }

.wordmark {
  margin: 0;
  font-weight: 200;
  font-size: clamp(54px, 14.5vw, 104px);
  line-height: 1;
  letter-spacing: -0.03em;
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: 0.78; letter-spacing: -0.01em; } }

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--amber);
}
.tagline {
  margin: 0 0 18px;
  font-weight: 200;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.15;
}
.lede { max-width: 34em; margin: 0 auto 34px; color: var(--muted); font-size: clamp(17px, 2vw, 19px); }
.jump {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  border: 1px solid var(--line); text-decoration: none; font-weight: 600;
  transition: border-color 0.4s, background 0.4s;
}
.jump::after { content: '↓'; color: var(--amber); }
.jump:hover { border-color: var(--amber); background: rgba(228, 150, 14, 0.08); }

/* points */
.points {
  display: grid; gap: 1px;
  grid-template-columns: 1fr;
  max-width: 1100px; margin: 0 auto;
  padding: 0 16px;
}
.point { padding: 34px 8px; border-top: 1px solid var(--line); }
.point .n { display: block; font-size: 13px; letter-spacing: 0.2em; color: var(--amber); font-weight: 600; margin-bottom: 14px; }
.point h2 { margin: 0 0 8px; font-weight: 300; font-size: clamp(26px, 3vw, 32px); line-height: 1.2; }
.point p { margin: 0; color: var(--muted); }
@media (min-width: 820px) {
  .points { grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 0 48px; }
}

/* join */
.join { padding: clamp(72px, 12vw, 140px) 16px; }
.join-card {
  max-width: 1000px; margin: 0 auto;
  display: grid; gap: 36px;
  padding: clamp(28px, 5vw, 56px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 10px);
}
@media (min-width: 860px) {
  .join-card { grid-template-columns: 1fr 1.1fr; align-items: start; gap: 56px; }
}
.join-head h2 { margin: 0 0 12px; font-weight: 200; font-size: clamp(36px, 5vw, 54px); line-height: 1.1; }
.join-head p { margin: 0; color: var(--muted); }

.form { display: grid; gap: 16px; }
.form[hidden], .done[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 6px; }
.field span { font-size: 14px; font-weight: 600; color: var(--muted); }
.field input {
  width: 100%;
  padding: 15px 16px;
  font: inherit; font-size: 17px; color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field input::placeholder { color: rgba(255, 255, 255, 0.3); }
.field input:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(228, 150, 14, 0.18); }
.field input[aria-invalid='true'] { border-color: var(--coral); }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); cursor: pointer; }
.consent input {
  appearance: none; flex: none;
  width: 22px; height: 22px; margin: 1px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 6px; background: var(--bg);
  display: grid; place-items: center; cursor: pointer;
}
.consent input:checked { background: var(--amber); border-color: var(--amber); }
.consent input:checked::after { content: ''; width: 6px; height: 11px; border: solid #121212; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.consent input:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.form button {
  margin-top: 6px;
  padding: 16px 24px;
  font: inherit; font-weight: 700; font-size: 17px;
  color: #121212; background: var(--amber);
  border: 0; border-radius: 999px; cursor: pointer;
  transition: transform 0.2s, filter 0.3s;
}
.form button:hover { filter: brightness(1.08); }
.form button:active { transform: scale(0.985); }
.form button:disabled { opacity: 0.6; cursor: progress; }
.form button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.status { margin: 0; min-height: 1.6em; font-size: 15px; }
.status.err { color: #ff8a7f; }
.status.ok { color: var(--ok); }
.fine { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.45); }

.done { text-align: center; padding: 24px 0; outline: none; animation: rise 0.9s ease both; }
.done svg { width: 72px; height: 72px; margin-bottom: 14px; }
.done circle { fill: none; stroke: var(--amber); stroke-width: 1.6; stroke-dasharray: 4 6; stroke-linecap: round; }
.done path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.done h3 { margin: 0 0 6px; font-weight: 200; font-size: 44px; }
.done p { margin: 0; color: var(--muted); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* footer */
.foot {
  padding: 40px 16px 56px; text-align: center;
  color: rgba(255, 255, 255, 0.45); font-size: 14px;
  border-top: 1px solid var(--line);
}
.foot p { margin: 4px 0; }
.foot p:first-child { color: var(--text); font-weight: 600; letter-spacing: 0.02em; }

/* gentle entrance */
.hero > *, .point { animation: rise 0.9s cubic-bezier(.2, .7, .2, 1) both; }
.hero .eyebrow { animation-delay: 0.1s; }
.hero .tagline { animation-delay: 0.18s; }
.hero .lede { animation-delay: 0.26s; }
.hero .jump { animation-delay: 0.34s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
