/* ==========================================================================
   Nine Casino Italia – ninecasino-officialt.com
   "Deep space / hi-tech" theme: star field, nebula glow, glass panels,
   neon cyan → violet → magenta accents, orbit rings and HUD details.
   Fonts: Orbitron (display) + Exo 2 (headings & text), self-hosted woff2.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/orbitron-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Exo 2";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/exo2-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Exo 2";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/exo2-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Exo 2";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/exo2-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Exo 2";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/exo2-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --space-0: #03040b;
  --space-1: #070a1c;
  --space-2: #0c1030;
  --panel: rgba(14, 19, 48, .62);
  --panel-solid: #0d1233;
  --panel-hi: rgba(28, 36, 88, .55);
  --line: rgba(130, 150, 255, .18);
  --line-hi: rgba(34, 227, 255, .45);

  --text: #e7ecff;
  --text-dim: #aab3d9;
  --text-mute: #7781ad;
  --white: #ffffff;

  --cyan: #22e3ff;
  --violet: #8b5cf6;
  --magenta: #ff3df2;
  --lime: #7dffb0;
  --amber: #ffcc66;

  --grad: linear-gradient(120deg, var(--cyan) 0%, var(--violet) 55%, var(--magenta) 100%);
  --grad-soft: linear-gradient(120deg, rgba(34, 227, 255, .16), rgba(139, 92, 246, .16) 55%, rgba(255, 61, 242, .14));
  --glow-cyan: 0 0 0 1px rgba(34, 227, 255, .35), 0 0 24px rgba(34, 227, 255, .28);
  --glow-violet: 0 10px 40px -10px rgba(139, 92, 246, .65);

  --font-display: "Orbitron", "Exo 2", "Segoe UI", Arial, sans-serif;
  --font-body: "Exo 2", "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1200px;
  --header-h: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 56px);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--space-0);
  background-image:
    radial-gradient(70% 55% at 8% -5%, rgba(139, 92, 246, .30), transparent 60%),
    radial-gradient(55% 45% at 100% 20%, rgba(34, 227, 255, .14), transparent 60%),
    radial-gradient(60% 50% at 85% 100%, rgba(255, 61, 242, .14), transparent 65%),
    linear-gradient(180deg, var(--space-1), var(--space-0) 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  font-feature-settings: "tnum" 0;
  overflow-x: hidden;
}

/* Star field (two layers, fixed behind everything) */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-repeat: repeat;
}
body::before {
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent 60%),
    radial-gradient(1px 1px at 140px 80px, rgba(255, 255, 255, .8), transparent 60%),
    radial-gradient(1.5px 1.5px at 260px 160px, #bff4ff, transparent 60%),
    radial-gradient(1px 1px at 90px 210px, rgba(255, 255, 255, .7), transparent 60%),
    radial-gradient(1px 1px at 320px 40px, rgba(255, 255, 255, .6), transparent 60%),
    radial-gradient(1.2px 1.2px at 200px 270px, #ffd6fb, transparent 60%);
  background-size: 360px 300px;
  opacity: .55;
}
body::after {
  background-image:
    radial-gradient(2px 2px at 60px 120px, #fff, transparent 60%),
    radial-gradient(1.6px 1.6px at 480px 60px, #9eeaff, transparent 60%),
    radial-gradient(1.8px 1.8px at 300px 380px, #e2d4ff, transparent 60%),
    radial-gradient(1.4px 1.4px at 540px 300px, #fff, transparent 60%);
  background-size: 620px 460px;
  opacity: .7;
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .35; } to { opacity: .85; } }

img, svg { max-width: 100%; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #8ff1ff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.2; color: var(--white); font-weight: 700; }
h1 { font-family: var(--font-display); font-weight: 800; letter-spacing: .01em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); letter-spacing: .005em; }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); color: #dfe6ff; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: .45em; }
strong { color: var(--white); font-weight: 700; }
em { font-style: italic; }
small, .small { font-size: .85em; }
.muted { color: var(--text-mute); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 10px;
  background: var(--cyan); color: var(--space-0); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Neon separator line (kept as .strap for markup compatibility) */
.strap {
  display: block; height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--cyan) 20%, var(--violet) 50%, var(--magenta) 80%, transparent);
  opacity: .7;
}
.strap--thin { opacity: .45; }

/* ---------- Buttons ---------- */
.btn {
  --btn-pad: 11px 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: var(--btn-pad);
  border: 1px solid transparent; border-radius: 999px;
  font-family: var(--font-body); font-size: .9rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  line-height: 1.2; white-space: nowrap; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--grad); background-size: 160% 100%; background-position: 0 0;
  color: #050616;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 8px 30px -8px rgba(139, 92, 246, .8), 0 0 26px -6px rgba(34, 227, 255, .7);
}
.btn--primary:hover { color: #050616; background-position: 100% 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset, 0 10px 36px -8px rgba(255, 61, 242, .75), 0 0 32px -4px rgba(34, 227, 255, .8); }
.btn--outline { border-color: var(--line-hi); color: var(--cyan); background: rgba(34, 227, 255, .06); }
.btn--outline:hover { color: var(--white); border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.btn--light { background: var(--white); color: #0a0d2a; }
.btn--light:hover { color: #0a0d2a; box-shadow: 0 0 24px rgba(255, 255, 255, .35); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .28); color: var(--white); background: rgba(255, 255, 255, .04); }
.btn--ghost-light:hover { color: var(--white); border-color: var(--magenta); box-shadow: 0 0 22px -4px rgba(255, 61, 242, .6); }
.btn--lg { --btn-pad: 15px 28px; font-size: .95rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Top bar ---------- */
.topbar {
  position: relative;
  background: linear-gradient(90deg, rgba(34, 227, 255, .12), rgba(139, 92, 246, .18), rgba(255, 61, 242, .12));
  border-bottom: 1px solid var(--line);
  text-align: center; font-size: .82rem; letter-spacing: .06em; color: var(--text-dim);
}
.topbar p { margin: 0; padding: 7px 16px; }
.topbar a { color: var(--cyan); font-weight: 700; text-transform: uppercase; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 7, 20, .72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, background-color .25s ease;
}
.site-header.is-scrolled { background: rgba(5, 7, 20, .9); box-shadow: 0 12px 40px -18px rgba(0, 0, 0, .9), 0 1px 0 var(--line); }

.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  min-height: var(--header-h);
}
.header-left { display: flex; align-items: center; gap: 18px; }
.header-left__link {
  color: var(--text-dim); text-decoration: none; font-size: .88rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
}
.header-left__link:hover, .header-left__link[aria-current="page"] { color: var(--white); }
.header-left__link[aria-current="page"] { text-shadow: 0 0 14px rgba(34, 227, 255, .7); }
.header-actions { display: flex; justify-content: flex-end; gap: 10px; }

.burger {
  display: none; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .03);
  color: var(--white); cursor: pointer;
}
.burger__lines, .burger__lines::before, .burger__lines::after {
  display: block; width: 20px; height: 2px; margin: 0 auto; border-radius: 2px;
  background: currentColor; position: relative;
}
.burger__lines::before, .burger__lines::after { content: ""; position: absolute; left: 0; }
.burger__lines::before { top: -6px; width: 14px; background: var(--cyan); }
.burger__lines::after { top: 6px; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.logo:hover { color: var(--white); }
.logo__mark { width: 46px; height: 46px; filter: drop-shadow(0 0 10px rgba(139, 92, 246, .6)); transition: transform .5s ease; }
.logo:hover .logo__mark { transform: rotate(-12deg) scale(1.05); }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__text > span {
  font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; letter-spacing: .12em; text-transform: uppercase;
  background: linear-gradient(90deg, #ffffff, #9eeaff); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo__text small { font-family: var(--font-display); font-size: .6rem; font-weight: 600; letter-spacing: .5em; color: var(--cyan); margin-top: 4px; }

/* Main nav */
.main-nav { border-top: 1px solid var(--line); }
.main-nav ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin: 0; padding: 6px 0; list-style: none; }
.main-nav li { margin: 0; }
.main-nav a {
  position: relative; display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--text-dim); font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
.main-nav a:hover { color: var(--white); background: rgba(34, 227, 255, .08); }
.main-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 0; height: 2px; border-radius: 2px;
  background: var(--grad); transform: translateX(-50%); transition: width .25s ease;
}
.main-nav a:hover::after { width: 50%; }

/* ---------- Mobile menu ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.mobile-menu.is-open { visibility: visible; }
.mobile-menu__backdrop {
  position: absolute; inset: 0; background: rgba(2, 3, 10, .7);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .3s ease;
}
.mobile-menu.is-open .mobile-menu__backdrop { opacity: 1; }
.mobile-menu__panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: min(360px, 88vw);
  display: flex; flex-direction: column; gap: 18px; padding: 18px 18px 24px; overflow-y: auto;
  background:
    radial-gradient(80% 40% at 0 0, rgba(139, 92, 246, .35), transparent 70%),
    radial-gradient(60% 30% at 100% 100%, rgba(34, 227, 255, .18), transparent 70%),
    var(--space-1);
  border-right: 1px solid var(--line-hi);
  box-shadow: 20px 0 60px -20px rgba(34, 227, 255, .35);
  transform: translateX(-102%); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.mobile-menu.is-open .mobile-menu__panel { transform: none; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mobile-menu__close {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .04); color: var(--white); cursor: pointer;
}
.mobile-menu__nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu__nav li { margin: 0; border-bottom: 1px solid var(--line); }
.mobile-menu__nav a { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px; color: var(--text); text-decoration: none; font-weight: 600; letter-spacing: .04em; }
.mobile-menu__nav a::after { content: "›"; color: var(--cyan); font-size: 1.3em; line-height: 1; }
.mobile-menu__nav a[aria-current="page"] { color: var(--cyan); }
.mobile-menu__cta { display: grid; gap: 10px; }
.mobile-menu__note { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .85rem; color: var(--text-dim); }
body.menu-open { overflow: hidden; }

/* ---------- Age badge ---------- */
.age-badge {
  display: inline-grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid var(--magenta); color: var(--white);
  font-family: var(--font-display); font-weight: 800; font-size: .95rem;
  box-shadow: 0 0 18px -2px rgba(255, 61, 242, .6), inset 0 0 12px rgba(255, 61, 242, .35);
}
.age-badge--sm { width: 36px; height: 36px; font-size: .7rem; border-width: 1.5px; }

/* ---------- Author (right side, start of content) ---------- */
.author-bar { padding-top: 18px; }
.author-bar__inner { display: flex; justify-content: flex-end; }
.author {
  display: inline-flex; align-items: center; gap: 14px; margin: 0;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.author__meta { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; text-align: right; }
.author__role { font-size: .68rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); }
.author__name { font-weight: 700; color: var(--white); }
.author__date { font-size: .78rem; color: var(--text-mute); }
.author__avatar {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #4b3bc4, #120f45 70%);
  font-family: var(--font-display); font-size: .82rem; font-weight: 800; color: var(--white);
  box-shadow: 0 0 0 2px rgba(34, 227, 255, .55), 0 0 18px rgba(139, 92, 246, .7);
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 36px 0 70px; overflow: hidden; isolation: isolate; }
.hero__link { position: absolute; inset: 0; z-index: 1; }
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; pointer-events: none; }
.hero__grid a, .hero__grid button { pointer-events: auto; }
.hero__planet {
  position: absolute; z-index: -1; right: -180px; top: -120px; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(120, 100, 255, .55), rgba(40, 24, 140, .45) 40%, rgba(8, 8, 40, .2) 66%, transparent 70%);
  box-shadow: inset -40px -30px 90px rgba(0, 0, 0, .6);
  filter: blur(.3px);
  pointer-events: none;
}
.hero__planet::after {
  content: ""; position: absolute; inset: 22% -18%; border-radius: 50%;
  border: 1.5px solid rgba(34, 227, 255, .35); transform: rotate(-18deg);
  box-shadow: 0 0 30px rgba(34, 227, 255, .15);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-hi); background: rgba(34, 227, 255, .07);
  font-family: var(--font-display); font-size: .7rem; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; color: var(--cyan);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero__title { font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.1rem); line-height: 1.15; margin-bottom: .55em; }
.hero__title em {
  font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(139, 92, 246, .45));
}
.hero__lead { color: var(--text-dim); font-size: 1.06rem; max-width: 62ch; }
.hero__lead strong { color: var(--white); }
.hero .btn-row { margin-top: 26px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 32px 0 0; padding: 0; list-style: none; }
.stats li { margin: 0; padding: 14px 12px; border-radius: var(--radius-sm); background: var(--panel); border: 1px solid var(--line); text-align: center; }
.stats b { display: block; font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: var(--white); text-shadow: 0 0 16px rgba(34, 227, 255, .55); }
.stats span { font-size: .78rem; color: var(--text-mute); letter-spacing: .06em; text-transform: uppercase; }

/* Bonus "holo" card */
.holo {
  position: relative; padding: 30px 28px 26px; border-radius: 24px; overflow: hidden;
  background:
    radial-gradient(90% 60% at 100% 0, rgba(255, 61, 242, .22), transparent 60%),
    radial-gradient(90% 70% at 0 100%, rgba(34, 227, 255, .2), transparent 60%),
    linear-gradient(160deg, rgba(25, 30, 80, .92), rgba(9, 11, 34, .95));
  border: 1px solid rgba(160, 175, 255, .28);
  box-shadow: 0 30px 80px -30px rgba(139, 92, 246, .8), 0 0 0 1px rgba(34, 227, 255, .12) inset;
}
.holo::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 60%, var(--cyan) 75%, var(--magenta) 88%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 7s linear infinite;
}
.holo__orbit { position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; opacity: .55; pointer-events: none; }
.holo__orbit circle { fill: none; stroke: rgba(158, 234, 255, .45); stroke-width: 1; stroke-dasharray: 3 6; }
.holo__orbit .sat { fill: var(--cyan); stroke: none; filter: drop-shadow(0 0 4px var(--cyan)); }
.holo__orbit g { transform-origin: 110px 110px; animation: spin 14s linear infinite; }
.holo__label { margin: 0 0 6px; font-family: var(--font-display); font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--cyan); }
.holo__amount { margin: 0; font-family: var(--font-display); font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.4rem); font-weight: 900; line-height: 1.05; color: var(--white); text-shadow: 0 0 26px rgba(139, 92, 246, .8); }
.holo__plus { margin: 4px 0 18px; font-size: 1.15rem; font-weight: 700; color: var(--magenta); letter-spacing: .04em; }
.holo__list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.holo__list li { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 8px 0; border-bottom: 1px dashed rgba(160, 175, 255, .2); font-size: .95rem; color: var(--text-dim); }
.holo__list li b { color: var(--white); font-weight: 700; }
.holo__fine { margin: 12px 0 0; font-size: .75rem; color: var(--text-mute); text-align: center; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 64px 0; }
.section--alt::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(20, 26, 70, .35) 15%, rgba(20, 26, 70, .35) 85%, transparent);
}
.section-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 26px; }
.section-head h2 { margin: 0; }
.sec-num {
  flex: none; margin-top: .35em; padding: 4px 10px; border-radius: 8px;
  border: 1px solid var(--line-hi); background: rgba(34, 227, 255, .07);
  font-family: var(--font-display); font-size: .72rem; font-weight: 700; letter-spacing: .15em; color: var(--cyan);
}
.section h2 .grad, .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.prose { max-width: 820px; }
.prose > p, .prose li { color: var(--text-dim); }
.prose h3 {
  position: relative; margin-top: 1.8em; padding-left: 18px;
}
.prose h3::before {
  content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 4px;
  background: var(--grad); box-shadow: 0 0 12px rgba(34, 227, 255, .6);
}

