/* ============================================================
   QUPASS / QuantumFold — Design System
   Palette: deep navy, ink, gold accent, cool neutrals
   Type: Space Grotesk (display) · Inter (body) · IBM Plex Mono (technical labels)
   ============================================================ */

:root {
  /* Core brand */
  --navy-900: #050f22;
  --navy-800: #081a34;
  --navy-700: #0d264e;
  --navy-600: #143156;
  --gold: #fba707;
  --gold-600: #e0940a;
  --gold-soft: rgba(251, 167, 7, .12);
  --gold-line: rgba(251, 167, 7, .28);

  /* Neutrals */
  --ink: #101828;
  --slate: #475467;
  --muted: #667085;
  --line: #e6e9ef;
  --line-soft: #eef1f6;
  --surface: #ffffff;
  --surface-soft: #f6f8fb;
  --surface-tint: #eef2f8;

  /* Dark surface tokens */
  --on-dark: rgba(255, 255, 255, .92);
  --on-dark-muted: rgba(210, 221, 238, .78);
  --dark-card: rgba(255, 255, 255, .04);
  --dark-line: rgba(255, 255, 255, .1);

  --radius: 16px;
  --radius-sm: 11px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(13, 38, 78, .05);
  --shadow-md: 0 18px 44px rgba(13, 38, 78, .1);
  --shadow-lg: 0 30px 70px rgba(5, 18, 38, .18);
}

* { -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; background: var(--navy-900); }

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: var(--surface);
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--navy-800); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--gold-600);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.eyebrow-light { color: var(--gold); }
.eyebrow-hero { color: var(--gold); }
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
}

.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: var(--navy-700);
  letter-spacing: -.025em;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.1;
  text-wrap: balance;
}
.section-title-light { color: #fff; }
.section-lead { color: var(--slate); font-size: 1.075rem; max-width: 720px; }
.section-lead-light { color: var(--on-dark-muted); }
.body-muted { color: var(--slate); }

.section-head { max-width: 780px; margin-bottom: .5rem; }

/* ---------- Layout ---------- */
.section { padding: 6.5rem 0; scroll-margin-top: 80px; position: relative; }
.section-soft { background: var(--surface-soft); }
.section-dark {
  background:
    radial-gradient(120% 120% at 85% -10%, rgba(251,167,7,.1), transparent 42%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: #fff;
  position: relative;
}
.section-dark::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}
.section-dark .container { position: relative; z-index: 1; }

/* ============================================================
   NAVBAR
   ============================================================ */
.qf-nav {
  background: #fff;
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
  padding: .35rem 0;
}
.qf-nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(13, 38, 78, .06);
}
.navbar-brand { display: flex; align-items: center; gap: .7rem; padding: 0; }
.brand-logo { height: 42px; width: auto; display: block; }
@media (max-width: 575px) { .brand-logo { height: 36px; } }
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), var(--shadow-sm);
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
}
.brand-fold {
  width: 17px; height: 17px;
  background:
    linear-gradient(135deg, var(--gold) 0 50%, transparent 50%),
    linear-gradient(315deg, var(--gold) 0 50%, transparent 50%);
  background-size: 100% 50%;
  background-position: top, bottom;
  background-repeat: no-repeat;
  transform: rotate(0deg);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  opacity: .95;
  border-radius: 2px;
}
.brand-word {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -.01em;
  color: var(--navy-700);
  line-height: 1;
  display: flex; flex-direction: column;
}
.brand-word em {
  font-family: "IBM Plex Mono", monospace;
  font-style: normal;
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-top: 3px;
}
.brand-word-light { color: #fff; }
.brand-word-light em { color: var(--on-dark-muted); }

.qf-nav .nav-link {
  color: var(--slate);
  font-weight: 600;
  font-size: .92rem;
  padding: .5rem .85rem;
  border-radius: 8px;
  position: relative;
  transition: color .2s ease;
}
.qf-nav .nav-link:hover { color: var(--navy-700); }
.qf-nav .nav-link.active { color: var(--navy-700); }
.qf-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: .85rem; right: .85rem; bottom: .12rem;
  height: 2px; border-radius: 2px;
  background: var(--gold);
}

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 11px; transition: all .2s ease; }
.btn i { font-size: .95em; }
.btn-lg { padding: .85rem 1.5rem; font-size: 1rem; }
.btn-sm { padding: .5rem .95rem; }

