/* ─────────────────────────────────────────────────────────
   QubitCS — site styles
   Engineering Trust at Quantum Speed
   Built on the official QubitCS brand system
   (Sora · Space Mono · navy / blue / cyan · the qubit gradient)
   ───────────────────────────────────────────────────────── */

/* ── Brand fonts — Sora (display) + Space Mono (mono).
   Self-hosted FIRST (fast, private, offline-capable), with a public CDN
   (jsDelivr · Fontsource) as an internet fallback so the fonts always
   resolve even if the local files aren't served. Paths are relative to
   this CSS file. */
@font-face {
  font-family: 'Sora';
  src: url('fonts/Sora-Variable.ttf') format('truetype-variations'),
       url('https://cdn.jsdelivr.net/fontsource/fonts/sora:vf@latest/latin-wght-normal.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('fonts/SpaceMono-Regular.ttf') format('truetype'),
       url('https://cdn.jsdelivr.net/fontsource/fonts/space-mono@latest/latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('fonts/SpaceMono-Bold.ttf') format('truetype'),
       url('https://cdn.jsdelivr.net/fontsource/fonts/space-mono@latest/latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ── Brand palette (official) ── */
  --navy:       #0A1B33;   /* ink / primary text */
  --blue-900:   #1E3A8A;   /* deep blue */
  --blue:       #2563EB;   /* primary action */
  --blue-500:   #3B82F6;
  --cyan:       #22D3EE;   /* electron / accent */
  --cyan-300:   #67E8F9;
  --ice:        #E0F2FE;
  --mist:       #EEF4FB;
  --slate-500:  #5B7AA6;   /* muted on light */
  --slate-300:  #7FA8D9;   /* muted on dark */

  /* dark surfaces (brand dark theme) */
  --ink:        #0A1B33;   /* deep space navy */
  --ink-2:      #0A1730;   /* card / surface on dark */
  --ink-3:      rgba(255,255,255,0.10);
  --ink-deep:   #060F1F;

  /* light surfaces */
  --paper:      #FFFFFF;
  --paper-2:    #F8FAFC;
  --paper-3:    #E2E8F0;   /* hairline on light */

  --text:       #0A1B33;
  --text-2:     #334866;
  --text-3:     #5B7AA6;   /* slate */
  --text-4:     #8AA1BE;

  /* soft accent tints */
  --cyan-soft:  rgba(34, 211, 238, 0.12);
  --blue-soft:  rgba(37, 99, 235, 0.10);

  /* legacy token remaps (so older inline refs stay on-brand) */
  --silver:     #7FA8D9;
  --gold:       #2563EB;          /* → brand blue */
  --gold-2:     #3B82F6;
  --gold-soft:  rgba(37, 99, 235, 0.10);

  /* the qubit gradient */
  --grad:       linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #22D3EE 100%);
  --grad-soft:  linear-gradient(135deg, #102A52 0%, #22D3EE 100%);

  /* Type */
  --display: 'Sora', system-ui, 'Roboto', 'Noto Sans', sans-serif;
  --body:    'Sora', system-ui, 'Roboto', 'Noto Sans', sans-serif;
  --mono:    'Space Mono', ui-monospace, 'Roboto Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ───── Layout primitives ───── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; width: 100%; }
.container-tight { max-width: 1080px; margin: 0 auto; padding: 0 32px; width: 100%; }

/* ───── Type ───── */
.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
.mono { font-family: var(--mono); }

/* emphasis word treatment — the qubit gradient */
.grad-text, .serif-i {
  font-family: var(--display);
  font-style: normal;
  font-weight: inherit;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: currentColor;
  opacity: 0.55;
}

/* ───── Navigation ───── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 27, 51, 0.82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  color: #E0F2FE;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.nav-brand { display: flex; align-items: center; gap: 11px; }
.nav-brand .mark { height: 30px; width: auto; aspect-ratio: 4 / 3; flex-shrink: 0; }
.nav-brand .wm   { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; line-height: 1; }
.nav-brand .wm .q  { color: #FFFFFF; }
.nav-brand .wm .cs { color: var(--cyan); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 13.5px; font-weight: 500; color: rgba(224,242,254,0.72);
  transition: color .15s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }

/* desktop Products dropdown */
.nav-dd { position: relative; }
.nav-dd-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--body); font-size: 13.5px; font-weight: 500;
  color: rgba(224,242,254,0.72); background: none; border: none; cursor: pointer;
  padding: 0; transition: color .15s;
}
.nav-dd-btn svg { transition: transform .2s ease; }
.nav-dd-btn:hover, .nav-dd-btn.active { color: #fff; }
.nav-dd.open .nav-dd-btn { color: #fff; }
.nav-dd.open .nav-dd-btn svg { transform: rotate(180deg); }
.nav-dd-menu {
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%) translateY(-6px);
  width: 320px; padding: 8px;
  background: #0C2140; border: 1px solid rgba(255,255,255,0.10); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  display: flex; flex-direction: column; gap: 2px;
}
.nav-dd-menu::before { content: ""; position: absolute; bottom: 100%; left: 0; right: 0; height: 16px; }
.nav-dd.open .nav-dd-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-dd-menu a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 11px 13px; border-radius: 10px; transition: background .14s;
}
.nav-dd-menu a:hover { background: rgba(255,255,255,0.05); }
.nav-dd-menu a.active { background: rgba(34,211,238,0.10); }
.nav-dd-menu .dd-t { font-size: 14px; font-weight: 600; color: #EAF3FF; }
.nav-dd-menu a.active .dd-t { color: var(--cyan); }
.nav-dd-menu .dd-d { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.02em; color: var(--slate-300); }

.nav-cta {
  font-family: var(--display); font-size: 13px; font-weight: 600;
  padding: 10px 17px; border-radius: 10px;
  background: var(--blue);
  color: #fff;
  border: none;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 0 0 4px rgba(34,211,238,0.20); }

/* mobile nav toggle (hamburger) */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px; color: #E0F2FE; cursor: pointer;
  padding: 0;
}
.nav-toggle-bars { position: relative; width: 18px; height: 12px; display: block; }
.nav-toggle-bars span {
  position: absolute; left: 0; height: 2px; width: 100%; border-radius: 2px;
  background: currentColor; transition: transform .22s ease, opacity .18s ease, top .22s ease;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 5px; }
.nav-toggle-bars span:nth-child(3) { top: 10px; }
.nav-toggle.is-open .nav-toggle-bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* mobile menu panel */
.mobile-menu {
  display: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: rgba(10, 27, 51, 0.98);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  overflow: hidden;
  max-height: 0; opacity: 0;
  transition: max-height .24s ease, opacity .2s ease;
}
.mobile-menu.is-open { max-height: 70vh; opacity: 1; }
.mobile-menu nav { display: flex; flex-direction: column; padding: 8px 24px 20px; gap: 2px; }
.mobile-menu nav a {
  font-size: 16px; font-weight: 500; color: rgba(224,242,254,0.82);
  padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-menu nav a.active { color: #fff; }
.mobile-menu nav a:last-of-type { border-bottom: none; }
.mobile-menu .mm-label {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--slate-300);
  padding: 14px 4px 6px;
}
.mobile-menu .mm-sub { padding-left: 16px; }
.mobile-menu .mm-sub.active { color: var(--cyan); }
.mobile-menu .mobile-cta {
  margin-top: 14px; background: var(--blue); color: #fff; border-radius: 10px;
  text-align: center; padding: 14px; font-weight: 600; border-bottom: none;
}

@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu { display: block; }
}

/* ───── Buttons ───── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px;
  font-family: var(--display); font-size: 14px; font-weight: 600;
  border: 1px solid transparent; transition: all .15s;
  cursor: pointer; line-height: 1;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 4px rgba(34,211,238,0.20); }
.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: rgba(255,255,255,0.20);
}
.btn-ghost:hover { border-color: rgba(34,211,238,0.6); background: rgba(255,255,255,0.04); }
.btn-ink {
  background: var(--blue); color: #fff;
}
.btn-ink:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(37,99,235,0.28); }

/* ───── Sections ───── */
section { padding: 96px 0; }
section.tight { padding: 72px 0; }
section.dark { background: var(--ink); color: #E0F2FE; }
section.cream { background: var(--paper-2); }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.025em;
  font-size: clamp(32px, 4.2vw, 52px); line-height: 1.08; margin-top: 14px;
  text-wrap: balance;
}
.section-head h2 em {
  font-style: normal; font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head p {
  font-size: 17px; color: var(--text-2); margin-top: 18px; max-width: 600px;
  line-height: 1.65;
}
section.dark .section-head p { color: var(--slate-300); }

/* ───── Cards ───── */
.card {
  background: #fff;
  border: 1px solid var(--paper-3);
  border-radius: 16px;
  padding: 28px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(10,27,51,0.10);
  border-color: rgba(37,99,235,0.4);
}
section.dark .card {
  background: var(--ink-2);
  border-color: var(--ink-3);
}
section.dark .card:hover {
  border-color: rgba(34,211,238,0.4);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

/* ───── Footer ───── */
footer.site-footer {
  background: var(--ink); color: var(--slate-300);
  padding: 80px 0 36px;
}
footer.site-footer h4 {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(127,168,217,0.7);
  margin-bottom: 18px; font-weight: 700;
}
footer.site-footer a { display: block; color: rgba(224,242,254,0.78); font-size: 14px; padding: 5px 0; transition: color .15s; }
footer.site-footer a:hover { color: var(--cyan); }
/* brand lockup must stay a horizontal flex row (override the generic footer link rule) */
footer.site-footer .nav-brand { display: flex; align-items: center; gap: 11px; padding: 0; }
footer.site-footer .nav-brand:hover { color: #fff; }
footer .ftr-grid {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
footer .ftr-bottom {
  padding-top: 28px; display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px; font-size: 12.5px; color: rgba(127,168,217,0.6);
}
footer .ftr-tag {
  font-family: var(--display); font-weight: 600; font-size: 17px;
  color: rgba(224,242,254,0.85); margin-top: 18px; max-width: 320px;
  line-height: 1.45; letter-spacing: -0.01em;
}
footer .ftr-tag span { color: var(--cyan); }

@media (max-width: 880px) {
  footer .ftr-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  footer .ftr-grid { grid-template-columns: 1fr; }
}

/* ───── Pillar bar (Compute · Innovate · Collaborate · Transform) ───── */
.pillars {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255,255,255,0.10); border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
}
.pillar {
  background: var(--ink-2); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.pillar .ico {
  width: 44px; height: 44px; border-radius: 11px;
  background: rgba(34,211,238,0.10);
  border: 1px solid rgba(34,211,238,0.22);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
}
.pillar:nth-child(2) .ico { background: rgba(37,99,235,0.12); border-color: rgba(37,99,235,0.3); color: var(--blue-500); }
.pillar:nth-child(3) .ico { background: rgba(127,168,217,0.10); border-color: rgba(127,168,217,0.25); color: var(--slate-300); }
.pillar:nth-child(4) .ico { background: rgba(34,211,238,0.10); border-color: rgba(34,211,238,0.22); color: var(--cyan-300); }
.pillar h5 {
  font-family: var(--display); font-weight: 700; font-size: 17px;
  color: #fff; letter-spacing: -0.01em;
}
.pillar p { font-size: 13px; color: var(--slate-300); line-height: 1.55; }

@media (max-width: 880px) {
  .pillars { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ───── Quantum background motif ───── */
.quantum-bg {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  z-index: 0;
}
.quantum-bg::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(34,211,238,0.20) 0%, transparent 60%);
  filter: blur(20px);
}
.quantum-bg::after {
  content: "";
  position: absolute;
  bottom: -160px; left: -160px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(37,99,235,0.22) 0%, transparent 60%);
  filter: blur(20px);
}
.quantum-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

/* ───── Hero ───── */
.hero {
  position: relative;
  background: var(--ink);
  color: #E0F2FE;
  padding: 100px 0 110px;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--slate-300);
  padding: 7px 14px; border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34,211,238,0.20);
}
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(44px, 6.6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-top: 28px;
  max-width: 1000px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede {
  font-size: 19px; color: var(--slate-300); line-height: 1.6;
  max-width: 600px; margin-top: 26px;
}
.hero-ctas { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }

/* ───── Tag chips ───── */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 99px;
  font-size: 12px; font-weight: 600;
  background: var(--cyan-soft);
  color: #0E7490;
  border: 1px solid rgba(34,211,238,0.30);
}
.chip-gold {
  background: var(--blue-soft); color: var(--blue);
  border-color: rgba(37,99,235,0.30);
}
.chip-dark {
  background: rgba(255,255,255,0.06);
  color: rgba(224,242,254,0.85);
  border-color: rgba(255,255,255,0.12);
}
.chip-status {
  background: rgba(34,211,238,0.10); color: var(--cyan-300);
  border-color: rgba(34,211,238,0.28);
}

/* ───── Product cards (home) ───── */
.products-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--paper-3);
  border-radius: 18px;
  padding: 32px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.product-card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--grad); opacity: 0; transition: opacity .2s;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37,99,235,0.35);
  box-shadow: 0 24px 50px rgba(10,27,51,0.10);
}
.product-card:hover::after { opacity: 1; }
.product-card .tag-line {
  display: inline-block;
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-3);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--paper-3);
  margin-bottom: 20px;
}
.product-card h3 {
  font-family: var(--display); font-size: 27px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.1;
}
.product-card .acro {
  font-family: var(--mono); font-size: 11px; color: var(--text-3);
  margin-top: 8px; letter-spacing: 0.04em;
}
.product-card p.desc {
  font-size: 14.5px; color: var(--text-2); line-height: 1.6;
  margin-top: 18px; flex: 1;
}
.product-card .ftrs {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px;
}
.product-card .ftrs span {
  font-size: 11.5px; font-weight: 600;
  padding: 5px 10px; border-radius: 99px;
  background: var(--mist); color: var(--text-2);
}
.product-card .more {
  margin-top: 24px;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em; color: var(--blue);
  display: inline-flex; align-items: center; gap: 8px;
}
.product-card .more svg { transition: transform .18s; }
.product-card:hover .more svg { transform: translateX(4px); }

