:root {
  --bg: #07090d;
  --surface: #0e1219;
  --surface-2: #121824;
  --surface-3: #171f2e;
  --text: #f6f8fb;
  --muted: #9ba7b7;
  --border: rgba(255,255,255,.09);
  --lime: #b7ff00;
  --pink: #ff3bbd;
  --blue: #69a9ff;
  --max: 860px;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(0,0,0,.34);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% -10%, rgba(183,255,0,.08), transparent 32rem),
    radial-gradient(circle at 95% 5%, rgba(255,59,189,.08), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--blue);
  text-underline-offset: 3px;
}

a:hover { color: #9ac7ff; }

.wrap {
  width: min(100% - 28px, var(--max));
  margin: 0 auto;
  padding:
    max(18px, env(safe-area-inset-top))
    0
    max(46px, env(safe-area-inset-bottom));
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  display: block;
  width: clamp(170px, 31vw, 250px);
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--muted);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 650;
}

.nav-links a:hover {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255,255,255,.035);
}

.hero {
  padding: 42px 0 26px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 17px;
  padding: 6px 11px;
  border: 1px solid rgba(183,255,0,.18);
  border-radius: 999px;
  background: rgba(183,255,0,.07);
  color: var(--lime);
  font-size: .83rem;
  font-weight: 760;
  letter-spacing: .01em;
}

h1, h2, h3 {
  margin-top: 0;
  line-height: 1.16;
  letter-spacing: -.035em;
}

h1 {
  margin-bottom: 17px;
  max-width: 780px;
  font-size: clamp(2.35rem, 8vw, 4.7rem);
  font-weight: 820;
}

h2 {
  margin-bottom: 12px;
  font-size: 1.42rem;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.gradient-text {
  color: inherit;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.lead {
  margin: 0;
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(1.04rem, 3.3vw, 1.2rem);
}

.section { margin-top: 34px; }

.card {
  padding: 23px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.018)), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  gap: 14px;
}

.feature {
  position: relative;
  overflow: hidden;
  padding: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 17px;
}

.feature::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -36px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255,59,189,.045);
  pointer-events: none;
}

.feature:nth-child(odd)::after {
  background: rgba(183,255,0,.045);
}

.feature p, .card p {
  color: var(--muted);
}

.feature p,
.card > p:first-of-type {
  margin-top: 0;
}

.feature p:last-child,
.card p:last-child {
  margin-bottom: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  font-weight: 730;
}

.button:hover {
  color: var(--text);
  background: var(--surface-3);
}

.button.primary {
  border-color: rgba(255,59,189,.32);
  background: var(--pink);
  color: #17000f;
}

.button.primary:hover {
  background: #ff67cb;
  color: #17000f;
}

.toc {
  margin: 18px 0;
}

.toc ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-2);
  color: #dbe3ee;
  text-decoration: none;
  font-size: .93rem;
}

.toc a:hover {
  border-color: rgba(183,255,0,.22);
  color: var(--lime);
}

.policy section {
  scroll-margin-top: 18px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.policy section:first-child {
  padding-top: 0;
  border-top: 0;
}

.policy p {
  margin: 0 0 14px;
  color: #c5ceda;
}

.policy p:last-child { margin-bottom: 0; }

.policy ul {
  margin: 8px 0 14px;
  padding-left: 1.25rem;
  color: #c5ceda;
}

.policy li { margin: 6px 0; }

.note {
  margin: 17px 0;
  padding: 15px 16px;
  border: 1px solid rgba(255,59,189,.15);
  border-radius: 14px;
  background: rgba(255,59,189,.055);
  color: #e7d6e2;
}

.contact-box strong { color: var(--text); }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: #7f8a99;
  font-size: .88rem;
}

footer a {
  color: #8d98a7;
  text-decoration: none;
}

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

@media (min-width: 660px) {
  .wrap {
    width: min(100% - 52px, var(--max));
    padding-top: 30px;
  }

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

  .card { padding: 32px; }

  .toc ul {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .site-nav {
    align-items: flex-start;
  }

  .brand img {
    width: 165px;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
  }

  .nav-links a {
    min-height: 31px;
    padding: 4px 7px;
    font-size: .86rem;
  }

  .hero {
    padding-top: 28px;
  }
}

@media print {
  body { background: #fff; color: #000; }
  .site-nav, footer, .toc { display: none; }
  .wrap { width: 100%; max-width: none; padding: 0; }
  .card, .feature {
    background: #fff;
    color: #000;
    border: 0;
    box-shadow: none;
  }
  .policy p, .policy ul, .lead, .feature p, .card p { color: #222; }
}
