/* =========================================================
   Cart Cleaner — Operations Center Stylesheet
   Aesthetic: forensic terminal, defense-in-depth monitoring
   ========================================================= */

:root {
  /* Surfaces */
  --bg: #0a0a0c;
  --bg-1: #111217;
  --bg-2: #171921;
  --bg-3: #1f222c;
  --surface: #14161d;
  --overlay: rgba(10, 10, 12, 0.82);

  /* Strokes */
  --line: #232632;
  --line-soft: #1a1d26;
  --line-strong: #353a48;

  /* Text */
  --fg: #f1f3f5;
  --fg-dim: #c2c7cf;
  --fg-mute: #7a818b;
  --fg-subtle: #4f555e;

  /* Signal */
  --accent: #d4ff3a;
  --accent-2: #b8e028;
  --accent-ink: #1a2100;
  --accent-glow: rgba(212, 255, 58, 0.18);
  --accent-halo: rgba(212, 255, 58, 0.06);

  --ok: #5eead4;
  --warn: #ffb648;
  --danger: #ff6f7e;
  --info: #7bb0ff;

  /* Geometry */
  --max: 1320px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius-xs: 2px;
  --radius-s: 4px;
  --radius-m: 6px;

  /* Type */
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --display: "Instrument Serif", "Times New Roman", serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.2, 0.8, 0.1, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--fg);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, var(--accent-halo), transparent 60%),
    radial-gradient(800px 400px at 0% 110%, rgba(94, 234, 212, 0.04), transparent 60%),
    linear-gradient(to bottom, var(--bg) 0%, #0c0d11 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Subtle dotted grid overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
}

/* Subtle scanline */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(255,255,255,0.012) 3px,
    rgba(255,255,255,0.012) 4px
  );
  mix-blend-mode: overlay;
  opacity: 0.4;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

/* ---------- ATOMS: TAGS, KBD, CODE ---------- */
code, .mono { font-family: var(--mono); }
.hex { color: var(--fg-mute); letter-spacing: 0.02em; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-mute);
  background: var(--bg-1);
}
.tag--accent {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: color-mix(in srgb, var(--accent) 6%, var(--bg-1));
}
.tag--ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, var(--line)); }
.tag--danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, var(--line)); }
.tag--warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, var(--line)); }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow), 0 0 12px var(--accent);
  animation: pulse 2.4s var(--ease) infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- TOP BAR ---------- */
.statusbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--overlay);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line-soft);
}
.statusbar__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  min-height: 64px;
  padding: 12px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
}
.brand__glyph {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-xs);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 0 12px color-mix(in srgb, var(--accent) 18%, transparent);
}
.brand__glyph::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--radius-s);
  opacity: 0.6;
}
.brand__divider {
  color: var(--fg-subtle);
  margin: 0 2px;
}
.brand__version {
  color: var(--fg-mute);
  font-size: 12px;
  font-weight: 400;
}
.navlinks {
  display: flex;
  justify-self: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-soft);
  background: var(--bg-1);
  border-radius: var(--radius-s);
}
.navlinks a {
  padding: 6px 14px;
  font-size: 12.5px;
  color: var(--fg-mute);
  border-radius: var(--radius-xs);
  letter-spacing: 0.02em;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.navlinks a:hover { color: var(--fg); background: var(--bg-2); }
.navlinks a.is-active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.status-indicator .dot { width: 6px; height: 6px; box-shadow: 0 0 0 3px var(--accent-glow), 0 0 8px var(--accent); }

.hamburger {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  position: relative;
}
.hamburger span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1.5px;
  background: var(--fg-dim);
}
.hamburger span:nth-child(1) { top: 12px; }
.hamburger span:nth-child(2) { top: 18px; }
.hamburger span:nth-child(3) { top: 24px; }

