/* ==========================================================================
   SonicSweep design system
   Single stylesheet for every page. Linked as /assets/css/sonicsweep.css?v=N
   (bump "css_version" in content/site.json and rebuild to bust browser caches)
   ========================================================================== */

/* ---------- 0. Font (self hosted, latin subset, variable weight) ---------- */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2-variations"),
       url("/assets/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- 1. Tokens ---------- */
:root {
  --ink-900: #05070f;
  --ink-800: #080c18;
  --ink-700: #0c1222;
  --ink-600: #121a2e;
  --ink-500: #1a2440;
  --line: rgba(148, 176, 255, 0.14);
  --line-strong: rgba(148, 176, 255, 0.28);

  --text: #eaf0ff;
  --text-soft: #b9c5e4;
  --text-dim: #8d9bc1;

  --cyan: #29e0f2;
  --violet: #9b6cff;
  --lime: #b4f14a;
  --pink: #ff5fa2;
  --amber: #ffc24b;

  --grad-brand: linear-gradient(120deg, var(--cyan) 0%, var(--violet) 55%, var(--pink) 100%);
  --grad-soft: linear-gradient(140deg, rgba(41, 224, 242, 0.16), rgba(155, 108, 255, 0.14));

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 34px;

  --shadow-sm: 0 4px 18px rgba(2, 6, 20, 0.5);
  --shadow: 0 18px 48px rgba(2, 6, 20, 0.6);
  --shadow-glow: 0 0 0 1px rgba(41, 224, 242, 0.22), 0 18px 60px rgba(41, 224, 242, 0.18);

  --wrap: 1180px;
  --wrap-narrow: 760px;

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

  --ease: cubic-bezier(0.22, 0.75, 0.24, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.68;
  color: var(--text);
  background: var(--ink-900);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60rem 40rem at 12% -10%, rgba(41, 224, 242, 0.14), transparent 60%),
    radial-gradient(52rem 38rem at 92% 4%, rgba(155, 108, 255, 0.16), transparent 62%),
    radial-gradient(44rem 34rem at 50% 108%, rgba(255, 95, 162, 0.1), transparent 60%);
  pointer-events: none;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
/* every generated inline icon: sized relative to its text, never a giant SVG */
.ico { width: 1.05em; height: 1.05em; flex: none; display: inline-block; vertical-align: -0.16em; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5 { margin: 0 0 0.6em; line-height: 1.16; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: clamp(1.18rem, 2.1vw, 1.45rem); font-weight: 700; }
h4 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.2em; }
li { margin-bottom: 0.5em; }
strong { color: #fff; font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(155, 108, 255, 0.4); color: #fff; }

/* ---------- 3. Layout helpers ---------- */
.wrap { width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.4rem, var(--wrap-narrow)); margin-inline: auto; }
.section { padding: clamp(3.2rem, 7vw, 5.6rem) 0; position: relative; }
.section--tight { padding: clamp(2.2rem, 4vw, 3.2rem) 0; }
.section--alt { background: linear-gradient(180deg, rgba(12, 18, 34, 0) 0%, rgba(12, 18, 34, 0.85) 18%, rgba(12, 18, 34, 0.85) 82%, rgba(12, 18, 34, 0) 100%); }
.sec-head { max-width: 760px; margin-bottom: 2.4rem; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head p { color: var(--text-soft); margin-bottom: 0; font-size: 1.04rem; }
.kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cyan);
  background: rgba(41, 224, 242, 0.1);
  border: 1px solid rgba(41, 224, 242, 0.28);
  padding: 0.38rem 0.8rem; border-radius: 999px; margin-bottom: 1rem;
}
.kicker--violet { color: #c9b0ff; background: rgba(155, 108, 255, 0.12); border-color: rgba(155, 108, 255, 0.3); }
.grad-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--cyan); color: #04121a; padding: 0.7rem 1.1rem; font-weight: 700; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font: inherit; font-weight: 700; font-size: 0.98rem;
  padding: 0.85rem 1.55rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none !important; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
  white-space: nowrap;
}
.btn .ico { width: 1em; height: 1em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--grad-brand); color: #06111c; box-shadow: 0 10px 30px rgba(41, 224, 242, 0.24); }
.btn--primary:hover { box-shadow: 0 16px 40px rgba(155, 108, 255, 0.34); }
.btn--ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn--lime { background: var(--lime); color: #12210a; }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.btn-row--center { justify-content: center; }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  backdrop-filter: blur(14px);
  background: rgba(5, 7, 15, 0.78);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.12rem; color: var(--text); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name span { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 0.25rem; }
.nav__link, .nav__toggle {
  font: inherit; font-size: 0.93rem; font-weight: 600; color: var(--text-soft);
  background: none; border: 0; cursor: pointer;
  padding: 0.55rem 0.8rem; border-radius: 10px; display: inline-flex; align-items: center; gap: 0.35rem;
  text-decoration: none !important; transition: color 0.18s, background 0.18s;
}
.nav__link:hover, .nav__toggle:hover, .nav__link[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav__link[aria-current="page"] { color: var(--cyan); }
.nav__chev { width: 10px; height: 10px; transition: transform 0.2s; }
.nav__item { position: relative; }
.nav__item--open .nav__chev { transform: rotate(180deg); }
.nav__panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(-6px);
  min-width: 540px; padding: 1rem; border-radius: var(--radius-lg);
  background: rgba(10, 15, 28, 0.97); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.2rem 1rem;
  opacity: 0; visibility: hidden; transition: opacity 0.18s, transform 0.18s;
}
.nav__item--open .nav__panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__panel a {
  display: block; padding: 0.5rem 0.7rem; border-radius: 10px;
  color: var(--text-soft); font-size: 0.9rem; font-weight: 600;
}
.nav__panel a:hover { background: rgba(41, 224, 242, 0.1); color: #fff; text-decoration: none; }
.nav__panel-title {
  grid-column: 1 / -1; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 800; padding: 0.4rem 0.7rem 0.2rem;
}
.header-cta { margin-left: 0.5rem; }
.burger {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-strong); cursor: pointer;
  align-items: center; justify-content: center;
}
.burger span { display: block; width: 19px; height: 2px; background: var(--text); border-radius: 2px; position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 19px; height: 2px; background: var(--text); border-radius: 2px; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

@media (max-width: 1000px) {
  .burger { display: inline-flex; }
  .nav {
    position: fixed; inset: 68px 0 auto; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0.2rem;
    background: #070a13; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(2, 4, 12, 0.6);
    padding: 1rem 1.2rem 2rem; max-height: calc(100vh - 68px); overflow-y: auto;
    overscroll-behavior: contain;
    display: none;
  }
  .nav--open { display: flex; }
  .nav__link, .nav__toggle { width: 100%; justify-content: space-between; padding: 0.8rem 0.6rem; font-size: 1rem; }
  .nav__panel {
    position: static; transform: none; min-width: 0; opacity: 1; visibility: visible;
    display: none; background: rgba(255, 255, 255, 0.03); border-color: var(--line); box-shadow: none;
    grid-template-columns: 1fr; padding: 0.4rem;
  }
  .nav__item--open .nav__panel { display: grid; transform: none; }
  .header-cta { margin: 0.6rem 0 0; }
}

/* ---------- 6. Hero ---------- */
.hero { padding: clamp(2.4rem, 5vw, 4.4rem) 0 clamp(2.6rem, 5vw, 4rem); position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.8rem, 4vw, 3.4rem); align-items: center; }
/* hero with the tool: head and body stack on the left, tool spans both rows */
.hero__grid--tool {
  grid-template-areas: "head tool" "body tool";
  grid-template-rows: auto auto;
  row-gap: 0;
}
.hero__grid--tool > .hero__head { grid-area: head; align-self: end; }
.hero__grid--tool > .hero__body { grid-area: body; align-self: start; }
.hero__grid--tool > .cleaner { grid-area: tool; }
.hero__solo { text-align: center; }
.hero__solo .hero__lede { margin-inline: auto; }
.hero__solo .btn-row, .hero__solo .hero__meta { justify-content: center; }
.hero__solo .breadcrumbs ol { justify-content: center; }
.hero__title { margin-bottom: 0.7rem; }
.hero__lede { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--text-soft); max-width: 44ch; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; margin-top: 1.5rem; font-size: 0.86rem; color: var(--text-dim); }
.hero__meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero__meta svg { width: 15px; height: 15px; color: var(--lime); }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  /* on a phone the tool comes straight after the headline, before the copy */
  .hero__grid--tool { grid-template-areas: "head" "tool" "body"; row-gap: 1.6rem; }
  .hero__head, .hero__body { text-align: center; }
  .hero__lede { margin-inline: auto; }
  .hero__meta, .hero .btn-row { justify-content: center; }
  .hero__head .breadcrumbs ol { justify-content: center; }
  .hero__body { margin-top: 0.4rem; }
}

