/* =================================================================
   AllSecNode — landing page styles
   Aesthetic: industrial OT control-room / instrument-grade.
   Semantic HMI colour system → teal = safe/allowed, red/amber = threat.
   ================================================================= */

:root {
  /* surfaces */
  --bg:        #070b10;
  --bg-2:      #0a0f16;
  --panel:     #0e151e;
  --panel-2:   #111b26;
  --panel-3:   #0b1119;
  --line:      #1a2633;
  --line-2:    #25384b;
  --line-glow: rgba(46, 230, 196, 0.35);

  /* ink */
  --ink:    #e9f1f6;
  --ink-2:  #aebcc8;
  --ink-3:  #6f8294;
  --ink-4:  #4d5e6f;

  /* accents — the HMI signal palette */
  --teal:    #2ee6c4;   /* primary / "allowed / online" */
  --teal-2:  #16c8a4;
  --blue:    #4f8ff7;   /* structure / links */
  --blue-2:  #6aa6ff;
  --amber:   #f5b13d;   /* warning */
  --red:     #ff5d6c;   /* blocked / threat */
  --red-2:   #ff8a93;

  /* gradients */
  --grad-accent: linear-gradient(135deg, var(--teal) 0%, var(--blue) 100%);
  --grad-text:   linear-gradient(120deg, #5af0d6 0%, #79b0ff 100%);

  /* type */
  --font-display: "Saira", "Bahnschrift", "Oswald", "Segoe UI", system-ui, sans-serif;
  --font-body:    "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-mono:    "IBM Plex Mono", "Cascadia Code", "Consolas", ui-monospace, monospace;

  /* geometry */
  --r-xs: 5px;
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --maxw: 1180px;
  --gut:  clamp(20px, 5vw, 56px);

  /* fx */
  --shadow:    0 18px 50px -22px rgba(0, 0, 0, 0.85);
  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------------- reset / base ---------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--ink-2);
  line-height: 1.65;
  font-size: 16.5px;
  letter-spacing: 0.1px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* atmosphere: blueprint grid + signal glows (fixed, behind everything) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 82% -8%, rgba(46, 230, 196, 0.10), transparent 60%),
    radial-gradient(820px 620px at -10% 108%, rgba(79, 143, 247, 0.10), transparent 60%),
    linear-gradient(rgba(120, 160, 190, 0.030) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 190, 0.030) 1px, transparent 1px),
    var(--bg);
  background-size: 100% 100%, 100% 100%, 46px 46px, 46px 46px;
}
/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue-2); text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: rgba(46, 230, 196, 0.28); color: #fff; }

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

/* scrollbar (webkit) */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: #1d2c3b; border: 3px solid var(--bg-2); border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: #294056; }

.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;
}
.nowrap { white-space: nowrap; }

/* ---------------- layout primitives ---------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

.section { position: relative; padding-block: clamp(72px, 11vw, 140px); }
section[id], #hero { scroll-margin-top: 84px; }
.section--alt { background:
  linear-gradient(180deg, rgba(11, 17, 25, 0) 0%, rgba(11, 17, 25, 0.55) 12%, rgba(11, 17, 25, 0.55) 88%, rgba(11, 17, 25, 0) 100%);
}
.divider-line { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 18%, var(--line-2) 82%, transparent); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 68px); position: relative; }
.section-head--center { margin-inline: auto; text-align: center; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--teal);
}
.kicker::before {
  content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.7;
}
.section-head--center .kicker::after {
  content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.7;
}

.section-index {
  position: absolute; right: 0; top: -18px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(48px, 9vw, 104px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--line-2);
  opacity: 0.6; pointer-events: none; user-select: none;
}
.section-head--center .section-index { position: static; display: block; margin: 0 auto 6px; opacity: 0.5; }

.section-title {
  font-family: var(--font-display); color: var(--ink);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.5px;
  font-size: clamp(28px, 4.6vw, 50px);
  margin-top: 16px;
}
.section-lead {
  margin-top: 18px; font-size: clamp(16px, 1.9vw, 19px); color: var(--ink-2); max-width: 62ch;
}
.section-head--center .section-lead { margin-inline: auto; }

.accent-teal { color: var(--teal); }
.accent-blue { color: var(--blue-2); }
.grad-text {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mono { font-family: var(--font-mono); }

/* instrument corner-brackets */
.bracketed { position: relative; }
.bracketed::before, .bracketed::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border-color: var(--line-2); border-style: solid; border-width: 0;
  transition: border-color 0.4s var(--ease);
}
.bracketed::before { top: 10px; left: 10px; border-top-width: 1.5px; border-left-width: 1.5px; }
.bracketed::after  { bottom: 10px; right: 10px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.bracketed:hover::before, .bracketed:hover::after { border-color: var(--teal); }

/* status LED */
.led {
  --led: var(--teal);
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--led); box-shadow: 0 0 0 0 var(--led);
  animation: pulse-led 2.4s var(--ease) infinite;
}
.led.warn { --led: var(--amber); }
.led.danger { --led: var(--red); }
@keyframes pulse-led {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--led) 55%, transparent); }
  70%  { box-shadow: 0 0 0 7px color-mix(in srgb, var(--led) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--led) 0%, transparent); }
}