.btn-gold {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--navy-800);
  box-shadow: 0 10px 24px rgba(251, 167, 7, .28);
}
.btn-gold:hover {
  background: #ffb62b;
  border-color: #ffb62b;
  color: var(--navy-900);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(251, 167, 7, .36);
}
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .38);
  color: #fff;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, .1);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-900);
  padding: 8.5rem 0 6rem;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -3;
  background-image: url("assets/featured-background.jpg");
  background-size: cover;
  background-position: center 55%;
  transform: scale(1.04);
  filter: saturate(.95) contrast(1.03);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  opacity: .5;
}
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg,
      rgba(4,12,28,.94) 0%,
      rgba(4,12,28,.82) 34%,
      rgba(4,12,28,.5) 58%,
      rgba(4,12,28,.18) 82%,
      rgba(4,12,28,.12) 100%),
    linear-gradient(180deg, rgba(4,12,28,.2), rgba(4,12,28,.5));
}
.hero-inner { position: relative; }

.hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.7rem, 5.4vw, 4.7rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -.035em;
  color: #fff;
  text-shadow: 0 3px 22px rgba(3, 13, 28, .5);
}
.hero-title span {
  color: var(--gold);
  display: inline-block;
}
.hero-lead {
  font-size: 1.18rem;
  color: rgba(255, 255, 255, .9);
  max-width: 620px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}
.hero-lead strong { color: #fff; font-weight: 700; }
.hero-points { color: #fff; font-weight: 600; font-size: .95rem; }
.hero-points i { color: var(--gold); margin-right: .45rem; }

/* Hero glass panel */
.hero-panel {
  position: relative;
  border-radius: var(--radius);
  padding: 2rem 1.85rem;
  background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.04));
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-panel-glow {
  position: absolute; top: -40%; right: -30%;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(251,167,7,.35), transparent 70%);
  pointer-events: none;
}
.hero-panel-title {
  font-family: "Space Grotesk", sans-serif;
  color: #fff; font-weight: 700; font-size: 1.35rem; line-height: 1.25;
}
.hero-panel-lead { color: rgba(255, 255, 255, .78); font-size: .95rem; }
.hero-panel-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.hero-panel-list li {
  display: flex; align-items: center; gap: .75rem;
  color: #fff; font-weight: 600; font-size: .96rem;
  padding: .6rem .7rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
}
.hp-icon {
  width: 34px; height: 34px; flex: 0 0 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 1.05rem;
}

/* ============================================================
   CREDIBILITY BAND
   ============================================================ */
.credibility-band {
  background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 2.25rem 0;
}
.cred-head { text-align: center; margin-bottom: 1.4rem; }
.kicker {
  font-family: "IBM Plex Mono", monospace;
  color: var(--gold);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  display: block; margin-bottom: .4rem;
}
.cred-sub { color: var(--on-dark-muted); font-size: .95rem; margin: 0; }
.cred-logos {
  display: flex; flex-wrap: wrap; gap: .6rem;
  align-items: center; justify-content: center;
}
.cred-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .9rem; border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--on-dark);
  font-size: .82rem; font-weight: 600;
  white-space: nowrap;
}
.cred-tag i { color: var(--gold); }
.cred-cta {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--gold); font-weight: 700; text-decoration: none;
  font-size: .85rem; padding: .5rem .4rem;
  transition: gap .2s ease;
}
.cred-cta:hover { color: #ffc44d; gap: .6rem; }

/* ============================================================
   CARDS
   ============================================================ */
.feature-card {
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-line);
}
.feature-card-dark {
  background: var(--dark-card);
  border-color: var(--dark-line);
  box-shadow: none;
  backdrop-filter: blur(4px);
}
.feature-card-dark:hover {
  background: rgba(255, 255, 255, .07);
  border-color: var(--gold-line);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
}
.feature-card-dark .feature-title { color: #fff; }
.feature-card-dark .feature-text { color: var(--on-dark-muted); }
.feature-card-wide { padding: 1.75rem 2rem; }

.feature-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  color: var(--navy-700);
  font-size: 1.12rem;
  letter-spacing: -.01em;
  margin-bottom: .5rem;
}
.feature-text { color: var(--slate); font-size: .95rem; margin-bottom: 0; }

