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

:root {
  --bg: #0a0a0a;
  --bg-elev: #0e0e0e;
  --fg: #f4f4f4;
  --fg-soft: #cfcfcf;
  --dim: #7a7a7a;
  --dim-2: #4a4a4a;
  --hair: #1a1a1a;
  --hair-2: #242424;
  --accent: #7cf3a0;
  --accent-rgb: 124, 243, 160;
  --font: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --serif: 'Instrument Serif', 'Times New Roman', serif;

  --max: 1320px;
  --pad: clamp(24px, 4vw, 56px);
}

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  position: relative;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(var(--accent-rgb), 0.05), transparent 50%),
    radial-gradient(ellipse at 50% 105%, rgba(var(--accent-rgb), 0.025), transparent 60%),
    var(--bg);
}

::selection { background: var(--accent); color: var(--bg); }

a { color: inherit; text-decoration: none; transition: color 0.18s; }
a:hover { color: var(--accent); }

.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.tiny {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ── FX OVERLAYS ─────────────────────────────────────────────────────────── */
.fx-scanlines, .fx-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}
.fx-scanlines {
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.014) 0,
    rgba(255, 255, 255, 0.014) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  opacity: 0.55;
}
.fx-grain {
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' 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.07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.32;
  mix-blend-mode: overlay;
}

/* ── NAV ─────────────────────────────────────────────────────────────────── */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--pad);
  border-bottom: 1px solid var(--hair);
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* ── HERO ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  border-bottom: 1px solid var(--hair);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
}
#graph-canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Readability halo behind the centered text, slightly denser so the copy reads */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 60% 75% at 50% 50%,
      rgba(10, 10, 10, 0.85) 0%,
      rgba(10, 10, 10, 0.72) 40%,
      rgba(10, 10, 10, 0.45) 70%,
      rgba(10, 10, 10, 0.18) 90%,
      transparent 100%
    );
}
/* Screen vignette: dark corners, like a CRT or cinema frame */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(0, 0, 0, 0.65) 100%),
    linear-gradient(to bottom, rgba(10, 10, 10, 0.35), transparent 18%),
    linear-gradient(to top, rgba(10, 10, 10, 0.55), transparent 22%);
}

/* Centered content */
.hero-content {
  position: relative;
  z-index: 5;
  width: min(960px, 100% - 2 * var(--pad));
  padding: clamp(56px, 8vh, 96px) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}

/* Display text, bigger and weighted for centered presentation */
.hero-content .display {
  font-size: clamp(60px, 11vw, 168px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 500;
  max-width: 1100px;
}
.hero-content .lead {
  color: var(--fg-soft);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.55;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 400;
}

.hero-cta {
  max-width: 460px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 8px;
}
.hero-cta .form-stack { width: 100%; }
.hero-cta .note { text-align: center; margin-left: auto; margin-right: auto; }

/* "scroll" indicator at the bottom of the hero */
.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--dim);
}
.hero-scroll-arrow {
  font-family: var(--mono);
  font-size: 16px;
  animation: scroll-bob 2.2s ease-in-out infinite;
  color: var(--dim);
}
@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(4px); opacity: 1; }
}
.display {
  font-size: clamp(56px, 9vw, 124px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 500;
  max-width: 760px;
}
.display .strike {
  color: var(--dim-2);
  text-decoration: line-through;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--dim-2);
}

.lead {
  color: var(--fg-soft);
  max-width: 520px;
  line-height: 1.55;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 400;
}

.cta { max-width: 480px; }
.cta .note {
  color: var(--dim);
  font-size: 12px;
  margin-top: 14px;
  font-family: var(--font);
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.5;
  max-width: 460px;
}
.cta .ok { color: var(--accent); }

/* small status label above the form */
.spots-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid var(--hair-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.015);
  width: fit-content;
  margin-bottom: 16px;
}
.spots-tag .tiny { letter-spacing: 0.14em; }
.spots-tag-center {
  margin-left: auto;
  margin-right: auto;
}

