/* Infinitaware - site stylesheet
   Dark "operations room" system. Modern CSS with graceful fallbacks:
   scroll-driven animations, cross-document view transitions, @property,
   :has(), text-wrap, interpolate-size. All motion respects prefers-reduced-motion. */

/* ── Fonts (self-hosted, no third-party requests) ───────────────────── */
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk-latin-wght.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-latin-wght.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

/* ── Tokens ─────────────────────────────────────────────────────────── */
:root {
  color-scheme: dark;
  --bg: #05080d;
  --bg-2: #080d14;
  --panel: rgb(13 21 31 / .62);
  --panel-solid: #0b131c;
  --line: rgb(148 180 205 / .10);
  --line-2: rgb(148 180 205 / .18);
  --teal: #00a3a3;
  --teal-hi: #3fd9d0;
  --teal-glow: rgb(0 163 163 / .35);
  --amber: #f5a524;
  --threat: #ff4d5e;
  --text: #dfe7ef;
  --muted: #93a3b6;
  --faint: #7a889b;
  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --f-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  interpolate-size: allow-keywords;
}

@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* Cross-document view transitions (EN ⇄ IT) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

/* ── Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--teal); color: #001414; }
:focus-visible { outline: 2px solid var(--teal-hi); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.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; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--teal); color: #001414; font-weight: 600; border-radius: 8px; transition: top .2s; }
.skip:focus { top: 12px; }

/* ── Backdrop ───────────────────────────────────────────────────────── */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.backdrop-grid {
  position: absolute; inset: -1px;
  background-image:
    linear-gradient(rgb(63 217 208 / .045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(63 217 208 / .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}
.backdrop-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(60vw 40vw at 85% -10%, rgb(0 163 163 / .16), transparent 60%),
    radial-gradient(50vw 40vw at -10% 30%, rgb(30 80 140 / .14), transparent 60%),
    radial-gradient(40vw 30vw at 60% 110%, rgb(245 165 36 / .05), transparent 60%);
}
.backdrop-noise {
  position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scroll progress (scroll-driven animation; hidden where unsupported) */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--teal), var(--teal-hi), var(--amber)); }
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
}
@keyframes grow { to { transform: scaleX(1); } }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  --bh: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--bh); padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: -.005em; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, box-shadow .3s, color .25s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { --bh: 38px; padding: 0 16px; font-size: .85rem; }
.btn-primary { background: var(--teal); color: #001716; box-shadow: 0 0 0 1px rgb(63 217 208 / .4) inset, 0 8px 30px -10px var(--teal-glow); }
.btn-primary:hover { background: var(--teal-hi); transform: translateY(-1px); box-shadow: 0 0 0 1px rgb(255 255 255 / .3) inset, 0 12px 40px -10px var(--teal-glow); }
.btn-ghost { border: 1px solid var(--line-2); background: rgb(255 255 255 / .02); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgb(63 217 208 / .5); background: rgb(63 217 208 / .06); transform: translateY(-1px); }
.btn-meta { font-family: var(--f-mono); font-size: .7rem; color: var(--muted); font-weight: 500; }

/* Animated conic border */
.btn-glow { position: relative; isolation: isolate; }
.btn-glow::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit;
  background: conic-gradient(from var(--angle), transparent 0 70%, var(--teal-hi), #fff, var(--teal-hi), transparent 100%);
  animation: spin 4s linear infinite;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); padding: 2px;
}
@keyframes spin { to { --angle: 360deg; } }