/* ---------------- buttons ---------------- */
.btn {
  --b: var(--teal);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px; letter-spacing: 0.2px;
  padding: 13px 22px; border-radius: var(--r-sm);
  border: 1px solid transparent; color: var(--bg);
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-lg { padding: 16px 30px; font-size: 16px; }

.btn-primary {
  background: var(--grad-accent); color: #04130f; font-weight: 600;
  box-shadow: 0 14px 34px -14px rgba(46, 230, 196, 0.6), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -14px rgba(46, 230, 196, 0.7), inset 0 1px 0 rgba(255,255,255,0.3); }

.btn-secondary {
  background: rgba(255,255,255,0.02); color: var(--ink); border-color: var(--line-2);
}
.btn-secondary:hover { border-color: var(--teal); color: #fff; background: rgba(46, 230, 196, 0.07); transform: translateY(-2px); }

.btn-ghost { color: var(--ink); padding-inline: 4px; }
.btn-ghost:hover { color: var(--teal); }

/* ---------------- header / nav ---------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(8, 12, 17, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 70px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 34px; height: 34px; filter: drop-shadow(0 4px 10px rgba(46,230,196,0.25)); }
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: 0.3px; color: var(--ink);
}
.brand-name b { color: var(--teal); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  position: relative; color: var(--ink-2); font-size: 14.5px; font-weight: 500;
  padding: 6px 0; transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--grad-accent); transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 16px; }

.lang-switch {
  display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-xs); overflow: hidden;
  font-family: var(--font-mono);
}
.lang-btn {
  padding: 6px 11px; font-size: 12px; font-weight: 500; letter-spacing: 1px; color: var(--ink-3);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.lang-btn.active { background: var(--grad-accent); color: #04130f; }
.lang-btn:not(.active):hover { color: var(--ink); background: rgba(255,255,255,0.04); }

.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: var(--r-xs); }
.menu-toggle span { display: block; width: 18px; height: 1.6px; background: var(--ink); margin: 4px auto; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.menu-toggle.open span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

/* ---------------- hero ---------------- */
.hero { position: relative; padding-top: clamp(120px, 17vh, 200px); padding-bottom: clamp(70px, 9vw, 120px); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 72px); align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--teal); padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 100px;
  background: rgba(46, 230, 196, 0.05);
}
.hero-title {
  font-family: var(--font-display); color: var(--ink);
  font-weight: 700; letter-spacing: -1px; line-height: 1.02;
  font-size: clamp(38px, 6.4vw, 76px);
  margin-top: 26px;
}
.hero-title .accent { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub {
  margin-top: 24px; font-size: clamp(17px, 2.3vw, 21px); color: var(--ink); font-weight: 500; max-width: 36ch;
}
.hero-desc { margin-top: 18px; font-size: 16.5px; color: var(--ink-2); max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; list-style: none; padding: 0;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.6px; color: var(--ink-3);
}
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }

/* ---- HMI instrument panel ---- */
.hmi {
  position: relative; border: 1px solid var(--line-2); border-radius: var(--r);
  background: linear-gradient(180deg, var(--panel-2), var(--panel-3));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hmi::before { /* scanline texture */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.4;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 3px);
}
.hmi::after { /* top edge glow */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent); opacity: 0.7;
}
.hmi-bar {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  border-bottom: 1px solid var(--line); background: rgba(0,0,0,0.25); position: relative;
}
.hmi-dots { display: inline-flex; gap: 6px; }
.hmi-dots i { width: 9px; height: 9px; border-radius: 50%; background: #223344; display: block; }
.hmi-title { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.5px; color: var(--ink-2); text-transform: uppercase; }
.hmi-state {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 1px; color: var(--teal);
  padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 100px; text-transform: uppercase;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.hmi.alarm .hmi-state { color: var(--red); border-color: rgba(255,93,108,0.5); background: rgba(255,93,108,0.08); }

.hmi-body { padding: 16px; position: relative; }
.hmi-feed {
  font-family: var(--font-mono); font-size: 12.6px; line-height: 1.9; min-height: 232px;
  display: flex; flex-direction: column; gap: 2px;
}
.feed-line { display: grid; grid-template-columns: auto auto 1fr auto; gap: 10px; align-items: baseline; white-space: nowrap; opacity: 0; transform: translateY(6px); }
.feed-line.show { opacity: 1; transform: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.feed-line .t { color: var(--ink-4); }
.feed-line .proto {
  color: var(--blue-2); text-transform: uppercase; font-weight: 500;
}
.feed-line .msg { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; }
.feed-line .msg b { color: var(--ink); font-weight: 500; }
.feed-line .v { font-weight: 500; letter-spacing: 0.5px; }
.feed-line .v.allow { color: var(--teal); }
.feed-line .v.block { color: var(--red); }
.feed-line.is-threat .msg b { color: var(--red-2); }
.feed-line.is-threat { background: rgba(255,93,108,0.07); border-left: 2px solid var(--red); margin-left: -16px; margin-right: -16px; padding-left: 14px; padding-right: 16px; }

.hmi-flash { position: absolute; inset: 0; background: var(--red); opacity: 0; pointer-events: none; }
.hmi-flash.fire { animation: flash 0.5s var(--ease); }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: 0.16; } 100% { opacity: 0; } }

.hmi-foot {
  border-top: 1px solid var(--line); padding: 13px 16px;
  display: flex; align-items: center; gap: 12px; background: rgba(0,0,0,0.18);
}
.hmi-verdict { font-size: 12.8px; color: var(--ink-2); line-height: 1.5; }
.hmi-verdict b { color: var(--teal); font-weight: 600; }
.hmi-chips { display: flex; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.hmi-chip {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.8px; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 7px; text-transform: uppercase;
}
.hmi-chip b { color: var(--ink); font-weight: 500; }

.hero-disclaimer {
  margin-top: 14px; font-size: 11.5px; font-family: var(--font-mono); color: var(--ink-4); letter-spacing: 0.4px; text-align: right;
}

/* ---------------- sector strip ---------------- */
.sectors { border-block: 1px solid var(--line); background: rgba(0,0,0,0.2); }
.sectors-inner { display: flex; align-items: center; gap: clamp(20px, 4vw, 56px); flex-wrap: wrap; padding-block: 26px; }
.sectors-label {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-4);
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
}
.sector-list { display: flex; flex-wrap: wrap; gap: clamp(18px, 3.4vw, 44px); align-items: center; }
.sector {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink-2);
  letter-spacing: 0.3px; transition: color 0.3s var(--ease);
}
.sector svg { width: 21px; height: 21px; color: var(--teal); opacity: 0.85; }
.sector:hover { color: var(--ink); }

/* ---------------- problem / compare ---------------- */
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch; margin-top: 8px; }
.compare-card {
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), var(--panel-3));
  padding: 28px clamp(20px, 3vw, 32px); position: relative;
}
.compare-card--it { border-radius: var(--r) 0 0 var(--r); border-right: none; }
.compare-card--asn { border-radius: 0 var(--r) var(--r) 0; border-left: none; }
.compare-card--asn { background:
  linear-gradient(180deg, rgba(46,230,196,0.06), rgba(11,17,25,0.4)); border-color: rgba(46,230,196,0.32); }