/* Glass panel */
.panel {
  position: relative; padding: 26px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.panel > :last-child { margin-bottom: 0; }

/* Numbered steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.steps li {
  counter-increment: step; position: relative; margin: 0; padding: 14px 16px 14px 62px;
  border-radius: var(--radius-sm); background: var(--panel); border: 1px solid var(--line); color: var(--text);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px;
  background: var(--grad-soft); border: 1px solid var(--line-hi);
  font-family: var(--font-display); font-size: .75rem; font-weight: 700; color: var(--cyan);
}

/* Bullet list with neon markers */
.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 8px; }
.checklist li { position: relative; margin: 0; padding-left: 28px; color: var(--text); }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 2px; transform: rotate(45deg);
  background: var(--grad); box-shadow: 0 0 10px rgba(34, 227, 255, .7);
}

/* Tables */
.table-wrap {
  position: relative; margin: 0 0 1.6em; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.table { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
.table caption { padding: 14px 18px 0; text-align: left; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.table th, .table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(130, 150, 255, .1); }
.table thead th {
  background: linear-gradient(90deg, rgba(34, 227, 255, .14), rgba(139, 92, 246, .16));
  color: var(--white); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.table tbody tr { transition: background-color .15s ease; }
.table tbody tr:hover { background: rgba(34, 227, 255, .05); }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tbody th { color: var(--white); font-weight: 700; }
.table td { color: var(--text-dim); }
.table .hl td, .table .hl th { background: rgba(139, 92, 246, .14); color: var(--white); }
.table .stars { color: var(--amber); letter-spacing: .1em; text-shadow: 0 0 8px rgba(255, 204, 102, .5); }

/* Sidebar */
.aside { position: sticky; top: calc(var(--header-h) + 64px); display: grid; gap: 16px; }
.aside .toc { margin: 0; }
.mini-cta { text-align: center; }
.mini-cta__big { margin: 0; font-family: var(--font-display); font-size: 2rem; font-weight: 900; color: var(--white); text-shadow: 0 0 22px rgba(139, 92, 246, .8); }
.mini-cta p { color: var(--text-dim); font-size: .92rem; }

/* CTA band */
.cta-band {
  position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px;
  margin: 8px 0 1.6em; padding: 22px 26px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(110deg, rgba(34, 227, 255, .14), rgba(139, 92, 246, .22) 50%, rgba(255, 61, 242, .16));
  border: 1px solid rgba(160, 175, 255, .3);
}
.cta-band::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .14), transparent);
  animation: sweep 5s ease-in-out infinite;
}
@keyframes sweep { 0%, 60% { left: -40%; } 100% { left: 130%; } }
.cta-band p { margin: 0; font-weight: 600; color: var(--white); }
.cta-band small { display: block; font-weight: 400; color: var(--text-dim); }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 1.6em; }
.card {
  position: relative; padding: 22px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-hi); box-shadow: var(--glow-violet); }