.icon-box {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold-600);
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
  border: 1px solid var(--gold-line);
}
.feature-card-dark .icon-box { color: var(--gold); }
.mini-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold-600);
  font-size: 1.1rem;
  margin-bottom: .9rem;
  border: 1px solid var(--gold-line);
}
.tech-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .1em;
  margin-bottom: .9rem;
  opacity: .85;
}

/* Fact cards (about) */
.fact-card {
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, border-color .25s ease;
}
.fact-card:hover { transform: translateY(-4px); border-color: var(--gold-line); }
.fact-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: .68rem; text-transform: uppercase;
  letter-spacing: .14em; color: var(--muted);
  font-weight: 600; margin-bottom: .55rem;
}
.fact-value {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600; font-size: 1.12rem; color: var(--navy-700);
  line-height: 1.3;
}

/* Team band */
.team-band {
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  border-radius: var(--radius);
  padding: 1.75rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.team-band::after {
  content: "";
  position: absolute; top: 0; right: 0;
  width: 4px; height: 100%;
  background: var(--gold);
}
.team-band-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: .7rem; text-transform: uppercase;
  letter-spacing: .16em; color: var(--gold);
  font-weight: 600; margin-bottom: .6rem;
}
.team-band-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700; font-size: 1.25rem; margin-bottom: .6rem;
}
.team-band-text { color: var(--on-dark-muted); font-size: .95rem; margin: 0; }

/* ---------- Pills / chips ---------- */
.pill {
  display: inline-flex; align-items: center;
  padding: .55rem 1rem; border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  color: var(--navy-700);
  font-weight: 600; font-size: .88rem;
}
.pill-solid {
  background: var(--gold); border-color: var(--gold);
  color: var(--navy-800); font-weight: 700;
  padding: 0.20rem 0.55rem; font-size: 0.68rem;
}

