:root {
  --bg: #0d0b14;
  --bg-1: #15122a;
  --bg-soft: rgba(249,247,242,0.03);
  --ink: #f9f7f2;
  --ink-d: rgba(249,247,242,0.72);
  --ink-m: rgba(249,247,242,0.48);
  --line: rgba(249,247,242,0.1);
  --lime: #d4ff4a;
  --cyan: #4ab6ff;
  --pink: #ff4f8c;
  --serif: 'Fraunces', serif;
  --sans: 'Space Grotesk', sans-serif;
  --mono: 'Space Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.6; }
a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; }

.nav {
  max-width: 1200px; margin: 18px auto 0; padding: 14px 22px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(13,11,20,0.85);
  border: 1px solid var(--line); border-radius: 20px;
  backdrop-filter: blur(12px);
  position: sticky; top: 10px; z-index: 10;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  letter-spacing: -0.025em; color: var(--ink);
}
.logo .mark { width: 30px; height: 30px; }
.logo .mark .n { fill: var(--ink); }
.logo .mark .n-accent { fill: var(--lime); }
.logo .mark .link { stroke: rgba(249,247,242,0.5); stroke-width: 1.2; fill: none; }
.logo .mark .link-accent { stroke: var(--lime); stroke-width: 1.6; fill: none; }
.logo .brand-text .mc { color: var(--lime); font-weight: 700; position: relative; }
.logo .brand-text .mc::after {
  content: ""; position: absolute; right: -2px; top: 2px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--pink);
}
.back-link {
  font-size: 13px; color: var(--ink-m);
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px;
  transition: all 0.15s;
}
.back-link:hover { color: var(--ink); border-color: var(--lime); text-decoration: none; }

.doc-wrap {
  max-width: 820px; margin: 60px auto 100px; padding: 0 22px;
}
.doc-wrap .kicker {
  display: inline-block;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--lime);
  margin-bottom: 16px;
}
.doc-wrap h1 {
  font-family: var(--serif); font-size: clamp(36px, 5vw, 60px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
  margin-bottom: 18px;
}
.doc-wrap h1 em { font-style: italic; color: var(--lime); font-weight: 500; }
.doc-wrap .lead {
  font-size: 18px; color: var(--ink-d);
  max-width: 620px; margin-bottom: 44px; line-height: 1.55;
}
.doc-wrap .lead.muted { font-size: 13px; color: var(--ink-m); font-family: var(--mono); }
.doc-wrap h2 {
  font-family: var(--serif); font-size: 26px; font-weight: 700;
  letter-spacing: -0.02em; margin: 36px 0 14px;
  color: var(--ink);
}
.doc-wrap p { color: var(--ink-d); margin-bottom: 14px; font-size: 15px; }
.doc-wrap b { color: var(--ink); font-weight: 700; }
.doc-wrap ul { list-style: none; padding-left: 0; margin: 8px 0 18px; }
.doc-wrap li {
  color: var(--ink-d); font-size: 15px;
  padding: 6px 0 6px 22px; position: relative; line-height: 1.5;
}
.doc-wrap li::before {
  content: "·"; position: absolute; left: 6px; top: 4px;
  color: var(--lime); font-weight: 700; font-size: 20px;
}

.cta-box {
  margin-top: 48px; padding: 32px; text-align: center;
  background: linear-gradient(120deg, rgba(212,255,74,0.06), rgba(74,182,255,0.04));
  border: 1px solid rgba(212,255,74,0.3); border-radius: 16px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; background: var(--lime); color: var(--bg);
  border-radius: 99px; font-weight: 700; font-size: 14px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 0 var(--pink); text-decoration: none; }

.faq details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.faq details summary {
  cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: 18px; font-weight: 600;
  letter-spacing: -0.01em; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
  padding-right: 8px;
}
.faq details summary::after {
  content: "+"; font-size: 22px; font-weight: 300;
  color: var(--lime); transition: transform 0.15s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin-top: 10px; color: var(--ink-d);
}

.site-foot {
  border-top: 1px solid var(--line);
  padding: 28px 22px; margin-top: 80px;
  font-size: 13px;
}
.site-foot .inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 18px 32px;
  justify-content: space-between; align-items: center;
}
.site-foot .fb {
  font-family: var(--serif); font-weight: 700; font-size: 18px;
  letter-spacing: -0.02em;
}
.site-foot .fb span { color: var(--lime); }
.site-foot .fl {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.site-foot .fl a {
  color: var(--ink-m); font-size: 12px;
  font-family: var(--mono); text-transform: uppercase;
  letter-spacing: 0.05em;
}
.site-foot .fl a:hover { color: var(--lime); }
.site-foot .fc { color: var(--ink-m); font-size: 11px; font-family: var(--mono); }

/* ═══ COOKIE BANNER ═══ */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 9998;
  max-width: 640px; margin-inline: auto;
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transform: translateY(120%); transition: transform 0.3s ease-out;
}
.cookie-banner.visible { transform: none; }
.cookie-banner h4 {
  font-family: var(--serif); font-weight: 700; font-size: 18px;
  margin-bottom: 6px; letter-spacing: -0.02em;
}
.cookie-banner p {
  color: var(--ink-d); font-size: 13px; line-height: 1.5;
  margin-bottom: 14px;
}
.cookie-banner p a { color: var(--lime); text-decoration: underline; }
.cookie-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.cookie-actions button {
  padding: 9px 18px; border: none; border-radius: 99px;
  font-family: inherit; font-size: 12px; font-weight: 700;
  cursor: pointer; transition: all 0.15s;
}
.cookie-actions .accept-all { background: var(--lime); color: var(--bg); }
.cookie-actions .accept-all:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 0 var(--pink); }
.cookie-actions .reject-all, .cookie-actions .customize {
  background: transparent; color: var(--ink-m); border: 1px solid var(--line);
}
.cookie-actions .reject-all:hover, .cookie-actions .customize:hover { color: var(--ink); border-color: var(--lime); }

.cookie-detail { display: none; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.cookie-banner.expanded .cookie-detail { display: block; }
.cookie-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.cookie-row:last-child { border-bottom: none; }
.cookie-row .k {
  font-size: 13px; font-weight: 600; color: var(--ink);
  margin-bottom: 2px;
}
.cookie-row .d {
  font-size: 11px; color: var(--ink-m);
}
.cookie-row .toggle {
  flex-shrink: 0; margin-left: 16px;
}
.cookie-row .toggle input { width: 38px; height: 22px; appearance: none; background: rgba(249,247,242,0.15); border-radius: 99px; position: relative; cursor: pointer; transition: background 0.15s; }
.cookie-row .toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: var(--ink); border-radius: 50%; transition: transform 0.15s; }
.cookie-row .toggle input:checked { background: var(--lime); }
.cookie-row .toggle input:checked::after { transform: translateX(16px); background: var(--bg); }
.cookie-row .toggle input:disabled { background: rgba(212,255,74,0.3); cursor: not-allowed; }

@media (max-width: 700px) {
  .nav { margin: 10px; padding: 12px 16px; }
  .doc-wrap { margin: 40px auto 60px; }
  .doc-wrap h1 { font-size: 36px; }
}
