/* ============================================================
   XENOCIPHER — deep-tech engineering studio
   Shield · Signal · Survive
   ============================================================ */

:root {
  --bg:        #06070B;
  --bg-2:      #090B11;
  --panel:     #0D1019;
  --panel-2:   #111522;
  --line:      rgba(255,255,255,.075);
  --line-2:    rgba(255,255,255,.14);
  --text:      #ECEEF6;
  --muted:     #9DA4B8;
  --faint:     #61687E;

  --accent:    #2E9BFF;        /* brand electric blue — tweakable */
  --accent-ink:#ffffff;        /* set in JS by luminance */
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 38%, transparent);
  --accent-glow: color-mix(in srgb, var(--accent) 50%, transparent);

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);

  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-bottom: 56px; /* room for the fixed bottom ticker */
}

/* subtle global grain + vignette */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%),
    radial-gradient(100% 100% at 100% 0%, rgba(40,80,120,.06), transparent 55%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---- mono eyebrow / labels ---- */
.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
}
.tag-dot::before {
  content: ""; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-right: 9px;
  box-shadow: 0 0 12px var(--accent-glow);
  vertical-align: middle;
  transform: translateY(-1px);
}

.eyebrow {
  display: inline-flex; align-items: center;
  font-family: var(--f-mono); font-size: 12px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand-logo { height: 40px; width: auto; display: block; }
@media (max-width: 620px) { .brand-logo { height: 34px; } }
.brand .wordmark {
  font-family: var(--f-display); font-weight: 700;
  font-size: 19px; letter-spacing: .01em;
}
.brand .wordmark .x { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 14.5px; color: var(--muted); font-weight: 500;
  transition: color .2s; position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-body); font-weight: 600; font-size: 15px;
  padding: 12px 20px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; transition: all .22s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 0 0 1px var(--accent-line), 0 10px 30px -8px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--accent-line), 0 16px 40px -8px var(--accent-glow); }
.btn-ghost {
  background: rgba(255,255,255,.03); color: var(--text);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: rgba(255,255,255,.07); border-color: var(--accent-line); }
.btn-sm { padding: 9px 15px; font-size: 13.5px; }
.btn .arrow { transition: transform .22s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: 72px; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
#cipher {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; opacity: .9;
  mask-image: radial-gradient(120% 95% at 60% 35%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 95% at 60% 35%, #000 30%, transparent 78%);
}
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(100% 80% at 50% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(100% 80% at 50% 40%, #000, transparent 75%);
  opacity: .5;
}
.hero .wrap { position: relative; z-index: 3; width: 100%; }
.hero-layout {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}
.hero-copy { max-width: 660px; }

.tagline-chip {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 8px 8px 8px 16px; border-radius: 999px;
  border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 28px;
}
.tagline-chip .scramble { color: var(--accent); font-weight: 500; min-width: 64px; display: inline-block; }
.tagline-chip .pill { font-size: 10px; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--text); border: 1px solid var(--accent-line); letter-spacing: .14em; }

.hero h1 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(40px, 6vw, 70px); line-height: 1.02;
  letter-spacing: -.022em; margin-bottom: 24px;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--accent); }