/* ── Navigation ─────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgb(5 8 13 / .55);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgb(5 8 13 / .78); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; }
.brand-mark { flex: none; width: 30px; height: 30px; fill: var(--text); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { position: relative; padding: 8px 12px; border-radius: 8px; font-size: .9rem; color: var(--muted); transition: color .2s, background-color .2s; }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--text); background: rgb(255 255 255 / .04); }
.nav-links a[aria-current="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px; background: var(--teal-hi); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 8px; }
.lang-switch a { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 5px; font-family: var(--f-mono); font-size: .68rem; font-weight: 600; letter-spacing: .06em; color: var(--faint); transition: color .2s, background-color .2s; }
.lang-switch a:hover { color: var(--text); }
/* JetBrains Mono caps sit above the line-box centre: nudge them onto the flag's centre line, and cancel the trailing tracking + glyph side bearing so the pill padding looks even. */
.lang-code { position: relative; top: .11em; margin-right: -.12em; }
.lang-switch [aria-current="page"] { background: rgb(0 163 163 / .16); box-shadow: inset 0 0 0 1px rgb(63 217 208 / .35); color: var(--teal-hi); }
.flag { flex: none; width: 15px; height: 10px; border-radius: 2px; box-shadow: 0 0 0 1px rgb(255 255 255 / .14); filter: grayscale(1); opacity: .55; transition: filter .2s, opacity .2s; }
.lang-switch a:hover .flag, .lang-switch [aria-current="page"] .flag { filter: none; opacity: 1; }
@media (max-width: 360px) { .lang-switch .flag { display: none; } }
.menu { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); position: relative; }
.menu span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu span:first-child { top: 15px; }
.menu span:last-child { top: 23px; }
.menu[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.menu[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ── Typography helpers ─────────────────────────────────────────────── */
.label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-hi); margin-bottom: 18px; }
.label::before { content: ""; flex: none; width: 6px; height: 6px; background: currentColor; transform: rotate(45deg); box-shadow: 0 0 10px var(--teal-glow); }
.h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); margin-bottom: 18px; }
.h3 { font-size: 1.35rem; margin-bottom: 18px; }
.h4 { font-size: 1.05rem; margin-bottom: 14px; }
.sub { color: var(--muted); font-size: 1.08rem; max-width: 64ch; }
.sub + .sub { margin-top: 14px; }
.source { margin-top: 18px; font-size: .78rem; color: var(--faint); font-family: var(--f-mono); }