@media (max-width: 980px) { .products-grid { grid-template-columns: 1fr; } }

/* ───── Pilots strip ───── */
.pilots-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 36px;
}
.pilot-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 26px 24px;
}
.pilot-stat .num {
  font-family: var(--display); font-size: 44px; font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.02em; line-height: 1;
}
.pilot-stat .lbl {
  font-size: 13px; color: var(--slate-300);
  margin-top: 10px;
}
@media (max-width: 880px) { .pilots-strip { grid-template-columns: 1fr 1fr; } }

/* ───── Pilot card grid (bank pilots) ───── */
.pilot-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 14px;
  margin-top: 32px;
}
.pilot {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 22px;
}
.pilot .name {
  font-family: var(--display); font-size: 15.5px; font-weight: 600; color: #fff;
}
.pilot .meta {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em;
  color: var(--slate-300); margin-top: 6px;
}
.pilot .live {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: var(--cyan);
}
.pilot .live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,0.20);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(34,211,238,0.04); } }
@media (max-width: 880px) { .pilot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pilot-grid { grid-template-columns: 1fr; } }

/* ───── CTA strip ───── */
.cta-strip {
  background: linear-gradient(135deg, #0A1B33 0%, #102A52 100%);
  border-radius: 24px;
  padding: 56px;
  color: #fff;
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center;
}
.cta-strip::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 90% 50%, rgba(34,211,238,0.18) 0%, transparent 50%);
  pointer-events: none;
}
.cta-strip h3 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08;
  letter-spacing: -0.025em; position: relative; z-index: 1;
  text-wrap: balance;
}
.cta-strip h3 em {
  font-style: normal; font-weight: 800;
  color: var(--cyan-300);
}
.cta-strip p {
  font-size: 15.5px; color: var(--slate-300); margin-top: 14px;
  position: relative; z-index: 1;
}
.cta-strip .cta-actions {
  display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1;
}
@media (max-width: 880px) {
  .cta-strip { grid-template-columns: 1fr; padding: 36px; }
}

