:root {
  color-scheme: dark;
  --bg: #0b1020;
  --panel: rgba(16, 24, 48, 0.82);
  --panel-strong: rgba(20, 32, 60, 0.94);
  --ink: #f7fbff;
  --muted: #aebad2;
  --line: rgba(255, 255, 255, 0.14);
  --mint: #84f1d8;
  --gold: #f9d46b;
  --rose: #ff8fab;
  --blue: #9fb7ff;
  --danger: #ff6b6b;
  --shadow: 0 24px 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 {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(132, 241, 216, 0.16), transparent 34rem),
    radial-gradient(circle at 80% 20%, rgba(159, 183, 255, 0.18), transparent 28rem),
    var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

button, input, textarea, select { font: inherit; }

.ambient {
  position: fixed;
  width: 36rem;
  height: 36rem;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.28;
  pointer-events: none;
  z-index: -1;
}

.ambient-a { background: var(--mint); top: -12rem; left: -8rem; }
.ambient-b { background: var(--rose); bottom: -16rem; right: -12rem; }

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.7fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 22px;
}

.hero-copy, .panel, .metric-card, .consent-line {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)), var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy {
  border-radius: 36px;
  padding: clamp(28px, 5vw, 56px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--mint);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 800;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 10px;
  font-size: clamp(3rem, 10vw, 7.8rem);
  line-height: 0.88;
  letter-spacing: -0.09em;
}

h2 { margin-bottom: 8px; line-height: 1.1; }
h3 { margin-bottom: 8px; }

.subtitle {
  color: var(--muted);
  max-width: 62ch;
  font-size: clamp(1rem, 2vw, 1.28rem);
  line-height: 1.6;
}

.hero-actions, .form-actions, .commons-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

button, .link-button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, opacity 160ms ease;
}

button:hover, .link-button:hover { transform: translateY(-1px); }
button:active, .link-button:active { transform: translateY(0); }
button:disabled { cursor: not-allowed; opacity: 0.55; transform: none; }

.primary {
  background: linear-gradient(135deg, var(--mint), var(--gold));
  color: #081020;
  font-weight: 850;
}

.ghost, .link-button {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  border: 1px solid var(--line);
}
.creator-link {
  border: 1px solid rgba(132, 241, 216, 0.42);
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--ink);
  background: rgba(132, 241, 216, 0.1);
  font-weight: 850;
  text-decoration: none;
}
.creator-link.coffee {
  border-color: rgba(249, 212, 107, 0.48);
  background: rgba(249, 212, 107, 0.14);
  color: #fff1bd;
}

.text-button {
  color: var(--muted);
  padding: 0;
  background: transparent;
  text-decoration: underline;
  border-radius: 0;
}

.metric-card {
  border-radius: 36px;
  padding: 28px;
  display: grid;
  align-content: center;
  gap: 22px;
}

.metric-ring {
  --score: 0;
  width: 180px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto;
  background:
    radial-gradient(circle, #111a33 0 58%, transparent 59%),
    conic-gradient(var(--mint) calc(var(--score) * 1%), rgba(255, 255, 255, 0.12) 0);
  position: relative;
}

.metric-ring span {
  font-size: 3.8rem;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.metric-ring small {
  position: absolute;
  bottom: 42px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}

.consent-line {
  border-radius: 24px;
  padding: 14px 18px;
  margin-bottom: 22px;
}

.consent-line label, .inline {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  line-height: 1.45;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  gap: 22px;
  align-items: start;
}

.panel {
  border-radius: 28px;
  padding: clamp(18px, 3vw, 28px);
}

.panel-title {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.panel-title p { color: var(--muted); margin-bottom: 0; line-height: 1.45; }

.badge {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #081020;
  font-weight: 900;
  background: var(--gold);
}

.form-panel label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 700;
}

input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  border-radius: 18px;
  padding: 13px 14px;
  outline: none;
}

select option { background: #101830; color: var(--ink); }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus {
  border-color: rgba(132, 241, 216, 0.8);
  box-shadow: 0 0 0 4px rgba(132, 241, 216, 0.12);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sliders output {
  color: var(--mint);
  font-weight: 900;
}

.turnstile-slot {
  min-height: 10px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.swarm-stage {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

#radar {
  width: 100%;
  height: auto;
  display: block;
}

#radarGrid polygon, #radarGrid line {
  stroke: rgba(255,255,255,0.18);
  fill: none;
}

#radarPoly {
  fill: rgba(132, 241, 216, 0.22);
  stroke: var(--mint);
  stroke-width: 3;
  transition: points 220ms ease;
}

.radar-label {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.sparkle {
  fill: var(--gold);
  opacity: 0.9;
  transform-origin: center;
  animation: pulse 2.4s ease-in-out infinite;
}

.reflection {
  margin-top: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  padding: 18px;
}

.reflection.empty { color: var(--muted); }
.reflection strong { color: var(--mint); }
.reflection .nudge { color: var(--gold); }

.commons {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.commons-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  border-radius: 18px;
  padding: 14px;
}

.commons-card p { color: var(--muted); line-height: 1.45; margin-bottom: 8px; }
.commons-card p:last-child { margin-bottom: 0; }

.why-panel { margin-top: 22px; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.why-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
}

.why-grid p { color: var(--muted); line-height: 1.55; margin-bottom: 0; }

.footer {
  width: min(1180px, calc(100vw - 32px));
  margin: -48px auto 36px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

@keyframes pulse {
  0%, 100% { opacity: 0.22; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.12); }
}

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

@media (max-width: 900px) {
  .hero, .grid, .why-grid { grid-template-columns: 1fr; }
  .metric-card { grid-template-columns: auto 1fr; }
  .metric-ring { width: 138px; }
  h1 { font-size: clamp(3rem, 17vw, 5rem); }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 18px, 1180px); padding-top: 18px; }
  .hero-copy, .panel, .metric-card { border-radius: 24px; }
  .two-col { grid-template-columns: 1fr; }
  .metric-card { grid-template-columns: 1fr; text-align: center; }
  .footer { flex-direction: column; width: min(100% - 18px, 1180px); }
}