/* Stacked form: email, phone, button. Rounded card, hairlines between rows. */
.form-stack {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hair-2);
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-stack:focus-within {
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow:
    0 0 0 4px rgba(var(--accent-rgb), 0.06),
    0 24px 60px -28px rgba(0, 0, 0, 0.6);
}
.form-stack input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hair-2);
  padding: 18px 22px;
  color: var(--fg);
  font: inherit;
  outline: none;
  font-size: 15px;
  width: 100%;
  transition: background 0.18s;
}
.form-stack input:focus { background: rgba(255, 255, 255, 0.015); }
.form-stack input::placeholder { color: var(--dim); font-weight: 400; }
.form-stack input:-webkit-autofill,
.form-stack input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--fg);
  -webkit-box-shadow: 0 0 0 1000px rgba(20, 20, 20, 1) inset;
  caret-color: var(--fg);
  transition: background-color 5000s ease-in-out 0s;
}
.form-stack button {
  background: var(--fg);
  color: var(--bg);
  border: none;
  padding: 18px 22px;
  font: inherit;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.1s, letter-spacing 0.2s;
  text-align: center;
  letter-spacing: 0.005em;
  width: 100%;
  position: relative;
}
.form-stack button:hover { background: var(--accent); letter-spacing: 0.02em; }
.form-stack button:active { transform: translateY(1px); }
.form-stack button:disabled {
  background: rgba(var(--accent-rgb), 0.16);
  color: var(--accent);
  cursor: default;
  letter-spacing: 0.04em;
}

/* ── MANIFESTO ───────────────────────────────────────────────────────────── */
.manifesto {
  padding: clamp(96px, 14vh, 160px) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  border-bottom: 1px solid var(--hair);
  text-align: center;
}
.manifesto-h {
  font-size: clamp(38px, 6vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 500;
  max-width: 980px;
  margin: 0 auto;
  text-wrap: balance;
}
.manifesto-rule {
  width: 48px;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
  margin: clamp(40px, 6vh, 64px) auto;
}
.manifesto-body {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.6vh, 28px);
  max-width: 580px;
  margin: 0 auto;
}
.manifesto-body p {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.6;
}
.manifesto-body p:nth-child(1) { color: var(--fg); }
.manifesto-body p:nth-child(2) { color: var(--fg-soft); }
.manifesto-body p:nth-child(3) { color: var(--dim); }

/* ── PROOF (chat thread) ─────────────────────────────────────────────────── */
.proof {
  padding: clamp(96px, 14vh, 160px) var(--pad);
  border-bottom: 1px solid var(--hair);
  max-width: 920px;
  margin: 0 auto;
}
.proof-h {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin-bottom: 64px;
  text-align: center;
}
.thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
}
.bubble {
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 16px;
  line-height: 1.45;
  max-width: 82%;
  border: 1px solid var(--hair-2);
  position: relative;
}
.bubble.user {
  align-self: flex-end;
  background: #1c1c1c;
  color: var(--fg);
  border-bottom-right-radius: 6px;
}
.bubble.kin {
  align-self: flex-start;
  background:
    radial-gradient(circle at 0% 100%, rgba(var(--accent-rgb), 0.10), transparent 60%),
    #0f0f0f;
  border-color: rgba(var(--accent-rgb), 0.22);
  color: var(--fg);
  border-bottom-left-radius: 6px;
}
.thread-gap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 4px;
}
.thread-gap-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--hair-2), transparent);
}
.thread-gap-label { color: var(--dim); }