/* ───── Page hero (interior pages) ───── */
.page-hero {
  background: var(--ink); color: #E0F2FE;
  padding: 72px 0 80px; position: relative; overflow: hidden;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .crumbs {
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--slate-300); margin-bottom: 22px;
}
.page-hero .crumbs a:hover { color: var(--cyan); }
.page-hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(38px, 5.2vw, 66px); line-height: 1.04;
  letter-spacing: -0.03em; max-width: 900px;
  text-wrap: balance;
}
.page-hero h1 em {
  font-style: normal; font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero p.lede {
  font-size: 18px; color: var(--slate-300); line-height: 1.6;
  max-width: 640px; margin-top: 22px;
}
.page-hero .badges { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }

/* ───── Two-column feature ───── */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; gap: 36px; } }

.feature-list { display: flex; flex-direction: column; gap: 24px; margin-top: 8px; }
.feature-list .it { display: flex; gap: 16px; align-items: flex-start; }
.feature-list .it .ico {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--cyan-soft);
  display: flex; align-items: center; justify-content: center;
  color: #0E7490; flex-shrink: 0;
}
.feature-list .it:nth-child(even) .ico { background: var(--blue-soft); color: var(--blue); }
.feature-list .it h4 { font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.feature-list .it p { font-size: 14px; color: var(--text-2); margin-top: 5px; line-height: 1.55; }

/* ───── Modules grid (for product detail pages) ───── */
.modules-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.module {
  background: #fff;
  border: 1px solid var(--paper-3);
  border-radius: 14px;
  padding: 24px;
  transition: border-color .18s, box-shadow .18s;
}
.module:hover { border-color: rgba(37,99,235,0.3); box-shadow: 0 8px 24px rgba(10,27,51,0.06); }
.module .mod-num {
  font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--text-3);
  letter-spacing: 0.06em;
}
.module h4 {
  font-family: var(--display); font-size: 18px; font-weight: 700;
  letter-spacing: -0.01em; margin-top: 6px;
}
.module p {
  font-size: 13.5px; color: var(--text-2); line-height: 1.55; margin-top: 10px;
}
.module ul {
  list-style: none; margin-top: 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.module ul li {
  font-size: 12.5px; color: var(--text-2);
  padding-left: 16px; position: relative;
}
.module ul li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--cyan);
}
@media (max-width: 980px) { .modules-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .modules-grid { grid-template-columns: 1fr; } }