.section { padding-block: clamp(80px, 11vw, 140px); position: relative; }
.section-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 64px); }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(48px, 8vw, 96px) clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: rgb(255 255 255 / .02); font-size: .8rem; color: var(--muted); margin-bottom: 28px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-hi); box-shadow: 0 0 0 0 rgb(63 217 208 / .6); animation: ping 2.2s var(--ease) infinite; flex: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(63 217 208 / .55); } 80%, 100% { box-shadow: 0 0 0 10px rgb(63 217 208 / 0); } }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.3rem); line-height: 1.02; letter-spacing: -.035em; margin-bottom: 26px; }
.hero h1 .kicker { display: block; font-family: var(--f-mono); font-size: .9rem; font-weight: 500; letter-spacing: .04em; color: var(--teal-hi); margin-bottom: 20px; text-transform: none; }
.hero h1 .line { display: block; animation: rise .9s var(--ease) both; }
.hero h1 .line + .line { animation-delay: .12s; }
.grad { background: linear-gradient(100deg, var(--teal-hi) 0%, #b9fff8 40%, var(--teal) 70%, var(--teal-hi) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rise .9s .12s var(--ease) both, sheen 8s 1s linear infinite; }
@keyframes sheen { to { background-position: -200% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 58ch; margin-bottom: 34px; animation: rise .9s .25s var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; animation: rise .9s .35s var(--ease) both; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 40px; font-family: var(--f-mono); font-size: .76rem; color: var(--faint); letter-spacing: .04em; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 5px; height: 5px; border: 1px solid var(--teal); transform: rotate(45deg); }

/* Console (hero visual) */
.hero-visual { position: relative; animation: rise 1.1s .2s var(--ease) both; }
.hero-visual::before { content: ""; position: absolute; inset: 10% 0 -8% 4%; background: radial-gradient(closest-side, rgb(0 163 163 / .25), transparent); filter: blur(40px); z-index: -1; }
.console { position: relative; border-radius: var(--radius); border: 1px solid var(--line-2); background: linear-gradient(180deg, rgb(13 22 32 / .85), rgb(6 11 17 / .9)); box-shadow: 0 40px 80px -30px rgb(0 0 0 / .8), 0 0 0 1px rgb(255 255 255 / .02) inset; overflow: hidden; }
.console-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding-inline: 14px; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: .72rem; color: var(--faint); }
.console-dots { display: flex; gap: 6px; }
.console-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgb(255 255 255 / .1); }
.console-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.console-live { display: inline-flex; align-items: center; gap: 7px; color: var(--teal-hi); letter-spacing: .1em; }
.console-live .dot { width: 6px; height: 6px; }
.mesh { display: block; width: 100%; aspect-ratio: 16 / 10; }
.console-legend { position: absolute; top: 52px; right: 14px; display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border-radius: 8px; background: rgb(5 8 13 / .6); border: 1px solid var(--line); font-family: var(--f-mono); font-size: .66rem; color: var(--muted); backdrop-filter: blur(6px); }
.console-legend span { display: flex; align-items: center; gap: 8px; }
.lg { width: 8px; height: 8px; display: inline-block; }
.lg-asset { border-radius: 50%; background: #5d7a91; }
.lg-trap { border: 1.5px solid var(--teal-hi); transform: rotate(45deg) scale(.85); }
.lg-threat { border-radius: 50%; background: var(--threat); box-shadow: 0 0 8px var(--threat); }
.console-log { height: 104px; overflow: hidden; padding: 10px 14px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: .72rem; line-height: 1.75; color: var(--muted); mask-image: linear-gradient(#000 55%, transparent); display: flex; flex-direction: column; }
.console-log li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: logIn .4s var(--ease) both; }
.console-log .t { color: var(--faint); }
.console-log .k { color: var(--teal-hi); }
.console-log .x { color: var(--threat); }
.console-log .a { color: var(--amber); }
@keyframes logIn { from { opacity: 0; transform: translateY(-6px); } }

/* ── Metrics ────────────────────────────────────────────────────────── */
.metrics { padding-block: 8px 24px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.metric { display: flex; flex-direction: column; gap: 18px; padding: 26px 26px 28px; background: var(--bg-2); }
.metric dt { padding-bottom: 14px; border-bottom: 1px solid var(--line-2); font-family: var(--f-mono); font-size: .82rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-hi); }
.metric dd { display: flex; flex-direction: column; gap: 10px; }
.metric-num { font-family: var(--f-display); font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 600; line-height: 1; letter-spacing: -.04em; color: var(--text); font-variant-numeric: tabular-nums; }
.metric-num small { font-size: .5em; color: var(--teal-hi); margin-left: 2px; letter-spacing: 0; }
.metric-sep { margin-inline: .06em; font-weight: 300; color: var(--teal-hi); }
.metric-note { font-size: .86rem; color: var(--muted); line-height: 1.5; }

/* Cursor spotlight (JS feeds --mx/--my) */
.spot { position: relative; isolation: isolate; }
.spot::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgb(63 217 208 / .09), transparent 45%);
}
.spot:hover::after { opacity: 1; }

/* ── Principle ──────────────────────────────────────────────────────── */
.principle { padding-block: clamp(80px, 10vw, 130px) clamp(40px, 6vw, 60px); }
.principle-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: end; }
.principle .h2 { margin: 0; }
.principle-body p { color: var(--muted); }
.principle-body .big { font-size: 1.25rem; color: var(--text); margin-bottom: 16px; }

/* ── Mechanism / pillars ────────────────────────────────────────────── */
.mechanism { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: m; }
.mech { padding: 32px 28px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); transition: border-color .3s, transform .4s var(--ease); }
.mech:hover { border-color: rgb(63 217 208 / .35); transform: translateY(-3px); }
.mech-idx { font-family: var(--f-mono); font-size: .72rem; color: var(--faint); }
.mech-ico { width: 52px; height: 52px; margin: 18px 0 22px; fill: none; stroke: var(--teal-hi); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mech h3 { font-size: 1.25rem; margin-bottom: 10px; }
.mech p { color: var(--muted); font-size: .95rem; }
.mechanism .mech:not(:last-child) { position: relative; }
.mechanism .mech:not(:last-child)::before { content: ""; position: absolute; top: 50%; right: -17px; width: 18px; height: 1px; background: linear-gradient(90deg, var(--teal), transparent); }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); margin-top: clamp(48px, 6vw, 72px); padding-top: 40px; border-top: 1px solid var(--line); }
.pillar h3 { font-size: 1.15rem; margin-bottom: 12px; color: var(--muted); font-weight: 500; }
.pillar h3 span { color: var(--text); font-weight: 600; }
.pillar p { color: var(--muted); font-size: .95rem; }

