/* ==========================================================================
   Qomrah — Trusted AI for Enterprise Workflows
   Midnight indigo · gold illumination · aperture light
   ========================================================================== */

:root {
  /* surfaces */
  --ink:       #060a18;
  --ink-2:     #0a1024;
  --panel:     #10162e;
  --panel-2:   #161d38;
  --panel-3:   #1c2444;

  /* brand */
  --gold:      #cba14c;
  --gold-soft: #e2c77e;
  --teal:      #45a6b6;
  --teal-deep: #1f6f7d;

  /* text */
  --text:   #eef0fb;
  --muted:  #adb2d6;
  --faint:  #7c83ac;

  /* lines */
  --line:      rgba(203, 161, 76, .18);
  --line-soft: rgba(215, 219, 242, .09);
  --line-cool: rgba(69, 166, 182, .22);

  /* type */
  --display: "Fraunces", Georgia, serif;
  --body:    "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* metrics */
  --maxw: 1200px;
  --gut:  clamp(20px, 5vw, 56px);
  --sec-y: clamp(76px, 10vw, 132px);
  --radius: 16px;
  --radius-sm: 11px;

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

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.62;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: 0;
  color: var(--text);
}

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

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

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

/* --------------------------------------------------------------------------
   Ambient atmosphere
   -------------------------------------------------------------------------- */
.constellation-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .55;
}

.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 460px; height: 460px;
  margin: -230px 0 0 -230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(203, 161, 76, .10), transparent 62%);
  pointer-events: none;
  z-index: 1;
  transform: translate3d(-50vw, -50vh, 0);
  transition: opacity .4s ease;
  opacity: 0;
  will-change: transform;
}

.ambient-layer { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
}
.orb-a { width: 520px; height: 520px; top: -140px; left: -120px;
  background: radial-gradient(circle, rgba(31, 111, 125, .55), transparent 70%); }
.orb-b { width: 460px; height: 460px; top: 42%; right: -160px;
  background: radial-gradient(circle, rgba(203, 161, 76, .28), transparent 70%); }
.orb-c { width: 600px; height: 600px; bottom: -220px; left: 30%;
  background: radial-gradient(circle, rgba(28, 36, 68, .8), transparent 70%); }

.scan-beam {
  position: absolute;
  top: 0; left: -30%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(226, 199, 126, .05), transparent);
  transform: skewX(-14deg);
  animation: scan 13s linear infinite;
}
@keyframes scan { from { left: -60%; } to { left: 130%; } }

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.section-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
  padding-block: var(--sec-y);
}

main { position: relative; z-index: 2; }

.eyebrow,
.section-kicker,
.mini-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.section-kicker span {
  width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  display: inline-block;
}
.eyebrow span { width: 24px; height: 1px; background: var(--gold); opacity: .7; display: inline-block; }
.section-kicker.centered { justify-content: center; }
.mini-label { gap: 8px; }

/* Buttons */
.btn {
  --bg: var(--gold);
  --fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s ease, border-color .2s ease;
}
.btn-primary {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  box-shadow: 0 10px 30px -12px rgba(203, 161, 76, .6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(203, 161, 76, .7); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--gold); background: rgba(203, 161, 76, .06); transform: translateY(-2px); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Header + navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(6, 10, 24, .92), rgba(6, 10, 24, .55));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.navbar {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 14px var(--gut);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  color: var(--gold-soft);
  letter-spacing: -.01em;
}
.brand-logo { width: 38px; height: 38px; filter: drop-shadow(0 2px 10px rgba(69, 166, 182, .4)); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-inline-start: auto;
}
.nav-links > a,
.nav-item > a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 0;
  transition: color .2s ease;
  cursor: pointer;
}
.nav-links > a:hover,
.nav-item > a:hover { color: var(--text); }

.nav-item { position: relative; }
.nav-item > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-item.has-mega > a::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .6;
  transition: transform .2s ease;
}
.nav-item.has-mega:hover > a::after { transform: rotate(225deg) translateY(-1px); }

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  padding: 10px 20px;
  border-radius: 999px;
  transition: transform .2s var(--ease), box-shadow .2s ease;
  box-shadow: 0 8px 24px -12px rgba(203, 161, 76, .7);
}
.nav-cta:hover { transform: translateY(-2px); }