/* ───── Process / steps ───── */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  position: relative;
}
.steps::before {
  content: ""; position: absolute; top: 22px; left: 30px; right: 30px;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--paper-3), var(--paper-3) 5px, transparent 5px, transparent 10px);
}
.step { position: relative; z-index: 1; }
.step .num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--paper-3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  margin-bottom: 18px;
}
.step:nth-child(2) .num { border-color: var(--cyan); color: #0E7490; }
.step:nth-child(3) .num { border-color: var(--blue); color: var(--blue); }
.step h4 { font-family: var(--display); font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.step p  { font-size: 13px; color: var(--text-2); line-height: 1.55; margin-top: 8px; }
@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
}

/* ───── Tech card (architecture) ───── */
.tech-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.tech-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 24px;
}
.tech-card .label {
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 12px;
}
.tech-card h4 { font-family: var(--display); font-size: 18px; font-weight: 700; color: #fff; }
.tech-card p { font-size: 13.5px; color: var(--slate-300); margin-top: 8px; line-height: 1.55; }
.tech-card .stack {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px;
}
.tech-card .stack span {
  font-family: var(--mono); font-size: 11px;
  padding: 4px 9px; border-radius: 6px;
  background: rgba(255,255,255,0.05);
  color: rgba(224,242,254,0.78);
}

@media (max-width: 720px) { .tech-grid { grid-template-columns: 1fr; } }

/* ───── Contact form ───── */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-3);
  display: block; margin-bottom: 8px;
}
.form input, .form select, .form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--paper-3);
  background: #fff;
  border-radius: 10px;
  font-family: var(--body); font-size: 15px; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.20);
}
.form textarea { resize: vertical; min-height: 120px; }
.form button { justify-self: flex-start; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }

/* ───── Misc ───── */
.divider {
  height: 1px; background: var(--paper-3); margin: 32px 0;
}
section.dark .divider { background: rgba(255,255,255,0.08); }

.kbd {
  font-family: var(--mono); font-size: 11px;
  padding: 2px 7px; border-radius: 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(224,242,254,0.78);
}

/* Anchor offset for sticky nav */
[id] { scroll-margin-top: 90px; }

/* ───── Skip link (a11y) ───── */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-family: var(--display); font-weight: 600; font-size: 14px;
  transition: top .15s ease;
}
.skip-link:focus { top: 16px; outline: 2px solid var(--cyan); outline-offset: 2px; }

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

/* ─────────────────────────────────────────────────────────
   RESPONSIVE REFINEMENTS — tablet & mobile
   ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  section { padding: 80px 0; }
  .two-col { gap: 44px; }
}

@media (max-width: 768px) {
  .container, .container-tight { padding: 0 22px; }
  section { padding: 64px 0; }
  section.tight { padding: 52px 0; }
  .section-head { margin-bottom: 40px; }

  .hero { padding: 64px 0 76px; }
  .hero h1 { font-size: clamp(36px, 9vw, 60px); }
  .hero p.lede { font-size: 17px; }
  .hero .pilots-strip { margin-top: 48px !important; }

  .page-hero { padding: 56px 0 60px; }

  .cta-strip { padding: 34px 26px; }

  /* let forced line-breaks in big headings flow naturally on small screens */
  .hero h1 br, .page-hero h1 br { display: none; }
}

@media (max-width: 520px) {
  .container, .container-tight { padding: 0 18px; }
  section { padding: 52px 0; }

  .hero h1 { font-size: clamp(32px, 10vw, 46px); letter-spacing: -0.03em; }
  .hero p.lede { font-size: 16px; }
  .hero-ctas { gap: 10px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  .section-head h2 { font-size: clamp(27px, 8vw, 36px); }
  .section-head p { font-size: 15.5px; }

  .product-card { padding: 26px 22px; }
  .product-card h3 { font-size: 24px; }
  .module { padding: 22px; }

  .cta-strip { text-align: left; }
  .cta-strip .cta-actions .btn { width: 100%; justify-content: center; }

  /* About → company entity table: stack label over value */
  .entity-grid { grid-template-columns: 1fr !important; gap: 4px 0 !important; }
  .entity-grid > div:nth-child(odd) { margin-top: 12px; }

  .pilot-stat .num { font-size: 38px; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
