/* ─────────────────────────────────────────────────────────────
   Homepage — index.css
   All styles specific to the index page content.
   Tokens live in design-system.css; nav/footer live in nav.css/footer.css.
   ───────────────────────────────────────────────────────────── */

/* ── Section wrapper ─────────────────────────────────────────── */
.sw {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.sec { padding: 4.5rem 0; }
.sec-alt { background: var(--bg2); }

.sec-ey {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--iq);
  margin-bottom: .5rem;
}

.sec-h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--text);
  margin-bottom: .65rem;
}

.sec-sub {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.8;
  max-width: 620px;
}

hr {
  border: none;
  border-top: 0.5px solid var(--border);
}

/* ── Impact badges ───────────────────────────────────────────── */
.imp {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.ic { background: var(--crit-dim); color: var(--crit); border: 0.5px solid rgba(239,68,68,.2); }
.ih { background: var(--high-dim); color: var(--high); border: 0.5px solid rgba(249,115,22,.2); }
.im { background: var(--med-dim);  color: var(--med);  border: 0.5px solid rgba(234,179,8,.2); }
.il { background: var(--low-dim);  color: var(--low);  border: 0.5px solid rgba(34,197,94,.2); }

/* ── Shared button overrides for inline usage ────────────────── */
.btn-secondary {
  background: none;
  border: 0.5px solid var(--border2);
  color: var(--text);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
  transition: all .15s;
  white-space: nowrap;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn-secondary:hover { border-color: var(--iq); color: var(--iq); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero { padding: 3.5rem 0; }

.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--iq);
  border: 0.5px solid rgba(245,158,11,.3);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 1.25rem;
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--iq);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.3;} }

.h1-wrap { margin-bottom: 1.25rem; line-height: 1.1; }
.h1-a {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  font-weight: 800;
  color: var(--text);
  display: block;
  letter-spacing: -.03em;
}
.h1-b {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  font-weight: 800;
  color: var(--iq);
  display: block;
  letter-spacing: -.03em;
}
.h1-c {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  color: var(--text2);
  display: block;
}

.hero-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Live feed panel ─────────────────────────────────────────── */
.feed-panel {
  background: var(--bg2);
  border: 0.5px solid var(--border2);
  border-radius: 12px;
  overflow: hidden;
}

.fp-hdr {
  padding: 10px 16px;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg3);
}
.fp-ttl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text2);
}
.fp-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--low);
}
.fp-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--low);
}

.fr {
  padding: 10px 16px;
  border-bottom: 0.5px solid var(--border);
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: start;
  transition: background .12s;
}
.fr:last-child { border-bottom: none; }
.fr:hover { background: var(--bg3); }
.fr-t { font-size: 11px; color: var(--text3); font-family: 'Outfit', monospace; padding-top: 2px; }
.fr-ti { font-size: 12px; color: var(--text); font-weight: 500; line-height: 1.45; }
.fr-cat { font-size: 10px; color: var(--text3); margin-top: 2px; }

/* ── Stats bar ───────────────────────────────────────────────── */
.stats-bar {
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}
.stats-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.sbi {
  padding: 2rem 2rem;
  border-right: 0.5px solid var(--border);
}
.sbi:last-child { border-right: none; }
.sbi-val {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.sbi-val sup { font-size: .42em; vertical-align: super; color: var(--iq); }
.sbi-val sub { font-size: .38em; color: var(--iq); font-weight: 700; }
.sbi-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text3);
}

/* ── Signal detail card ──────────────────────────────────────── */
.sig-det {
  background: var(--bg2);
  border: 0.5px solid var(--border2);
  border-radius: 12px;
  padding: 1.35rem;
}
.sd-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 4px;
}
.sd-val { font-size: 13px; color: var(--text); line-height: 1.6; margin-bottom: 1rem; }
.sd-act {
  background: var(--bg3);
  border: 0.5px solid var(--border);
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text2);
  line-height: 1.65;
  font-family: 'Outfit', monospace;
}
.who-c {
  display: inline-block;
  background: var(--blue-dim);
  border: 0.5px solid rgba(96,165,250,.15);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11px;
  color: var(--blue);
  margin: 2px 3px 2px 0;
}
.tag-c {
  display: inline-block;
  background: var(--bg3);
  border: 0.5px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11px;
  color: var(--text2);
  margin: 2px 3px 2px 0;
}