/* ── CHANNELS (how it works) ─────────────────────────────────────────────── */
.channels {
  padding: clamp(96px, 14vh, 160px) var(--pad);
  border-bottom: 1px solid var(--hair);
  max-width: 880px;
  margin: 0 auto;
}
.channels-h {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin-bottom: clamp(48px, 8vh, 80px);
  text-align: center;
}
.flow {
  list-style: none;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.flow-node {
  padding: 28px 28px 28px 32px;
  border: 1px solid var(--hair-2);
  background: linear-gradient(to right, rgba(255,255,255,0.012), transparent 60%);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.flow-head {
  display: flex;
  align-items: center;
}
.flow-channel {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1;
}
.flow-line {
  color: var(--fg-soft);
  font-size: 15px;
  line-height: 1.55;
  max-width: 480px;
}
.flow-arrow {
  color: var(--dim-2);
  text-align: center;
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1;
  padding: 4px 0;
  user-select: none;
}

/* ── FAMILY ──────────────────────────────────────────────────────────────── */
.family {
  padding: clamp(96px, 14vh, 160px) var(--pad);
  border-bottom: 1px solid var(--hair);
  max-width: var(--max);
  margin: 0 auto;
}
.family-head {
  max-width: 720px;
  margin: 0 auto clamp(56px, 8vh, 96px);
  text-align: center;
}
.family-h {
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin-bottom: 28px;
}
.family-lede {
  color: var(--fg-soft);
  font-size: 16px;
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto;
}

.roster {
  list-style: none;
  max-width: 960px;
  margin: 0 auto;
  border-top: 1px solid var(--hair-2);
  border-bottom: 1px solid var(--hair-2);
}
.roster-row {
  display: grid;
  grid-template-columns: 64px 1fr 1.2fr 80px;
  align-items: center;
  padding: 28px 8px;
  border-bottom: 1px solid var(--hair);
  gap: 24px;
  transition: background 0.15s;
}
.roster-row:last-child { border-bottom: none; }
.roster-row:hover { background: rgba(255, 255, 255, 0.012); }
.roster-idx { color: var(--dim-2); }
.roster-name {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.roster-role {
  color: var(--dim);
  font-size: 15px;
  letter-spacing: -0.005em;
}
.roster-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}
.roster-live {
  background:
    linear-gradient(to right, rgba(var(--accent-rgb), 0.05), transparent 60%);
}
.roster-live .roster-status .tiny { color: var(--accent); }
.roster-live .roster-name { color: var(--fg); }

.roster-soon .roster-name {
  display: block;
  height: 24px;
  width: 60%;
  max-width: 200px;
  border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, #1a1a1a 0 6px, #131313 6px 12px);
  position: relative;
  overflow: hidden;
}
.roster-soon .roster-name::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  transform: translateX(-100%);
  animation: shimmer 4.5s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 30%   { transform: translateX(-100%); }
  60%, 100% { transform: translateX(120%); }
}
.roster-soon .roster-role { color: var(--dim-2); letter-spacing: 0.2em; }
.roster-soon .roster-status .tiny { color: var(--dim-2); }

/* ── WAITLIST ────────────────────────────────────────────────────────────── */
.waitlist {
  padding: clamp(140px, 18vh, 220px) var(--pad);
  text-align: center;
  max-width: var(--max);
  margin: 0 auto;
}
.waitlist-h {
  font-size: clamp(64px, 11vw, 168px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 500;
}
.waitlist-h .serif { position: relative; }
.waitlist-h .serif::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.05em;
  height: 0.22em;
  background: rgba(var(--accent-rgb), 0.22);
  z-index: -1;
  filter: blur(5px);
}
.waitlist-lede {
  color: var(--fg-soft);
  font-size: 17px;
  line-height: 1.55;
  margin: 48px auto 40px;
  max-width: 480px;
}
.waitlist .cta      { max-width: 480px; margin: 0 auto; }
.waitlist .note     { text-align: center; }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
footer {
  padding: 32px var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--hair);
  gap: 24px;
  flex-wrap: wrap;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { min-height: 90vh; }
  .hero-content { gap: 28px; padding: 48px 0; }
  .hero-content .display { font-size: clamp(48px, 13vw, 96px); }
  /* Slightly wider readability halo on mobile because text occupies more vertical space */
  .hero-veil {
    background:
      radial-gradient(
        ellipse 80% 60% at 50% 50%,
        rgba(10, 10, 10, 0.82) 0%,
        rgba(10, 10, 10, 0.62) 50%,
        rgba(10, 10, 10, 0.25) 85%,
        transparent 100%
      );
  }

  .manifesto-body { grid-template-columns: 1fr; gap: 22px; }

  .roster-row {
    grid-template-columns: 40px 1fr auto;
    gap: 16px;
    padding: 22px 4px;
  }
  .roster-role { display: none; }
  .roster-name { font-size: 26px; }
  .roster-soon .roster-name { height: 20px; }
}

@media (max-width: 560px) {
  .bubble { font-size: 15px; max-width: 92%; }
  .display { font-size: 48px; }
  footer { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ── REDUCED MOTION ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .roster-soon .roster-name::after { animation: none; }
  .hero-scroll-arrow { animation: none; }
}