/* ── Scrollytelling scenario ────────────────────────────────────────── */
.scenario { background: linear-gradient(180deg, transparent, rgb(8 14 22 / .7) 20%, rgb(8 14 22 / .7) 80%, transparent); }
.scrolly { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.scrolly-fig { position: sticky; top: 100px; align-self: start; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--panel); }
.scrolly-fig svg { width: 100%; height: auto; overflow: visible; font-family: var(--f-mono); }
.scrolly-status { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: rgb(0 0 0 / .3); border: 1px solid var(--line); font-family: var(--f-mono); font-size: .76rem; color: var(--teal-hi); min-height: 42px; }
.zone { fill: rgb(63 217 208 / .02); stroke: var(--line-2); stroke-dasharray: 4 6; }
.zone-label { fill: var(--faint); font-size: 11px; letter-spacing: .14em; }
.node rect, .node circle:not(.pulse), .node polygon { fill: var(--panel-solid); stroke: #3a4a5c; stroke-width: 1.5; transition: stroke .5s, fill .5s, opacity .5s; }
.node text { fill: var(--muted); font-size: 11px; text-anchor: middle; transition: fill .5s; }
.node text.lbl-end { text-anchor: end; fill: var(--teal-hi); }
.node .glyph { fill: none; stroke: #5d7a91; stroke-width: 1.5; stroke-linecap: round; transition: stroke .5s; }
.node .pulse { fill: none; stroke: var(--teal-hi); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.n-jammer polygon { stroke: var(--teal); }
.n-jammer .glyph { stroke: var(--teal-hi); }
.edge { fill: none; stroke: #2a3a4b; stroke-width: 1.5; stroke-dasharray: 5 6; color: #2a3a4b; transition: stroke .5s, color .5s, opacity .5s; }
.edge.active { stroke-dasharray: 6 6; animation: flow .9s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.e-probe { opacity: .5; }

/* step states */
[data-step="1"] .e-infect, [data-step="2"] .e-lateral, [data-step="2"] .e-probe, [data-step="3"] .e-notify, [data-step="3"] .e-forward, [data-step="4"] .e-block { stroke: var(--threat); color: var(--threat); animation: flow .9s linear infinite; }
[data-step="3"] .e-notify, [data-step="3"] .e-forward { stroke: var(--teal-hi); color: var(--teal-hi); }
[data-step="4"] .e-block { stroke: var(--amber); color: var(--amber); }
[data-step="1"] .n-attacker circle, [data-step="1"] .n-ws1 rect, [data-step="2"] .n-ws1 rect { stroke: var(--threat); }
[data-step="1"] .n-attacker .glyph, [data-step="1"] .n-ws1 .glyph, [data-step="2"] .n-ws1 .glyph { stroke: var(--threat); }
[data-step="2"] .n-jammer polygon { stroke: var(--amber); fill: rgb(245 165 36 / .08); }
[data-step="2"] .n-jammer .pulse, [data-step="3"] .n-jammer .pulse { animation: ring 1.6s var(--ease) infinite; }
[data-step="3"] .n-jammer polygon { stroke: var(--teal-hi); fill: rgb(63 217 208 / .1); }
[data-step="3"] .n-firewall rect, [data-step="3"] .n-dc rect, [data-step="4"] .n-firewall rect { stroke: var(--teal-hi); }
[data-step="3"] .n-firewall .glyph, [data-step="3"] .n-dc .glyph, [data-step="4"] .n-firewall .glyph { stroke: var(--teal-hi); }
[data-step="4"] .n-ws1 rect { stroke: var(--amber); stroke-dasharray: 4 3; fill: rgb(245 165 36 / .06); }
[data-step="4"] .n-attacker { opacity: .35; }
[data-step="4"] .n-dc rect { stroke: var(--teal); }
[data-step="2"] .scrolly-status, [data-step="1"] .scrolly-status { color: var(--threat); }
@keyframes ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.8); } }

.scrolly-steps { display: flex; flex-direction: column; gap: 0; padding-block: 8vh 30vh; }
.step { position: relative; padding: 28px 0 28px 64px; min-height: 42vh; opacity: .35; transition: opacity .5s; }
.step.is-active { opacity: 1; }
.step-n { position: absolute; left: 0; top: 26px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); font-family: var(--f-mono); font-size: .85rem; color: var(--muted); transition: all .4s; }
.step.is-active .step-n { border-color: var(--teal-hi); color: #001716; background: var(--teal-hi); box-shadow: 0 0 24px var(--teal-glow); }
.step::before { content: ""; position: absolute; left: 20px; top: 74px; bottom: -26px; width: 1px; background: var(--line-2); }
.step:last-child::before { display: none; }
.step h3 { font-size: 1.4rem; margin-bottom: 10px; }
.step p { color: var(--muted); }

/* ── Coverage ───────────────────────────────────────────────────────── */
.ticker { overflow: hidden; border-block: 1px solid var(--line); padding-block: 14px; margin-bottom: clamp(40px, 6vw, 64px); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; width: max-content; gap: 44px; animation: marquee 60s linear infinite; font-family: var(--f-mono); font-size: .9rem; color: var(--faint); }
.ticker-track span { display: inline-flex; align-items: center; gap: 44px; }
.ticker-track span::after { content: "◆"; font-size: .5rem; color: var(--teal); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.cov-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cov { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); transition: border-color .3s, transform .4s var(--ease); }
.cov:hover { border-color: rgb(63 217 208 / .35); transform: translateY(-3px); }
.cov header { display: flex; align-items: baseline; gap: 12px; }
.cov-n { font-family: var(--f-mono); font-size: .72rem; color: var(--teal-hi); }
.cov h3 { font-size: 1.15rem; }
.cov p { color: var(--muted); font-size: .92rem; flex: 1; }
.cov-hi { border-color: rgb(245 165 36 / .3); background: linear-gradient(160deg, rgb(245 165 36 / .06), var(--panel) 50%); }
.cov-hi .cov-n { color: var(--amber); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line-2); background: rgb(255 255 255 / .02); font-family: var(--f-mono); font-size: .74rem; color: var(--text); }

/* ── Comparison table ───────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.cmp { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .95rem; }
.cmp th, .cmp td { padding: 18px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp thead th { font-family: var(--f-mono); font-size: .76rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cmp tbody th { font-weight: 600; color: var(--text); width: 28%; }
.cmp td { color: var(--muted); }
.cmp .cmp-us { color: var(--text); background: rgb(63 217 208 / .05); position: relative; }
.cmp thead .cmp-us { color: var(--teal-hi); font-family: var(--f-display); font-size: 1.05rem; letter-spacing: 0; text-transform: none; font-weight: 600; }
.cmp td.cmp-us::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--teal-hi), var(--teal)); opacity: .6; }
.cmp tbody tr { transition: background-color .2s; }
.cmp tbody tr:hover { background: rgb(255 255 255 / .02); }

/* ── Platform teaser ────────────────────────────────────────────────── */
.teaser-frame { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: #0b1118; box-shadow: 0 50px 100px -40px rgb(0 0 0 / .9), 0 0 60px -20px rgb(0 163 163 / .25); transform-origin: 50% 100%; }
.teaser-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0b1118; }
.teaser-play { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: clamp(14px, 7%, 64px); background: linear-gradient(to top, rgb(5 8 13 / .5), transparent 40%); cursor: pointer; }
.teaser-play:focus-visible { outline-offset: -4px; border-radius: 16px; }
.teaser-pill { display: inline-flex; align-items: center; gap: 12px; padding: 7px 20px 7px 7px; border: 1px solid var(--line-2); border-radius: 999px; background: rgb(8 13 20 / .72); backdrop-filter: blur(8px); font-weight: 500; color: var(--text); transition: border-color .25s, background-color .25s, transform .25s var(--ease); }
.teaser-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 24px var(--teal-glow); }
.teaser-icon::before { content: ""; margin-left: 3px; border-left: 12px solid #001716; border-block: 7px solid transparent; }
.teaser-time { font-family: var(--f-mono); font-size: .76rem; color: var(--faint); }
.teaser-play:hover .teaser-pill, .teaser-play:focus-visible .teaser-pill { border-color: var(--teal); background: rgb(8 13 20 / .88); transform: translateY(-2px); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .teaser-frame { animation: tilt linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  }
}
@keyframes tilt { from { transform: perspective(1400px) rotateX(16deg) scale(.94); opacity: .4; } to { transform: none; opacity: 1; } }
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--muted); font-size: .94rem; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 1.5px solid var(--teal-hi); border-bottom: 1.5px solid var(--teal-hi); transform: rotate(-45deg); }