.card h3 { margin-bottom: .4em; font-size: 1.15rem; }
.card p { margin: 0; color: var(--text-dim); font-size: .95rem; }
.card__k { display: block; margin-bottom: 8px; font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; color: var(--white); text-shadow: 0 0 18px rgba(34, 227, 255, .6); }

/* Callout */
.callout {
  margin: 0 0 1.6em; padding: 18px 20px 18px 22px; border-radius: var(--radius-sm);
  background: rgba(34, 227, 255, .06); border: 1px solid rgba(34, 227, 255, .25); border-left: 3px solid var(--cyan);
  color: var(--text);
}
.callout > :last-child { margin-bottom: 0; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq details {
  border-radius: var(--radius-sm); background: var(--panel); border: 1px solid var(--line);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] { border-color: var(--line-hi); box-shadow: 0 0 30px -12px rgba(34, 227, 255, .6); }
.faq summary {
  position: relative; display: block; padding: 18px 56px 18px 20px; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.08rem; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px;
  border: 1px solid var(--line-hi); color: var(--cyan); font-family: var(--font-display); transition: transform .25s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq .faq__a { padding: 0 20px 18px; color: var(--text-dim); }
.faq .faq__a p:last-child { margin-bottom: 0; }

/* ---------- Page hero (legal pages) ---------- */
.page-hero { padding: 36px 0 24px; }
.page-hero h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
.page-hero p { color: var(--text-dim); max-width: 70ch; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; font-size: .85rem; color: var(--text-mute); }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--violet); }
.breadcrumbs a { color: var(--text-dim); text-decoration: none; }
.breadcrumbs a:hover { color: var(--cyan); }

