/* QuantumRise AI — site styles
   Palette: lake navy base, night panels, one signal-blue accent (from the original #00aaff brand).
   Type: IBM Plex Sans (self-hosted), major-third scale on a 17px base. */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #0B1324;
  --panel: #101B30;
  --panel-2: #15233D;
  --rule: #22314D;
  --rule-strong: #33456A;
  --text: #E7EDF6;
  --muted: #9AA9C0;
  --accent: #1FA8FF;
  --accent-soft: rgba(31, 168, 255, 0.12);
  --accent-ink: #04121F;
  --ok: #3DD68C;
  --err: #FF8A8A;

  --fs-sm: 0.8rem;     /* 13.6 */
  --fs-base: 1rem;     /* 17 */
  --fs-md: 1.25rem;    /* 21.25 */
  --fs-lg: 1.5625rem;  /* 26.6 */
  --fs-xl: 1.953rem;   /* 33.2 */
  --fs-2xl: 2.441rem;  /* 41.5 */
  --fs-3xl: 3.052rem;  /* 51.9 */
  --fs-4xl: 3.815rem;  /* 64.9 */

  --radius-s: 6px;
  --radius-m: 10px;
  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs-base);
  line-height: 1.6;
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #6CC6FF; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: clamp(var(--fs-2xl), 5vw, var(--fs-3xl)); }
h2 { font-size: clamp(var(--fs-xl), 3.4vw, var(--fs-2xl)); }
h3 { font-size: var(--fs-md); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: var(--radius-s); z-index: 100; font-weight: 600; }
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 64ch; }
.lede { font-size: var(--fs-md); color: var(--muted); line-height: 1.5; max-width: 58ch; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: var(--radius-s);
  font: 600 var(--fs-base)/1 inherit; font-family: inherit; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #4DBBFF; color: var(--accent-ink); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--rule-strong); }
.btn-secondary:hover { border-color: var(--accent); color: var(--text); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 0.88rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 19, 36, 0.86);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.06rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: var(--radius-s); font-size: 0.94rem; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--text); }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--rule-strong); border-radius: var(--radius-s); width: 44px; height: 40px; cursor: pointer; padding: 0; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: var(--text); margin: 0 auto; position: relative; transition: transform .2s ease; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 20px; }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--rule); border-radius: 0; font-size: 1rem; }
  .site-nav a[aria-current="page"]:not(.btn) { box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }
  .nav-cta { margin: 16px 0 0; min-height: 46px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; border-top: 1px solid var(--rule); }
.section-tight { padding: clamp(48px, 6vw, 72px) 0; }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.panel-band { background: var(--panel); }

/* Blueprint grid backdrop (a nod to Chicago's street grid) — used in heroes only */
.grid-bg { position: relative; isolation: isolate; }
.grid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(51, 69, 106, .28) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(51, 69, 106, .28) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 80%);
}

/* ---------- Home hero: the headline is the navigation ---------- */
.home-hero { padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 8vw, 96px); }
.home-hero .intro { color: var(--muted); font-size: var(--fs-md); margin-bottom: 28px; max-width: 46ch; }
.hero-lines { list-style: none; margin: 0; padding: 0; }
.hero-lines h1 { margin: 0; font-size: inherit; letter-spacing: inherit; line-height: inherit; font-weight: inherit; }
.hero-line {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); align-items: center; gap: 32px;
  border-top: 1px solid var(--rule); padding: 14px 0;
  text-decoration: none; color: var(--text);
}
.hero-lines li:last-child .hero-line { border-bottom: 1px solid var(--rule); }
.hero-line-text { font-size: clamp(2.2rem, 6vw, 4.6rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; transition: color .2s ease; }
.hero-line-note { color: var(--muted); font-size: 0.94rem; line-height: 1.45; }
.hero-line-note strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.hero-line:hover .hero-line-text, .hero-line:focus-visible .hero-line-text { color: var(--accent); }
.hero-line:hover { color: var(--text); }
@media (max-width: 760px) {
  .hero-line { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 7vw, 88px); }
.page-hero .kicker { color: var(--accent); font-weight: 600; font-size: 0.94rem; margin-bottom: 14px; }
.page-hero h1 { max-width: 20ch; }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Ledger rows (service routing) ---------- */
.ledger { border-top: 1px solid var(--rule); }
.ledger-row {
  display: grid; grid-template-columns: 240px minmax(0, 1fr) 120px; gap: 24px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--rule); color: var(--text); text-decoration: none;
}
.ledger-row h3 { margin: 0; font-size: var(--fs-md); }
.ledger-row p { margin: 0; color: var(--muted); max-width: 60ch; }
.ledger-row .go { color: var(--accent); font-weight: 600; white-space: nowrap; font-size: 0.94rem; text-align: right; }
.ledger-row:hover h3 { color: var(--accent); }
.ledger-row:hover { color: var(--text); }
.ledger-row.is-featured { background: linear-gradient(90deg, var(--accent-soft), transparent 70%); padding-left: 18px; margin-left: -18px; box-shadow: inset 2px 0 0 var(--accent); }
@media (max-width: 760px) { .ledger-row { grid-template-columns: 1fr; gap: 6px; } .ledger-row .go { text-align: left; } .ledger-row.is-featured { margin-left: 0; } }

