/* ==========================================================================
   QSI SECURITY — Design System
   Cybersecurity Experts for the Critical Infrastructure
   Palette: refined midnight navy + champagne gold + cyan "live" signal
   Type: Archivo (display) · IBM Plex Sans (body) · IBM Plex Mono (labels)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand-derived (logo: navy #010066, gold #E8B234) refined for premium depth */
  --ink-900: #05071a;   /* deepest background */
  --ink-850: #070a22;
  --ink-800: #0a0e2a;   /* base background */
  --ink-700: #0e1336;   /* elevated surface */
  --ink-600: #131a44;   /* floating surface */
  --ink-500: #1b2454;   /* hairline-lit surface */
  --navy:    #0b1166;   /* logo navy, used as accent/glow */
  --navy-lit:#2233b8;

  --gold-500: #e8b234;  /* logo gold */
  --gold-400: #f3c659;  /* highlight */
  --gold-600: #c8941f;  /* shade */
  --gold-soft: rgba(232, 178, 52, 0.12);

  --cyan: #3dd6c4;      /* live / operational signal (from footage grade) */
  --cyan-dim: rgba(61, 214, 196, 0.14);

  --text:      #eef0fa;
  --text-soft: #c2c8e4;
  --text-mut:  #8b93b8;
  --text-dim:  #6a7199;

  --line:        rgba(255,255,255,0.09);
  --line-strong: rgba(255,255,255,0.16);
  --line-gold:   rgba(232,178,52,0.32);

  /* Layered, color-tinted shadows (no flat shadow) */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 2px 8px rgba(3,6,30,.5);
  --shadow-md: 0 4px 14px rgba(0,0,0,.4), 0 14px 40px rgba(3,6,40,.55);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.45), 0 30px 80px rgba(3,6,50,.6);
  --shadow-gold: 0 10px 40px rgba(232,178,52,.18);

  /* Type scale (fluid) */
  --fs-eyebrow: .78rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1rem + .6vw, 1.375rem);
  --fs-h3: clamp(1.25rem, 1.05rem + .9vw, 1.6rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  --fs-h1: clamp(2.6rem, 1.6rem + 4.4vw, 5rem);
  --fs-display: clamp(3rem, 1.7rem + 5.6vw, 6rem);

  /* Spacing rhythm */
  --space-section: clamp(4.5rem, 3rem + 7vw, 9rem);
  --container: 1200px;
  --container-wide: 1340px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;

  /* Motion */
  --ease-spring: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .55s;

  --nav-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text-soft);
  background: var(--ink-800);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; }
:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Atmospheric background ---------- */
body::before {
  /* layered radial gradient mesh */
  content: "";
  position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(1100px 700px at 78% -8%, rgba(35,51,184,.22), transparent 60%),
    radial-gradient(900px 600px at 8% 12%, rgba(232,178,52,.07), transparent 55%),
    radial-gradient(1200px 900px at 50% 120%, rgba(11,17,102,.35), transparent 60%),
    linear-gradient(180deg, var(--ink-900), var(--ink-800) 40%, var(--ink-850));
}
body::after {
  /* fine grain for depth */
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  opacity: .035;
  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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Padlock-grid motif (brand continuity from QSI footage) */
.grid-motif {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46' viewBox='0 0 46 46'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1.2'%3E%3Crect x='17' y='21' width='12' height='9' rx='1.5'/%3E%3Cpath d='M19.5 21v-2.2a3.5 3.5 0 0 1 7 0V21'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 78%);
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container-wide { max-width: var(--container-wide); }
.section { position: relative; padding-block: var(--space-section); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.relative { position: relative; z-index: 1; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--fs-eyebrow);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-500);
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 500;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--gold-500), transparent);
}
.eyebrow--center::before { display: none; }

