/* ============================================================
   COMMUNITY — Simple waitlist landing
   Holographic Studio: studio black, electric violet→magenta,
   glassy surfaces. Form-forward, single column.
   ============================================================ */

:root {
  --bg-0: #08060d;
  --bg-1: #0d0a16;

  --ink-0: oklch(0.97 0.01 290);
  --ink-1: oklch(0.85 0.02 290);
  --ink-2: oklch(0.68 0.03 290);
  --ink-3: oklch(0.52 0.03 290);

  --accent: #a366ff;
  --accent-2: #ff6ec7;
  --accent-3: #6ee7ff;

  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-hi: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(163, 102, 255, 0.45);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --container: 680px;     /* simple page → narrow column */
  --container-wide: 1040px;
}

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

html {
  background: var(--bg-0);
  color: var(--ink-1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(163, 102, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(255, 110, 199, 0.07), transparent 60%),
    var(--bg-0);
  overflow-x: hidden;
  position: relative;
}

::selection { background: rgba(163, 102, 255, 0.35); color: white; }

/* -------- Ambient backdrop -------- */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.ambient__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  mix-blend-mode: screen;
}
.ambient__glow--violet {
  width: 60vw; height: 60vw;
  top: -20vw; left: -10vw;
  background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
  animation: drift 22s ease-in-out infinite alternate;
}
.ambient__glow--magenta {
  width: 45vw; height: 45vw;
  bottom: -15vw; right: -10vw;
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 60%);
  opacity: 0.35;
  animation: drift 28s ease-in-out -8s infinite alternate;
}
@keyframes drift {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(5vw,3vh) scale(1.08); }
}
.ambient__noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.12 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.35;
  mix-blend-mode: overlay;
}

/* -------- Layout primitives -------- */
#root { position: relative; z-index: 1; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--wide {
  max-width: var(--container-wide);
}

.eyebrow {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink-0);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 7vw, 64px); }
h2 { font-size: clamp(26px, 3.6vw, 34px); }
h3 { font-size: 17px; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }

.gradient-text {
  background: linear-gradient(110deg, var(--ink-0) 0%, var(--accent) 35%, var(--accent-2) 70%, var(--ink-0) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 8s ease-in-out infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  color: white;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.18) inset,
    0 10px 30px -10px rgba(163, 102, 255, 0.6),
    0 0 40px -6px rgba(255, 110, 199, 0.35);
  position: relative;
  overflow: hidden;
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s ease;
}
.btn--primary:hover::after { transform: translateX(100%); }
.btn--primary:hover {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.25) inset,
    0 14px 40px -8px rgba(163, 102, 255, 0.75),
    0 0 60px -6px rgba(255, 110, 199, 0.5);
}

.btn--lg { padding: 16px 28px; font-size: 16px; width: 100%; }

.btn--ghost {
  color: var(--ink-0);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.btn--ghost:hover { background: var(--surface-2); border-color: var(--border-hi); }

/* -------- Header -------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  background: linear-gradient(180deg, rgba(8, 6, 13, 0.8), rgba(8, 6, 13, 0.4));
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink-0);
  text-decoration: none;
}
.logo__mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow:
    0 0 18px rgba(110, 231, 255, 0.42),
    0 0 22px rgba(255, 209, 102, 0.22);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav a:hover { color: var(--ink-0); background: var(--surface); }
.nav a.btn { color: white; }
.nav a.btn:hover { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); }

@media (max-width: 720px) {
  .nav a:not(.nav__cta) { display: none; }
}

/* -------- Hero -------- */
.hero {
  padding: clamp(56px, 9vw, 96px) 0 clamp(40px, 5vw, 56px);
  text-align: left;
}
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.hero__logo-wrap {
  width: clamp(104px, 13vw, 132px);
  aspect-ratio: 1;
  border-radius: 24px;
  padding: 7px;
  background:
    radial-gradient(circle at 32% 38%, rgba(110, 231, 255, 0.2), transparent 38%),
    radial-gradient(circle at 70% 50%, rgba(255, 209, 102, 0.18), transparent 42%),
    rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-hi);
  box-shadow:
    0 24px 60px -28px rgba(110, 231, 255, 0.75),
    0 26px 70px -30px rgba(255, 209, 102, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.hero__logo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: cover;
}
.hero__lede {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--ink-2);
  max-width: 52ch;
}
.hero__subtext {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.hero__subtext::before {
  content: "";
  width: 16px; height: 1px;
  background: var(--ink-3);
}

/* -------- Waitlist form -------- */
.form-section { padding-bottom: clamp(48px, 6vw, 80px); }

.form-card {
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(163, 102, 255, 0.12), transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--border-hi);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04) inset;
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