.mobile-nav {
  display: none;
  padding: 16px var(--gutter);
  background: var(--bg-1);
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  gap: 10px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a { color: var(--fg-dim); padding: 10px 0; font-size: 13px; border-bottom: 1px solid var(--line-soft); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--line);
  background: var(--bg-1);
  color: var(--fg);
  border-radius: var(--radius-s);
  cursor: pointer;
  transition: all 0.18s var(--ease-snap);
  position: relative;
  overflow: hidden;
}
.btn:hover {
  border-color: var(--line-strong);
  background: var(--bg-2);
  transform: translateY(-1px);
}
.btn__arrow { transition: transform 0.2s var(--ease-snap); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  box-shadow: 0 0 0 0 var(--accent-glow), 0 8px 28px -12px color-mix(in srgb, var(--accent) 60%, transparent);
}
.btn--primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  box-shadow: 0 0 0 4px var(--accent-glow), 0 10px 32px -10px color-mix(in srgb, var(--accent) 70%, transparent);
}

.btn--ghost {
  background: transparent;
}

.btn--large {
  padding: 14px 22px;
  font-size: 14px;
}

.btn--block { display: flex; justify-content: center; width: 100%; }

/* ---------- SECTIONS ---------- */
.section {
  padding: clamp(72px, 10vw, 140px) 0;
  position: relative;
}
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--surface {
  background: var(--bg-1);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section__head {
  max-width: 760px;
  margin-bottom: 56px;
}
.section__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.section__kicker::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--accent);
}
.section__title {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.section__title em {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  font-size: 1.1em;
  letter-spacing: -0.02em;
}
.section__lede {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--fg-dim);
  max-width: 58ch;
}
.section__lede code {
  padding: 1px 6px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  font-size: 0.92em;
  color: var(--accent);
}

/* ---------- HERO ---------- */
.hero {
  padding: clamp(60px, 9vw, 110px) 0 clamp(80px, 11vw, 140px);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  position: relative;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.hero__title {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--fg);
}
.hero__title em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.01em;
  font-size: 1.1em;
  display: inline-block;
  position: relative;
}
.hero__title em::after {
  content: "_";
  color: var(--accent);
  margin-left: 2px;
  animation: caret 1s steps(2) infinite;
  font-family: var(--mono);
}
@keyframes caret {
  50% { opacity: 0; }
}
.hero__lede {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--fg-dim);
  max-width: 56ch;
  margin: 0 0 36px;
}
.hero__lede strong { color: var(--fg); font-weight: 500; }
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}
.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px dashed var(--line);
  margin: 0;
}
.hero__facts > div { margin: 0; }
.fact__num {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}
.fact__label {
  margin: 8px 0 0;
  font-size: 11.5px;
  color: var(--fg-mute);
  line-height: 1.5;
  letter-spacing: 0.01em;
}