/* ---------- 7. The cleaner widget ---------- */
.cleaner {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(1.4rem, 3vw, 2.1rem);
  background: linear-gradient(165deg, rgba(20, 28, 50, 0.95), rgba(8, 12, 24, 0.95));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cleaner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(28rem 18rem at 50% -20%, rgba(41, 224, 242, 0.18), transparent 70%);
}
.cleaner__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; position: relative; z-index: 2; }
.cleaner__device { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); font-weight: 800; }
.cleaner__badge {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--lime); background: rgba(180, 241, 74, 0.12); border: 1px solid rgba(180, 241, 74, 0.3);
  padding: 0.3rem 0.65rem; border-radius: 999px;
}
.modes { display: flex; gap: 0.5rem; margin-bottom: 1.4rem; position: relative; z-index: 2; }
.mode {
  flex: 1; font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer;
  padding: 0.7rem 0.5rem; border-radius: 14px; color: var(--text-soft);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
  transition: all 0.2s var(--ease);
}
.mode small { font-size: 0.68rem; font-weight: 600; color: var(--text-dim); letter-spacing: 0.04em; }
.mode:hover { border-color: var(--line-strong); color: #fff; }
.mode[aria-pressed="true"] {
  background: var(--grad-soft); border-color: rgba(41, 224, 242, 0.55); color: #fff;
  box-shadow: inset 0 0 22px rgba(41, 224, 242, 0.12);
}
.mode[aria-pressed="true"] small { color: var(--cyan); }

.dial { position: relative; width: min(302px, 78vw); margin: 0 auto 1.35rem; aspect-ratio: 1; z-index: 2; }
.dial__ripples { position: absolute; inset: -4%; z-index: 0; opacity: 0; transition: opacity 0.4s; }
.dial__ripples span {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(41, 224, 242, 0.55);
  box-shadow: 0 0 22px rgba(41, 224, 242, 0.18);
}
.cleaner.is-running .dial__ripples { opacity: 1; }
.cleaner.is-running .dial__ripples span { animation: ripple 2.6s var(--ease) infinite; }
.cleaner.is-running .dial__ripples span:nth-child(2) { animation-delay: 0.65s; }
.cleaner.is-running .dial__ripples span:nth-child(3) { animation-delay: 1.3s; }
.cleaner.is-running .dial__ripples span:nth-child(4) { animation-delay: 1.95s; }
@keyframes ripple {
  0% { transform: scale(0.6); opacity: 0.9; border-color: rgba(41, 224, 242, 0.65); }
  100% { transform: scale(1.02); opacity: 0; border-color: rgba(155, 108, 255, 0.1); }
}
.dial__ring {
  position: absolute; inset: 0; border-radius: 50%; z-index: 1;
  background: conic-gradient(var(--cyan) 0%, var(--violet) calc(var(--progress, 0) * 0.62%), var(--pink) calc(var(--progress, 0) * 1%), rgba(255, 255, 255, 0.09) calc(var(--progress, 0) * 1%), rgba(255, 255, 255, 0.09) 100%);
  padding: 11px;
  transition: background 0.3s linear;
}
.dial__face {
  position: relative; height: 100%; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #16203a, #070b16 72%);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1rem;
  text-align: center;
}
.dial__pct { font-size: clamp(2.5rem, 8vw, 3.3rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.dial__state { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); font-weight: 800; margin-top: 0.5rem; }
.dial__time { font-size: 0.84rem; font-weight: 700; letter-spacing: 0.04em; color: var(--cyan); margin-top: 0.3rem; font-variant-numeric: tabular-nums; }
.cleaner.is-running .dial__face { box-shadow: inset 0 0 40px rgba(41, 224, 242, 0.12); }

.eq { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 22px; margin-top: 0.6rem; }
.eq i { width: 3px; height: 4px; border-radius: 2px; background: var(--line-strong); display: block; }
.cleaner.is-running .eq i { background: var(--cyan); animation: eqbounce 0.9s ease-in-out infinite; }
.cleaner.is-running .eq i:nth-child(2) { animation-delay: 0.1s; }
.cleaner.is-running .eq i:nth-child(3) { animation-delay: 0.2s; }
.cleaner.is-running .eq i:nth-child(4) { animation-delay: 0.3s; }
.cleaner.is-running .eq i:nth-child(5) { animation-delay: 0.15s; }
.cleaner.is-running .eq i:nth-child(6) { animation-delay: 0.05s; }
.cleaner.is-running .eq i:nth-child(7) { animation-delay: 0.25s; }
@keyframes eqbounce { 0%, 100% { height: 4px; } 50% { height: 20px; } }

.cleaner__actions { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; position: relative; z-index: 2; }
.start-btn {
  font: inherit; font-weight: 800; font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 1rem 2.6rem; border-radius: 999px; border: 0; cursor: pointer; color: #05121b;
  background: var(--grad-brand);
  box-shadow: 0 12px 34px rgba(41, 224, 242, 0.3);
  display: inline-flex; align-items: center; gap: 0.6rem;
  transition: transform 0.18s var(--ease), box-shadow 0.25s;
}
.start-btn:hover { transform: translateY(-2px) scale(1.01); }
.start-btn svg { width: 17px; height: 17px; }
.cleaner.is-running .start-btn { background: linear-gradient(120deg, #ff5fa2, #ffc24b); color: #200a12; box-shadow: 0 12px 34px rgba(255, 95, 162, 0.3); }
.cleaner__hint { font-size: 0.86rem; color: var(--text-dim); text-align: center; margin: 0; max-width: 34ch; }
.cleaner__hint b { color: var(--amber); }

.freq { margin: 0 0 1.2rem; position: relative; z-index: 2; display: none; }
.cleaner[data-mode="sweep"] .freq { display: block; }
.freq__row { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.8rem; color: var(--text-dim); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.4rem; }
.freq__val { color: var(--cyan); font-weight: 700; font-size: 0.95rem; text-transform: none; letter-spacing: 0; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.1);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--cyan); border: 3px solid #071018; box-shadow: 0 0 0 4px rgba(41, 224, 242, 0.2); cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: var(--cyan);
  border: 3px solid #071018; box-shadow: 0 0 0 4px rgba(41, 224, 242, 0.2); cursor: pointer;
}
@media (max-width: 560px) {
  .dial { width: min(236px, 60vw); margin-bottom: 1.1rem; }
  .dial__pct { font-size: 2.3rem; }
  .mode { font-size: 0.8rem; padding: 0.6rem 0.35rem; }
  .cleaner { padding: 1.1rem; }
  .start-btn { padding: 0.9rem 2.2rem; }
}
.cleaner__footnote { margin: 1.1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--text-dim); text-align: center; position: relative; z-index: 2; }
.cleaner__footnote a { color: var(--text-soft); text-decoration: underline; }

/* ---------- 8. Cards & grids ---------- */
.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1040px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 660px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }
.card {
  background: linear-gradient(160deg, rgba(20, 28, 50, 0.7), rgba(9, 13, 25, 0.7));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem; position: relative; overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: 0.45rem; font-size: 1.12rem; }