h1, h2, h3, h4 {
  font-family: "Archivo", sans-serif;
  color: var(--text);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.h-display { font-size: var(--fs-display); letter-spacing: -0.035em; line-height: .98; }
h1, .h1 { font-size: var(--fs-h1); letter-spacing: -0.03em; }
h2, .h2 { font-size: var(--fs-h2); letter-spacing: -0.025em; }
h3, .h3 { font-size: var(--fs-h3); }
.section-title { max-width: 22ch; }
.lead { font-size: var(--fs-lead); color: var(--text-soft); line-height: 1.6; max-width: 60ch; }
.muted { color: var(--text-mut); }
.text-gold { color: var(--gold-400); }
.text-cyan { color: var(--cyan); }
.balance { text-wrap: balance; }
.measure { max-width: 64ch; }

.gold-underline {
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--gold-500);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600; font-size: .98rem;
  letter-spacing: .01em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .28s var(--ease-spring), box-shadow .3s var(--ease-out),
              background-color .25s, color .25s, border-color .25s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease-spring); }
.btn--primary {
  background: linear-gradient(180deg, var(--gold-400), var(--gold-500));
  color: #2a1c00;
  box-shadow: 0 6px 20px rgba(232,178,52,.25), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(232,178,52,.4), inset 0 1px 0 rgba(255,255,255,.4); }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-color: var(--line-strong);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255,255,255,.09); border-color: var(--line-gold); transform: translateY(-2px); }
.btn--ghost:hover svg { transform: translateX(3px); }
.btn--lg { padding: 1rem 1.85rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; color: var(--gold-400);
  font-size: .98rem;
  transition: gap .25s var(--ease-spring), color .2s;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease-spring); }
.link-arrow:hover { gap: .7rem; color: var(--gold-500); }
.link-arrow:hover svg { transform: translateX(2px); }

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  font-size: .82rem; color: var(--text-soft);
  font-family: "IBM Plex Mono", monospace; letter-spacing: .04em;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(61,214,196,.6); }
.pill .dot.live { animation: pulse 2.4s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61,214,196,.5); }
  70% { box-shadow: 0 0 0 8px rgba(61,214,196,0); }
  100% { box-shadow: 0 0 0 0 rgba(61,214,196,0); }
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background-color .35s var(--ease-out), border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7,10,28,.78);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
.nav__logo { display: flex; align-items: center; gap: .65rem; }
.nav__logo img { height: 62px; width: auto; }
.nav__links { display: flex; align-items: center; gap: .35rem; }
.nav__link {
  position: relative;
  padding: .55rem .85rem;
  font-size: .95rem; font-weight: 500; color: var(--text-soft);
  border-radius: 8px;
  transition: color .2s, background-color .2s;
}
.nav__link:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav__link.active { color: var(--gold-400); }
.nav__actions { display: flex; align-items: center; gap: .75rem; }

/* dropdown */
.nav__dd { position: relative; }
.nav__dd-panel {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: 560px; max-width: 92vw;
  background: rgba(14,19,54,.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  padding: 14px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s var(--ease-out), transform .3s var(--ease-spring), visibility .25s;
}
/* Invisible bridge across the gap between the trigger and the panel, so moving
   the cursor down into the menu doesn't drop the :hover state and close it. */
.nav__dd-panel::before {
  content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px;
}
/* Bridge below the trigger. Inert until hovered, so it never intercepts
   clicks on page content sitting under the header. */
.nav__dd::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px;
  pointer-events: none;
}
.nav__dd:hover::after { pointer-events: auto; }
.nav__dd:hover .nav__dd-panel,
.nav__dd:focus-within .nav__dd-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dd-item { display: flex; gap: .8rem; padding: .7rem .8rem; border-radius: 10px; transition: background-color .2s; }
.dd-item:hover { background: rgba(255,255,255,.05); }
.dd-item__icon { flex: none; width: 38px; height: 38px; border-radius: 9px;
  display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-400);
  border: 1px solid var(--line-gold); }