/* ---------- HERO TERMINAL ---------- */
.terminal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--accent) 8%, transparent) inset,
    0 40px 80px -40px rgba(0,0,0,0.7),
    0 20px 40px -20px rgba(0,0,0,0.5);
  position: relative;
}
.terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--accent) 5%, transparent), transparent 40%);
  pointer-events: none;
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
}
.terminal__dots {
  display: flex;
  gap: 6px;
}
.terminal__dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}
.terminal__dots span:nth-child(1) { background: #3a2730; }
.terminal__dots span:nth-child(2) { background: #3a342a; }
.terminal__dots span:nth-child(3) { background: color-mix(in srgb, var(--accent) 40%, var(--line-strong)); }
.terminal__title { flex: 1; text-align: center; color: var(--fg-mute); }
.terminal__tag { color: var(--accent); font-weight: 500; }

.terminal__body {
  padding: 18px 20px 22px;
  position: relative;
}
.term-line {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  margin-bottom: 4px;
  opacity: 0;
  transform: translateY(4px);
  animation: termReveal 0.35s var(--ease-snap) forwards;
}
.term-line__n {
  color: var(--fg-subtle);
  font-size: 11.5px;
  text-align: right;
  user-select: none;
}
.term-line__t { color: var(--fg-dim); white-space: pre-wrap; word-break: break-word; }

.term-line--prompt .term-line__t::before {
  content: "$ ";
  color: var(--accent);
  font-weight: 600;
}
.term-line--info .term-line__t { color: var(--info); }
.term-line--ok .term-line__t { color: var(--ok); }
.term-line--accent .term-line__t { color: var(--accent); font-weight: 500; }
.term-line--warn .term-line__t { color: var(--warn); }
.term-line--mute .term-line__t { color: var(--fg-mute); }

.term-line:nth-child(1) { animation-delay: 0.2s; }
.term-line:nth-child(2) { animation-delay: 0.55s; }
.term-line:nth-child(3) { animation-delay: 0.85s; }
.term-line:nth-child(4) { animation-delay: 1.15s; }
.term-line:nth-child(5) { animation-delay: 1.45s; }
.term-line:nth-child(6) { animation-delay: 1.75s; }
.term-line:nth-child(7) { animation-delay: 2.05s; }
.term-line:nth-child(8) { animation-delay: 2.35s; }
.term-line:nth-child(9) { animation-delay: 2.65s; }
.term-line:nth-child(10) { animation-delay: 2.95s; }

@keyframes termReveal {
  to { opacity: 1; transform: translateY(0); }
}

.term-cursor::after {
  content: "▊";
  color: var(--accent);
  margin-left: 2px;
  animation: caret 1s steps(2) infinite;
}

/* ---------- DEFENSE-IN-DEPTH ---------- */
.defense {
  display: grid;
  grid-template-columns: minmax(340px, 520px) 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.shield {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin: 0 auto;
}
.shield__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed var(--line);
  display: grid;
  place-items: center;
}
.shield__ring--1 { inset: 0; border-color: color-mix(in srgb, var(--accent) 15%, var(--line)); }
.shield__ring--2 { inset: 13%; border-color: color-mix(in srgb, var(--accent) 25%, var(--line)); border-style: solid; }
.shield__ring--3 { inset: 26%; border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.shield__ring--core { inset: 39%; border-style: solid; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--bg)); box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 30%, transparent); }

.shield__core-text {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
}
.shield__core-text strong {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-transform: none;
  margin-top: 4px;
  color: var(--accent);
}

.shield__label {
  position: absolute;
  padding: 6px 10px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.shield__label small {
  display: block;
  color: var(--fg-subtle);
  font-size: 9.5px;
  margin-top: 1px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.shield__label--1 { top: 4%; left: 50%; transform: translateX(-50%); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); color: var(--accent); }
.shield__label--2 { top: 50%; right: -14%; transform: translateY(-50%); }
.shield__label--3 { bottom: 4%; left: 50%; transform: translateX(-50%); }

.defense__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.defense__item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 18px;
  padding: 18px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.defense__item:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  transform: translateX(4px);
}
.defense__num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  padding: 4px 7px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border-radius: var(--radius-xs);
  height: fit-content;
  text-align: center;
  letter-spacing: 0.04em;
}
.defense__title {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
}
.defense__hook {
  margin: 0 0 8px;
  font-size: 11.5px;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.defense__text { margin: 0; font-size: 13px; color: var(--fg-dim); line-height: 1.6; }

/* ---------- FEATURES (PACKETS) ---------- */
.packets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.packet {
  background: var(--bg);
  padding: 28px 24px 30px;
  position: relative;
  transition: background 0.25s var(--ease);
}
.packet:hover {
  background: var(--bg-1);
}
.packet::before,
.packet::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--line-strong);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.packet::before { top: 10px; left: 10px; border-top: 1px solid; border-left: 1px solid; }
.packet::after { bottom: 10px; right: 10px; border-bottom: 1px solid; border-right: 1px solid; }
.packet:hover::before,
.packet:hover::after { opacity: 1; border-color: var(--accent); }