/* ---------- Steps (real sequences only) ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; counter-reset: step; border-top: 1px solid var(--rule); }
.steps li { counter-increment: step; padding: 22px 24px 8px 0; border-right: 1px solid var(--rule); }
.steps li:last-child { border-right: 0; }
.steps li + li { padding-left: 24px; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font-weight: 600; font-size: 0.88rem; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.06rem; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 0.94rem; }
@media (max-width: 760px) { .steps li { border-right: 0; border-bottom: 1px solid var(--rule); padding: 20px 0 8px !important; } }

/* ---------- Feature list ---------- */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin: 0; }
.feature { padding: 22px 0; border-top: 1px solid var(--rule); }
.feature dt { font-weight: 600; font-size: 1.06rem; margin-bottom: 4px; }
.feature dd { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.tag-list li { border: 1px solid var(--rule-strong); border-radius: 999px; padding: 6px 14px; font-size: 0.94rem; color: var(--text); }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.facts h3 { font-size: 1.06rem; }
.facts p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Illustrative dashboard mock ---------- */
.mock { background: var(--panel); border: 1px solid var(--rule-strong); border-radius: var(--radius-m); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); font-size: 0.78rem; }
.mock-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule); background: var(--panel-2); }
.mock-title { font-weight: 600; font-size: 0.88rem; }
.mock-flag { color: #FFD27A; font-size: 0.74rem; border: 1px solid rgba(255, 210, 122, .45); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.mock-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.mock-filters span { border: 1px solid var(--rule-strong); border-radius: var(--radius-s); padding: 3px 9px; color: var(--muted); }
.mock-filters span.on { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.mock table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mock th, .mock td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.mock th { color: var(--muted); font-weight: 500; font-size: 0.76rem; }
.mock tr:last-child td { border-bottom: 0; }
.mock .status { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.74rem; }
.status-new { background: var(--accent-soft); color: #8FD3FF; }
.status-research { background: rgba(255, 210, 122, .12); color: #FFD27A; }
.status-contacted { background: rgba(61, 214, 140, .12); color: #7FE6B2; }
.mock-scroll { overflow-x: auto; }
.mock-caption { color: var(--muted); font-size: var(--fs-sm); margin-top: 12px; }

/* One orchestrated moment: signal rows light up once on load */
@media (prefers-reduced-motion: no-preference) {
  .mock tbody tr { animation: signal-in .5s ease both; }
  .mock tbody tr:nth-child(1) { animation-delay: .25s; }
  .mock tbody tr:nth-child(2) { animation-delay: .4s; }
  .mock tbody tr:nth-child(3) { animation-delay: .55s; }
  .mock tbody tr:nth-child(4) { animation-delay: .7s; }
  .mock tbody tr:nth-child(5) { animation-delay: .85s; }
  @keyframes signal-in { from { opacity: 0; background: var(--accent-soft); } 60% { opacity: 1; background: var(--accent-soft); } to { opacity: 1; background: transparent; } }
}

/* ---------- Notices ---------- */
.notice { border: 1px solid var(--rule-strong); border-left: 3px solid var(--accent); background: var(--panel); border-radius: var(--radius-s); padding: 18px 20px; color: var(--muted); font-size: 0.94rem; }
.notice strong { color: var(--text); }

/* ---------- Pricing (Digital Employees) ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { border: 1px solid var(--rule-strong); border-radius: var(--radius-m); padding: 28px; background: var(--panel); display: flex; flex-direction: column; }
.plan.is-middle { border-color: var(--accent); }
.plan-name { font-size: 1.06rem; margin-bottom: 4px; }
.plan .plan-price { color: var(--text); font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin: 6px 0 2px; }
.plan .plan-price span { font-size: 1rem; color: var(--muted); font-weight: 400; }
.plan h4 { font-size: 1rem; color: var(--accent); font-weight: 500; margin: 0 0 14px; }
.plan p { color: var(--muted); font-size: 0.94rem; }
.plan ul { padding-left: 1.1em; margin: 0 0 18px; }
.plan li { margin-bottom: 6px; font-size: 0.94rem; }
.plan .best { margin-top: auto; color: var(--text); font-size: 0.9rem; padding-top: 14px; border-top: 1px solid var(--rule); margin-bottom: 0; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 20px 36px 20px 0; font-weight: 600; font-size: 1.06rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--muted); padding-bottom: 12px; max-width: 70ch; }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--rule); background: radial-gradient(ellipse 60% 120% at 0% 100%, rgba(31, 168, 255, .14), transparent 70%), var(--panel); }
.cta-band h2 { max-width: 22ch; }
.cta-band p { color: var(--muted); max-width: 56ch; }

/* ---------- Forms ---------- */
.form-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: minmax(0, 1fr); } }
.form-card { background: var(--panel); border: 1px solid var(--rule-strong); border-radius: var(--radius-m); padding: clamp(22px, 3vw, 36px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 18px; }
.field-wide { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field[hidden] { display: none; }
.field label { display: block; font-weight: 500; font-size: 0.92rem; margin-bottom: 6px; }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: var(--radius-s);
  border: 1px solid var(--rule-strong); background: var(--bg); color: var(--text);
  font: inherit; font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input::placeholder, .field textarea::placeholder { color: #6C7C96; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--err); }
.field-error { color: var(--err); font-size: 0.85rem; margin: 6px 0 0; min-height: 0; }
.field-error:empty { display: none; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 18px 0 0; font-size: 0.94rem; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--err); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 20px; }
.privacy-note { color: var(--muted); font-size: 0.82rem; margin: 0; max-width: 46ch; }
.form-success { padding: 8px 0; }
.form-success:focus { outline: none; }
.form-success h3 { color: var(--ok); }
.form-success p { color: var(--muted); }

/* ---------- Prose pages (privacy, about) ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--fs-lg); margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: #C9D3E3; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 64px 0 32px; background: #091020; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--muted); max-width: 36ch; margin: 14px 0 18px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav h2 { font-size: 0.94rem; color: var(--text); margin-bottom: 6px; letter-spacing: 0; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 0.94rem; }
.footer-nav a:hover { color: var(--text); }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rule); }
.footer-legal p { color: #7D8CA6; font-size: 0.8rem; margin: 0 0 6px; max-width: 110ch; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- 404 ---------- */
.notfound { min-height: 50vh; display: grid; align-content: center; }

/* ---------- Small additions ---------- */
.kicker { color: var(--accent); font-weight: 600; font-size: 0.94rem; margin-bottom: 14px; }
.kicker.muted { color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 20px 0 0; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.small-heading { font-size: 1rem; margin: 32px 0 10px; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: 10px 0; border-top: 1px solid var(--rule); color: var(--muted); }
.plain-list a { font-weight: 600; text-decoration: none; }
.mock-figure { margin: 0; }
.split-top { align-items: start; }
.notice p:last-child { margin-bottom: 0; }