/* Mega menu */
.mega-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: min(680px, 88vw);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  z-index: 50;
}
.mega-menu.compact-mega { width: min(560px, 88vw); }
.nav-item.has-mega:hover .mega-menu,
.nav-item.has-mega:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-menu::before {
  content: "";
  position: absolute;
  top: -16px; left: 0; right: 0; height: 16px;
}
.mega-intro { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.mega-intro p {
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
}
.mega-intro h3 { font-size: 20px; margin-bottom: 6px; }
.mega-intro span { font-size: 13.5px; color: var(--faint); }

.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mega-grid.two-col { grid-template-columns: repeat(2, 1fr); }
.mega-grid a {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 13px; border-radius: 11px;
  transition: background .18s ease, transform .18s ease;
}
.mega-grid a:hover { background: rgba(203, 161, 76, .07); transform: translateY(-1px); }
.mega-grid strong { font-size: 14px; font-weight: 600; color: var(--text); }
.mega-grid span { font-size: 12.5px; color: var(--faint); line-height: 1.45; }

/* Mobile toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  margin-inline-start: auto;
}
.menu-toggle span {
  width: 18px; height: 1.6px; background: var(--text);
  transition: transform .25s var(--ease), opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.3px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-top: calc(var(--sec-y) + 46px);
  min-height: 100vh;
}
.hero-content .eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 500;
  letter-spacing: -.025em;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--gold-soft); font-style: italic; }
.hero-subtitle { font-size: clamp(18px, 2.2vw, 22px); color: var(--text); font-weight: 500; margin-bottom: 16px; }
.hero-copy { font-size: 16.5px; color: var(--muted); max-width: 52ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }

.signal-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.signal-strip span,
.cta-proof-row span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 6px 13px;
  background: rgba(255, 255, 255, .015);
}

/* Hero visual */
.hero-visual { position: relative; }

.ai-orbit {
  position: absolute;
  inset: -6% -4% -6% -4%;
  pointer-events: none;
  z-index: 0;
}
.ai-orbit span {
  position: absolute;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--teal);
  border: 1px solid var(--line-cool);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(6, 10, 24, .7);
  animation: floaty 6s ease-in-out infinite;
}
.ai-orbit span:nth-child(1) { top: 2%;  left: 8%;  animation-delay: 0s; }
.ai-orbit span:nth-child(2) { top: 12%; right: 2%; animation-delay: .6s; color: var(--gold); border-color: var(--line); }
.ai-orbit span:nth-child(3) { bottom: 20%; left: -2%; animation-delay: 1.2s; }
.ai-orbit span:nth-child(4) { bottom: 4%; right: 10%; animation-delay: 1.8s; color: var(--gold); border-color: var(--line); }
.ai-orbit span:nth-child(5) { top: 44%; left: -4%; animation-delay: 2.4s; }
.ai-orbit span:nth-child(6) { top: 40%; right: -3%; animation-delay: 3s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.platform-window {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 50px 110px -50px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255,255,255,.015) inset;
}
.animated-window { animation: rise 1s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.window-top,
.assistant-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: rgba(6, 10, 24, .5);
  border-bottom: 1px solid var(--line-soft);
}
.window-dots { display: flex; gap: 6px; }
.window-dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.16); }
.window-dots span:first-child { background: rgba(203,161,76,.6); }
.window-top p, .assistant-top p {
  font-family: var(--mono); font-size: 12px; color: var(--faint);
  margin-inline-start: 4px;
}
.window-top strong {
  margin-inline-start: auto;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--teal);
  border: 1px solid var(--line-cool); border-radius: 999px; padding: 3px 10px;
}

.window-body { display: grid; grid-template-columns: 128px 1fr; min-height: 300px; }
.window-sidebar {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 10px;
  border-inline-end: 1px solid var(--line-soft);
  background: rgba(6, 10, 24, .3);
}
.window-sidebar button {
  text-align: start;
  font-family: var(--body); font-size: 12.5px; color: var(--faint);
  background: transparent; border: 0; border-radius: 8px;
  padding: 7px 10px; cursor: pointer; transition: background .18s ease, color .18s ease;
}
.window-sidebar button:hover { color: var(--muted); }
.window-sidebar button.active { color: var(--text); background: rgba(203,161,76,.1); }