.packet__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--fg-subtle);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.packet__id { color: var(--accent); }
.packet__title {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.packet__text {
  margin: 0;
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.6;
}
.packet__text code {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  padding: 1px 5px;
  border-radius: var(--radius-xs);
  font-size: 0.9em;
}

/* ---------- DASHBOARD MOCK ---------- */
.dashboard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
/* Il logtable si adatta: su mobile le colonne non essenziali sono nascoste
   via media query (nn 3 e 5) per tenere tutto dentro viewport senza scroll. */
.dashboard__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 11.5px;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dashboard__kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.kpi {
  padding: 20px 22px;
  border-right: 1px solid var(--line);
}
.kpi:last-child { border-right: none; }
.kpi__label {
  font-size: 10.5px;
  color: var(--fg-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.kpi__value {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1;
}
.kpi__value--accent { color: var(--accent); }
.kpi__delta {
  margin-top: 6px;
  font-size: 11px;
  color: var(--ok);
}

.logtable {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 12.5px;
}
.logtable th,
.logtable td {
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}
.logtable th {
  font-weight: 500;
  font-size: 10.5px;
  color: var(--fg-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--bg-1);
  border-bottom: 1px solid var(--line);
}
.logtable td { color: var(--fg-dim); }
.logtable tr:last-child td { border-bottom: none; }
.logtable .num { color: var(--fg); text-align: right; font-variant-numeric: tabular-nums; }
.logtable .num--ok { color: var(--accent); }
.logtable .num--danger { color: var(--danger); }
.logtable .badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge--hook { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); }
.badge--manual { background: color-mix(in srgb, var(--info) 12%, transparent); color: var(--info); border: 1px solid color-mix(in srgb, var(--info) 25%, var(--line)); }
.badge--cron { background: var(--bg-2); color: var(--fg-mute); border: 1px solid var(--line); }
.badge--checkout { background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 25%, var(--line)); }

/* ---------- SPECS ---------- */
.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.specs__col { background: var(--bg); padding: 28px 30px; }
.specs__col h3 {
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}
.specs__col dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  margin: 0;
  font-size: 13px;
}
.specs__col dt { color: var(--fg-mute); }
.specs__col dd { margin: 0; color: var(--fg); text-align: right; font-variant-numeric: tabular-nums; }

.codeblock {
  margin-top: 24px;
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--fg-dim);
  line-height: 1.7;
  overflow-x: auto;
}
.codeblock .cb-prompt { color: var(--accent); font-weight: 600; margin-right: 6px; }
.codeblock .cb-comment { color: var(--fg-subtle); }
.codeblock .cb-key { color: var(--warn); }

/* ---------- PRICING ---------- */
.price-wrap {
  display: grid;
  grid-template-columns: minmax(0, 540px);
  justify-content: center;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.7);
}
.price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 50%, transparent), transparent 50%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
}
.price-card__bar {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.price-card__bar .accent { color: var(--accent); }
.price-card__body { padding: 36px 36px 32px; }
.price-card__label {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 6px;
}
.price-card__name {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 18px;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.price-card__amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--mono);
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.price-card__currency { font-size: clamp(18px, 3vw, 22px); opacity: 0.7; }
.price-card__value { font-size: clamp(48px, 8vw, 64px); letter-spacing: -0.03em; }
.price-card__cents { font-size: clamp(16px, 2.4vw, 20px); opacity: 0.7; }
.price-card__note { font-size: 12px; color: var(--fg-mute); margin: 0 0 28px; letter-spacing: 0.02em; }
.price-card__features {
  list-style: none;
  padding: 24px 0 0;
  margin: 24px 0 0;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 10px;
  font-size: 13px;
  color: var(--fg-dim);
}
.price-card__features li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
}
.price-card__features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 600;
  line-height: 1.5;
}

.price-note {
  max-width: 540px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--fg-mute);
}
.price-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.price-note a:hover { text-decoration-color: var(--accent); }

/* ---------- PRICE GRID (2 tiers) ---------- */
.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.price-card--ghost {
  background: var(--bg-1);
}
.price-card--ghost::before { display: none; }
.price-card--ghost .price-card__amount { color: var(--fg); }
.price-card__amount--sm { font-size: 32px; line-height: 1.1; }
.price-card__amount--sm .price-card__value { font-size: 32px; }