/* ── Chart card ──────────────────────────────────────────────── */
.chart-card {
  background: var(--bg2);
  border: 0.5px solid var(--border2);
  border-radius: 10px;
  padding: 1.25rem;
  margin-top: 1.25rem;
  overflow: hidden;
}
.chart-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.chart-ttl { font-size: 12px; font-weight: 600; color: var(--text); }
.chart-sub { font-size: 11px; color: var(--text3); }
.chart-canvas-wrap { width: 100%; overflow: hidden; }

/* ── Architecture flow ───────────────────────────────────────── */
.arch-flow {
  display: flex;
  align-items: stretch;
  border: 0.5px solid var(--border2);
  border-radius: 12px;
  margin-top: 2.5rem;
  overflow: hidden;
}
.arch-node {
  flex: 1;
  min-width: 0;
  background: var(--bg2);
  padding: 1.35rem .85rem;
  text-align: center;
  border-right: 0.5px solid var(--border2);
  position: relative;
}
.arch-node:last-child { border-right: none; }
.arch-icon { font-size: 20px; margin-bottom: .5rem; }
.arch-title {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.arch-desc { font-size: 11px; color: var(--text2); line-height: 1.5; }
.arch-tag {
  display: inline-block;
  margin-top: .5rem;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--iq-dim);
  color: var(--iq);
  border: 0.5px solid rgba(245,158,11,.2);
}
.arch-arr {
  position: absolute;
  right: -11px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background: var(--bg);
  border: 0.5px solid var(--border2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--iq);
  z-index: 2;
  font-weight: 700;
}

/* ── Coverage / Advantage ────────────────────────────────────── */
.cov-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2.5rem;
  align-items: start;
}
.cov-table {
  border: 0.5px solid var(--border2);
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
}
.cov-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 0.5px solid var(--border);
}
.cov-row:last-child { border-bottom: none; }
.cov-row.head { background: var(--bg3); }
.cov-cell {
  padding: .85rem 1rem;
  font-size: 13px;
  color: var(--text2);
  word-break: break-word;
}
.cov-cell:first-child {
  font-weight: 600;
  color: var(--text);
  border-right: 0.5px solid var(--border);
}
.cov-row.head .cov-cell {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text3);
}
.cov-val { color: var(--iq); font-weight: 700; font-family: 'Outfit', sans-serif; }

.mon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mon-card {
  background: var(--bg2);
  border: 0.5px solid var(--border2);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}
.mon-card.mc-crit { border-color: rgba(239,68,68,.3); }
.mon-card.mc-high { border-color: rgba(249,115,22,.25); }
.mon-n {
  font-family: 'Outfit', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
  margin-bottom: 3px;
}
.mon-n.red { color: var(--crit); }
.mon-n.ora { color: var(--high); }
.mon-n.grn { color: var(--low); }
.mon-l { font-size: 12px; color: var(--text2); line-height: 1.5; }
.mon-trend { font-size: 11px; margin-top: 6px; font-weight: 600; }
.tu { color: var(--crit); }
.tok { color: var(--low); }

.quote-box {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--iq-dim);
  border: 0.5px solid rgba(245,158,11,.2);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text2);
  line-height: 1.75;
}

/* ── Capabilities feature grid ───────────────────────────────── */
.feat-g {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 2.5rem;
}
.fg {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}
.fg-hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: .85rem;
  padding-bottom: .75rem;
  border-bottom: 0.5px solid var(--border);
}
.fg-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--iq-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.fg-title {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.fg-items { display: flex; flex-direction: column; gap: 6px; }
.fg-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  color: var(--text2);
}
.fg-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--iq);
  flex-shrink: 0;
  margin-top: 7px;
}