.window-main { padding: 20px 22px; }
.window-main .mini-label { margin-bottom: 10px; }
.window-main h3 { font-size: 21px; margin-bottom: 10px; }
.window-main > p { font-size: 14px; color: var(--muted); margin-bottom: 16px; }

.progress-shell { height: 5px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; margin-bottom: 16px; }
.progress-fill { height: 100%; width: 30%; border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--gold-soft)); transition: width 1.4s var(--ease); }

.highlight-box {
  font-size: 13.5px; color: var(--muted);
  border-inline-start: 2px solid var(--gold);
  background: rgba(203, 161, 76, .06);
  padding: 11px 14px; border-radius: 8px; margin-bottom: 18px;
}
.highlight-box strong { color: var(--gold-soft); font-weight: 600; }
.pulse-box { animation: softpulse 3s ease-in-out infinite; }
@keyframes softpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(203,161,76,0); } 50% { box-shadow: 0 0 0 4px rgba(203,161,76,.05); } }

.key-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.key-grid > div {
  border: 1px solid var(--line-soft); border-radius: 11px; padding: 11px 13px;
  background: rgba(255,255,255,.012);
}
.key-grid span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 5px; }
.key-grid strong { font-size: 15px; font-weight: 600; color: var(--text); }

.floating-insight {
  position: absolute;
  right: -18px; bottom: -26px;
  z-index: 3;
  width: min(280px, 78%);
  background: linear-gradient(180deg, var(--panel-3), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.9);
}
.floating-insight p { font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.floating-insight h4 { font-family: var(--body); font-size: 14px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
.floating-insight span { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.live-insight { animation: floaty 7s ease-in-out infinite; }

/* --------------------------------------------------------------------------
   Section headings (shared)
   -------------------------------------------------------------------------- */
.section-heading { max-width: 760px; margin-bottom: 48px; }
.section-heading p {
  font-family: var(--mono); font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.section-heading h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.section-heading span { font-size: 16px; color: var(--muted); display: block; }

/* --------------------------------------------------------------------------
   What We Power — capabilities
   -------------------------------------------------------------------------- */
.capabilities-header {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px;
  align-items: end; margin: 24px 0 48px;
}
.capabilities-header h2 { font-size: clamp(28px, 4vw, 44px); }
.capabilities-header p { font-size: 16px; color: var(--muted); }

.capability-matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.capability-card {
  position: relative;
  background: linear-gradient(180deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px 24px 26px;
  transition: transform .35s var(--ease), border-color .3s ease, box-shadow .3s ease;
  overflow: hidden;
}
.capability-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(140% 90% at 100% 0%, rgba(203,161,76,.09), transparent 60%);
  opacity: 0; transition: opacity .35s ease;
}
.capability-card:hover { border-color: var(--line); box-shadow: 0 30px 60px -34px rgba(0,0,0,.9); }
.capability-card:hover::after { opacity: 1; }
.capability-card.featured {
  border-color: var(--line);
  background: linear-gradient(180deg, rgba(31,111,125,.14), var(--ink-2));
}
.capability-number {
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em;
  color: var(--gold); opacity: .8; margin-bottom: 16px;
}
.capability-icon { font-size: 26px; color: var(--gold-soft); margin-bottom: 14px; line-height: 1; }
.capability-card h3 { font-size: 21px; margin-bottom: 10px; }
.capability-card p { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }
.capability-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.capability-tags span,
.pipeline-tags span {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em;
  color: var(--faint); border: 1px solid var(--line-soft);
  border-radius: 999px; padding: 3px 10px;
}

/* --------------------------------------------------------------------------
   Content sections: industries / process / trust / learn
   -------------------------------------------------------------------------- */
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.industry-grid article {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform .35s var(--ease), border-color .3s ease;
}
.industry-grid article:hover { border-color: var(--line); }
.industry-grid h3 { font-size: 19px; margin-bottom: 8px; color: var(--gold-soft); }
.industry-grid p { font-size: 14px; color: var(--muted); }

.process-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 28px; counter-reset: step; }
.process-list > div {
  position: relative; padding: 22px 20px 20px;
  border-top: 1px solid var(--line);
}
.process-list > div::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em;
  color: var(--gold); display: block; margin-bottom: 12px;
}
.process-list strong { display: block; font-family: var(--display); font-size: 19px; font-weight: 500; margin-bottom: 8px; }
.process-list p { font-size: 14px; color: var(--muted); }

/* Built for trust */
.trust-panel {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 56px);
  align-items: start;
  background: linear-gradient(180deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(28px, 4vw, 48px);
}
.trust-panel .mini-label { margin-bottom: 16px; }
.trust-panel > div:first-child h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 16px; }
.trust-panel > div:first-child p { font-size: 15.5px; color: var(--muted); }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.trust-grid article { border: 1px solid var(--line-soft); border-radius: 12px; padding: 18px 18px; transition: border-color .3s ease; }
.trust-grid article:hover { border-color: var(--line); }
.trust-grid h3 { font-size: 16px; margin-bottom: 6px; color: var(--gold-soft); }
.trust-grid p { font-size: 13.5px; color: var(--muted); }

/* Learn & explore */
.resource-row { display: flex; flex-wrap: wrap; gap: 12px; }
.resource-row a {
  font-family: var(--mono); font-size: 13px; letter-spacing: .04em;
  color: var(--muted);
  border: 1px solid var(--line-soft); border-radius: 999px;
  padding: 10px 20px; transition: border-color .25s ease, color .25s ease, background .25s ease;
}
.resource-row a:hover { color: var(--text); border-color: var(--gold); background: rgba(203,161,76,.06); }

/* --------------------------------------------------------------------------
   How It Works — pipeline
   -------------------------------------------------------------------------- */
.pipeline-header { max-width: 780px; margin: 22px 0 44px; }
.pipeline-header h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
.pipeline-header p { font-size: 16px; color: var(--muted); }

.pipeline-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.pipeline-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 22px 18px;
  transition: transform .35s var(--ease), border-color .3s ease, background .3s ease;
}
.pipeline-card.active {
  border-color: var(--line);
  background: linear-gradient(180deg, rgba(203,161,76,.08), var(--panel));
}
.pipeline-card:hover { border-color: var(--line); transform: translateY(-4px); }
.pipeline-number { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--gold); margin-bottom: 12px; }
.pipeline-icon { font-size: 22px; color: var(--teal); margin-bottom: 12px; line-height: 1; }
.pipeline-card.active .pipeline-icon { color: var(--gold-soft); }
.pipeline-card h3 { font-size: 18px; margin-bottom: 8px; }
.pipeline-card p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.pipeline-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.pipeline-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  margin-top: 32px; padding: 24px 26px;
  border: 1px solid var(--line-soft); border-radius: 16px;
  background: rgba(255,255,255,.012);
}
.pipeline-bottom strong { display: block; font-family: var(--display); font-size: 19px; font-weight: 500; margin-bottom: 6px; }
.pipeline-bottom p { font-size: 14px; color: var(--muted); max-width: 62ch; }