/* ---------- Code card (applications) ---------- */
.code-card {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.code-card-bar {
  display: flex; align-items: center; gap: .45rem;
  padding: .8rem 1.1rem;
  background: var(--surface-tint);
  border-bottom: 1px solid var(--line);
}
.code-card-bar .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: #cdd5e0;
}
.code-card-bar .dot:nth-child(1) { background: #ff5f57; }
.code-card-bar .dot:nth-child(2) { background: #febc2e; }
.code-card-bar .dot:nth-child(3) { background: #28c840; }
.code-card-file {
  font-family: "IBM Plex Mono", monospace;
  font-size: .78rem; color: var(--muted);
  margin-left: .5rem;
}
.code-card-body { padding: 1.85rem; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.check-list li {
  display: flex; align-items: flex-start; gap: .65rem;
  color: var(--slate); font-size: .96rem;
}
.check-list li i { color: var(--gold-600); font-size: 1.1rem; margin-top: .12rem; flex: 0 0 auto; }

/* ---------- Compat strip ---------- */
.compat-strip {
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}
.compat-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem; text-transform: uppercase;
  letter-spacing: .14em; color: var(--muted);
  font-weight: 600; margin-bottom: 1rem;
}
.compat-chip {
  display: inline-flex; align-items: center;
  padding: .5rem .9rem; border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--navy-700);
  font-family: "IBM Plex Mono", monospace;
  font-size: .82rem; font-weight: 500;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.compat-chip:hover { border-color: var(--gold-line); color: var(--gold-600); transform: translateY(-2px); }

/* ---------- Flow band (db proxy) ---------- */
.flow-band {
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  border-radius: var(--radius);
  padding: 2rem;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.flow-band-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem; text-transform: uppercase;
  letter-spacing: .16em; color: var(--gold);
  font-weight: 600; margin-bottom: 1.2rem;
}
.flow-path { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.flow-node {
  padding: .55rem .85rem; border-radius: 9px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  font-weight: 600; font-size: .92rem;
}
.flow-node-accent {
  background: var(--gold-soft);
  border-color: var(--gold-line);
  color: var(--gold);
}
.flow-arrow { color: var(--gold); font-size: 1rem; }
.flow-divider { border-color: rgba(255,255,255,.14); margin: 1.4rem 0; opacity: 1; }
.flow-note { color: var(--on-dark-muted); font-size: .92rem; margin: 0; }

/* ---------- AI pipeline ---------- */
.pipeline-band {
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  border-radius: var(--radius);
  padding: 2.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.pipeline-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(90% 120% at 100% 0%, rgba(251,167,7,.16), transparent 55%);
  pointer-events: none;
}
.pipeline-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem; text-transform: uppercase;
  letter-spacing: .16em; color: var(--gold);
  font-weight: 600; margin-bottom: 1.4rem;
  position: relative;
}
.pipeline-flow {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem;
  position: relative; margin-bottom: 1.4rem;
}
.pipeline-step {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600; font-size: 1rem;
  padding: .55rem 1rem; border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  position: relative;
}
.pipeline-step:not(:last-child)::after {
  content: "\2192";
  position: absolute; right: -.75rem; top: 50%;
  transform: translateY(-50%);
  color: var(--gold); font-size: .9rem;
}
.pipeline-step-final { background: var(--gold); border-color: var(--gold); color: var(--navy-800); }
.pipeline-note { color: var(--on-dark-muted); font-size: .95rem; position: relative; }

/* ---------- Deployment / flow steps ---------- */
.deploy-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.flow-step {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.35rem;
  background: var(--surface-soft);
  transition: border-color .2s ease, transform .2s ease;
}
.flow-step:hover { border-color: var(--gold-line); transform: translateY(-3px); }
.flow-step .num {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--navy-700); color: var(--gold);
  font-family: "IBM Plex Mono", monospace;
  font-size: .85rem; font-weight: 600;
  margin-bottom: 1rem;
}
.flow-step-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600; color: var(--navy-700); font-size: 1rem; margin-bottom: .4rem;
}
.flow-step-text { color: var(--slate); font-size: .88rem; margin: 0; }


/* ---------- FAQ ---------- */
.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.faq-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.35rem .15rem;
  cursor: pointer;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::marker {
  display: none;
}

.faq-question {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--navy-700);
  letter-spacing: -.01em;
  transition: color .2s ease;
}

.faq-summary:hover .faq-question {
  color: var(--navy-600);
}

.faq-toggle {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--gold-600);
  font-size: .85rem;
  transition:
    transform .22s ease,
    background .22s ease,
    border-color .22s ease;
}

.faq-item[open] .faq-toggle {
  transform: rotate(45deg);
  background: var(--gold-soft);
  border-color: var(--gold-line);
}

.faq-answer {
  max-width: 820px;
  padding: 0 4rem 1.45rem .15rem;
}

.faq-answer p {
  color: var(--slate);
  font-size: .95rem;
  line-height: 1.72;
  margin: 0;
}

.faq-summary:focus-visible {
  outline: 3px solid rgba(251, 167, 7, .24);
  outline-offset: -2px;
  border-radius: 8px;
}

@media (max-width: 767.98px) {
  .faq-summary {
    gap: 1rem;
    padding: 1.15rem 0;
  }

  .faq-question {
    font-size: 1rem;
  }

  .faq-toggle {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .faq-answer {
    padding: 0 2.8rem 1.25rem 0;
  }

  .faq-answer p {
    font-size: .93rem;
  }
}





/* ============================================================
   VALIDATION
   ============================================================ */
.awards-card, .ip-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}
.award-item { display: flex; gap: 1.1rem; align-items: flex-start; }
.award-icon {
  width: 54px; height: 54px; flex: 0 0 54px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--gold-soft);
  color: var(--navy-700);
  font-size: 1.4rem;
  border: 1px solid var(--gold-line);
}
.award-icon-gold { background: var(--gold); color: var(--navy-800); border-color: var(--gold); }
.award-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700; color: var(--navy-700); font-size: 1.15rem;
}
.award-text { color: var(--slate); font-size: .95rem; margin-bottom: .75rem; }
.award-divider { border-color: var(--line); margin: 1.6rem 0; opacity: 1; }
.award-link {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .8rem; border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--navy-700);
  text-decoration: none; font-size: .84rem; font-weight: 600;
  transition: all .2s ease;
}
.award-link:hover { color: var(--gold-600); border-color: var(--gold-line); background: var(--gold-soft); }
.award-link i { font-size: .9rem; }