.integrations { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin-top: clamp(48px, 6vw, 72px); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.integrations li { display: flex; flex-direction: column; gap: 4px; padding: 20px; background: var(--bg-2); }
.integrations strong { font-family: var(--f-mono); font-size: .85rem; color: var(--teal-hi); font-weight: 600; }
.integrations span { font-size: .85rem; color: var(--muted); line-height: 1.45; }

/* ── Defence ────────────────────────────────────────────────────────── */
.defence { background: radial-gradient(70vw 40vw at 50% 0%, rgb(0 163 163 / .07), transparent 70%); }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(200px, auto); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; transition: border-color .3s, transform .4s var(--ease); }
.tile:hover { border-color: rgb(63 217 208 / .35); transform: translateY(-3px); }
.tile-xl { grid-column: span 2; grid-row: span 2; background: linear-gradient(160deg, rgb(0 163 163 / .1), var(--panel) 55%); border-color: rgb(63 217 208 / .25); }
.tile-xl h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.tile-tag { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-hi); }
.tile h3 { font-size: 1.15rem; }
.tile p:not(.tile-tag) { color: var(--muted); font-size: .93rem; }
.tile-art { margin-top: auto; width: 100%; max-width: 360px; align-self: center; }
.radar circle { fill: none; stroke: rgb(63 217 208 / .25); }
.radar .sweep { fill: rgb(63 217 208 / .14); transform-origin: 100px 120px; animation: sweep 5s linear infinite; }
@keyframes sweep { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }
.blip { fill: var(--amber); animation: blip 5s linear infinite; }
.blip.b2 { animation-delay: -2.4s; fill: var(--threat); }
@keyframes blip { 0%, 30% { opacity: 0; } 34% { opacity: 1; } 70%, 100% { opacity: 0; } }

