/* ==========================================================================
   Lunexis VPN — design system
   ========================================================================== */

:root {
  --bg: #06070c;
  --bg-elev: #0b0d16;
  --surface: rgba(255, 255, 255, 0.028);
  --surface-strong: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #eaecf5;
  --text-muted: #9aa1b8;
  --text-dim: #6b7288;

  --brand: #6d5cff;
  --brand-2: #16d3c8;
  --brand-3: #b45cff;
  --danger: #ff5c7a;
  --ok: #2ee6a8;

  --grad: linear-gradient(120deg, var(--brand) 0%, var(--brand-3) 50%, var(--brand-2) 100%);
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1140px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5em; letter-spacing: -0.025em; font-weight: 650; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1rem; color: var(--text-muted); }
::selection { background: rgba(109, 92, 255, .35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Layout ----------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }

.section-head { max-width: 680px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head p { font-size: 1.05rem; }

/* Ambient background ----------------------------------------------------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .5;
}
.aurora span:nth-child(1) {
  width: 620px; height: 620px; top: -240px; left: -140px;
  background: radial-gradient(circle, rgba(109,92,255,.75), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate;
}
.aurora span:nth-child(2) {
  width: 540px; height: 540px; top: 120px; right: -180px;
  background: radial-gradient(circle, rgba(22,211,200,.5), transparent 70%);
  animation: drift 32s ease-in-out infinite alternate-reverse;
}
.aurora span:nth-child(3) {
  width: 700px; height: 700px; top: 900px; left: 32%;
  background: radial-gradient(circle, rgba(180,92,255,.35), transparent 70%);
  animation: drift 38s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(60px, 70px, 0) scale(1.18); }
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, #000 20%, transparent 75%);
}

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 7, 12, .62);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.site-header.is-stuck {
  background: rgba(6, 7, 12, .9);
  border-bottom-color: var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand svg { width: 30px; height: 30px; }
.brand span b { font-weight: 750; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: .93rem;
  color: var(--text-muted);
  transition: color .18s ease, background .18s ease;
}
.nav-links a:hover { color: var(--text); background: var(--surface-strong); }
.nav-links a.is-active { color: var(--text); }

.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px; height: 42px;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
  white-space: nowrap;
  font-family: inherit;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--grad);
  background-size: 180% 180%;
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(109, 92, 255, .75);
  animation: shift 9s ease infinite;
}
.btn--primary:hover { box-shadow: 0 16px 40px -12px rgba(109, 92, 255, .95); }
@keyframes shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.btn--ghost {
  background: var(--surface-strong);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .09); }

.btn--lg { padding: 15px 30px; font-size: 1rem; border-radius: 14px; }
.btn--sm { padding: 9px 16px; font-size: .88rem; }
.btn--block { width: 100%; }

/* Pills / chips ---------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.pill i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(46, 230, 168, .16);
  margin-left: 6px;
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero ------------------------------------------------------------------- */
.hero {
  padding: clamp(60px, 8vw, 110px) 0 clamp(50px, 7vw, 90px);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}
.hero-copy p.lead {
  font-size: clamp(1.02rem, 1.6vw, 1.17rem);
  max-width: 54ch;
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.hero-stats div strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.hero-stats div span { font-size: .84rem; color: var(--text-dim); }

/* Phone mockup ----------------------------------------------------------- */
.phone-wrap {
  display: flex;
  justify-content: center;
  perspective: 1400px;
}
.phone {
  width: 288px;
  aspect-ratio: 9 / 19;
  border-radius: 40px;
  background: linear-gradient(165deg, #171a29, #0a0c14 60%);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow), 0 0 90px -30px rgba(109, 92, 255, .65);
  padding: 12px;
  position: relative;
  transform: rotateY(-13deg) rotateX(5deg);
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: rotateY(-13deg) rotateX(5deg) translateY(0); }
  50% { transform: rotateY(-13deg) rotateX(5deg) translateY(-16px); }
}
.phone::before {
  content: "";
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 92px; height: 22px;
  border-radius: 999px;
  background: #05060a;
  z-index: 3;
}
.phone-screen {
  height: 100%;
  border-radius: 30px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(109, 92, 255, .3), transparent 60%),
    #080a11;
  border: 1px solid rgba(255, 255, 255, .06);
  padding: 46px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}
.ps-top {
  display: flex;
  justify-content: space-between;
  font-size: .68rem;
  color: var(--text-dim);
}
.ps-orb {
  margin: 8px auto 4px;
  width: 132px; height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 35%, rgba(46, 230, 168, .3), rgba(109, 92, 255, .1) 60%, transparent 72%);
  border: 1px solid rgba(46, 230, 168, .35);
  position: relative;
}
.ps-orb::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(46, 230, 168, .18);
  animation: pulse 2.8s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(.92); opacity: .9; }
  100% { transform: scale(1.22); opacity: 0; }
}
.ps-orb svg { width: 46px; height: 46px; color: var(--ok); }
.ps-status { text-align: center; }
.ps-status strong { display: block; font-size: 1.02rem; color: #fff; }
.ps-status span { font-size: .74rem; color: var(--text-dim); font-family: var(--mono); }

.ps-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--border);
  font-size: .78rem;
}
.ps-row .flag {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--grad);
  flex-shrink: 0;
  opacity: .85;
}
.ps-row .ms { margin-left: auto; color: var(--ok); font-family: var(--mono); font-size: .7rem; }
.ps-row.dim { opacity: .55; }
.ps-row.dim .ms { color: var(--text-dim); }