/* ---------- COMPARE TABLE ---------- */
.compare {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-1);
}
.compare table { width: 100%; min-width: 540px; border-collapse: collapse; font-family: var(--mono); font-size: 13px; }
.compare th, .compare td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.compare thead th {
  background: var(--bg-2);
  color: var(--fg-mute);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.compare thead th.compare__primary { color: var(--accent); }
.compare tbody td { color: var(--fg-dim); }
.compare tbody td:first-child { color: var(--fg); }
.compare tbody td.compare__primary { color: var(--accent); font-weight: 500; }
.compare tbody td.compare__muted { color: var(--fg-subtle); }
.compare tbody tr:last-child td { border-bottom: none; }
.compare tbody tr:hover td { background: color-mix(in srgb, var(--accent) 3%, transparent); }

/* ---------- DOCS LAYOUT ---------- */
.doclayout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
}
.docnav {
  position: sticky;
  top: 88px;
  border-left: 1px solid var(--line);
  padding-left: 20px;
  font-size: 12.5px;
}
.docnav__title {
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.docnav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.docnav a {
  display: block;
  padding: 6px 10px;
  color: var(--fg-dim);
  border-radius: var(--radius-xs);
  transition: color 0.15s, background 0.15s;
}
.docnav a:hover { color: var(--fg); background: var(--bg-1); }
.docnav a.is-active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.docnav li ul { margin-left: 16px; padding-top: 2px; padding-bottom: 4px; }
.docnav li ul a { font-size: 12px; color: var(--fg-mute); padding: 4px 10px; }

.doc-content { max-width: 760px; }
.doc-section { scroll-margin-top: 100px; padding-bottom: 56px; border-bottom: 1px solid var(--line-soft); margin-bottom: 56px; }
.doc-section:last-child { border-bottom: none; margin-bottom: 0; }
.doc-section h2 {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.doc-section h2::before {
  content: attr(data-id);
  display: inline-block;
  color: var(--accent);
  margin-right: 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  vertical-align: middle;
  padding: 3px 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: var(--radius-xs);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.doc-section h3 {
  margin: 32px 0 12px;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--fg);
}
.doc-section p, .doc-section li { font-size: 14px; line-height: 1.75; color: var(--fg-dim); }
.doc-section p { margin: 0 0 16px; }
.doc-section ul, .doc-section ol { padding-left: 20px; margin: 0 0 16px; }
.doc-section li { margin-bottom: 6px; }
.doc-section code {
  padding: 1px 6px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  font-size: 0.92em;
  color: var(--accent);
}
.doc-section pre {
  margin: 20px 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--fg-dim);
  line-height: 1.7;
}
.doc-section pre code { background: none; border: none; padding: 0; color: inherit; }
.doc-section pre .cb-comment { color: var(--fg-subtle); }
.doc-section pre .cb-key { color: var(--warn); }
.doc-section pre .cb-str { color: var(--ok); }
.doc-section pre .cb-kw { color: var(--accent); }

.callout {
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 3%, var(--bg-1));
  border-radius: var(--radius-s);
  margin: 20px 0;
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.7;
}
.callout strong { color: var(--accent); font-weight: 600; }
.callout--warn { border-left-color: var(--warn); background: color-mix(in srgb, var(--warn) 4%, var(--bg-1)); }
.callout--warn strong { color: var(--warn); }
.callout--danger { border-left-color: var(--danger); background: color-mix(in srgb, var(--danger) 4%, var(--bg-1)); }
.callout--danger strong { color: var(--danger); }

/* ---------- FEATURE DETAIL (funzionalita page) ---------- */
.feature-deep {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--line-soft);
}
.feature-deep:last-of-type { border-bottom: none; }
.feature-deep--reverse { grid-template-columns: 1fr 1fr; direction: rtl; }
.feature-deep--reverse > * { direction: ltr; }
.feature-deep__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 16px;
}
.feature-deep__meta::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}
.feature-deep__id { color: var(--accent); }
.feature-deep h2 {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.feature-deep h2 em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-size: 1.1em;
}
.feature-deep p { font-size: 14.5px; line-height: 1.75; color: var(--fg-dim); margin: 0 0 14px; }
.feature-deep ul { padding-left: 20px; margin: 14px 0; color: var(--fg-dim); font-size: 14px; line-height: 1.7; }
.feature-deep ul li { margin-bottom: 6px; }
.feature-deep code {
  padding: 1px 6px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  font-size: 0.92em;
  color: var(--accent);
}