.assurance { margin-top: clamp(48px, 6vw, 72px); padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); border: 1px solid var(--line); background: rgb(255 255 255 / .015); }
.assure-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; }
.assure-list li { display: flex; flex-direction: column; gap: 6px; padding-left: 16px; border-left: 1px solid var(--teal); }
.assure-list strong { font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; }
.assure-list span { color: var(--muted); font-size: .92rem; }

/* ── Partners ───────────────────────────────────────────────────────── */
.engage { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.eng { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); transition: border-color .3s, transform .4s var(--ease); }
.eng:hover { border-color: rgb(63 217 208 / .35); transform: translateY(-3px); }
.eng-n { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 22px; border-radius: 10px; border: 1px solid rgb(63 217 208 / .35); color: var(--teal-hi); font-family: var(--f-mono); font-size: .85rem; }
.eng h3 { font-size: 1.12rem; margin-bottom: 10px; }
.eng p { color: var(--muted); font-size: .93rem; }

/* ── Company ────────────────────────────────────────────────────────── */
.company-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.group-link { display: inline-flex; align-items: center; gap: 18px; margin-top: 30px; padding: 14px 20px; border-radius: 12px; border: 1px solid var(--line-2); background: rgb(255 255 255 / .03); color: var(--muted); font-size: .85rem; transition: border-color .3s; }
.group-link:hover { border-color: rgb(63 217 208 / .4); }
.group-link img { width: auto; height: 30px; }
.caps { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 28px; }
.caps li { padding: 16px 18px; background: var(--bg-2); font-size: .92rem; }
.pillars-mini { display: grid; gap: 14px; }
.pillars-mini div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pillars-mini strong { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-hi); font-weight: 500; padding-top: 2px; }
.pillars-mini span { color: var(--muted); font-size: .93rem; }