.compare-vs {
  display: grid; place-items: center; width: 56px; position: relative; z-index: 2;
}
.compare-vs span {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; color: var(--ink-3);
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--line-2);
}
.compare-head { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.compare-head h3 { font-family: var(--font-display); font-size: 17px; color: var(--ink); font-weight: 600; letter-spacing: 0.3px; }
.compare-tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1px; padding: 3px 8px; border-radius: 100px; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--ink-3); margin-left: auto; }
.compare-card--asn .compare-tag { color: var(--teal); border-color: rgba(46,230,196,0.4); }

.scope-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-4); margin-bottom: 8px; }
.pkt {
  font-family: var(--font-mono); font-size: 13.5px; color: var(--ink); background: rgba(0,0,0,0.35);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 13px 15px; line-height: 1.7; overflow-x: auto;
}
.pkt .dim { color: var(--ink-4); }
.pkt .hot { color: var(--red-2); }
.pkt .ok { color: var(--teal); }

.verdict-tag {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 18px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.5px;
  padding: 9px 14px; border-radius: var(--r-sm); width: 100%;
}
.verdict-tag.blind { background: rgba(245,177,61,0.08); color: var(--amber); border: 1px solid rgba(245,177,61,0.3); }
.verdict-tag.good  { background: rgba(46,230,196,0.09); color: var(--teal); border: 1px solid rgba(46,230,196,0.35); }
.verdict-tag b { font-weight: 600; }
.compare-note { margin-top: 16px; font-size: 13.5px; color: var(--ink-3); }

/* ---------------- features ---------------- */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.feature {
  position: relative; border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, var(--panel), var(--panel-3));
  padding: 28px 26px 30px; overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.feature::before {
  content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 100%;
  background: var(--grad-accent); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease);
}
.feature:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: var(--shadow); }
.feature:hover::before { transform: scaleX(1); }
.feature-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.feature-ic {
  width: 50px; height: 50px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: rgba(46,230,196,0.07); border: 1px solid rgba(46,230,196,0.22); color: var(--teal);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}
.feature-ic svg { width: 25px; height: 25px; }
.feature:hover .feature-ic { background: rgba(46,230,196,0.13); transform: scale(1.06); }
.feature-no { font-family: var(--font-mono); font-size: 12px; color: var(--ink-4); letter-spacing: 1px; }
.feature h3 { font-family: var(--font-display); font-size: 19.5px; color: var(--ink); font-weight: 600; line-height: 1.2; letter-spacing: 0.2px; }
.feature p { margin-top: 11px; font-size: 14.8px; color: var(--ink-2); line-height: 1.62; }

.feature--wide {
  grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px;
  padding: 30px clamp(26px, 4vw, 44px);
}
.feature--wide .feature-ic { width: 58px; height: 58px; }
.feature--wide .feature-ic svg { width: 30px; height: 30px; }
.feature--wide .fw-body { max-width: 70ch; }
.feature--wide h3 { font-size: 22px; }
.feature--wide .pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.6px; color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: 100px; padding: 7px 13px; white-space: nowrap;
}
.pill b { color: var(--teal); font-weight: 500; }

/* ---------------- protocols ---------------- */
.proto-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.proto-card {
  border: 1px solid var(--line); border-radius: var(--r); padding: 22px 20px;
  background: linear-gradient(180deg, var(--panel), var(--panel-3)); position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.proto-card:hover { transform: translateY(-4px); border-color: rgba(46,230,196,0.35); }
.proto-card .pglyph { width: 34px; height: 34px; color: var(--teal); margin-bottom: 16px; opacity: 0.92; }
.proto-card .pname { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: 0.2px; }
.proto-card .pfam { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; min-height: 1.3em; }
.proto-card .pcmd {
  margin-top: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--teal);
  background: rgba(46,230,196,0.07); border: 1px solid rgba(46,230,196,0.18);
  border-radius: var(--r-xs); padding: 6px 10px; display: inline-block; letter-spacing: 0.3px;
}
.proto-card .pcmd::before { content: "› "; color: var(--ink-4); }
.proto-note { margin-top: 22px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-4); letter-spacing: 0.5px; text-align: center; }