.eco-chip {
  display: inline-flex; align-items: center;
  padding: .5rem .85rem; border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--slate);
  font-size: .82rem; font-weight: 600;
}

.ip-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700; color: var(--navy-700);
  font-size: 1.3rem; margin-bottom: .75rem;
}
.patent-box {
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
  background: var(--gold-soft);
  margin: 1.25rem 0;
}
.patent-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .1em;
}
.patent-number {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700; font-size: 1.5rem; color: var(--navy-700);
  letter-spacing: .02em; margin: .2rem 0;
}
.patent-status {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .85rem; font-weight: 600; color: var(--gold-600);
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.highlight-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.highlight-list li {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: start;
  column-gap: 1rem;
}
.hl-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: .3rem .6rem;
  border-radius: 6px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  color: var(--navy-700);
  font-family: "IBM Plex Mono", monospace;
  font-size: .68rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.highlight-list li > span:last-child {
  color: var(--slate);
  font-size: .92rem;
  line-height: 1.55;
  padding-top: .25rem;
}

@media (max-width: 575.98px) {
  .highlight-list li {
    grid-template-columns: 160px 1fr;
    row-gap: .45rem;
  }

  .hl-badge {
    justify-self: start;
  }
}

/* ============================================================
   PROOF CAROUSEL
   ============================================================ */
.proof-block { margin-top: 2.5rem; }
.proof-carousel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--navy-900);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.proof-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(251,167,7,.10), transparent 55%),
    linear-gradient(180deg, var(--navy-700), var(--navy-900));
  overflow: hidden;
}
.proof-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
/* Document scans read better fully visible on a light matte. */
.proof-frame-doc { background: #f3f6fb; padding: 1.5rem; }
.proof-img-doc { object-fit: contain; }

/* Keep the complete photograph visible at every viewport size.
   The image letterboxes inside the carousel frame instead of being cropped. */
@media (max-width: 991.98px) {
  .proof-frame { aspect-ratio: 4 / 3; }
}

@media (max-width: 575.98px) {
  .proof-frame { aspect-ratio: 4 / 3; }
}

.proof-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 3rem 1.75rem 1.35rem;
  background: linear-gradient(180deg, transparent, rgba(6,18,38,.42) 48%, rgba(6,18,38,.88));
  text-align: left;
  pointer-events: none;
}
.proof-tag {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--navy-900);
  background: var(--gold);
  padding: .28rem .6rem; border-radius: 6px;
  margin-bottom: .6rem;
}
.proof-text {
  margin: 0;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  letter-spacing: -.01em;
  max-width: 720px;
  text-shadow: 0 2px 10px rgba(3,13,28,.5);
}

.proof-carousel .carousel-indicators {
  margin-bottom: .9rem;
  z-index: 4;
}
.proof-carousel .carousel-indicators button {
  width: 30px; height: 4px;
  margin: 0 4px;
  border: 0; border-radius: 999px;
  background-color: rgba(255,255,255,.45);
  opacity: 1;
  transition: background-color .2s ease;
}
.proof-carousel .carousel-indicators button.active { background-color: var(--gold); }

