@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wdth,wght@12..96,75..100,400..800&family=Instrument+Sans:wght@400;500;600&display=swap");

:root {
  --ink: #07040d;
  --plum: #2e1065;
  --violet: #8b5cf6;
  --lavender: #d8b4fe;
  --mist: #ede9f6;
  --rose: #f0abfc;
  --muted: rgba(237, 233, 246, 0.66);
  --glass: rgba(255, 255, 255, 0.055);
  --glass-edge: rgba(255, 255, 255, 0.13);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.2rem, 5vw, 3.2rem);
  --step-4: clamp(3.6rem, 13vw, 8.5rem);
  --gutter: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 760px at 80% 0%, rgba(139, 92, 246, 0.34), transparent 62%),
    radial-gradient(900px 700px at 0% 30%, rgba(76, 29, 149, 0.55), transparent 66%),
    radial-gradient(900px 700px at 100% 75%, rgba(240, 171, 252, 0.10), transparent 60%),
    var(--ink);
  color: var(--mist);
  font: 400 var(--step-0)/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lavender); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--lavender);
  outline-offset: 3px;
  border-radius: 10px;
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); font-variation-settings: "wdth" 85; }
h3 { font-size: var(--step-1); }
p { margin: 0; max-width: 62ch; }
.wrap { width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Glass: the app's frosted surface, a lit top edge over a faint fill. */
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  padding: 14px 0;
  background: linear-gradient(180deg, rgba(7, 4, 13, 0.85), rgba(7, 4, 13, 0));
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--mist); text-decoration: none; font: 700 1.35rem var(--display); }
.brand svg { width: 34px; height: 22px; }
.top nav { display: flex; gap: 22px; font-size: var(--step--1); }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--mist); }
@media (max-width: 640px) { .top nav a:not(.pill) { display: none; } }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--mist); color: var(--ink) !important;
  font-weight: 600; text-decoration: none;
}

/* Hero */
.hero { position: relative; padding: 24px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; } }
.wordmark {
  font-size: var(--step-4);
  font-variation-settings: "wdth" 78, "opsz" 96;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.86;
  background: linear-gradient(180deg, #fff 30%, var(--lavender));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin-top: 22px; font-size: var(--step-1); line-height: 1.45; color: var(--mist); max-width: 30ch; }
.hero .actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .note { color: var(--muted); font-size: var(--step--1); }
.big {
  padding: 16px 26px; font-size: 1.05rem;
  background: linear-gradient(180deg, #a78bfa, var(--violet));
  color: #fff !important;
  box-shadow: 0 12px 40px -12px rgba(139, 92, 246, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* The one moving thing: the logo's waveform, breathing across the hero. */
.wave { position: absolute; left: -5%; right: -5%; top: 46%; height: 280px; pointer-events: none; opacity: 0.8; z-index: 0; }
.hero .wrap { position: relative; z-index: 1; }
.wave path { fill: none; stroke-width: 2; stroke-linecap: round; }
.wave .a { stroke: url(#waveGrad); animation: drift 9s ease-in-out infinite alternate; }
.wave .b { stroke: rgba(216, 180, 254, 0.25); animation: drift 12s ease-in-out -3s infinite alternate-reverse; }
@keyframes drift { from { transform: translateX(-2%) scaleY(0.85); } to { transform: translateX(2%) scaleY(1.15); } }
@media (prefers-reduced-motion: reduce) { .wave path { animation: none; } html { scroll-behavior: auto; } }

.phone {
  position: relative; justify-self: center;
  width: min(310px, 78vw); padding: 10px; border-radius: 46px;
}
.phone img { border-radius: 36px; }
.phone::after {
  content: ""; position: absolute; inset: 10px; border-radius: 36px; pointer-events: none;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.16), transparent 35%);
}

/* Features: alternating stages, not a grid of identical cards. */
section { padding: 72px 0; }
.stage { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.stage + .stage { margin-top: 96px; }
.stage.flip .copy { order: 2; }
@media (max-width: 880px) { .stage, .stage.flip { grid-template-columns: 1fr; gap: 32px; } .stage.flip .copy { order: 0; } }
.copy p { margin-top: 16px; color: var(--muted); }
.copy ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.copy li { padding-left: 22px; position: relative; color: var(--mist); }
.copy li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); }
.shot { width: min(360px, 86vw); justify-self: center; padding: 10px; border-radius: 34px; }
.shot img { border-radius: 26px; }

.souls-card { justify-self: center; width: min(380px, 88vw); border-radius: 34px; padding: 34px 30px; text-align: center; }
.souls-card .mark { font: 800 3rem/1 var(--display); color: var(--rose); letter-spacing: -0.03em; }
.souls-card .pct { font: 800 5.5rem/1 var(--display); margin-top: 18px; color: #fff; }
.souls-card .phrase { margin: 14px auto 0; color: var(--lavender); font-size: var(--step-1); line-height: 1.3; max-width: 20ch; }
.souls-card .steps { display: flex; gap: 6px; margin-bottom: 26px; }
.souls-card .steps span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.2); }
.souls-card .steps span:first-child { background: var(--rose); }

.party-card { justify-self: center; width: min(380px, 88vw); border-radius: 34px; padding: 30px; }
.party-card .code { font: 700 2.6rem/1 var(--display); letter-spacing: 0.18em; color: #fff; }
.party-card .who { display: flex; margin-top: 22px; }
.party-card .who span {
  width: 46px; height: 46px; border-radius: 50%; margin-left: -10px; border: 2px solid var(--ink);
  background: linear-gradient(135deg, var(--violet), var(--plum));
}
.party-card .who span:first-child { margin-left: 0; background: linear-gradient(135deg, var(--rose), var(--violet)); }
.party-card .now { margin-top: 22px; color: var(--muted); font-size: var(--step--1); }
.party-card .now strong { display: block; color: var(--mist); font-size: var(--step-0); }

.more { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px 40px; margin-top: 36px; }
.more h3 { font-size: 1.1rem; }
.more p { margin-top: 6px; color: var(--muted); font-size: var(--step--1); }

/* Download */
.download { border-radius: 40px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
@media (max-width: 880px) { .download { grid-template-columns: 1fr; } }
.download .facts { margin-top: 24px; display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: var(--step--1); }
.download dt { color: var(--muted); }
.download dd { margin: 0; }
.fingerprint { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.78rem; word-break: break-all; color: var(--lavender); }
.install { margin: 0; padding-left: 1.3em; display: grid; gap: 12px; }
.install li::marker { color: var(--lavender); font-family: var(--display); font-weight: 700; }

/* Changelog & FAQ */
.release h3 { margin-top: 30px; }
.release ul { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 6px; max-width: 70ch; }
details { border-bottom: 1px solid var(--glass-edge); padding: 18px 0; max-width: 760px; }
summary { cursor: pointer; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--lavender); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; color: var(--muted); }

footer { padding: 56px 0 72px; color: var(--muted); font-size: var(--step--1); }
footer .wrap { display: grid; gap: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* Plain pages (privacy, invite) */
.page { padding: 40px 0 80px; }
.page h1 { font-size: var(--step-3); }
.page h2 { font-size: var(--step-2); margin-top: 40px; }
.page p, .page li { color: var(--muted); max-width: 70ch; }
.page p { margin-top: 14px; }