/* --------------------------------------------------------------------------
   Grounded by design
   -------------------------------------------------------------------------- */
.grounded-section { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.grounded-copy .section-kicker { margin-bottom: 20px; }
.grounded-copy h2 { font-size: clamp(28px, 3.8vw, 40px); margin-bottom: 18px; }
.grounded-lead { font-size: 16.5px; color: var(--muted); margin-bottom: 30px; }
.grounded-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 24px; }
.grounded-points strong { display: block; font-family: var(--display); font-size: 17px; font-weight: 500; margin-bottom: 6px; color: var(--gold-soft); }
.grounded-points p { font-size: 13.5px; color: var(--muted); }

.grounded-visual { position: relative; }
.assistant-window {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 50px 110px -50px rgba(0,0,0,.95);
}
.assistant-chat { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.chat-bubble {
  align-self: flex-end;
  max-width: 82%;
  font-size: 14px; color: var(--text);
  background: rgba(69,166,182,.12);
  border: 1px solid var(--line-cool);
  border-radius: 14px 14px 4px 14px;
  padding: 11px 15px;
}
.chat-bubble.small { max-width: 70%; font-size: 13.5px; }
.chat-card {
  align-self: flex-start;
  max-width: 92%;
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: 14px 14px 14px 4px;
  padding: 16px 18px;
}
.chat-card .mini-label { margin-bottom: 10px; }
.chat-card h3 { font-size: 17px; margin-bottom: 8px; color: var(--gold-soft); }
.chat-card p { font-size: 13.5px; color: var(--muted); }
.chat-card ul { margin: 4px 0 0; padding-inline-start: 18px; }
.chat-card li { font-size: 13.5px; color: var(--muted); margin-bottom: 5px; }
.source-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.source-row span {
  font-family: var(--mono); font-size: 10.5px; color: var(--teal);
  border: 1px solid var(--line-cool); border-radius: 999px; padding: 3px 9px;
}
.confidence-strip {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft);
}
.confidence-strip span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.confidence-strip strong { font-size: 13px; color: var(--gold-soft); }