.ps-metrics { display: flex; gap: 8px; margin-top: auto; }
.ps-metrics div {
  flex: 1;
  padding: 9px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  text-align: center;
}
.ps-metrics strong { display: block; font-size: .8rem; }
.ps-metrics span { font-size: .6rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .07em; }

/* Cards ------------------------------------------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  height: 100%;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-strong);
}
.card h3 { margin-bottom: .4em; }
.card p { margin: 0; font-size: .94rem; }

.card-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(140deg, rgba(109, 92, 255, .25), rgba(22, 211, 200, .14));
  border: 1px solid rgba(255, 255, 255, .1);
  color: #cfd3ff;
}
.card-icon svg { width: 22px; height: 22px; }

.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Steps ------------------------------------------------------------------ */
.steps { counter-reset: step; }
.step-num {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .95rem;
  background: var(--grad);
  color: #fff;
  margin-bottom: 16px;
}

/* Pricing ---------------------------------------------------------------- */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 860px;
  margin-inline: auto;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.plan--featured {
  border-color: rgba(109, 92, 255, .5);
  background:
    linear-gradient(180deg, rgba(109, 92, 255, .1), transparent 45%),
    var(--surface-strong);
  box-shadow: 0 0 60px -24px rgba(109, 92, 255, .8);
}
.plan-tag {
  position: absolute;
  top: 18px; right: 18px;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-weight: 600;
}
.plan { position: relative; }
.plan h3 { font-size: 1.05rem; color: var(--text-muted); font-weight: 550; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.plan .price { font-size: 2.2rem; font-weight: 700; letter-spacing: -.03em; margin: 4px 0 2px; }
.plan .price small { font-size: .9rem; font-weight: 500; color: var(--text-dim); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 11px; }
.plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .93rem;
  color: var(--text-muted);
}
.plan li svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 4px; color: var(--ok); }
.plan li.off { color: var(--text-dim); }
.plan li.off svg { color: var(--text-dim); }
.plan .btn { margin-top: auto; }

/* FAQ -------------------------------------------------------------------- */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: 12px; }
details.qa {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 20px;
  transition: border-color .2s ease, background .2s ease;
}
details.qa[open] { border-color: var(--border-strong); background: var(--surface-strong); }
details.qa summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 550;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-dim);
  transition: transform .25s ease;
  line-height: 1;
}
details.qa[open] summary::after { transform: rotate(45deg); color: var(--brand-2); }
details.qa p { margin: 0 0 18px; font-size: .94rem; }

/* CTA band --------------------------------------------------------------- */
.cta-band {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(109, 92, 255, .28), transparent 65%),
    var(--bg-elev);
  padding: clamp(38px, 6vw, 66px) 28px;
  text-align: center;
}
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { max-width: 52ch; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; margin: 26px 0 0; }