/* ---------------- how it works ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 26px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 27px; right: -1px; width: 2px; height: calc(100% - 60px);
  display: none;
}
.step-rail { position: relative; margin-bottom: 24px; }
.step-rail .line { height: 2px; background: linear-gradient(90deg, var(--teal), rgba(46,230,196,0.12)); width: 100%; }
.step:last-child .step-rail .line { background: var(--teal); }
.step-no {
  position: absolute; top: -25px; left: 0;
  font-family: var(--font-mono); font-size: 12px; color: var(--teal); letter-spacing: 1px;
}
.step-dot { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(46,230,196,0.12); }
.step-ic { width: 44px; height: 44px; color: var(--teal); margin-bottom: 16px; }
.step-ic svg { width: 100%; height: 100%; }
.step h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: 0.2px; }
.step p { margin-top: 9px; font-size: 14.5px; color: var(--ink-2); padding-right: 10px; }
.deploy-note {
  margin-top: 46px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: var(--r-sm);
  background: rgba(46,230,196,0.04); padding: 16px 20px;
  font-size: 14.5px; color: var(--ink-2);
}
.deploy-note .mono { color: var(--teal); }

/* ---------------- compliance ---------------- */
.comp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.comp-card {
  border: 1px solid var(--line); border-radius: var(--r); padding: 28px 26px;
  background: linear-gradient(180deg, var(--panel), var(--panel-3));
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.comp-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.comp-card .ctag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; color: var(--teal);
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 100px;
  border: 1px solid rgba(46,230,196,0.3); background: rgba(46,230,196,0.05); text-transform: uppercase;
}
.comp-card h3 { font-family: var(--font-display); font-size: 22px; color: var(--ink); font-weight: 700; margin-top: 18px; letter-spacing: 0.2px; }
.comp-card p { margin-top: 10px; font-size: 14.6px; color: var(--ink-2); }

.comp-disclaimer {
  margin-top: 22px; display: flex; gap: 13px; align-items: flex-start;
  border: 1px dashed var(--line-2); border-radius: var(--r-sm); padding: 16px 18px;
  background: rgba(245,177,61,0.04); font-size: 13.6px; color: var(--ink-2);
}
.comp-disclaimer svg { width: 20px; height: 20px; color: var(--amber); flex: none; margin-top: 1px; }
.comp-disclaimer b { color: var(--ink); font-weight: 600; }

/* Purdue diagram */
.purdue {
  margin-top: 40px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: var(--panel-3);
}
.purdue-head {
  display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-2);
  background: rgba(0,0,0,0.2);
}
.purdue-stack { padding: clamp(18px, 3vw, 30px); display: flex; flex-direction: column; gap: 0; }
.pz-group { display: flex; flex-direction: column; gap: 9px; }
.pz {
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 16px;
  padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: linear-gradient(90deg, rgba(79,143,247,0.05), rgba(11,17,25,0.2));
}
.pz .lvl { font-family: var(--font-mono); font-size: 12px; color: var(--blue-2); letter-spacing: 1px; }
.pz .pzname { color: var(--ink); font-weight: 500; font-size: 14.8px; }
.pz .pzdesc { color: var(--ink-3); font-size: 13px; }
.pz.it { background: linear-gradient(90deg, rgba(79,143,247,0.08), rgba(11,17,25,0.2)); }
.pz.ot { background: linear-gradient(90deg, rgba(46,230,196,0.06), rgba(11,17,25,0.2)); }
.pz.ot .lvl { color: var(--teal); }

.enforce {
  display: flex; align-items: center; justify-content: center; gap: 14px; position: relative;
  margin: 14px 0; padding: 13px 18px; border-radius: var(--r-sm);
  border: 1px solid rgba(46,230,196,0.4);
  background: linear-gradient(90deg, rgba(46,230,196,0.10), rgba(79,143,247,0.10));
  box-shadow: inset 0 0 30px rgba(46,230,196,0.06);
}
.enforce .em { width: 26px; height: 26px; color: var(--teal); }
.enforce strong { font-family: var(--font-display); color: var(--ink); font-weight: 700; letter-spacing: 0.4px; font-size: 15.5px; }
.enforce span { font-family: var(--font-mono); font-size: 11.5px; color: var(--teal); letter-spacing: 1px; text-transform: uppercase; }
.enforce::before, .enforce::after {
  content: ""; position: absolute; left: 50%; width: 1px; height: 14px; background: var(--line-2);
}
.enforce::before { top: -15px; } .enforce::after { bottom: -15px; }