.form-grid {
  display: grid;
  gap: 18px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: flex; align-items: center; gap: 8px;
}
.field__optional {
  font-family: var(--font-body);
  font-size: 10px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-3);
  font-style: italic;
}
.input, .select {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--ink-0);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.input::placeholder { color: var(--ink-3); }
.input:focus, .select:focus {
  outline: none;
  border-color: var(--border-accent);
  background: rgba(0,0,0,0.4);
  box-shadow: 0 0 0 4px rgba(163, 102, 255, 0.15);
}
.input--error { border-color: rgba(255, 110, 110, 0.5); }

.select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23a8a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.select option { background: var(--bg-1); color: var(--ink-0); }

.chip-group {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--ink-1);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}
.chip:hover { border-color: var(--border-hi); color: var(--ink-0); }
.chip--active {
  background: linear-gradient(135deg, rgba(163, 102, 255, 0.2), rgba(255, 110, 199, 0.15));
  border-color: var(--border-accent);
  color: white;
  box-shadow: 0 0 12px rgba(163, 102, 255, 0.2);
}
.chip__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ink-3);
  transition: all 0.2s ease;
}
.chip--active .chip__dot {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.form-meta {
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
  margin-top: 4px;
}

/* Buttondown embed wrapper */
.form-card--embed {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px, 3vw, 28px);
}
.bd-embed {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  color-scheme: light;
}

.field__error {
  font-size: 12px;
  color: oklch(0.78 0.15 22);
}

/* Confirmation state */
.confirm {
  text-align: center;
  padding: 12px 8px 4px;
  animation: confirm-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.confirm__mark {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  color: white;
  box-shadow: 0 0 40px rgba(163, 102, 255, 0.6);
  position: relative;
}
.confirm__mark::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--border-accent);
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
.confirm h3 { font-size: 26px; margin-bottom: 10px; font-family: var(--font-display); font-weight: 500; color: var(--ink-0); letter-spacing: -0.01em; }
.confirm p { color: var(--ink-2); max-width: 44ch; margin: 0 auto; }
.confirm__detail {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
}
.confirm__detail .chip { font-size: 11.5px; padding: 6px 10px; }
@keyframes confirm-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -------- Section divider -------- */
.section {
  padding: clamp(40px, 5vw, 64px) 0;
  position: relative;
}
.section + .section { border-top: 1px solid var(--border); }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 32px;
}
.section-head--center {
  align-items: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 640px;
}
.section-head__lede {
  font-size: 15.5px;
  color: var(--ink-2);
  max-width: 50ch;
}

/* -------- Share grid (compact) -------- */
.share-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 720px) { .share-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .share-grid { grid-template-columns: 1fr; } }

.share-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.25s ease;
}
.share-card:hover {
  border-color: var(--border-hi);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.share-card__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(163, 102, 255, 0.25), rgba(255, 110, 199, 0.15));
  border: 1px solid var(--border-accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
}
.share-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink-0);
  letter-spacing: -0.005em;
}
.share-card__body {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* -------- Devs strip -------- */
.devs-strip {
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(110, 231, 255, 0.05), rgba(163, 102, 255, 0.04));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.devs-strip__text { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 6px; }
.devs-strip__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  color: var(--ink-0);
  letter-spacing: -0.01em;
}
.devs-strip__body {
  font-size: 13.5px;
  color: var(--ink-2);
  max-width: 56ch;
}

/* -------- Roadmap (compact pills) -------- */
.roadmap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.roadmap__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}
.roadmap__item:hover { border-color: var(--border-hi); background: var(--surface-2); }
.roadmap__left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.roadmap__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.roadmap__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15.5px;
  color: var(--ink-0);
  letter-spacing: -0.005em;
}
.roadmap__status {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
  color: var(--ink-2);
  white-space: nowrap;
  flex-shrink: 0;
}
.roadmap__status--planned { color: var(--accent); border-color: var(--border-accent); }
.roadmap__status--exploring { color: var(--accent-3); border-color: rgba(110, 231, 255, 0.3); }
.roadmap__status--soon { color: oklch(0.85 0.15 95); border-color: rgba(229, 199, 102, 0.3); }

/* -------- Footer -------- */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}
.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer__credo {
  font-family: var(--font-display);
  font-size: 13.5px;
  color: var(--ink-2);
  max-width: 36ch;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.footer__links a {
  font-size: 12.5px;
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  transition: all 0.2s ease;
}
.footer__links a:hover { color: var(--ink-0); background: var(--surface); }
.footer__fineprint {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