/* ── FAQ ────────────────────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-grid > header { position: sticky; top: 110px; }
.faq-list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-family: var(--f-display); font-size: 1.12rem; font-weight: 500; transition: color .2s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translate(-3px, -3px); transition: transform .35s var(--ease), border-color .2s; }
.qa[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); border-color: var(--teal-hi); }
.qa summary:hover, .qa[open] summary { color: var(--teal-hi); }
.qa p { padding: 0 0 24px; color: var(--muted); max-width: 70ch; }
.qa::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.qa[open]::details-content { block-size: auto; }

/* ── Contact ────────────────────────────────────────────────────────── */
.contact-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px);
  padding: clamp(32px, 5vw, 64px); border-radius: 22px; overflow: hidden; isolation: isolate;
  background: radial-gradient(60% 80% at 0% 0%, rgb(0 163 163 / .16), transparent 60%), var(--panel-solid);
  border: 1px solid rgb(63 217 208 / .25);
}
.contact-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--angle), transparent 0 75%, var(--teal-hi) 88%, transparent 100%);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin 8s linear infinite;
}
.contact-copy .sub { margin-bottom: 30px; }
.contact-side { padding-left: clamp(0px, 3vw, 40px); border-left: 1px solid var(--line); }
.channels { display: grid; gap: 14px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.channels dt { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.channels dd a { color: var(--teal-hi); font-weight: 500; word-break: break-all; }
.channels dd a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding-block: 64px calc(28px + env(safe-area-inset-bottom, 0px)); background: rgb(3 5 9 / .6); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: 40px; }
.foot-h { font-family: var(--f-mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.foot-note { color: var(--muted); font-size: .88rem; margin-top: 12px; }
.foot-note strong { color: var(--text); }
.foot-privacy { display: inline-flex; gap: 8px; font-size: .8rem; color: var(--faint); }
.foot-links { display: grid; gap: 8px; }
.foot-links a { color: var(--muted); font-size: .9rem; transition: color .2s; }
.foot-links a:hover { color: var(--teal-hi); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--faint); }
.to-top:hover { color: var(--teal-hi); }

/* ── 404 ────────────────────────────────────────────────────────────── */
.page-404 { min-height: 100dvh; display: grid; place-items: center; }
.e404 { max-width: 720px; padding-block: 64px; }
.e404 .brand { margin-bottom: 48px; }
.e404-code { font-family: var(--f-display); font-size: clamp(6rem, 22vw, 11rem); font-weight: 700; line-height: .9; letter-spacing: -.06em; background: linear-gradient(180deg, var(--text), rgb(223 231 239 / .05)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 18px; }
.e404 .sub { margin-bottom: 28px; }
.e404-log { margin-bottom: 32px; padding: 16px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); font-family: var(--f-mono); font-size: .8rem; color: var(--muted); white-space: pre-wrap; }
.t-dim { color: var(--faint); }
.t-hi { color: var(--amber); }

/* ── Reveal on scroll ───────────────────────────────────────────────── */
/* Native scroll-driven version; JS fallback adds .in where unsupported. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
  @supports not (animation-timeline: view()) {
    .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
    .js .reveal.in { opacity: 1; transform: none; }
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .nav-links a { padding-inline: 9px; font-size: .86rem; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .integrations { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .assure-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .menu { display: block; }
  .nav-actions .btn { display: none; }
  .nav-actions { margin-left: auto; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 2px; margin: 0;
    padding: 12px var(--gutter) 20px; background: rgb(5 8 13 / .96); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 12px; font-size: 1rem; }
  .hero-grid, .principle-grid, .company-grid, .faq-grid, .contact-card { grid-template-columns: minmax(0, 1fr); }
  .faq-grid > header { position: static; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mechanism, .pillars, .cov-grid { grid-template-columns: minmax(0, 1fr); }
  .mechanism .mech:not(:last-child)::before { display: none; }
  .cov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scrolly { grid-template-columns: minmax(0, 1fr); }
  .scrolly-fig { top: 76px; z-index: 2; padding: 10px; background: rgb(11 19 28 / .94); backdrop-filter: blur(10px); }
  .scrolly-steps { padding-block: 4vh 10vh; }
  .step { min-height: 0; padding-block: 24px; }
  .contact-side { padding-left: 0; border-left: 0; padding-top: 28px; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .teaser-play { justify-content: flex-end; padding: 0 12px 12px 0; }
  .teaser-pill { padding: 0; border: 0; background: none; backdrop-filter: none; }
  .teaser-label, .teaser-time { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .metric-grid, .cov-grid, .bento, .engage, .assure-list, .caps, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .integrations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-xl { grid-column: auto; grid-row: auto; }
  .console-legend { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .pillars-mini div { grid-template-columns: 1fr; gap: 4px; }
  .scrolly-fig svg { max-height: 34vh; }
  .footer-grid > :first-child { grid-column: auto; }
}

/* ── Reduced motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 10px; }
  .ticker-track span:nth-child(n+27) { display: none; }
  .btn-glow::before, .contact-card::before { animation: none; }
  .radar .sweep { transform: rotate(0deg); }
  .blip { opacity: 1; }
}