/* ---------------- CTA / contact ---------------- */
.cta { position: relative; }
.cta-card {
  border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden;
  background:
    radial-gradient(700px 380px at 88% -10%, rgba(46,230,196,0.12), transparent 62%),
    radial-gradient(600px 360px at -5% 110%, rgba(79,143,247,0.10), transparent 60%),
    linear-gradient(180deg, var(--panel-2), var(--panel-3));
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 56px);
  padding: clamp(30px, 5vw, 56px);
  box-shadow: var(--shadow-lg);
}
.cta-text h2 { font-family: var(--font-display); font-size: clamp(26px, 3.6vw, 40px); color: var(--ink); font-weight: 700; line-height: 1.1; letter-spacing: -0.4px; }
.cta-text p { margin-top: 18px; font-size: 16.5px; color: var(--ink-2); max-width: 46ch; }
.contact-info { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.contact-item { display: flex; align-items: center; gap: 13px; font-size: 14.6px; color: var(--ink-2); }
.contact-item svg { width: 19px; height: 19px; color: var(--teal); flex: none; }
.contact-item .ph { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.5px; color: var(--ink-4); border: 1px dashed var(--line-2); border-radius: 4px; padding: 1px 7px; }

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-3); }
.field label .req { color: var(--teal); }
.field input, .field textarea, .field select {
  background: rgba(0,0,0,0.32); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 12px 14px; color: var(--ink); font-size: 15px; width: 100%;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--teal); background: rgba(0,0,0,0.45);
  box-shadow: 0 0 0 3px rgba(46,230,196,0.12);
}
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form-note { font-size: 12.5px; color: var(--ink-4); }
.form-status { font-size: 13.5px; color: var(--teal); min-height: 1.2em; font-family: var(--font-mono); }

/* ---------------- references placeholder ---------------- */
.refs { margin-top: 30px; }
.refs-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-4); text-align: center; margin-bottom: 16px; }
.refs-strip { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.ref-slot {
  flex: 1 1 150px; max-width: 190px; height: 60px; border: 1px dashed var(--line-2); border-radius: var(--r-sm);
  display: grid; place-items: center; background: rgba(255,255,255,0.012);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1px; color: var(--ink-4); text-align: center; text-transform: uppercase;
}
.ref-logo {
  flex: 0 1 auto; min-width: 140px; max-width: 200px; height: 60px; padding: 12px 26px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  display: grid; place-items: center; background: rgba(255,255,255,0.02);
  text-decoration: none; transition: border-color 0.2s ease, background 0.2s ease;
}
.ref-logo img { height: 38px; width: auto; max-width: 100%; min-height: 0; object-fit: contain; opacity: 0.9; transition: opacity 0.2s ease; }
.ref-logo:hover { border-color: var(--line); background: rgba(255,255,255,0.045); }
.ref-logo:hover img { opacity: 1; }

/* ---------------- footer ---------------- */
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(60px, 9vw, 110px); padding-block: 56px 30px; background: rgba(0,0,0,0.25); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.foot-brand .brand { margin-bottom: 16px; }
.foot-tag { font-size: 14px; color: var(--ink-3); max-width: 32ch; }
.foundation-note {
  margin-top: 18px; font-size: 12.5px; color: var(--ink-4); display: flex; align-items: flex-start; gap: 9px; max-width: 38ch;
}
.foundation-note svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; margin-top: 2px; }
.foot-col h4 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.foot-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.foot-col a { color: var(--ink-2); font-size: 14px; transition: color 0.25s var(--ease); }
.foot-col a:hover { color: var(--teal); }
.foot-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: 12.8px; color: var(--ink-4);
}
.foot-bottom .placeholder-note { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.4px; }