.dd-item__icon svg { width: 19px; height: 19px; }
.dd-item__t { font-weight: 600; color: var(--text); font-size: .95rem; }
.dd-item__d { font-size: .82rem; color: var(--text-mut); line-height: 1.4; }

/* mobile */
.nav__burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.04); border-radius: 10px; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform .3s var(--ease-spring), opacity .2s; }
.nav__burger span:nth-child(1) { top: 15px; }
.nav__burger span:nth-child(2) { top: 21px; }
.nav__burger span:nth-child(3) { top: 27px; }
body.menu-open .nav__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 49;
  background: rgba(7,10,28,.98);
  backdrop-filter: blur(20px);
  padding: 2rem 24px 3rem;
  display: flex; flex-direction: column; gap: .25rem;
  transform: translateX(100%);
  transition: transform .4s var(--ease-out);
  overflow-y: auto;
}
body.menu-open .mobile-menu { transform: translateX(0); }
.mobile-menu a { padding: 1rem .5rem; font-size: 1.25rem; font-family: "Archivo",sans-serif; font-weight: 600;
  color: var(--text); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.mobile-menu a .chev { color: var(--text-dim); }
.mobile-menu .btn { margin-top: 1.5rem; }
.mobile-menu__sub { font-family: "IBM Plex Mono",monospace; font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold-500); margin: 1.5rem .5rem .5rem; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(3rem, 6vw, 6rem)); padding-bottom: clamp(3rem, 6vw, 6rem); overflow: hidden; }
.hero__glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  right: -10%; top: -20%;
  background: radial-gradient(circle, rgba(35,51,184,.3), transparent 62%);
  filter: blur(20px);
}
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__content { max-width: 640px; }
.hero h1 { margin: 1.2rem 0 1.4rem; }
.hero .lead { margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero__trust { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero__trust-label { font-family: "IBM Plex Mono",monospace; font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: .9rem; }
.trust-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; }
.trust-badge { display: inline-flex; align-items: center; gap: .55rem; color: var(--text-mut); font-size: .9rem; font-weight: 500; }
.trust-badge svg { width: 20px; height: 20px; color: var(--gold-500); flex: none; }

/* hero visual: framed SOC + live HUD */
.hero__visual { position: relative; }
.hero__frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.4;
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__frame::after { content:""; position:absolute; inset:0;
  /* keep the bottom shaded for HUD legibility, but let the image read clearly */
  background: linear-gradient(180deg, rgba(10,14,42,0) 35%, rgba(10,14,42,.35) 72%, rgba(10,14,42,.72)); }
.hero__frame::before { content:""; position:absolute; inset:0; z-index:2;
  background: linear-gradient(120deg, rgba(11,17,102,.25), transparent 40%); }
.hud {
  position: absolute; z-index: 3; left: 16px; bottom: 16px; right: 16px;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.hud__chip {
  background: rgba(7,10,28,.7); border: 1px solid var(--line); border-radius: 10px;
  padding: .5rem .75rem; backdrop-filter: blur(8px);
  display: flex; align-items: center; gap: .5rem; font-family: "IBM Plex Mono",monospace; font-size: .74rem;
  color: var(--text-soft);
}
.hud__chip b { color: var(--cyan); font-weight: 600; }
.hero__float {
  position: absolute; z-index: 4; top: 18px; right: -14px;
  background: rgba(14,19,54,.9); border: 1px solid var(--line-gold); border-radius: 12px;
  padding: .7rem .9rem; box-shadow: var(--shadow-md); backdrop-filter: blur(10px);
  display: flex; align-items: center; gap: .7rem;
}
.hero__float .ic { width: 34px; height: 34px; border-radius: 8px; background: var(--gold-soft);
  color: var(--gold-400); display: grid; place-items: center; }
.hero__float .ic svg { width: 18px; height: 18px; }
.hero__float .t { display: block; font-size: .68rem; letter-spacing: .04em; color: var(--text-mut); font-family:"IBM Plex Mono",monospace; }
.hero__float .v { display: block; font-size: 1.02rem; line-height: 1.15; color: var(--text); font-weight: 700; font-family:"Archivo",sans-serif; }

/* scanning line accent */
.scanline { position:absolute; left:0; right:0; height: 2px; z-index: 3;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: .65; animation: scan 5.5s var(--ease-out) infinite; }
@keyframes scan { 0%{ top: 8%; opacity:0 } 12%{opacity:.7} 88%{opacity:.7} 100%{ top: 92%; opacity:0 } }

/* ==========================================================================
   MARQUEE (partners)
   ========================================================================== */
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: .65rem; color: var(--text-mut); font-weight: 600;
  font-size: 1.05rem; white-space: nowrap; opacity: .8; transition: opacity .2s, color .2s; }
.marquee__item:hover { opacity: 1; color: var(--text); }
.marquee__item svg { width: 26px; height: 26px; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   CARDS
   ========================================================================== */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  overflow: hidden;
  transition: transform .4s var(--ease-spring), border-color .3s, box-shadow .3s;
}
.card::before { /* corner bracket / targeting motif */
  content: ""; position: absolute; top: 14px; right: 14px; width: 16px; height: 16px;
  border-top: 2px solid var(--line-gold); border-right: 2px solid var(--line-gold);
  border-top-right-radius: 4px; opacity: .5; transition: opacity .3s, width .3s, height .3s;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-gold); box-shadow: var(--shadow-md); }