.hero h1 .grad {
  background: linear-gradient(110deg, var(--text) 30%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  font-size: clamp(17px, 1.6vw, 20px); color: var(--muted);
  max-width: 560px; margin-bottom: 36px; text-wrap: pretty;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-meta {
  display: flex; gap: 30px; margin-top: 44px; flex-wrap: wrap;
}
.hero-meta .stat .n { font-family: var(--f-display); font-weight: 700; font-size: 26px; }
.hero-meta .stat .l { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-top: 2px; }

/* HUD telemetry card */
.hud {
  position: relative;
  border: 1px solid var(--line-2); border-radius: 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 92%, transparent), color-mix(in srgb, var(--bg-2) 92%, transparent));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding: 20px; overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8);
}
.hud::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, transparent 60%, var(--accent-soft));
  mix-blend-mode: screen;
}
.hud-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.hud-top .dots { display: flex; gap: 6px; }
.hud-top .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.hud-top .dots i.live { background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); animation: blink 1.6s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.35} }
.hud-title { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.scope { width: 100%; height: 120px; display: block; border-radius: 10px; background: rgba(0,0,0,.35); border: 1px solid var(--line); }
.hud-readout { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 14px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.hud-readout .cell { background: var(--panel); padding: 12px 14px; }
.hud-readout .cell .k { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.hud-readout .cell .v { font-family: var(--f-mono); font-size: 16px; color: var(--text); margin-top: 4px; font-variant-numeric: tabular-nums; }
.hud-readout .cell .v b { color: var(--accent); font-weight: 600; }
.hud-stream { font-family: var(--f-mono); font-size: 11px; color: var(--faint); margin-top: 12px; height: 18px; overflow: hidden; white-space: nowrap; }
.hud-stream b { color: color-mix(in srgb, var(--accent) 80%, var(--text)); }

/* ============================================================
   MARQUEE (capability keywords)
   ============================================================ */
.marquee {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  border-top: 1px solid var(--line-2);
  padding: 15px 0; overflow: hidden;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-row { display: flex; gap: 0; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .marquee-row { animation-play-state: paused; }
.marquee-row .item {
  font-family: var(--f-mono); font-size: 14px; letter-spacing: .04em;
  color: var(--muted); padding: 0 30px; display: inline-flex; align-items: center; gap: 30px;
}
.marquee-row .item::after { content: "✦"; color: var(--accent); font-size: 10px; opacity: .7; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ============================================================
   SECTION SHELL
   ============================================================ */
section.block { position: relative; z-index: 3; padding: clamp(80px, 11vw, 150px) 0; }
.section-head { max-width: 720px; margin-bottom: 60px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(30px, 4.2vw, 50px); line-height: 1.05;
  letter-spacing: -.02em; text-wrap: balance;
}
.section-head h2 .accent { color: var(--accent); }
.section-head p { color: var(--muted); font-size: 19px; margin-top: 18px; text-wrap: pretty; }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   CAPABILITY STACK
   ============================================================ */
.stack-section { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stack-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.stack-aside { position: sticky; top: 110px; }
.stack-aside .thesis {
  font-family: var(--f-display); font-weight: 600; font-size: 22px;
  line-height: 1.35; letter-spacing: -.01em; margin-top: 26px;
}
.stack-aside .thesis .accent { color: var(--accent); }
.stack-aside .mini { display: flex; gap: 24px; margin-top: 32px; }
.stack-aside .mini .m .n { font-family: var(--f-display); font-weight: 700; font-size: 30px; }
.stack-aside .mini .m .l { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }

.stack { display: flex; flex-direction: column; gap: 0; counter-reset: layer; }
.layer {
  position: relative; display: grid; grid-template-columns: 54px 1fr;
  gap: 20px; padding: 26px 24px; border: 1px solid var(--line);
  background: var(--panel); cursor: default;
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.layer:first-child { border-radius: 14px 14px 0 0; }
.layer:last-child { border-radius: 0 0 14px 14px; }
.layer:not(:last-child) { border-bottom: none; }
.layer:hover { background: var(--panel-2); border-color: var(--accent-line); transform: translateX(6px); z-index: 2; }
.layer .idx {
  width: 54px; height: 54px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); background: var(--bg-2);
  color: var(--accent);
  transition: border-color .3s, background .3s;
}
.layer:hover .idx { border-color: var(--accent-line); background: var(--accent-soft); }
.layer .idx svg { width: 26px; height: 26px; }
.layer .body h3 { font-family: var(--f-display); font-weight: 600; font-size: 20px; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 12px; }
.layer .body h3 .num { font-family: var(--f-mono); font-size: 12px; color: var(--faint); letter-spacing: .1em; }
.layer .body p { color: var(--muted); font-size: 15.5px; margin-top: 6px; max-width: 520px; }
.layer .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .04em;
  padding: 5px 11px; border-radius: 7px;
  border: 1px solid var(--line-2); color: var(--muted); background: rgba(255,255,255,.02);
}
.layer:hover .chip { border-color: var(--accent-line); color: var(--text); }

/* ============================================================
   VERTICALS
   ============================================================ */
.verticals-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.vcard {
  position: relative; padding: 32px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--panel);
  overflow: hidden; transition: border-color .3s, transform .3s var(--ease), background .3s;
}
.vcard::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0; transition: opacity .3s;
}
.vcard:hover { border-color: var(--accent-line); transform: translateY(-4px); background: var(--panel-2); }
.vcard:hover::before { opacity: 1; }
.vcard .vicon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--accent); margin-bottom: 22px; background: var(--bg-2); }
.vcard .vicon svg { width: 24px; height: 24px; }
.vcard h3 { font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: -.01em; }
.vcard .role { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 4px 0 14px; }
.vcard p { color: var(--muted); font-size: 15.5px; }
.vcard ul { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.vcard li { font-size: 14px; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.vcard li::before { content: ""; width: 5px; height: 5px; margin-top: 8px; border-radius: 50%; background: var(--accent); flex: none; }

/* ============================================================
   PRODUCTS
   ============================================================ */
.product { display: grid; grid-template-columns: .82fr 1.18fr; gap: 56px; align-items: center; }
.product.flip { grid-template-columns: 1.18fr .82fr; }
.product.flip .product-copy { order: 2; }
.product + .product { margin-top: clamp(70px, 9vw, 120px); }
.product-copy .ptag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.product-copy h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(28px,3.4vw,40px); letter-spacing: -.02em; }
.product-copy .one { font-size: 19px; color: var(--muted); margin-top: 14px; text-wrap: pretty; }
.product-copy .feat { list-style: none; margin: 26px 0 28px; display: flex; flex-direction: column; gap: 14px; }
.product-copy .feat li { display: flex; gap: 13px; align-items: flex-start; font-size: 15.5px; }
.product-copy .feat li .fi { width: 26px; height: 26px; border-radius: 7px; flex: none; display: grid; place-items: center; border: 1px solid var(--accent-line); color: var(--accent); background: var(--accent-soft); }
.product-copy .feat li .fi svg { width: 15px; height: 15px; }
.product-copy .feat li b { color: var(--text); font-weight: 600; }
.product-copy .feat li span { color: var(--muted); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: 15px; }
.link-arrow .arrow { transition: transform .22s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* device frame for product mock */
.device {
  border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden;
  background: var(--panel); box-shadow: 0 40px 90px -40px rgba(0,0,0,.9);
}
.device-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.device-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.device-bar .url { margin-left: 10px; font-family: var(--f-mono); font-size: 11px; color: var(--faint); }
.device-body { padding: 16px; }

/* HydraSense mock */
.hs { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; }
.hs-feed { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16/10; background:
  repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 26px),
  repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 26px),
  radial-gradient(120% 120% at 30% 20%, #15203a, #070a12);
  border: 1px solid var(--line); }
.hs-feed .box { position: absolute; border: 1.5px solid var(--accent); border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.4); }
.hs-feed .box span { position: absolute; top: -19px; left: -1px; font-family: var(--f-mono); font-size: 9px; background: var(--accent); color: var(--accent-ink); padding: 1px 5px; border-radius: 3px 3px 3px 0; white-space: nowrap; }
.hs-feed .scanline { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: scan 3.2s var(--ease) infinite; }
@keyframes scan { 0%{top:6%} 50%{top:90%} 100%{top:6%} }
.hs-feed .corner { position: absolute; width: 14px; height: 14px; border: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); }
.hs-side { display: flex; flex-direction: column; gap: 8px; }
.hs-side .srow { border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); padding: 9px 11px; }
.hs-side .srow .t { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.hs-side .srow .b { display: flex; justify-content: space-between; align-items: baseline; margin-top: 3px; }
.hs-side .srow .b .val { font-family: var(--f-mono); font-size: 15px; color: var(--text); }
.hs-side .srow .b .val b { color: var(--accent); }
.hs-bar { height: 4px; border-radius: 2px; background: var(--line); margin-top: 7px; overflow: hidden; }
.hs-bar i { display: block; height: 100%; background: var(--accent); border-radius: 2px; }

/* NxtCode mock */
.nc { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nc-doc { border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); padding: 14px; }
.nc-doc .dh { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.nc-doc .ln { height: 7px; border-radius: 3px; background: var(--line-2); margin-bottom: 8px; }
.nc-doc .ln.hl { background: var(--accent-soft); border: 1px solid var(--accent-line); height: 16px; border-radius: 5px; }
.nc-codes { display: flex; flex-direction: column; gap: 8px; }
.nc-code { border: 1px solid var(--line); border-radius: 9px; background: var(--bg-2); padding: 11px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; transition: border-color .3s; }
.nc-code:hover { border-color: var(--accent-line); }
.nc-code .code { font-family: var(--f-mono); font-size: 14px; color: var(--text); font-weight: 600; }
.nc-code .desc { font-size: 11px; color: var(--faint); margin-top: 2px; }
.nc-code .conf { font-family: var(--f-mono); font-size: 12px; color: var(--accent); display: flex; align-items: center; gap: 7px; }
.nc-code .ring { width: 26px; height: 26px; flex: none; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { background: var(--bg-2); border-top: 1px solid var(--line); }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-aside h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(30px,4vw,48px); letter-spacing: -.02em; line-height: 1.05; }
.contact-aside p { color: var(--muted); font-size: 18px; margin-top: 18px; max-width: 440px; text-wrap: pretty; }
.contact-points { margin-top: 34px; display: flex; flex-direction: column; gap: 16px; }
.contact-points .cp { display: flex; gap: 13px; align-items: flex-start; }
.contact-points .cp .ci { width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--accent); background: var(--panel); }
.contact-points .cp .ci svg { width: 17px; height: 17px; }
.contact-points .cp .ct b { display: block; font-weight: 600; font-size: 15px; }
.contact-points .cp .ct span { color: var(--muted); font-size: 14px; }

.form-card { border: 1px solid var(--line-2); border-radius: 18px; background: var(--panel); padding: 30px; box-shadow: 0 40px 90px -50px rgba(0,0,0,.9); }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px;
  color: var(--text); font-family: var(--f-body); font-size: 15px; padding: 12px 14px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { resize: vertical; min-height: 96px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-card .btn-primary { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-family: var(--f-mono); font-size: 11px; color: var(--faint); margin-top: 14px; text-align: center; letter-spacing: .04em; }
.form-success { text-align: center; padding: 30px 10px; }
.form-success .ok { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.form-success h4 { font-family: var(--f-display); font-size: 22px; font-weight: 600; }
.form-success p { color: var(--muted); margin-top: 8px; font-size: 15px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { position: relative; z-index: 3; border-top: 1px solid var(--line); padding: 70px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand .brand { margin-bottom: 18px; }
.foot-brand p { color: var(--muted); font-size: 15px; max-width: 280px; }
.foot-tag { font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-top: 16px; }
.foot-col h5 { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.foot-col a { display: block; color: var(--muted); font-size: 14.5px; margin-bottom: 11px; transition: color .2s; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 14px; }
.foot-bottom .c { font-family: var(--f-mono); font-size: 12px; color: var(--faint); letter-spacing: .04em; }
.foot-bottom .secure { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); }
.foot-bottom .secure svg { width: 14px; height: 14px; color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-layout { grid-template-columns: 1fr; gap: 40px; }
  .hud { max-width: 460px; }
  .stack-layout { grid-template-columns: 1fr; gap: 36px; }
  .stack-aside { position: static; }
  .product, .product.flip { grid-template-columns: 1fr; gap: 32px; }
  .product.flip .product-copy { order: 0; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .foot-brand { grid-column: 1 / -1; }
  .nav-links { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .verticals-grid { grid-template-columns: 1fr; }
  .hs, .nc { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 22px; }
  .nav-cta .btn-ghost { display: none; }
}