.legal { max-width: 860px; }
.legal h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); margin-top: 1.8em; padding-top: .9em; border-top: 1px solid var(--line); }
.legal h3 { font-size: 1.1rem; margin-top: 1.4em; }
.legal p, .legal li { color: var(--text-dim); }

.toc { margin: 0 0 2em; padding: 22px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.toc h2 { margin: 0 0 12px; padding: 0; border: 0; font-family: var(--font-display); font-size: .78rem; letter-spacing: .25em; text-transform: uppercase; color: var(--cyan); }
.toc ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 32px; }
.aside .toc ol { columns: 1; }
.toc li { margin-bottom: .3em; break-inside: avoid; color: var(--text-mute); }
.toc a { color: var(--text-dim); text-decoration: none; font-size: .93rem; }
.toc a:hover { color: var(--cyan); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; margin-top: 40px; padding-bottom: 30px;
  background: linear-gradient(180deg, rgba(7, 10, 28, .6), rgba(3, 4, 11, .95));
}
.site-footer .container { padding-top: 46px; }
.footer-brand { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 28px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.footer-brand p { margin: 0; color: var(--text-dim); font-size: .95rem; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 32px; padding: 32px 0; }
.footer-col h2 { margin: 0 0 14px; font-family: var(--font-display); font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-col li { margin: 0; }
.footer-col a { color: var(--text-dim); text-decoration: none; font-size: .95rem; }
.footer-col a:hover { color: var(--white); }
.footer-col p { color: var(--text-dim); font-size: .95rem; }
.footer-col .btn { font-size: .8rem; }
.footer-col a.btn--light, .footer-col a.btn--light:hover { color: #0a0d2a; }
.footer-col a.btn--ghost-light { color: var(--white); }

.rg { padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid rgba(255, 61, 242, .25); }
.rg__head { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: center; margin-bottom: 20px; }
.rg__head h2 { margin: 0; font-size: 1.3rem; }
.rg__head p { grid-column: 1 / -1; margin: 14px 0 0; color: var(--text-dim); font-size: .95rem; }
.rg__grid { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rg__grid li { margin: 0; }
.rg-link {
  display: flex; align-items: center; gap: 12px; height: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line); color: var(--text); text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.rg-link:hover { color: var(--text); border-color: var(--line-hi); background: rgba(34, 227, 255, .06); }
.rg-link__logo {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--grad-soft); border: 1px solid var(--line-hi);
  font-family: var(--font-display); font-size: .7rem; font-weight: 800; color: var(--white);
}
.rg-link__txt { display: flex; flex-direction: column; line-height: 1.3; font-size: .85rem; color: var(--text-mute); }
.rg-link__txt strong { font-size: .92rem; }
.rg__hotline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0; color: var(--text-dim); font-size: .95rem; }
.rg__hotline a { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--magenta); text-decoration: none; text-shadow: 0 0 14px rgba(255, 61, 242, .6); }

.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 24px 0 12px; font-size: .9rem; color: var(--text-mute); }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.footer-bottom li { margin: 0; }
.footer-bottom a { color: var(--text-dim); text-decoration: none; }
.footer-bottom a:hover { color: var(--cyan); }
.disclaimer { margin: 0; font-size: .8rem; line-height: 1.6; color: var(--text-mute); }
.disclaimer a { color: var(--text-dim); }

