:root {
  --bg: #070612;
  --bg-2: #0a0818;
  --surface: #11102a;
  --card: #151333;
  --well: #1d1a42;
  --elevated: #232050;
  --border: #2c2856;
  --border-strong: #413b72;
  --text: #f4f2ff;
  --text-2: #b8b3d6;
  --text-3: #7e789e;
  --pink: #ff3d8f;
  --pink-dark: #d81b76;
  --pink-light: #ff8cc2;
  --violet: #9b5cff;
  --amber: #ffb44d;
  --blue: #45a8ff;
  --ok: #3ee0a8;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --max: 1120px;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: -0.011em;
}

body {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(155, 92, 255, 0.22), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(255, 61, 143, 0.18), transparent 50%),
    radial-gradient(700px 400px at 50% 120%, rgba(69, 168, 255, 0.1), transparent 55%),
    var(--bg);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--pink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
}

.skip:focus {
  left: 8px;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  backdrop-filter: blur(18px);
  background: rgba(7, 6, 18, 0.88);
  border-bottom: 1px solid rgba(44, 40, 86, 0.7);
  overflow: visible;
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(255, 61, 143, 0.28);
}

.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.brand-name span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 12px 18px;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink) 0%, var(--violet) 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(255, 61, 143, 0.32);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--border);
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.hero {
  padding: 72px 0 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pink-light);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 12px var(--ok);
}

h1,
h2,
h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.05;
}

.grad {
  background: linear-gradient(90deg, #ff8cc2, #ffb44d 35%, #45a8ff 70%, #9b5cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  color: var(--text-3);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  border-radius: 22px;
}

.badge {
  position: absolute;
  right: 36px;
  bottom: 36px;
  background: rgba(7, 6, 18, 0.82);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 700;
}

section {
  padding: 28px 0 72px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 28px;
}

.section-head p {
  color: var(--text-2);
  line-height: 1.6;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 16px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.card p,
.card li {
  color: var(--text-2);
  line-height: 1.6;
}

.icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 14px;
  font-size: 1.2rem;
  background: var(--well);
}

.steps {
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child {
  border-bottom: 0;
}

.num {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink), var(--violet));
}

.cta-band {
  background: linear-gradient(135deg, rgba(255, 61, 143, 0.16), rgba(155, 92, 255, 0.16));
  border: 1px solid var(--border-strong);
  border-radius: 32px;
  padding: 36px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  color: var(--text-3);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.foot a {
  color: var(--text-2);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.legal {
  display: none;
  padding: 40px 0 80px;
}

body.is-legal .home {
  display: none;
}

body.is-legal .legal {
  display: block;
}

body.is-legal[data-doc="privacy"] #privacy,
body.is-legal[data-doc="terms"] #terms,
body.is-legal[data-doc="guidelines"] #guidelines {
  display: block;
}

.legal-doc {
  display: none;
  max-width: 820px;
}

body:not(.is-legal) .legal-doc#privacy {
  display: block;
}

.legal-page .legal {
  display: block;
  padding-top: 28px;
}

.legal-page .legal-doc {
  display: block;
}

.legal-kicker {
  color: var(--text-3);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.legal-doc h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.legal-doc .subtitle {
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.callout {
  background: rgba(255, 61, 143, 0.1);
  border: 1px solid rgba(255, 61, 143, 0.28);
  border-radius: 18px;
  padding: 16px 18px;
  color: var(--text);
  margin: 0 0 28px;
}

.policy {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px 24px;
  margin-bottom: 14px;
}

.policy h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.policy p,
.policy li {
  color: var(--text-2);
  line-height: 1.7;
}

.policy ul {
  padding-left: 1.15rem;
}

.policy a,
.card a,
.foot a:hover {
  color: var(--pink-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

code {
  font-size: 0.86em;
  background: var(--well);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.toc a {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-2);
  background: var(--well);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 12px;
}

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

@media (max-width: 860px) {
  .hero,
  .grid-3,
  .grid-2,
  .cta-band {
    grid-template-columns: 1fr;
    display: grid;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    z-index: 50;
    background: #0b091c;
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 18px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 28px 48px rgba(0, 0, 0, 0.55);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-btn {
    display: grid;
    place-items: center;
  }

  .hero {
    padding-top: 36px;
  }

  .cta-band {
    padding: 24px;
  }
}