/* ── Domains grid ────────────────────────────────────────────── */
.dom-g {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border2);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 2rem;
}
.dg { background: var(--bg); padding: 1.25rem; }
.dg-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 5px;
  gap: .5rem;
}
.dg-n {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.dg-type { font-size: 11px; color: var(--text3); margin-bottom: 6px; }
.dg-desc { font-size: 12px; color: var(--text2); line-height: 1.6; margin-bottom: 8px; }
.dg-cad { font-size: 11px; color: var(--text3); font-family: 'Outfit', monospace; }

.bl {
  background: var(--low-dim); color: var(--low);
  border: 0.5px solid rgba(34,197,94,.2);
  padding: 2px 7px; border-radius: 4px;
  font-size: 10px; font-weight: 700; white-space: nowrap; flex-shrink: 0;
}
.be {
  background: var(--iq-dim); color: var(--iq);
  border: 0.5px solid rgba(245,158,11,.2);
  padding: 2px 7px; border-radius: 4px;
  font-size: 10px; font-weight: 700; white-space: nowrap; flex-shrink: 0;
}
.bs {
  background: var(--bg3); color: var(--text3);
  border: 0.5px solid var(--border);
  padding: 2px 7px; border-radius: 4px;
  font-size: 10px; font-weight: 600; white-space: nowrap; flex-shrink: 0;
}

/* ── Pricing preview cards ───────────────────────────────────── */
.pc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 660px;
  margin-top: 2.5rem;
}
.pc {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  position: relative;
}
.pc.feat { border-color: rgba(245,158,11,.4); }
.pc-badge {
  position: absolute;
  top: -11px;
  left: 1.5rem;
  background: var(--iq);
  color: #050505;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 100px;
  letter-spacing: .05em;
}
.pc-plan {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 8px;
}
.pc-price {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}
.pc-price span { font-size: 13px; font-weight: 400; color: var(--text2); }
.pc-props {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 1.25rem;
}
.pc-prop {
  font-size: 12px;
  color: var(--text2);
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.pc-prop::before {
  content: '';
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--iq);
  flex-shrink: 0;
  margin-top: 7px;
}

/* ── CTA band ────────────────────────────────────────────────── */
.cta-band {
  background: var(--bg2);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: 5rem 0;
  text-align: center;
}
.cta-band-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}
.cta-h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--text);
  margin-bottom: .75rem;
}
.cta-sub {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 2rem;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}
.cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Intelligence section ────────────────────────────────────── */
#intel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
#intel-grid .intel-sticky { position: sticky; top: 76px; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  #intel-grid { grid-template-columns: 1fr; }
  #intel-grid .intel-sticky { position: static; }
  .cov-layout { grid-template-columns: 1fr; }
  .feat-g { grid-template-columns: repeat(2, 1fr); }
  .dom-g { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .sbi:nth-child(2) { border-right: none; }
  .sbi:nth-child(3) { border-top: 0.5px solid var(--border); border-right: 0.5px solid var(--border); }
  .sbi:nth-child(4) { border-top: 0.5px solid var(--border); border-right: none; }
  .arch-flow { flex-wrap: wrap; }
  .arch-node { min-width: calc(50% - 1px); }
  .arch-arr { display: none; }
}

@media (max-width: 600px) {
  .h1-a, .h1-b { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .h1-c { font-size: clamp(1.5rem, 7vw, 2rem); }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary {
    text-align: center;
    width: 100%;
    padding: 13px;
    display: block;
  }
  .feat-g { grid-template-columns: 1fr; }
  .dom-g { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .sbi { padding: 1.5rem 1rem; }
  .sbi:nth-child(3) { border-right: 0.5px solid var(--border); }
  .sbi-val { font-size: 1.5rem; }
  .pc-grid { grid-template-columns: 1fr; max-width: 100%; }
  .mon-grid { grid-template-columns: 1fr; }
  .arch-flow { flex-direction: column; }
  .arch-node { min-width: 100%; border-right: none; border-bottom: 0.5px solid var(--border2); }
  .arch-node:last-child { border-bottom: none; }
  .cta-btns { flex-direction: column; align-items: stretch; }
  .cta-btns a, .cta-btns button { text-align: center; width: 100%; }
  .fr { grid-template-columns: 40px 1fr auto; gap: 6px; padding: 10px 12px; }
  .cov-cell { padding: .7rem .75rem; font-size: 12px; }
}