.card:hover::before { opacity: 1; width: 22px; height: 22px; }

.card__icon {
  width: 52px; height: 52px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 1.15rem;
  background: radial-gradient(circle at 30% 25%, rgba(232,178,52,.22), rgba(232,178,52,.06));
  border: 1px solid var(--line-gold);
  color: var(--gold-400);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}
.card__icon svg { width: 25px; height: 25px; }
.card h3 { font-size: 1.2rem; margin-bottom: .55rem; letter-spacing: -0.01em; }
.card p { font-size: .96rem; color: var(--text-mut); line-height: 1.6; }
.card__num { font-family:"IBM Plex Mono",monospace; font-size:.74rem; letter-spacing:.16em; color: var(--text-dim); margin-bottom: .9rem; }
.card__link { margin-top: 1.1rem; }

/* service card link variant */
a.card { display: block; color: inherit; }

/* feature row */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.feature--rev .feature__media { order: -1; }
.feature__media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg);
}
.feature__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.feature__media--tall img { aspect-ratio: 4/4.6; }
.feature__media::after { content:""; position:absolute; inset:0;
  background: linear-gradient(160deg, rgba(11,17,102,.28), transparent 45%, rgba(10,14,42,.55));
  mix-blend-mode: multiply; }
.media-tag {
  position: absolute; z-index: 2; left: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(7,10,28,.72); border: 1px solid var(--line); border-radius: 999px;
  padding: .45rem .85rem; font-family:"IBM Plex Mono",monospace; font-size: .74rem; color: var(--text-soft);
  backdrop-filter: blur(8px);
}

/* check list */
.checklist { display: grid; gap: .85rem; margin-top: 1.5rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; color: var(--text-soft); }
.checklist .ck { flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  background: var(--cyan-dim); border: 1px solid rgba(61,214,196,.3); color: var(--cyan); margin-top: 2px; }
.checklist .ck svg { width: 14px; height: 14px; }
.checklist b { color: var(--text); font-weight: 600; }

/* ==========================================================================
   MXDR DIAGRAM
   ========================================================================== */
.mxdr {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.008));
  padding: clamp(1.4rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-md);
}
.mxdr__rows { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(1rem,3vw,2.4rem); align-items: center; }
.mxdr__col-title { font-family:"IBM Plex Mono",monospace; font-size:.72rem; letter-spacing:.18em; text-transform:uppercase;
  color: var(--text-dim); margin-bottom: .9rem; text-align: center; }