/* ---------- LEGAL PROSE ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--fg-dim);
}
.legal h1 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 38px);
  letter-spacing: -0.01em;
  color: var(--fg);
  line-height: 1.15;
}
.legal h1 em { font-family: var(--display); font-style: italic; font-weight: 400; color: var(--accent); }
.legal__meta {
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
}
.legal h2 {
  margin: 48px 0 16px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 20px;
  color: var(--fg);
  letter-spacing: -0.005em;
}
.legal h2::before {
  content: counter(section, decimal-leading-zero) " ";
  counter-increment: section;
  color: var(--accent);
  margin-right: 6px;
  font-weight: 400;
}
.legal { counter-reset: section; }
.legal h3 {
  margin: 28px 0 10px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}
.legal p { margin: 0 0 16px; }
.legal ul, .legal ol { padding-left: 20px; margin: 0 0 16px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.legal a:hover { text-decoration-color: var(--accent); }
.legal code {
  padding: 1px 6px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  font-size: 0.92em;
  color: var(--accent);
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 13px;
}
.legal table th, .legal table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.legal table th { background: var(--bg-1); color: var(--fg-mute); font-weight: 500; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- PAGE HEADER (shared) ---------- */
.page-header {
  padding: clamp(64px, 10vw, 120px) 0 clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.page-header__inner { position: relative; z-index: 1; max-width: 820px; }
.page-header__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 20px;
}
.page-header__kicker::before { content: ""; width: 18px; height: 1px; background: var(--accent); }
.page-header h1 {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.page-header h1 em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-size: 1.1em;
  letter-spacing: -0.02em;
}
.page-header p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-dim);
  max-width: 62ch;
}

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.faq__item {
  border-bottom: 1px solid var(--line-soft);
  padding: 0;
}
.faq__item:last-child { border-bottom: none; }
.faq__q {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  transition: color 0.18s var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::before {
  content: attr(data-id);
  color: var(--accent);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  min-width: 52px;
  font-weight: 400;
}
.faq__q:hover { color: var(--accent); }
.faq__plus {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  font-size: 14px;
  color: var(--fg-mute);
  transition: all 0.2s var(--ease);
}
.faq__item[open] .faq__plus {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  transform: rotate(45deg);
}
.faq__a {
  padding: 0 0 26px 52px;
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.7;
  max-width: 70ch;
}
.faq__a code {
  padding: 1px 6px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  font-size: 0.92em;
  color: var(--accent);
}

/* ---------- FINAL CTA ---------- */
.finalcta {
  padding: clamp(60px, 8vw, 100px) 0;
  border-top: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}
.finalcta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 400px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, var(--accent-glow), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}
.finalcta__inner {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 48px;
  align-items: center;
  padding: 48px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  position: relative;
}
.finalcta__title {
  margin: 0;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.finalcta__title em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-size: 1.12em;
  letter-spacing: -0.02em;
}
.finalcta__ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---------- FOOTER ---------- */
.foot {
  padding: 64px 0 32px;
  border-top: 1px solid var(--line-soft);
  background: var(--bg);
  position: relative;
  z-index: 1;
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-soft);
}
.foot__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 14px;
}
.foot__tag {
  font-size: 13px;
  color: var(--fg-mute);
  line-height: 1.7;
  margin: 0;
  max-width: 34ch;
}
.foot__tag a { color: var(--accent); }
.foot h4 {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.foot ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.foot ul a {
  color: var(--fg-mute);
  transition: color 0.15s var(--ease);
}
.foot ul a:hover { color: var(--accent); }
.foot__bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11.5px;
  color: var(--fg-subtle);
  letter-spacing: 0.04em;
}
.foot__bottom a { color: var(--fg-mute); }

