/* NAVXNET — site styles. Tokens first; layout is left/right columns over a fixed WebGL scene. */
:root {
  --night: #071419;
  --deep: #0b1e25;
  --line: #1d3943;
  --ink: #e7eff0;
  --mute: #9cb1b6;
  --amber: #ffb547;
  --cyan: #5fdde5;
  --lilac: #b8a4ff;
  --pc: var(--ink);
  --f-display: "Unbounded", "Geologica", system-ui, sans-serif;
  --f-body: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 88px);
  --top-h: 72px;
  --r: 14px;
}
/* Unbounded has no Tajik letters (ҳ ҷ ӣ ӯ қ ғ): Tajik headings use Geologica so words don't mix fonts */
html:lang(tg) { --f-display: "Geologica", system-ui, sans-serif; }
html:lang(tg) .hero-title, html:lang(tg) h2 { font-weight: 600; letter-spacing: -.02em; }
[data-c="siem"] { --pc: var(--amber); }
[data-c="desk"] { --pc: var(--cyan); }
[data-c="ai"] { --pc: var(--lilac); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 300 17px/1.62 var(--f-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg, canvas { display: block; }
::selection { background: var(--amber); color: var(--night); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--night); padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 500; }
.skip:focus { top: 12px; }

/* ---------- scene ---------- */
#scene {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh;
  z-index: 0; opacity: 0; transition: opacity 1.4s ease;
}
.scene-ready #scene { opacity: 1; }
.scene-fallback {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 72% 42%, rgba(95, 221, 229, .10), transparent 70%),
    radial-gradient(40% 40% at 82% 70%, rgba(255, 181, 71, .10), transparent 70%),
    radial-gradient(30% 30% at 60% 25%, rgba(184, 164, 255, .08), transparent 70%);
  display: none;
}
.no-webgl .scene-fallback { display: block; }
.no-webgl #scene { display: none; }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--top-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 var(--gutter);
  transition: background-color .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.scrolled .top { background: rgba(7, 20, 25, .9); border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.mark { width: 26px; height: 26px; }
.mark path { stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; fill: none; }
.mark circle { fill: var(--amber); }
.word { font: 700 17px/1 var(--f-display); letter-spacing: .14em; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 400; }
.nav > a { text-decoration: none; color: var(--mute); transition: color .2s; display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; }
.nav > a:hover, .nav > a.on { color: var(--ink); }
.nav > a[data-dot]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .2s; }
.nav > a[data-dot="siem"]:hover::before, .nav > a[data-dot="siem"].on::before { background: var(--amber); }
.nav > a[data-dot="desk"]:hover::before, .nav > a[data-dot="desk"].on::before { background: var(--cyan); }
.nav > a[data-dot="ai"]:hover::before, .nav > a[data-dot="ai"].on::before { background: var(--lilac); }
.langs { display: flex; gap: 2px; margin-left: 8px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.langs a { text-decoration: none; font-size: 13px; color: var(--mute); padding: 4px 10px; border-radius: 999px; transition: color .2s, background-color .2s; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current="true"] { background: var(--ink); color: var(--night); font-weight: 500; }
.burger { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 500 16px/1.1 var(--f-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, background-color .2s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: var(--night); }
.btn-primary:hover { background: #ffc66e; }
[data-c="desk"] .btn-primary { background: var(--cyan); }
[data-c="desk"] .btn-primary:hover { background: #8de8ee; }
[data-c="ai"] .btn-primary { background: var(--lilac); }
[data-c="ai"] .btn-primary:hover { background: #cdbfff; }
.btn-line { border-color: rgba(231, 239, 240, .35); color: var(--ink); background: rgba(7, 20, 25, .35); }
.btn-line:hover { border-color: var(--ink); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn .host { font-weight: 300; opacity: .72; }

/* ---------- shared section scaffolding ---------- */
main { position: relative; z-index: 1; }
.col { position: relative; padding: 0 var(--gutter); }
.col-wide { width: min(100%, calc(820px + 2 * var(--gutter))); }
.col-full { width: 100%; max-width: calc(1280px + 2 * var(--gutter)); }
.side-right .col { margin-left: auto; }

h2 {
  font: 500 clamp(30px, 3.6vw, 52px)/1.1 var(--f-display);
  letter-spacing: -.015em; text-wrap: balance; max-width: 18ch;
}
h3 { font: 500 17px/1.35 var(--f-display); letter-spacing: 0; margin-bottom: 14px; }
.lead { font-size: clamp(18px, 1.35vw, 21px); line-height: 1.55; color: var(--ink); max-width: 60ch; text-wrap: pretty; }
.note { color: var(--mute); font-size: 15px; margin-top: 14px; max-width: 60ch; }
p { text-wrap: pretty; }

.pname {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 15px/1 var(--f-body); color: var(--pc); margin-bottom: 22px;
}
.pname::before { content: ""; width: 34px; height: 2px; background: var(--pc); border-radius: 2px; }

.prod { min-height: 100vh; padding: 150px 0 140px; position: relative; }
.prod::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: linear-gradient(90deg, rgba(7, 20, 25, .96) 0%, rgba(7, 20, 25, .92) 54%, rgba(7, 20, 25, .55) 66%, rgba(7, 20, 25, 0) 80%);
}
.side-right::before {
  background: linear-gradient(270deg, rgba(7, 20, 25, .96) 0%, rgba(7, 20, 25, .92) 54%, rgba(7, 20, 25, .55) 66%, rgba(7, 20, 25, 0) 80%);
}
.prod h2 { margin-bottom: 26px; }
.prod .lead { margin-bottom: 56px; }
.prod > .col > .btn { margin-top: 44px; }

.ticks li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 6px;
  border-left: 2px solid var(--pc); border-bottom: 2px solid var(--pc); transform: rotate(-45deg) translateY(-50%);
}

/* ---------- hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh; position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--top-h) + 40px) var(--gutter) 180px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 20, 25, .94) 0%, rgba(7, 20, 25, .84) 38%, rgba(7, 20, 25, .35) 54%, rgba(7, 20, 25, 0) 66%),
    linear-gradient(180deg, rgba(7, 20, 25, 0) 66%, rgba(7, 20, 25, .9) 100%);
}
.hero-copy { max-width: 760px; }
.hero-title {
  font: 600 clamp(38px, 6.1vw, 96px)/.98 var(--f-display);
  letter-spacing: -.025em; margin-bottom: 30px;
}
.hero-title .ln { display: block; }
.hero .lead { max-width: 52ch; color: #cfdcde; margin-bottom: 38px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.legend {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 44px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid var(--line);
}
.lg {
  display: flex; flex-direction: column; gap: 4px; padding: 20px 24px 6px 0;
  text-decoration: none; position: relative;
}
.lg::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 34px;
  background: var(--pc); transition: width .45s cubic-bezier(.2, .7, .2, 1);
}
.lg:hover::before, .lg:focus-visible::before { width: calc(100% - 24px); }
.lg b { font: 500 16px/1.3 var(--f-display); }
.lg span { color: var(--mute); font-size: 15px; }

/* page-load sequence: the only orchestrated entrance on the page */
@media (prefers-reduced-motion: no-preference) {
  .hero-title .ln, .hero .lead, .hero .actions, .legend { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-title .ln + .ln { animation-delay: .12s; }
  .hero .lead { animation-delay: .28s; }
  .hero .actions { animation-delay: .4s; }
  .legend { animation-delay: .7s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- SIEM ---------- */
.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 44px; margin-bottom: 64px; }
.qa > div { border-top: 1px solid var(--line); padding-top: 18px; }
.qa dt { font: 500 18px/1.3 var(--f-display); color: var(--pc); margin-bottom: 10px; }
.qa dd { color: #cfdcde; font-size: 16px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px; }
.fact { background: rgba(11, 30, 37, .78); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.fact p { color: #cfdcde; font-size: 16px; margin-bottom: 24px; }
.fact .ticks li { font-size: 16px; }

/* ---------- CorpDesk ---------- */
.flow {
  display: grid; grid-template-columns: auto minmax(24px, 1fr) auto minmax(24px, 1fr) auto;
  align-items: center; margin-bottom: 56px;
}
.node { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(11, 30, 37, .8); }
.node b { font: 500 15px/1.3 var(--f-display); }
.node span { font-size: 13px; color: var(--mute); }
.node-core { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(95, 221, 229, .08); }
.wire { height: 2px; background: repeating-linear-gradient(90deg, var(--cyan) 0 8px, transparent 8px 14px); opacity: .7; }
@media (prefers-reduced-motion: no-preference) {
  .wire { background-size: 28px 2px; animation: flow 1.4s linear infinite; }
}
@keyframes flow { to { background-position: 28px 0; } }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px; margin-bottom: 48px; }
.pair .ticks li { font-size: 16px; color: #cfdcde; }
.pair p { color: #cfdcde; font-size: 16px; }
.modes > div { padding: 14px 0; border-top: 1px solid var(--line); }
.modes dt { font-weight: 500; margin-bottom: 4px; color: var(--pc); }
.modes dd { color: #cfdcde; font-size: 15px; }
.plans { width: 100%; border-collapse: collapse; font-size: 15px; }
.plans th, .plans td { text-align: left; padding: 12px 10px 12px 0; border-top: 1px solid var(--line); font-weight: 400; }
.plans thead th { color: var(--mute); font-size: 13px; border-top: 0; padding-top: 0; }
.plans tbody th { font: 500 15px/1.3 var(--f-display); color: var(--pc); }
.plans td { font-variant-numeric: tabular-nums; }

/* ---------- AI ---------- */
.sub { margin-bottom: 18px; }
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-bottom: 52px; }
.cases > div { border-top: 2px solid var(--pc); padding-top: 16px; }
.cases dt { font: 500 16px/1.35 var(--f-display); margin-bottom: 8px; }
.cases dd { color: #cfdcde; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; background: rgba(11, 30, 37, .8); }

/* ---------- rollout ---------- */
.band { position: relative; padding: 140px 0 120px; }
.band::before, .contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 20, 25, 0) 0%, rgba(7, 20, 25, .88) 22%, rgba(7, 20, 25, .92) 100%);
}
.band h2 { margin-bottom: 52px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 0 28px 0 0; position: relative; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--ink); font: 500 16px/1 var(--f-display); margin-bottom: 22px; background: var(--night);
}
.steps li::after { content: ""; position: absolute; left: 52px; right: 8px; top: 22px; height: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps b { display: block; font: 500 18px/1.3 var(--f-display); margin-bottom: 8px; }
.steps span { color: #cfdcde; font-size: 16px; display: block; max-width: 30ch; }

/* ---------- contact ---------- */
.contact { position: relative; padding: 120px 0 140px; }
.contact::before { background: rgba(7, 20, 25, .92); }
.contact h2 { max-width: 20ch; margin-bottom: 22px; }
.contact .lead { color: #cfdcde; margin-bottom: 44px; }
.mailrow { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.mail {
  font: 500 clamp(30px, 5.4vw, 76px)/1.05 var(--f-display); letter-spacing: -.02em;
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--amber);
  text-underline-offset: .18em; text-decoration-thickness: 3px; overflow-wrap: anywhere;
  transition: text-decoration-color .2s, color .2s;
}
.mail:hover { color: var(--amber); }

/* 404 */
.nf-main { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 40px var(--gutter); }
.nf-main h1 { font: 600 clamp(80px, 16vw, 200px)/.9 var(--f-display); color: var(--amber); }
.nf-main .word { color: var(--mute); }

.foot { position: relative; z-index: 1; background: var(--night); border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--mute); }
.foot-in { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
.foot-brand { font: 700 14px/1 var(--f-display); letter-spacing: .14em; color: var(--ink); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .nav { gap: 18px; }
  .top-cta { display: none; }
}
@media (max-width: 1100px) {
  .prod::before, .side-right::before { background: rgba(7, 20, 25, .86); }
  .col-wide { width: 100%; }
  .side-right .col { margin-left: 0; }
}
@media (max-width: 1020px) {
  :root { --top-h: 64px; }
  .burger {
    display: grid; place-items: center; gap: 6px; align-content: center;
    width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
    background: rgba(7, 20, 25, .6); color: var(--ink); cursor: pointer;
  }
  .burger .bar { width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s; display: block; }
  .burger[aria-expanded="true"] .bar:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--top-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(7, 20, 25, .98); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 22px; font-size: 18px;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .nav > a { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .langs { margin: 18px 0 0; align-self: flex-start; }
  .langs a { padding: 8px 14px; font-size: 15px; }
  .menu-open .top { background: rgba(7, 20, 25, .98); }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .scene-dim #scene { opacity: .32; }
  .hero { padding: calc(var(--top-h) + 30vh) var(--gutter) 56px; justify-content: flex-start; }
  .hero::before { background: linear-gradient(180deg, rgba(7, 20, 25, 0) 24%, rgba(7, 20, 25, .8) 46%, rgba(7, 20, 25, .9) 100%); }
  .legend { position: static; grid-template-columns: 1fr; margin-top: 48px; }
  .lg { padding: 16px 0 14px; border-bottom: 1px solid var(--line); }
  .lg::before { display: none; }
  .legend { border-top: 0; }
  .lg b { display: flex; align-items: center; gap: 10px; }
  .lg b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pc); flex: none; }
  .lg span { padding-left: 18px; }
  .prod { padding: 110px 0 100px; min-height: 0; }
  .qa, .facts, .pair, .cases { grid-template-columns: 1fr; }
  .qa { gap: 26px; }
  .facts, .pair { gap: 32px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .steps li:nth-child(2)::after { display: none; }
  .band { padding: 100px 0 90px; }
}
@media (max-width: 560px) {
  .flow { grid-template-columns: 1fr; justify-items: start; gap: 0; }
  .wire { width: 2px; height: 22px; margin-left: 24px; background: repeating-linear-gradient(180deg, var(--cyan) 0 6px, transparent 6px 11px); animation: none; }
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .fact { padding: 22px; }
  .actions .btn { width: 100%; }
}
