:root {
  --bg: #0b0d1f;
  --bg-2: #11143a;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-hover: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --text: #eceefe;
  --muted: #9aa0c8;
  --blue: #3b7bff;
  --violet: #7c4dff;
  --brand: #5b21e6;
    --grad: linear-gradient(120deg, var(--blue), var(--brand));
  --radius: 16px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(79, 125, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(91, 33, 230, 0.16), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 16px/1.65 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: "Space Grotesk", "Inter", sans-serif; line-height: 1.15; margin: 0; }

a { color: inherit; }

img { display: block; max-width: 100%; }

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px max(16px, calc((100vw - var(--max)) / 2));
  background: rgba(11, 13, 31, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 700 18px "Space Grotesk", sans-serif;
  letter-spacing: 0.04em;
}

.brand img { border-radius: 9px; }

.links { display: flex; gap: 22px; margin-left: auto; }

.links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

.links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 0;
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 30px -8px rgba(91, 33, 230, 0.6);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 36px -8px rgba(91, 33, 230, 0.75); }

.btn-small { padding: 8px 18px; font-size: 14px; }

.btn-ghost {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn-ghost:hover { background: var(--panel-hover); box-shadow: none; }

.hero {
  position: relative;
  min-height: min(calc(100vh - 64px), 860px);
  display: grid;
  place-items: center;
  padding: 72px 16px 96px;
  text-align: center;
  overflow: hidden;
}

.wave {
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  opacity: 0.32;
  mask-image: linear-gradient(to top, #000 10%, transparent);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent);
  pointer-events: none;
}

.wave span {
  flex: 1;
  max-width: 8px;
  height: 100%;
  border-radius: 4px 4px 0 0;
  background: var(--grad);
  background-size: 100% 300%;
  transform-origin: bottom;
  transform: scaleY(var(--h));
  animation: bounce 1.2s ease-in-out infinite alternate;
}

@keyframes bounce {
  from { transform: scaleY(calc(var(--h) * 0.35)); }
  to { transform: scaleY(var(--h)); }
}

.hero.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-bg) center / cover no-repeat;
  opacity: 0.55;
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

.hero-inner { position: relative; max-width: 760px; }

.eyebrow, .label {
  font: 500 12px "JetBrains Mono", monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a68bff;
  margin: 0 0 18px;
}

.hero-logo {
  margin: 0 auto 26px;
  border-radius: 30px;
  box-shadow: 0 0 0 1px var(--line), 0 20px 80px -10px rgba(79, 125, 255, 0.55);
}

.hero-logo.wide {
  width: min(440px, 80vw);
  height: auto;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 12px 40px rgba(91, 33, 230, 0.45));
}

.hero h1 {
  font-size: clamp(38px, 7vw, 72px);
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff, #c7c9ef);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 14px 0 0;
  font: 500 clamp(18px, 2.4vw, 22px) "Space Grotesk", sans-serif;
  background: linear-gradient(120deg, #7aa6ff, #b39bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intro { color: var(--muted); max-width: 600px; margin: 18px auto 0; }

.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

.stats {
  list-style: none;
  display: flex;
  gap: 28px;
  justify-content: center;
  padding: 0;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.stats li { display: flex; align-items: center; gap: 6px; }

.stats strong { color: var(--text); font-weight: 600; }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.2);
}

.section { max-width: var(--max); margin: 0 auto; padding: 88px 16px 0; }

.section-head { margin-bottom: 34px; }

.section-head h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.01em; }

.about { display: grid; gap: 16px; max-width: 760px; color: var(--muted); font-size: 18px; }

.about p { margin: 0; }

.about p:first-child { color: var(--text); }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.grid.is-empty { grid-template-columns: 1fr; }

.card {
  position: relative;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.card:hover { background: var(--panel-hover); border-color: rgba(91, 33, 230, 0.35); transform: translateY(-2px); }

.card h3 { font-size: 20px; margin: 0 0 8px; }

.card p { margin: 0; color: var(--muted); font-size: 15px; }

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(79, 125, 255, 0.22), rgba(91, 33, 230, 0.22));
  border: 1px solid rgba(91, 33, 230, 0.3);
}

.card-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #d8c8ff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.packs { display: grid; gap: 16px; }

.pack:hover { transform: none; }

.pack-head p { max-width: 640px; }

.pp {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.pp-play {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 8px 24px -8px rgba(91, 33, 230, 0.7);
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.pp-play:hover { transform: scale(1.06); }

.pp-play:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }

.pp-play svg { width: 22px; height: 22px; }

.pp-play .spin { transform-origin: 12px 12px; animation: spin 0.8s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

.pp-wave {
  --p: 0%;
  position: relative;
  flex: 1;
  min-width: 0;
  height: 52px;
  border-radius: 8px;
  cursor: pointer;
  touch-action: none;
}

.pp-wave:focus-visible, .pp-play:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.pp-bars, .pp-fill {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  pointer-events: none;
}

.pp-bars span, .pp-fill span {
  flex: 1;
  min-width: 1px;
  height: calc(var(--h) * 100%);
  min-height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
}

.pp-fill { clip-path: inset(0 calc(100% - var(--p)) 0 0); }

.pp-fill span { background: linear-gradient(180deg, var(--blue), var(--violet)); }

.pp.is-loading .pp-bars { animation: breathe 1.4s ease-in-out infinite; }

@keyframes breathe { 50% { opacity: 0.4; } }

.pp.is-error .pp-wave { cursor: default; opacity: 0.4; }

.pp-time {
  flex: none;
  min-width: 92px;
  text-align: right;
  font: 500 13px "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.chip {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font: 500 11px "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d8c8ff;
  background: rgba(91, 33, 230, 0.15);
}

.member {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
}

.member img, .avatar-fallback { width: 56px; height: 56px; border-radius: 50%; flex: none; }

.avatar-fallback {
  display: grid;
  place-items: center;
  background: var(--grad);
  font: 700 22px "Space Grotesk", sans-serif;
}

.member h3 { font-size: 17px; }

.member p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

.placeholder {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px dashed rgba(91, 33, 230, 0.35);
  color: var(--muted);
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--violet);
  animation: pulse 1.6s ease-in-out infinite;
}

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

.faq { display: grid; gap: 10px; max-width: 820px; }

.faq details {
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 4px 20px;
}

.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; }

.faq details p { margin: 0 0 16px; color: var(--muted); }

.join { padding-bottom: 96px; }

.join-card {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 34px;
  border-radius: 22px;
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
}

.join-card img { border-radius: 18px; }

.join-card h2 { font-size: 28px; }

.join-card p { margin: 6px 0 0; color: var(--muted); }

.join-card .btn { margin-left: auto; flex: none; }

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 16px 40px;
  text-align: center;
  font-size: 14px;
}

.footer p { margin: 4px 0; }

.muted { color: var(--muted); font-size: 13px; }

@media (max-width: 760px) {
  .links { display: none; }
  .nav .btn-small { margin-left: auto; }
  .join-card { flex-direction: column; text-align: center; }
  .join-card .btn { margin-left: 0; }
  .section { padding-top: 64px; }
  .pp { gap: 12px; }
  .pp-play { width: 44px; height: 44px; }
  .pp-wave { height: 44px; }
  .pp-bars, .pp-fill { gap: 1px; }
  .pp-time { min-width: 0; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave span, .pulse, .pp.is-loading .pp-bars { animation: none; }
  .btn, .card { transition: none; }
}