/* ---------- Responsive ---------- */
@media (max-width: 1099px) {
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .header-left__link { display: none; }
  .main-nav { display: none; }
  .layout { grid-template-columns: 1fr; }
  .aside { position: static; }
  .aside .toc { display: none; }
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__planet { width: 420px; height: 420px; right: -200px; top: -60px; opacity: .7; }
  .cards { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top .footer-col:last-child { grid-column: 1 / -1; }
  .rg__grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --header-h: 64px; }
  .container { padding: 0 16px; }
  .header-actions .btn--outline { display: none; }
  .header-actions .btn { --btn-pad: 10px 14px; font-size: .78rem; }
  .logo__mark { width: 38px; height: 38px; }
  .logo__text > span { font-size: .9rem; letter-spacing: .08em; }
  .logo__text small { letter-spacing: .38em; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .header-inner > .logo { justify-self: center; }
  .author-bar__inner { justify-content: flex-end; }
  .section { padding: 48px 0; }
  .section-head { flex-direction: column; gap: 8px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr; }
  .steps li { padding-left: 58px; }
  .panel, .holo { padding: 22px 18px; }
  .toc ol { columns: 1; }
  .rg__grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-band { padding: 20px; }
  .cta-band .btn { width: 100%; }
  .hero .btn-row .btn { flex: 1 1 100%; }
}
@media (max-width: 380px) {
  .logo__text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  body { background: #fff; color: #000; }
  body::before, body::after, .site-header, .topbar, .mobile-menu, .hero__planet, .cta-band, .aside { display: none !important; }
}