.verification-card {
  position: absolute; left: -20px; bottom: -28px;
  width: min(300px, 80%);
  background: linear-gradient(180deg, var(--panel-3), var(--panel-2));
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.9);
}
.verification-card p { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.verification-card h4 { font-family: var(--body); font-size: 13.5px; font-weight: 600; line-height: 1.45; }

/* --------------------------------------------------------------------------
   Workflow inputs
   -------------------------------------------------------------------------- */
.workflow-inputs-header { max-width: 780px; margin: 22px 0 44px; }
.workflow-inputs-header h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
.workflow-inputs-header p { font-size: 16px; color: var(--muted); }

.input-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.input-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: 14px; padding: 22px 20px;
  transition: border-color .3s ease, transform .35s var(--ease);
}
.input-card:hover { border-color: var(--line); }
.input-icon {
  flex: none; width: 42px; height: 42px;
  display: grid; place-items: center;
  font-size: 20px; color: var(--gold-soft);
  border: 1px solid var(--line); border-radius: 11px;
  background: rgba(203,161,76,.05);
}
.input-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.input-card p { font-size: 13.5px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Enterprise signals
   -------------------------------------------------------------------------- */
.enterprise-signals-section { border-block: 1px solid var(--line-soft); background: rgba(255,255,255,.012); }
.enterprise-signals-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.signal-stat { padding: 8px 4px; }
.signal-stat strong { display: block; font-family: var(--display); font-size: clamp(24px, 3vw, 32px); font-weight: 500; color: var(--gold-soft); margin-bottom: 8px; }
.signal-stat span { font-size: 14px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */
.final-cta-section { position: relative; overflow: hidden; }
.final-cta-inner { text-align: center; max-width: 760px; }
.final-cta-section::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(60% 60% at 50% 30%, rgba(203,161,76,.10), transparent 70%);
  pointer-events: none;
}
.cta-mark { width: 78px; margin: 0 auto 22px; }
.cta-mark img { width: 100%; filter: drop-shadow(0 6px 24px rgba(69,166,182,.5)); animation: floaty 6s ease-in-out infinite; }
.final-cta-inner .section-kicker { margin-bottom: 20px; }
.final-cta-inner h2 { font-size: clamp(30px, 4.4vw, 48px); margin-bottom: 18px; }
.final-cta-inner > p { font-size: 16.5px; color: var(--muted); margin-bottom: 30px; }
.final-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.cta-proof-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about-qomrah-section .section-kicker { margin-bottom: 24px; }
.about-qomrah-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.about-qomrah-copy h2 { font-size: clamp(28px, 3.8vw, 40px); margin-bottom: 18px; }
.about-qomrah-copy p { font-size: 16px; color: var(--muted); margin-bottom: 16px; }
.about-qomrah-card {
  background: linear-gradient(180deg, rgba(31,111,125,.14), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: 20px; padding: 32px 30px;
}
.about-qomrah-card h3 { font-size: 22px; margin-bottom: 14px; color: var(--gold-soft); }
.about-qomrah-card p { font-size: 15px; color: var(--muted); margin-bottom: 24px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line-soft); background: var(--ink-2); position: relative; z-index: 2; }
.footer-main {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 32px;
  padding-block: 64px 40px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-tagline { font-family: var(--display); font-size: 17px; color: var(--text); margin-bottom: 12px; }
.footer-description { font-size: 13.5px; color: var(--faint); max-width: 40ch; }
.footer-column h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 16px;
}
.footer-column a { display: block; font-size: 14px; color: var(--muted); margin-bottom: 10px; transition: color .2s ease; }
.footer-column a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 22px; border-top: 1px solid var(--line-soft);
}
.footer-bottom span { font-family: var(--mono); font-size: 12px; color: var(--faint); }