.mxdr__nodes { display: grid; gap: .6rem; }
.mxdr__node {
  display: flex; align-items: center; gap: .65rem;
  padding: .65rem .8rem; border-radius: 11px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  font-size: .9rem; color: var(--text-soft); font-weight: 500;
  transition: border-color .3s, background-color .3s, transform .3s;
}
.mxdr__node svg { width: 18px; height: 18px; color: var(--gold-400); flex: none; }
.mxdr__node:hover { border-color: var(--line-gold); transform: translateX(3px); }
.mxdr__node.adv svg { color: var(--cyan); }
.mxdr__core {
  text-align: center; padding: 1.4rem 1.2rem; border-radius: var(--radius);
  background: radial-gradient(circle at 50% 30%, rgba(35,51,184,.4), rgba(11,17,102,.25));
  border: 1px solid var(--line-gold);
  box-shadow: 0 0 0 6px rgba(232,178,52,.05), var(--shadow-md);
  min-width: 150px;
}
.mxdr__core .ring { width: 58px; height: 58px; margin: 0 auto .7rem; border-radius: 50%;
  display: grid; place-items: center; border: 2px solid var(--gold-500);
  box-shadow: 0 0 24px rgba(232,178,52,.4); position: relative; }
.mxdr__core .ring::after { content:""; position:absolute; inset:-7px; border-radius:50%;
  border: 1px solid var(--line-gold); animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mxdr__core .ring svg { width: 26px; height: 26px; color: var(--gold-400); }
.mxdr__core h4 { font-family:"Archivo",sans-serif; color: var(--text); font-size: 1.1rem; }
.mxdr__core span { font-family:"IBM Plex Mono",monospace; font-size:.7rem; color: var(--cyan); letter-spacing:.1em; }

/* ==========================================================================
   STATS
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--ink-800); padding: 1.8rem 1.5rem; text-align: center; position: relative; }
.stat__v { font-family:"Archivo",sans-serif; font-weight: 800; font-size: clamp(2rem,1.4rem+2vw,3rem);
  color: var(--text); letter-spacing: -0.03em; line-height: 1; }
.stat__v .u { color: var(--gold-400); }
.stat__l { font-size: .88rem; color: var(--text-mut); margin-top: .6rem; }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.quote-card {
  position: relative; padding: 2rem 1.8rem; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 1.4rem;
  transition: transform .4s var(--ease-spring), border-color .3s;
}
.quote-card:hover { transform: translateY(-4px); border-color: var(--line-gold); }
.quote-card__mark { font-family:"Archivo",sans-serif; font-size: 3.4rem; line-height: .6; color: var(--gold-500); opacity: .55; height: 1.4rem; }
.quote-card p { color: var(--text-soft); font-size: 1rem; line-height: 1.65; }
.quote-card__by { display: flex; align-items: center; gap: .8rem; margin-top: auto; padding-top: .4rem; border-top: 1px solid var(--line); }
.quote-card__av { width: 42px; height: 42px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: var(--gold-soft); border: 1px solid var(--line-gold); color: var(--gold-400); }
.quote-card__av svg { width: 20px; height: 20px; }
.quote-card__by b { display: block; color: var(--text); font-size: .95rem; }
.quote-card__by span { font-size: .82rem; color: var(--text-mut); }

/* ==========================================================================
   ABOUT VIDEO
   ========================================================================== */
.video-wrap {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg);
  background: #000;
}
.video-wrap video { width: 100%; height: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.video-wrap__overlay {
  position: absolute; inset: 0; z-index: 2; cursor: pointer;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(10,14,42,.25), rgba(10,14,42,.55));
  transition: opacity .4s;
}
.video-wrap.playing .video-wrap__overlay { opacity: 0; pointer-events: none; }
.play-btn { width: 84px; height: 84px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(232,178,52,.95); color: #2a1c00; display: grid; place-items: center;
  box-shadow: 0 10px 40px rgba(232,178,52,.4); transition: transform .3s var(--ease-spring); position: relative; }