.card p { color: var(--text-soft); font-size: 0.95rem; margin-bottom: 0; }
.card__icon {
  width: 46px; height: 46px; border-radius: 14px; margin-bottom: 1rem;
  display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-strong); color: var(--cyan);
}
.card__icon svg { width: 22px; height: 22px; }
.card--link { display: block; color: inherit; }
.card--link:hover { text-decoration: none; }
.card--link .card__more { margin-top: 0.9rem; font-size: 0.85rem; font-weight: 800; color: var(--cyan); display: inline-flex; gap: 0.35rem; align-items: center; }
.card--link:hover .card__more { gap: 0.6rem; }

.step { padding-left: 3.9rem; }
.step__num {
  position: absolute; left: 1.4rem; top: 1.45rem;
  width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; font-size: 0.95rem; color: #06111c; background: var(--grad-brand);
}
.step--violet .step__num { background: linear-gradient(120deg, var(--violet), var(--pink)); }

.stat { text-align: center; padding: 1.6rem 1rem; }
.stat__val { font-size: clamp(2rem, 4.4vw, 2.9rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); font-weight: 800; margin-top: 0.6rem; }

/* ---------- 9. Prose ---------- */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.9rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-soft); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.7rem; }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 3px;
  background: var(--grad-brand);
}
.prose ol { padding-left: 1.3rem; }
.prose ol li::marker { color: var(--cyan); font-weight: 800; }
.prose blockquote {
  margin: 1.8rem 0; padding: 1.1rem 1.4rem; border-left: 3px solid var(--cyan);
  background: rgba(41, 224, 242, 0.06); border-radius: 0 var(--radius) var(--radius) 0; color: var(--text);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { border-radius: var(--radius); border: 1px solid var(--line); margin: 1.6rem 0; }
.prose figure { margin: 1.8rem 0; }
.prose figcaption { font-size: 0.84rem; color: var(--text-dim); text-align: center; margin-top: 0.6rem; }
.prose code { font-family: var(--font-mono); font-size: 0.9em; background: rgba(255, 255, 255, 0.07); padding: 0.15em 0.4em; border-radius: 6px; }

.callout {
  margin: 1.8rem 0; padding: 1.3rem 1.5rem; border-radius: var(--radius);
  background: var(--grad-soft); border: 1px solid var(--line-strong);
}
.callout__lead { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 0.45rem; font-weight: 700; font-size: 1.08rem; color: #fff; }
.callout--warn .callout__lead { color: var(--amber); }
.callout--safe .callout__lead { color: var(--lime); }
.callout h4, .callout h3 { margin-bottom: 0.4rem; color: #fff; display: flex; align-items: center; gap: 0.55rem; }
.callout h4 .ico, .callout h3 .ico, .callout__lead .ico { width: 20px; height: 20px; color: var(--cyan); }
.callout--warn h4 .ico, .callout--warn h3 .ico, .callout--warn .callout__lead .ico { color: var(--amber); }
.callout--safe h4 .ico, .callout--safe h3 .ico, .callout--safe .callout__lead .ico { color: var(--lime); }
.callout p:last-child { margin-bottom: 0; }
.callout--warn { background: rgba(255, 194, 75, 0.08); border-color: rgba(255, 194, 75, 0.32); }
.callout--warn h4 { color: var(--amber); }
.callout--safe { background: rgba(180, 241, 74, 0.07); border-color: rgba(180, 241, 74, 0.3); }
.callout--safe h4 { color: var(--lime); }

.table-wrap { overflow-x: auto; margin: 1.8rem 0; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 480px; }
th, td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
th { background: rgba(255, 255, 255, 0.04); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); font-weight: 800; }
td { color: var(--text-soft); }
tr:last-child td { border-bottom: 0; }

/* ---------- 10. FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 0.7rem; }
.faq details {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color 0.2s;
}
.faq details[open] { border-color: rgba(41, 224, 242, 0.4); background: rgba(41, 224, 242, 0.05); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.3rem;
  font-weight: 700; font-size: 1rem; position: relative; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.3rem; top: 1.45rem;
  width: 10px; height: 10px; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq__body { padding: 0 1.3rem 1.2rem; color: var(--text-soft); font-size: 0.96rem; }
.faq__body p:last-child { margin-bottom: 0; }

/* ---------- 11. CTA band ---------- */
.cta-band {
  border-radius: var(--radius-xl); padding: clamp(2rem, 5vw, 3.2rem); text-align: center;
  background:
    radial-gradient(30rem 16rem at 20% 0%, rgba(41, 224, 242, 0.2), transparent 70%),
    radial-gradient(28rem 16rem at 80% 100%, rgba(155, 108, 255, 0.22), transparent 70%),
    linear-gradient(160deg, rgba(20, 28, 50, 0.9), rgba(8, 12, 24, 0.9));
  border: 1px solid var(--line-strong);
}
.cta-band h2 { margin-bottom: 0.5rem; }
.cta-band p { color: var(--text-soft); max-width: 56ch; margin-inline: auto; }

/* ---------- 12. Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(305px, 1fr)); gap: 1.3rem; }
.post-card {
  display: flex; flex-direction: column; color: inherit; overflow: hidden;
  background: linear-gradient(160deg, rgba(20, 28, 50, 0.7), rgba(9, 13, 25, 0.75));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.post-card:hover { transform: translateY(-4px); border-color: var(--line-strong); text-decoration: none; }
.post-card__thumb { aspect-ratio: 16 / 9; position: relative; background: var(--grad-soft); overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 1.3rem; display: flex; flex-direction: column; flex: 1; }
.post-card__cat {
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; color: var(--cyan); margin-bottom: 0.6rem;
}
.post-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.post-card p { color: var(--text-soft); font-size: 0.92rem; flex: 1; }
.post-card__meta { font-size: 0.78rem; color: var(--text-dim); display: flex; gap: 0.8rem; margin-top: 1rem; }
.post-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.8rem; align-items: center; }
.chip {
  font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; color: var(--text-soft);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 999px; padding: 0.5rem 1rem;
  text-decoration: none !important; transition: all 0.2s;
}
.chip:hover { color: #fff; border-color: var(--line-strong); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--grad-soft); border-color: rgba(41, 224, 242, 0.5); color: #fff; }
.search-box { position: relative; margin-left: auto; min-width: 230px; }
.search-box input {
  font: inherit; font-size: 0.9rem; width: 100%; padding: 0.6rem 1rem 0.6rem 2.3rem; color: var(--text);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 999px;
}
.search-box input::placeholder { color: var(--text-dim); }
.search-box svg { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-dim); }
.no-results { text-align: center; color: var(--text-dim); padding: 2.5rem 0; display: none; }
@media (max-width: 620px) { .search-box { margin-left: 0; width: 100%; } }

.article-head { padding: clamp(2rem, 4vw, 3rem) 0 1.4rem; }
.breadcrumbs { font-size: 0.82rem; color: var(--text-dim); margin-bottom: 1.2rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0; margin: 0; }
.breadcrumbs li { margin: 0; display: flex; gap: 0.45rem; align-items: center; }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs a { color: var(--text-dim); }
.breadcrumbs a:hover { color: var(--cyan); }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; font-size: 0.85rem; color: var(--text-dim); margin-top: 1.2rem; align-items: center; }
.article-meta .ico { width: 15px; height: 15px; color: var(--text-dim); }
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(1.8rem, 4vw, 3.2rem); align-items: start; }
.article-side { position: sticky; top: 92px; display: grid; gap: 1.1rem; }
.side-box { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem; }
.side-box h4, .side-box h2 { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.9rem; }
.side-box ul { list-style: none; padding: 0; margin: 0; }
.side-box li { margin-bottom: 0.6rem; font-size: 0.9rem; }
.side-box li a { color: var(--text-soft); }
.side-box li a:hover { color: var(--cyan); }
.toc a { display: block; padding: 0.2rem 0; border-left: 2px solid var(--line); padding-left: 0.8rem; }
.toc a:hover { border-color: var(--cyan); text-decoration: none; }
@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-side { position: static; }
}
.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0; }
.tag { font-size: 0.78rem; font-weight: 700; color: var(--text-soft); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); padding: 0.35rem 0.8rem; border-radius: 999px; }
.tag:hover { color: #fff; text-decoration: none; border-color: var(--line-strong); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.4rem; }
.post-nav a { padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); color: inherit; background: rgba(255, 255, 255, 0.03); }
.post-nav a:hover { border-color: var(--line-strong); text-decoration: none; }
.post-nav span { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); font-weight: 800; margin-bottom: 0.4rem; }
.post-nav strong { font-size: 0.95rem; color: var(--text); font-weight: 700; }
.post-nav .is-next { text-align: right; }
@media (max-width: 620px) { .post-nav { grid-template-columns: 1fr; } }
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2.6rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 42px; padding: 0.55rem 0.8rem; text-align: center; border-radius: 12px;
  border: 1px solid var(--line); color: var(--text-soft); font-weight: 700; font-size: 0.9rem;
}
.pagination a:hover { border-color: var(--line-strong); color: #fff; text-decoration: none; }
.pagination .is-current { background: var(--grad-soft); border-color: rgba(41, 224, 242, 0.5); color: #fff; }

/* ---------- 13. Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: rgba(6, 9, 18, 0.9); margin-top: clamp(3rem, 6vw, 5rem); padding: clamp(2.6rem, 5vw, 4rem) 0 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
.footer-about p { color: var(--text-dim); font-size: 0.92rem; max-width: 40ch; }
.site-footer h4, .site-footer .footer-title { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer li a { color: var(--text-dim); font-size: 0.91rem; }
.site-footer li a:hover { color: var(--cyan); }
.footer-bottom {
  margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: space-between;
  font-size: 0.83rem; color: var(--text-dim);
}
.footer-bottom nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.footer-bottom a { color: var(--text-dim); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 14. Misc ---------- */
.device-strip { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill-link {
  font-size: 0.85rem; font-weight: 700; color: var(--text-soft);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  padding: 0.5rem 0.95rem; border-radius: 999px;
}
.pill-link:hover { color: #fff; border-color: rgba(41, 224, 242, 0.5); background: rgba(41, 224, 242, 0.08); text-decoration: none; }
.contact-form { display: grid; gap: 1rem; align-content: start; }
.contact-form .btn { justify-self: start; }
.field label { display: block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.45rem; }
.field input, .field textarea, .field select {
  font: inherit; width: 100%; padding: 0.8rem 1rem; color: var(--text);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--cyan); outline: none; }
.err-code { font-size: clamp(4rem, 18vw, 9rem); font-weight: 800; line-height: 0.9; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