/* --------------------------------------------------------------------------
   Tilt cards (JS adds inline transform; keep smooth)
   -------------------------------------------------------------------------- */
.tilt-card { transform-style: preserve-3d; will-change: transform; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1040px) {
  .capability-matrix,
  .industry-grid,
  .input-grid { grid-template-columns: repeat(2, 1fr); }
  .pipeline-flow { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .enterprise-signals-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 66px; right: 0;
    width: min(340px, 86vw);
    height: calc(100vh - 66px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 22px 20px 40px;
    background: linear-gradient(180deg, var(--panel-2), var(--ink));
    border-inline-start: 1px solid var(--line-soft);
    overflow-y: auto;
    transform: translateX(105%);
    transition: transform .32s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-item, .nav-links > a { width: 100%; }
  .nav-item > a, .nav-links > a { padding: 12px 6px; border-bottom: 1px solid var(--line-soft); }
  .nav-item.has-mega > a::after { margin-inline-start: auto; }
  .mega-menu {
    position: static; transform: none; width: 100%;
    opacity: 1; visibility: visible; pointer-events: auto;
    box-shadow: none; border: 0; background: transparent; padding: 8px 0 12px;
    display: none;
  }
  .nav-item.has-mega.open .mega-menu { display: block; }
  .mega-grid, .mega-grid.two-col { grid-template-columns: 1fr; }
  .nav-cta { display: none; }

  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: calc(var(--sec-y) + 20px); }
  .hero-visual { margin-top: 20px; }
  .capabilities-header { grid-template-columns: 1fr; align-items: start; }
  .trust-panel { grid-template-columns: 1fr; }
  .grounded-section { grid-template-columns: 1fr; }
  .about-qomrah-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .capability-matrix,
  .industry-grid,
  .input-grid,
  .pipeline-flow,
  .process-list,
  .grounded-points,
  .trust-grid,
  .enterprise-signals-grid { grid-template-columns: 1fr; }
  .window-body { grid-template-columns: 1fr; }
  .window-sidebar { flex-direction: row; overflow-x: auto; border-inline-end: 0; border-bottom: 1px solid var(--line-soft); }
  .key-grid { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .floating-insight { position: static; width: 100%; margin-top: 16px; }
  .verification-card { position: static; width: 100%; margin-top: 16px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   MULTI-PAGE  ·  shared components for products / solutions / research /
   about / contact
   ========================================================================== */

/* active nav state */
.nav-links a.active { color: var(--gold-soft); }
.nav-item.has-mega > a.active { color: var(--gold-soft); }

/* Subpage hero */
.subpage-hero { padding-top: calc(var(--sec-y) + 70px); padding-bottom: clamp(40px, 6vw, 72px); }
.subpage-hero-inner { max-width: 820px; }
.subpage-hero .eyebrow { margin-bottom: 20px; }
.subpage-hero h1 { font-size: clamp(34px, 5.2vw, 58px); letter-spacing: -.025em; margin-bottom: 20px; }
.subpage-lead { font-size: clamp(17px, 2.1vw, 21px); color: var(--muted); max-width: 60ch; margin-bottom: 30px; }
.subpage-hero .hero-actions { margin-bottom: 0; }

/* Feature split (product deep-dives) */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(44px, 6vw, 80px);
  border-top: 1px solid var(--line-soft);
}
.feature-split.reverse .feature-copy { order: 2; }
.feature-split.reverse .feature-visual { order: 1; }
.feature-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.feature-num { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--gold); }
.feature-ic { font-size: 24px; color: var(--gold-soft); line-height: 1; }
.feature-copy h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.feature-copy > p { font-size: 16px; color: var(--muted); margin-bottom: 20px; }

.feature-bullets { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 11px; }
.feature-bullets li {
  position: relative; padding-inline-start: 22px; font-size: 14.5px; color: var(--text);
}
.feature-bullets li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 8px rgba(203,161,76,.7);
}

.feature-visual { position: relative; }
.feature-panel {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 50px 110px -50px rgba(0,0,0,.9);
}
.fp-top {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; background: rgba(6,10,24,.5);
  border-bottom: 1px solid var(--line-soft);
}
.fp-top p { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.fp-body { padding: 22px; }
.fp-body h4 { font-family: var(--display); font-size: 21px; font-weight: 500; margin-bottom: 16px; color: var(--gold-soft); }
.fp-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 11px 0; border-top: 1px solid var(--line-soft);
}
.fp-row:first-of-type { border-top: 0; }
.fp-row span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.fp-row strong { font-size: 14.5px; font-weight: 600; color: var(--text); }

/* Research grid */
.research-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.research-card {
  background: linear-gradient(180deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 26px 24px; transition: border-color .3s ease, transform .35s var(--ease);
}
.research-card:hover { border-color: var(--line); }
.research-ic {
  width: 44px; height: 44px; display: grid; place-items: center;
  font-size: 20px; color: var(--gold-soft);
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(203,161,76,.05); margin-bottom: 16px;
}
.research-card h3 { font-size: 19px; margin-bottom: 10px; }
.research-card p { font-size: 14px; color: var(--muted); }

/* Values grid */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value-card {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 24px 22px; background: var(--panel);
  transition: border-color .3s ease;
}
.value-card:hover { border-color: var(--line); }
.value-card h3 { font-size: 18px; margin-bottom: 8px; color: var(--gold-soft); }
.value-card p { font-size: 14px; color: var(--muted); }

/* Page CTA band */
.page-cta { position: relative; overflow: hidden; }
.page-cta::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(60% 70% at 50% 20%, rgba(203,161,76,.10), transparent 70%);
  pointer-events: none;
}
.page-cta-inner { position: relative; z-index: 2; text-align: center; max-width: 720px; margin-inline: auto; }
.page-cta-inner .section-kicker { margin-bottom: 20px; }
.page-cta-inner h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; }
.page-cta-inner > p { font-size: 16.5px; color: var(--muted); margin-bottom: 28px; }
.page-cta .final-cta-actions { justify-content: center; }