.play-btn::after { content:""; position:absolute; inset:-10px; border-radius:50%; border:1px solid rgba(232,178,52,.5); animation: pulse-ring 2.6s infinite; }
@keyframes pulse-ring { 0%{ transform: scale(.9); opacity:.8 } 100%{ transform: scale(1.4); opacity:0 } }
.play-btn:hover { transform: scale(1.08); }
.play-btn svg { width: 30px; height: 30px; margin-left: 4px; }
.video-cap { position: absolute; z-index: 2; left: 18px; bottom: 18px; pointer-events: none; }
.video-wrap.playing .video-cap { opacity: 0; transition: opacity .3s; }

/* ==========================================================================
   ACCORDION (FAQ)
   ========================================================================== */
.accordion { display: grid; gap: .75rem; }
.acc {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: rgba(255,255,255,.025); overflow: hidden; transition: border-color .3s, background-color .3s;
}
.acc[open] { border-color: var(--line-gold); background: rgba(255,255,255,.04); }
.acc summary {
  list-style: none; cursor: pointer; padding: 1.15rem 1.3rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family:"Archivo",sans-serif; font-weight: 600; color: var(--text); font-size: 1.05rem;
}
.acc summary::-webkit-details-marker { display: none; }
.acc__ic { flex: none; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--gold-400); transition: transform .3s var(--ease-spring), background-color .3s; }
.acc__ic svg { width: 15px; height: 15px; }
.acc[open] .acc__ic { transform: rotate(45deg); background: var(--gold-soft); }
.acc__body { padding: 0 1.3rem 1.25rem; color: var(--text-mut); line-height: 1.65; font-size: .98rem; }

/* ==========================================================================
   FORMS
   ========================================================================== */
.form-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow-md);
}
.field { margin-bottom: 1.15rem; }
.field label, .field-label { display: block; font-size: .85rem; font-weight: 600; color: var(--text-soft); margin-bottom: .5rem; }
label.filedrop { margin: 0; }
/* keeps the file input activatable by its wrapping <label> (unlike display:none,
   this reliably opens the picker on click) while staying invisible + keyboard-reachable */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.filedrop--err { border-color: rgba(255,140,140,.6) !important; background: rgba(255,120,120,.08) !important; }