/* Footer ----------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 56px 0 32px;
  background: rgba(0, 0, 0, .3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 44px;
}
.footer-grid h4 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: var(--text-dim);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { font-size: .92rem; color: var(--text-muted); transition: color .18s ease; }
.footer-grid a:hover { color: var(--text); }
.footer-about p { font-size: .9rem; max-width: 34ch; margin: 14px 0 0; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: .86rem;
  color: var(--text-dim);
}
.footer-bottom p { margin: 0; font-size: .86rem; }

/* Legal / doc pages ------------------------------------------------------ */
.page-hero {
  padding: clamp(48px, 7vw, 84px) 0 clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--border);
}
.page-hero .pill { margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: .35em; }
.page-hero p { max-width: 60ch; margin: 0; }
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 20px;
  font-size: .84rem;
  color: var(--text-dim);
  font-family: var(--mono);
}

.doc-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 48px;
  padding: clamp(36px, 5vw, 60px) 0 90px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 96px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
}
.toc h4 {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: var(--text-dim);
  margin: 0 0 12px;
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: grid; gap: 2px; }
.toc a {
  display: block;
  font-size: .855rem;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: all .18s ease;
}
.toc a:hover { color: var(--text); background: var(--surface-strong); }
.toc a.is-active {
  color: #fff;
  border-left-color: var(--brand-2);
  background: var(--surface-strong);
}

.doc h2 {
  font-size: 1.45rem;
  margin: 2.2em 0 .6em;
  padding-top: .2em;
  scroll-margin-top: 96px;
}
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.05rem; margin: 1.8em 0 .5em; color: #dfe3f2; }
.doc p, .doc li { color: var(--text-muted); font-size: .965rem; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 1.1rem; display: grid; gap: 8px; }
.doc li::marker { color: var(--brand); }
.doc strong { color: var(--text); font-weight: 600; }
.doc a:not(.btn) {
  color: var(--brand-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(22, 211, 200, .4);
}
.doc a:not(.btn):hover { text-decoration-color: var(--brand-2); }
.doc hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }

.callout {
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--brand);
  border-radius: 12px;
  background: var(--surface-strong);
  padding: 18px 20px;
  margin: 0 0 1.4rem;
}
.callout p:last-child { margin-bottom: 0; }
.callout--ok { border-left-color: var(--ok); }
.callout--warn { border-left-color: #ffb648; }

.table-wrap { overflow-x: auto; margin: 0 0 1.4rem; border: 1px solid var(--border); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .9rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: rgba(255, 255, 255, .04); color: var(--text); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
td { color: var(--text-muted); }
tr:last-child td { border-bottom: 0; }

code {
  font-family: var(--mono);
  font-size: .87em;
  background: rgba(255, 255, 255, .07);
  padding: 2px 6px;
  border-radius: 5px;
  color: #d9c9ff;
}

/* Contact cards ---------------------------------------------------------- */
.contact-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .22s ease, transform .22s ease, background .22s ease;
}
.contact-card:hover { border-color: var(--border-strong); transform: translateY(-3px); background: var(--surface-strong); }
.contact-card p { margin: 0 0 8px; font-size: .93rem; }
.contact-card .mail {
  font-family: var(--mono);
  font-size: .92rem;
  color: var(--brand-2);
}

/* Anim on scroll --------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* 404 -------------------------------------------------------------------- */
.error-page {
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 0;
}
.error-code {
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
  margin: 0;
}

/* Skip link -------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
}
.skip-link:focus { left: 16px; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy p.lead { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .phone-wrap { order: -1; margin-bottom: 10px; }
  .phone { transform: none; animation: none; width: 262px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .doc-layout { grid-template-columns: 1fr; gap: 26px; }
  .toc { position: static; max-height: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 72px;
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #0b0d16;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 11px 14px; font-size: .98rem; }
  .nav-cta { margin: 6px 0 0; }
  .nav-toggle { display: inline-flex; }
  .grid--3, .grid--4, .grid--2, .plans { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .hero-stats div { flex: 1 1 40%; }
  .btn { width: 100%; }
  .nav .btn, .nav-toggle { width: auto; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .aurora, .grid-overlay, .toc, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .doc p, .doc li, .doc h2, .doc h3 { color: #000; }
  .doc-layout { grid-template-columns: 1fr; }
}
