/* ===================================================
   BRIDGE QUANTUM · page tokens + hero
   Sub-brand of Bridge GRC: same dark site, own cool accent.
   Green is reserved to mean "quantum-safe" in visuals.
   =================================================== */

.q-page {
  /* Type. Headings run through one variable so the final face is a one-line swap.
     JetBrains Mono is retired on these pages: UI labels use the body sans,
     and only real code / ciphertext uses a monospace. */
  --font-display: 'Geist', 'Inter', sans-serif;
  --font-mono: 'Inter', sans-serif;
  --q-font-code: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Quantum accent (used sparingly) */
  --q-ice: #8EC5FF;
  --q-ice-bright: #B9DCFF;
  --q-ice-dim: rgba(142, 197, 255, 0.14);
  --q-ice-line: rgba(142, 197, 255, 0.22);

  /* Classification scale (functional colour, not decoration) */
  --c-broken: #FF4D4F;
  --c-vuln: #FF8A3D;
  --c-strengthen: #F2C14E;
  --c-resistant: #8EC5FF;
  --c-pq: #2DC882;
  --c-unknown: #7C8194;

  background: var(--bg-void);
}

/* The site-wide cursor glow takes the Quantum tint here */
body.q-page::before {
  background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(142, 197, 255, 0.022), transparent 40%);
}

/* Headings: tighter, calmer weight for the new face */
.q-page .section-title { font-weight: 700; letter-spacing: -0.035em; }

/* Labels that used to be mono */
.q-page .micro-label { color: var(--q-ice); font-weight: 600; font-size: 12px; letter-spacing: 0; }

/* ---- Buttons: compact, sentence case, squared-off ---- */
.q-page .btn {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 8px;
  gap: 8px;
}
.q-page .btn--sm { padding: 8px 14px; font-size: 13.5px; }
.q-page .btn--lg { padding: 11px 18px; font-size: 14.5px; }
.q-page .btn--xl { padding: 13px 22px; font-size: 15.5px; }
.q-page .btn--primary { background: var(--q-ice); color: #04070D; }
.q-page .btn--primary:hover { background: var(--q-ice-bright); transform: none; box-shadow: 0 0 0 4px rgba(142, 197, 255, 0.14); }
.q-page .btn--ghost { border-color: rgba(255, 255, 255, 0.14); }
.q-page .btn--ghost:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.03); }
.q-page .btn svg { width: 14px; height: 14px; }

/* Quiet text action, used next to a single primary button */
.q-textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 11px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease;
}
.q-textlink svg { width: 14px; height: 14px; transition: transform 0.25s ease; }
.q-textlink:hover { color: var(--q-ice-bright); }
.q-textlink:hover svg { transform: translateX(3px); }

.q-page .navbar__link::after { background: var(--q-ice); }

/* =========================================
   1 · HERO: ciphertext field + quantum lens
   ========================================= */
.q-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  max-height: 1100px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(70% 60% at 62% 40%, rgba(142, 197, 255, 0.05), transparent 70%), var(--bg-void);
}
.q-hero.is-static {
  background:
    radial-gradient(40% 40% at 64% 42%, rgba(142, 197, 255, 0.12), transparent 70%),
    var(--bg-void);
}

.q-hero__field,
.q-hero__lens {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.q-hero__field { z-index: 0; }
.q-hero__lens { z-index: 1; }

/* readability veil behind the copy only */
.q-hero::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 75%; height: 72%;
  background: radial-gradient(75% 85% at 0% 100%, rgba(5, 5, 8, 0.92), rgba(5, 5, 8, 0.55) 45%, transparent 75%);
  z-index: 1;
  pointer-events: none;
}

.q-hero__inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-top: 96px;
  padding-bottom: clamp(32px, 7vh, 72px);
  pointer-events: none;
}
.q-hero__inner > * { pointer-events: auto; }

.q-hero__copy { max-width: 640px; }

.q-hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, min(4.9vw, 7.6vh), 76px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--text-primary);
  margin-bottom: clamp(14px, 2.2vh, 22px);
  max-width: 11em;
  text-wrap: balance;
}
.q-hero__title em { font-style: normal; color: var(--q-ice); }

.q-hero__sub {
  font-size: clamp(15.5px, min(1.15vw, 2vh), 17.5px);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 440px;
  margin-bottom: clamp(20px, 3.4vh, 32px);
}

.q-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }

/* Legend card, bottom-right */
.q-legend-card {
  width: 268px;
  flex: none;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 9, 14, 0.82);
}
.q-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 12px;
}
.q-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}
/* ---- Class glyphs (shared across the page) ---- */
.q-glyph { position: relative; width: 10px; height: 10px; flex: none; display: inline-block; }
.q-glyph--broken::before,
.q-glyph--broken::after,
.q-glyph--vuln::before,
.q-glyph--vuln::after { content: ''; position: absolute; width: 4px; height: 4px; background: var(--c-vuln); }
.q-glyph--vuln::before { left: 1px; top: 2px; }
.q-glyph--vuln::after  { left: 5px; top: 5px; }
.q-glyph--broken::before { left: 0; top: 1px; background: var(--c-broken); }
.q-glyph--broken::after  { left: 6px; top: 6px; background: var(--c-broken); }
.q-glyph--strengthen::before { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: var(--c-strengthen); }
.q-glyph--resistant::before { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: var(--c-resistant); }
.q-glyph--pq::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--c-pq); }
.q-glyph--pq::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--c-pq); }
.q-glyph--unknown::before { content: ''; position: absolute; inset: 2px; border: 1px solid var(--c-unknown); }

/* ---- Hero responsive ---- */
@media (max-width: 1024px) {
  .q-legend-card { display: none; }
}
@media (max-width: 768px) {
  .q-hero { max-height: none; }
  .q-hero::after { width: 100%; height: 70%; background: linear-gradient(0deg, rgba(5, 5, 8, 0.92) 30%, transparent); }
  .q-hero__title { font-size: clamp(36px, 10vw, 50px); }
  .q-hero__sub { font-size: 15.5px; }
}