.filedrop--err [data-filelabel] { color: #ff9b9b; }
.field label .req { color: var(--gold-500); }
.input, .textarea, .select {
  width: 100%; padding: .85rem 1rem; border-radius: 10px;
  background: rgba(5,7,26,.6); border: 1px solid var(--line-strong); color: var(--text);
  font-size: 1rem; transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.input::placeholder, .textarea::placeholder { color: var(--text-dim); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(232,178,52,.16); background: rgba(5,7,26,.85); }
.textarea { resize: vertical; min-height: 130px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.filedrop {
  border: 1.5px dashed var(--line-strong); border-radius: 12px; padding: 1.4rem;
  text-align: center; cursor: pointer; transition: border-color .25s, background-color .25s; color: var(--text-mut);
}
.filedrop:hover, .filedrop.drag { border-color: var(--gold-500); background: rgba(232,178,52,.05); }
.filedrop svg { width: 26px; height: 26px; color: var(--gold-400); margin: 0 auto .5rem; }
.filedrop b { color: var(--text); }
.filedrop small { display: block; margin-top: .3rem; font-size: .78rem; }
.form-note { font-size: .82rem; color: var(--text-dim); margin-top: .4rem; }
.form-success { display: none; padding: 1.2rem; border-radius: 12px; background: var(--cyan-dim);
  border: 1px solid rgba(61,214,196,.35); color: var(--text); margin-bottom: 1rem; align-items: center; gap: .7rem; }
.form-success.show { display: flex; }
.form-success svg { width: 22px; height: 22px; color: var(--cyan); flex: none; }

/* error state */
.form-error { display: none; padding: 1.2rem; border-radius: 12px; background: rgba(255,120,120,.1);
  border: 1px solid rgba(255,140,140,.35); color: var(--text); margin-bottom: 1rem; align-items: center; gap: .7rem; }
.form-error.show { display: flex; }
.form-error svg { width: 22px; height: 22px; color: #ff9b9b; flex: none; }

/* honeypot — hidden from humans, bots fill it and get silently rejected */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px;
  overflow: hidden; opacity: 0; pointer-events: none; }

/* submitting state */
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ==========================================================================
   PAGE HEADER (inner pages)
   ========================================================================== */
.page-head { position: relative; padding-top: calc(var(--nav-h) + clamp(3rem,6vw,5.5rem)); padding-bottom: clamp(2.5rem,5vw,4rem); overflow: hidden; }
.page-head .breadcrumb { font-family:"IBM Plex Mono",monospace; font-size:.78rem; color: var(--text-dim); letter-spacing:.06em; margin-bottom: 1.2rem; }
.page-head .breadcrumb a:hover { color: var(--gold-400); }
.page-head h1 { max-width: 18ch; margin-bottom: 1.2rem; }
.page-head .lead { max-width: 62ch; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-gold); border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 400px at 80% 20%, rgba(35,51,184,.35), transparent 60%),
    radial-gradient(500px 400px at 10% 90%, rgba(232,178,52,.12), transparent 60%),
    linear-gradient(180deg, rgba(14,19,54,.9), rgba(10,14,42,.9));
  padding: clamp(2.5rem, 5vw, 4.5rem);
  text-align: center;
}
.cta-band h2 { margin-bottom: 1rem; }
.cta-band .lead { margin: 0 auto 2rem; }
.cta-band__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   ARTICLE
   ========================================================================== */
.article-hero { padding-top: calc(var(--nav-h) + 3rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; color: var(--text-mut); font-size: .88rem; margin-bottom: 1.4rem; }
.article-meta .tag { font-family:"IBM Plex Mono",monospace; color: var(--gold-400); letter-spacing:.06em; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong); margin: 2rem 0; box-shadow: var(--shadow-lg); position: relative; }
.article-cover img { width: 100%; aspect-ratio: 16/7; object-fit: cover; }
.prose { max-width: 72ch; margin-inline: auto; }
.prose h2 { font-size: clamp(1.5rem,1.2rem+1.4vw,2rem); margin: 2.4rem 0 1rem; }
.prose h3 { font-size: 1.25rem; margin: 1.8rem 0 .8rem; color: var(--text); }
.prose p { margin-bottom: 1.2rem; color: var(--text-soft); line-height: 1.8; }
.prose ul.bullets { margin: 0 0 1.4rem; display: grid; gap: .7rem; }
.prose ul.bullets li { position: relative; padding-left: 1.6rem; color: var(--text-soft); line-height: 1.7; }
.prose ul.bullets li::before { content:""; position:absolute; left:0; top:.65em; width:7px;height:7px;border-radius:2px;
  background: var(--gold-500); transform: rotate(45deg); }
.prose strong { color: var(--text); }
.prose blockquote { border-left: 3px solid var(--gold-500); padding: .4rem 0 .4rem 1.4rem; margin: 1.6rem 0;
  font-size: 1.15rem; color: var(--text); font-style: italic; line-height: 1.6; }
.prose .callout { border: 1px solid var(--line-gold); background: var(--gold-soft); border-radius: var(--radius);
  padding: 1.3rem 1.5rem; margin: 1.8rem 0; }
.prose .callout b { color: var(--gold-400); }
.share-row { display: flex; align-items: center; gap: .8rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { position: relative; border-top: 1px solid var(--line); padding-top: clamp(3.5rem,6vw,5rem); margin-top: var(--space-section); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__brand img { height: 40px; margin-bottom: 1.1rem; }
.footer__brand p { color: var(--text-mut); font-size: .92rem; max-width: 32ch; }
.footer__loc { display: flex; align-items: center; gap: .5rem; margin-top: 1.1rem; color: var(--text-mut); font-size: .9rem; }
.footer__loc svg { width: 16px; height: 16px; color: var(--gold-500); }
.footer h5 { font-family:"IBM Plex Mono",monospace; font-size:.74rem; letter-spacing:.16em; text-transform:uppercase;
  color: var(--text-dim); margin-bottom: 1.1rem; }
.footer__links { display: grid; gap: .65rem; }
.footer__links a { color: var(--text-mut); font-size: .94rem; transition: color .2s, padding-left .2s; }
.footer__links a:hover { color: var(--gold-400); padding-left: 4px; }
.footer__news p { color: var(--text-mut); font-size: .92rem; margin-bottom: 1rem; }
.news-form { display: flex; gap: .5rem; }
.news-form input { flex: 1; padding: .7rem .9rem; border-radius: 9px; background: rgba(5,7,26,.6);
  border: 1px solid var(--line-strong); color: var(--text); font-size: .92rem; }
.news-form input:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(232,178,52,.14); }
.news-form button { flex: none; width: 46px; border-radius: 9px; border: none; cursor: pointer;
  background: var(--gold-500); color: #2a1c00; display: grid; place-items: center; transition: background-color .2s, transform .2s; }
.news-form button:hover { background: var(--gold-400); transform: translateX(2px); }
.news-form button svg { width: 18px; height: 18px; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding: 1.5rem 0; border-top: 1px solid var(--line); color: var(--text-dim); font-size: .86rem; }
.footer__bottom .socials { display: flex; gap: .6rem; }
.footer__bottom .socials a { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--text-mut); transition: all .25s; }
.footer__bottom .socials a:hover { color: var(--gold-400); border-color: var(--line-gold); transform: translateY(-2px); }
.footer__bottom .socials svg { width: 17px; height: 17px; }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
/* Reveal-on-scroll is scoped to .js (set by an inline <head> script that also
   removes the class if main.js never initialises) so content is NEVER left
   invisible if JavaScript fails to load. */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js [data-reveal].in { opacity: 1; transform: none; }
/* Safety-net state: snaps content visible with no transition, so throttled or
   background tabs can never leave a page looking blank. */
.js [data-reveal].reveal-now { opacity: 1 !important; transform: none !important; transition: none !important; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }
[data-reveal][data-delay="5"] { transition-delay: .40s; }

.hero [data-hero] { opacity: 0; transform: translateY(20px); animation: heroIn .9s var(--ease-out) forwards; }
.hero [data-hero="1"] { animation-delay: .1s; }
.hero [data-hero="2"] { animation-delay: .22s; }
.hero [data-hero="3"] { animation-delay: .34s; }
.hero [data-hero="4"] { animation-delay: .46s; }
.hero [data-hero="5"] { animation-delay: .58s; }
.hero [data-hero="6"] { animation-delay: .70s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; }
  .feature { grid-template-columns: 1fr; gap: 2rem; }
  .feature--rev .feature__media { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 760px) {
  .nav__links, .nav__actions .btn { display: none; }
  .nav__burger { display: block; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .row-2 { grid-template-columns: 1fr; }
  .mxdr__rows { grid-template-columns: 1fr; gap: 1.4rem; }
  .mxdr__core { order: -1; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__float { display: none; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .container { padding-inline: 18px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; }
  [data-reveal], .hero [data-hero] { opacity: 1 !important; transform: none !important; }
  .scanline, .marquee__track, .mxdr__core .ring::after, .pill .dot.live, .play-btn::after { animation: none !important; }
}