/* ---------------- reveal animations ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.reveal.in-view { opacity: 1; transform: none; }

/* hero load stagger */
.hero [data-load] { opacity: 0; transform: translateY(20px); animation: load-up 0.85s var(--ease) forwards; animation-delay: var(--ld, 0ms); }
@keyframes load-up { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero [data-load] { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .led { animation: none; }
  .feed-line { opacity: 1 !important; transform: none !important; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .comp-grid { grid-template-columns: 1fr; }
  .proto-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  .nav-links, .nav-actions .lang-switch + .nav-cta { }
  .nav-links {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 4px;
    background: rgba(8,12,17,0.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
    padding: 18px var(--gut) 26px; transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { width: 100%; padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { order: 2; }
  .compare { grid-template-columns: 1fr; gap: 14px; }
  .compare-card--it, .compare-card--asn { border-radius: var(--r); border: 1px solid var(--line); }
  .compare-card--asn { border-color: rgba(46,230,196,0.32); }
  .compare-vs { width: auto; height: 40px; }
  .compare-vs span { transform: rotate(90deg); }
  .cta-card { grid-template-columns: 1fr; }
  .feature--wide { grid-template-columns: 1fr; gap: 18px; text-align: left; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .proto-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .section-index { display: none; }
  .hmi-feed { font-size: 11.4px; }
  .pz { grid-template-columns: 52px 1fr; }
  .pz .pzdesc { display: none; }
}

/* ================= added: stats / showcase / deploy diagram / extended protocols ================= */

/* --- stats band --- */
.stats { border-block: 1px solid var(--line); background: var(--panel-3); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: clamp(30px, 4.5vw, 46px) 18px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--line); }
.stat-n {
  display: block; font-family: var(--font-display); font-weight: 700; line-height: 1;
  font-size: clamp(36px, 5vw, 54px);
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-n--fw { font-size: clamp(17px, 2.3vw, 23px); line-height: 1.3; }
.stat-n--fw i { font-style: normal; color: var(--ink-4); margin-inline: 5px; }
.stat-l { display: block; margin-top: 11px; font-size: 13.5px; color: var(--ink-3); letter-spacing: 0.3px; }

/* --- product showcase --- */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 30px); }
.shot { display: flex; flex-direction: column; }
.shot-frame {
  border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.shot-frame img { display: block; width: 100%; height: auto; }
.shot:hover .shot-frame { transform: translateY(-5px); border-color: rgba(46, 230, 196, 0.42); }
.shot figcaption { padding: 18px 4px 0; }
.shot figcaption h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: 0.2px; margin-bottom: 6px; }
.shot figcaption p { font-size: 13.5px; color: var(--ink-3); line-height: 1.55; }

/* --- deployment diagram (blends into #how, bg matches page) --- */
.how-arch { margin-top: clamp(44px, 6vw, 70px); }
.how-arch-head {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  font-family: var(--font-display); font-size: 12.5px; font-weight: 600;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink-3); margin-bottom: 22px;
}
.how-arch img { display: block; width: 100%; max-width: 1060px; height: auto; margin-inline: auto; border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); }

/* --- extended protocols tier --- */
.proto-ext { margin-top: clamp(30px, 4vw, 42px); padding-top: clamp(26px, 3vw, 34px); border-top: 1px dashed var(--line-2); }
.proto-ext-head {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  font-family: var(--font-display); font-size: 12.5px; font-weight: 600;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-3); margin-bottom: 20px;
}
.proto-ext-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ext-chip {
  font-family: var(--font-mono); font-size: 13px; color: var(--ink-2);
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 16px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.ext-chip:hover { border-color: rgba(46, 230, 196, 0.45); color: var(--teal); transform: translateY(-2px); }

@media (max-width: 880px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat + .stat::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .shots { grid-template-columns: 1fr; gap: 28px; }
  .shot-frame { max-width: 640px; }
}
@media (max-width: 560px) {
  .stats-inner { grid-template-columns: 1fr; }
  .stat:nth-child(n+2) { border-top: 1px solid var(--line); }
}

/* --- FAQ (native <details> accordion) --- */
.faq-list { max-width: 860px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color 0.3s var(--ease); }
.faq-item[open] { border-color: var(--line-2); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; font-family: var(--font-display); font-size: 16.5px; font-weight: 600; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font-family: var(--font-body); font-size: 24px; font-weight: 400; line-height: 1; color: var(--teal); }
.faq-item[open] summary { color: var(--teal); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-a { padding: 0 22px 20px; color: var(--ink-2); font-size: 14.5px; line-height: 1.7; }