/* ---------- COOKIE BANNER ---------- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 460px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.8);
  z-index: 200;
  display: none;
  font-size: 13px;
  color: var(--fg-dim);
}
.cookie-banner.is-visible { display: block; }
.cookie-banner h4 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: 0.02em;
}
.cookie-banner h4::before { content: "● "; color: var(--accent); }
.cookie-banner p { margin: 0 0 14px; font-size: 12.5px; line-height: 1.6; }
.cookie-banner a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-actions .btn { padding: 8px 14px; font-size: 12px; flex: 1; justify-content: center; }

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 40px;
  height: 40px;
  display: none;
  place-items: center;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  color: var(--fg-dim);
  z-index: 90;
  transition: all 0.2s var(--ease-snap);
}
.back-to-top.is-visible { display: grid; }
.back-to-top:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .defense { grid-template-columns: 1fr; }
  .shield { max-width: 420px; }
  .packets { grid-template-columns: repeat(2, 1fr); }
  .dashboard__kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(1), .kpi:nth-child(2) { border-bottom: 1px solid var(--line); }
  .kpi:nth-child(2), .kpi:nth-child(4) { border-right: none; }
  .specs { grid-template-columns: 1fr; }
  .finalcta__inner { grid-template-columns: 1fr; padding: 32px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .doclayout { grid-template-columns: 1fr; gap: 32px; }
  .docnav { position: static; border-left: none; border-top: 1px solid var(--line); padding: 16px 0 0; }
  .feature-deep { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
  .feature-deep--reverse { direction: ltr; }
}

@media (max-width: 720px) {
  .navlinks { display: none; }
  .hamburger { display: grid; place-items: center; }
  .statusbar__inner { grid-template-columns: 1fr auto; }
  .status-indicator { display: none; }
  .hero__facts { grid-template-columns: 1fr; gap: 18px; }
  .packets { grid-template-columns: 1fr; }
  .shield__label--2 { right: -6%; }
  .logtable th:nth-child(3), .logtable td:nth-child(3),
  .logtable th:nth-child(5), .logtable td:nth-child(5) { display: none; }
  .foot__grid { grid-template-columns: 1fr; }
  .faq__q { font-size: 14px; }
  .faq__q::before { min-width: 44px; font-size: 11px; }
  .faq__a { padding-left: 44px; font-size: 13px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .brand__divider, .brand__version { display: none; }
  .brand { font-size: 13px; }
  .hero__title { font-size: clamp(28px, 8vw, 40px); }
  .hero__lede { font-size: 14.5px; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { justify-content: center; }
  .hero__facts { grid-template-columns: 1fr; }
  .hero__meta { gap: 6px; }
  .tag { font-size: 10px; padding: 3px 7px; }
  .section { padding: 56px 0; }
  .section__title { font-size: clamp(24px, 6vw, 32px); }
  .terminal { font-size: 12px; }
  .terminal__body { padding: 14px 14px 16px; }
  .term-line { grid-template-columns: 26px 1fr; gap: 10px; }
  .dashboard__kpis { grid-template-columns: 1fr; }
  .kpi { border-right: none !important; border-bottom: 1px solid var(--line); }
  .kpi:last-child { border-bottom: none; }
  .defense__item { grid-template-columns: 28px 1fr; gap: 12px; padding: 14px; }
  .price-card__body { padding: 28px 22px 24px; }
  .price-card__name { font-size: 22px; }
  .finalcta__inner { padding: 24px; }
  .finalcta__title { font-size: 20px; }
  .final-cta__buttons, .finalcta__ctas .btn { justify-content: center; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 16px; }
  .cookie-actions { flex-direction: column; }
  .faq__q { font-size: 13.5px; gap: 12px; }
  .faq__a { padding-left: 0; font-size: 13px; }
  .faq__q::before { min-width: auto; display: block; margin-bottom: 4px; }
  .faq__q { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .term-line { opacity: 1; transform: none; }
}