/* Contact */
.contact-section { padding-top: clamp(24px, 4vw, 48px); }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint);
}
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--body); font-size: 15px;
  background: rgba(6,10,24,.55); color: var(--text);
  border: 1px solid var(--line-soft); border-radius: 11px;
  padding: 12px 15px; transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(203,161,76,.12);
}
.field select { appearance: none; cursor: pointer; }
.contact-form .btn { justify-self: start; }
.form-status { font-size: 14px; color: var(--gold-soft); min-height: 1.2em; }
.form-status.error { color: #e8886b; }

.contact-aside { display: grid; gap: 16px; }
.contact-card {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 22px 22px; background: var(--panel);
}
.contact-card .mini-label { margin-bottom: 10px; }
.contact-card h3 { font-size: 17px; margin-bottom: 10px; color: var(--gold-soft); }
.contact-card p { font-size: 14px; color: var(--muted); }
.contact-card .feature-bullets { margin: 0; }
.contact-email { font-family: var(--display); font-size: 22px; color: var(--gold-soft); }
.contact-email:hover { color: var(--gold); }

/* Multi-page responsive */
@media (max-width: 900px) {
  .feature-split { grid-template-columns: 1fr; }
  .feature-split.reverse .feature-copy,
  .feature-split.reverse .feature-visual { order: 0; }
  .research-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .research-grid, .values-grid { grid-template-columns: 1fr; }
}