.proof-carousel .carousel-control-prev,
.proof-carousel .carousel-control-next {
  width: 46px; height: 46px;
  top: 50%; transform: translateY(-50%);
  margin: 0 .8rem;
  border-radius: 50%;
  background: rgba(6,18,38,.62);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(4px);
  opacity: 1;
  transition: background-color .2s ease, transform .2s ease;
}
.proof-carousel .carousel-control-prev { left: 0; }
.proof-carousel .carousel-control-next { right: 0; }
.proof-carousel .carousel-control-prev:hover,
.proof-carousel .carousel-control-next:hover {
  background: var(--gold);
  transform: translateY(-50%) scale(1.06);
}
.proof-carousel .carousel-control-prev-icon,
.proof-carousel .carousel-control-next-icon {
  width: 1.1rem; height: 1.1rem;
}
@media (max-width: 575px) {
  .proof-carousel .carousel-control-prev,
  .proof-carousel .carousel-control-next { width: 40px; height: 40px; margin: 0 .4rem; }
  .proof-caption { padding: 3rem 1.15rem 1.15rem; }
}

/* ============================================================
   CTA
   ============================================================ */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(251,167,7,.18), transparent 45%),
    linear-gradient(150deg, var(--navy-700), var(--navy-900));
  border-radius: 26px;
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.08);
}
.cta-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(80% 80% at 50% 0%, #000, transparent 75%);
}
.cta-inner { position: relative; }
.cta-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700; color: #fff;
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  letter-spacing: -.025em; line-height: 1.1;
  text-wrap: balance;
}
.cta-lead { color: var(--on-dark-muted); max-width: 680px; font-size: 1.08rem; }
.cta-tags {
  font-family: "IBM Plex Mono", monospace;
  color: rgba(210, 221, 238, .6);
  font-size: .82rem; letter-spacing: .04em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-900);
  color: var(--on-dark-muted);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.footer-logo { height: 54px; width: auto; display: block; }
.footer-tagline { color: var(--on-dark-muted); font-size: .95rem; }
.footer-address { color: var(--on-dark-muted); line-height: 1.65; }
.footer-contact-row { display: flex; align-items: flex-start; gap: .75rem; }
.footer-contact-row > i { color: var(--gold); font-size: 1rem; margin-top: .3rem; flex: 0 0 auto; }
.footer-contact-row .label {
  color: #fff; font-family: "IBM Plex Mono", monospace;
  font-size: .68rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: .3rem;
}
.footer-contact-row a { color: var(--on-dark); text-decoration: none; }
.footer-contact-row a:hover { color: var(--gold); }

.footer-contact-links { display: inline-flex; flex-direction: column; align-items: flex-end; }
.footer-contact-link { display: flex; align-items: center; gap: .5rem; }
.footer-contact-link i { color: var(--gold); }
.footer-contact-link a { color: var(--on-dark); text-decoration: none; }
.footer-contact-link a:hover { color: var(--gold); }

.footer-social { display: flex; justify-content: flex-end; align-items: center; gap: .55rem; }
.footer-social-label { color: var(--on-dark-muted); font-size: .9rem; margin-right: .2rem; }
.footer-social a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
  color: #fff; text-decoration: none; transition: .2s ease;
}
.footer-social a:hover { background: var(--gold); color: var(--navy-800); border-color: var(--gold); transform: translateY(-2px); }
.footer-small { color: rgba(210, 221, 238, .55); font-size: .82rem; }
.text-heart { color: #ff5f6e; }

.footer-rule { border-color: rgba(255,255,255,.1); margin: 2.5rem 0 1.5rem; opacity: 1; }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: .78rem; color: rgba(210, 221, 238, .5);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .status-dot { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .section { padding: 4.5rem 0; }
  .hero { padding: 6.5rem 0 4rem; }
  .qf-nav { background: rgba(255,255,255,.97); }
  .footer-social { justify-content: flex-start; }
  .footer-contact-links { align-items: flex-start; }
  .text-lg-end { text-align: left !important; }
  .navbar-collapse { padding-bottom: .75rem; }
}
@media (max-width: 767px) {
  .pipeline-step:not(:last-child)::after { display: none; }
  .pipeline-flow { justify-content: center; }
  .flow-path { justify-content: center; }
}

@media (max-width: 575px) {
  .hero-title { font-size: 2.5rem; }
  .hero-lead { font-size: 1.05rem; }
  .cta-band { padding: 2.75rem 1.35rem; }
  .pipeline-band, .flow-band { padding: 1.75rem; }
  .awards-card, .ip-card { padding: 1.5rem; }
  .hl-badge { min-width: 78px; }
}
