/* ConfidentIQ site styles. Dark by default, light on request or by system preference. Brand teal accent, centered hero, 1200px measure. */
:root {
  --bg: #080D17;
  --bg-2: #0D1524;
  --panel: #101A2C;
  --panel-2: #142036;
  --line: rgba(159, 176, 198, 0.14);
  --line-strong: rgba(159, 176, 198, 0.28);
  --text: #EEF2F7;
  --text-2: #B4C0D1;
  --muted: #7E8DA3;
  --accent: #5CC1BD;
  --accent-strong: #7AD0CC;
  --accent-ink: #07211F;
  --accent-soft: rgba(92, 193, 189, 0.14);
  --accent-line: rgba(92, 193, 189, 0.3);
  --glow: rgba(92, 193, 189, 0.2);
  --dot: rgba(159, 176, 198, 0.16);
  --nav-bg: rgba(8, 13, 23, 0.74);
  --menu-bg: rgba(8, 13, 23, 0.97);
  --chip-bg: rgba(13, 21, 36, 0.92);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --node: #101A2C;
  --node-ring: rgba(159, 176, 198, 0.7);
  --node-ready: #CFE3DF;
  --edge: rgba(159, 176, 198, 0.55);
  --edge-dim: rgba(159, 176, 198, 0.25);
  --font: "Geist", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-brand: "Public Sans", "Geist", "Helvetica Neue", Arial, sans-serif;
  --measure: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  color-scheme: dark;
}
:root[data-theme="light"],
:root.light {
  --bg: #F3F5F7;
  --bg-2: #EBEEF2;
  --panel: #FFFFFF;
  --panel-2: #F7F9FB;
  --line: #D9DFE6;
  --line-strong: #C3CBD5;
  --text: #171C23;
  --text-2: #3F4954;
  --muted: #5B6672;
  --accent: #0B5D5B;
  --accent-strong: #0E6F6C;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(11, 93, 91, 0.09);
  --accent-line: rgba(11, 93, 91, 0.25);
  --glow: rgba(11, 93, 91, 0.13);
  --dot: rgba(23, 28, 35, 0.14);
  --nav-bg: rgba(243, 245, 247, 0.8);
  --menu-bg: rgba(243, 245, 247, 0.98);
  --chip-bg: rgba(255, 255, 255, 0.96);
  --shadow: 0 10px 30px rgba(23, 28, 35, 0.12);
  --node: #FFFFFF;
  --node-ring: rgba(63, 73, 84, 0.55);
  --node-ready: #8FB5B2;
  --edge: rgba(23, 28, 35, 0.42);
  --edge-dim: rgba(23, 28, 35, 0.18);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not(.dark) {
    --bg: #F3F5F7;
    --bg-2: #EBEEF2;
    --panel: #FFFFFF;
    --panel-2: #F7F9FB;
    --line: #D9DFE6;
    --line-strong: #C3CBD5;
    --text: #171C23;
    --text-2: #3F4954;
    --muted: #5B6672;
    --accent: #0B5D5B;
    --accent-strong: #0E6F6C;
    --accent-ink: #FFFFFF;
    --accent-soft: rgba(11, 93, 91, 0.09);
    --accent-line: rgba(11, 93, 91, 0.25);
    --glow: rgba(11, 93, 91, 0.13);
    --dot: rgba(23, 28, 35, 0.14);
    --nav-bg: rgba(243, 245, 247, 0.8);
    --menu-bg: rgba(243, 245, 247, 0.98);
    --chip-bg: rgba(255, 255, 255, 0.96);
    --shadow: 0 10px 30px rgba(23, 28, 35, 0.12);
    --node: #FFFFFF;
    --node-ring: rgba(63, 73, 84, 0.55);
    --node-ready: #8FB5B2;
    --edge: rgba(23, 28, 35, 0.42);
    --edge-dim: rgba(23, 28, 35, 0.18);
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 50;
  background: var(--panel); color: var(--text); padding: 8px 12px;
  border: 1px solid var(--line-strong); border-radius: 8px;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-family: var(--font-brand); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1;
}
.brand .mark { width: 26px; height: 26px; flex: none; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: 8px 12px; border-radius: 8px;
  color: var(--text-2); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  transition: color 140ms ease, background-color 140ms ease;
}
.nav-links a:hover { color: var(--text); background: var(--accent-soft); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line-strong); color: var(--text); cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease;
}
.icon-btn:hover { border-color: var(--text-2); background: var(--accent-soft); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-btn .sun { display: none; }
.theme-btn .moon { display: block; }
:root[data-theme="light"] .theme-btn .sun, :root.light .theme-btn .sun { display: block; }
:root[data-theme="light"] .theme-btn .moon, :root.light .theme-btn .moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not(.dark) .theme-btn .sun { display: block; }
  :root:not([data-theme="dark"]):not(.dark) .theme-btn .moon { display: none; }
}
.menu-btn { display: none; border-radius: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; line-height: 1; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text-2); background: var(--accent-soft); }
.btn-lg { padding: 15px 24px; font-size: 1.02rem; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(72px, 10vw, 128px) 0;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1;
  left: 50%; top: -220px; width: 1100px; height: 720px; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  pointer-events: none;
}
.hero-inner { text-align: center; display: grid; justify-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.01em;
  margin-bottom: 26px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.75rem);
  line-height: 1.04; letter-spacing: -0.035em;
  max-width: 17ch;
}
.hero-sub {
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.6;
  color: var(--text-2); max-width: 58ch;
}
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

/* Stage: the resolving graph in a framed panel */
.stage {
  position: relative;
  margin: clamp(56px, 7vw, 88px) auto 0;
  width: 100%;
  max-width: 1080px;
  justify-self: stretch;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: var(--panel);
  overflow: hidden;
  height: clamp(300px, 42vw, 520px);
}
.stage::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.45;
  pointer-events: none;
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 11px; border-radius: 10px;
  background: var(--chip-bg); border: 1px solid var(--line-strong);
  font-size: 0.8rem; font-weight: 500; color: var(--text); white-space: nowrap;
  transform: translate(-50%, calc(-100% - 14px));
  opacity: 0; transition: opacity 500ms ease;
  box-shadow: var(--shadow);
}
.chip.on { opacity: 1; }
.chip svg { width: 14px; height: 14px; color: var(--accent); }
.stage-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 3;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 100%);
  pointer-events: none;
}

/* Industry band */
.band {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.band-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 0; padding-block: 22px;
  color: var(--muted); font-size: 0.92rem; font-weight: 500;
}
.band-row .label { color: var(--text-2); padding-inline: 18px; }
.band-row span:not(.label) { padding-inline: 18px; border-left: 1px solid var(--line-strong); }

/* Sections */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-block; margin-bottom: 14px;
  color: var(--accent); font-size: 0.88rem; font-weight: 600; letter-spacing: 0.02em;
}
.section h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.12; letter-spacing: -0.03em; }
.lede { margin-top: 18px; color: var(--text-2); font-size: clamp(1.02rem, 1.3vw, 1.15rem); max-width: 62ch; }
.section-head.center .lede { margin-inline: auto; }

/* Feature cards */
.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.card {
  position: relative; min-width: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 28px;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.card:hover { border-color: var(--line-strong); background: var(--panel-2); }
.icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 20px;
}
.icon svg { width: 20px; height: 20px; }
.card h3 { font-size: 1.1rem; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { color: var(--text-2); font-size: 0.97rem; line-height: 1.55; }

/* Steps */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--panel);
}
.step { padding: 30px 28px 32px; min-width: 0; }
.step + .step { border-left: 1px solid var(--line); }
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--accent);
  font-size: 0.85rem; font-weight: 600; margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 1.15rem; margin-bottom: 10px; letter-spacing: -0.01em; }
.step p { color: var(--text-2); font-size: 0.97rem; line-height: 1.55; }

/* Principles */
.principles {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start;
}
.principle-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.principle-list li {
  display: flex; gap: 18px; align-items: flex-start;
  padding-block: 22px; border-top: 1px solid var(--line);
}
.principle-list li:last-child { border-bottom: 1px solid var(--line); }
.principle-list .check {
  flex: none; width: 28px; height: 28px; border-radius: 50%; margin-top: 2px;
  background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.principle-list .check svg { width: 14px; height: 14px; }
.principle-list h3 { font-size: 1.15rem; margin-bottom: 6px; letter-spacing: -0.01em; }
.principle-list p { color: var(--text-2); font-size: 0.97rem; }

/* Company */
.company { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.company-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.company-grid .text p + p { margin-top: 16px; }
.company-grid .text p { color: var(--text-2); font-size: 1.05rem; max-width: 56ch; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: baseline;
  padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
}
.facts .k { color: var(--muted); font-size: 0.88rem; font-weight: 500; }
.facts .v { font-size: 0.98rem; }
.facts .v a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }

/* Contact */
.contact-card {
  position: relative; overflow: hidden; isolation: isolate;
  text-align: center;
  border: 1px solid var(--line-strong); border-radius: 24px;
  background: var(--panel);
  padding: clamp(48px, 7vw, 88px) var(--gutter);
}
.contact-card::after {
  content: ""; position: absolute; z-index: -1;
  left: 50%; bottom: -320px; width: 900px; height: 520px; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  pointer-events: none;
}
.contact-card h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -0.035em; }
.contact-card .lede { margin-inline: auto; }
.mail-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 32px; }
.mail-row .btn-lg { font-size: 1.05rem; }
.copy {
  font: inherit; font-size: 0.92rem; font-weight: 500;
  background: transparent; color: var(--text-2);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 13px 18px; cursor: pointer; line-height: 1;
  transition: border-color 140ms ease, color 140ms ease;
}
.copy:hover { color: var(--text); border-color: var(--text-2); }
.copy[data-done="1"] { color: var(--accent); border-color: var(--accent); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 56px 36px; color: var(--text-2); font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.footer .brand { margin-bottom: 14px; }
.footer .tagline { color: var(--muted); max-width: 36ch; }
.footer h4 { margin: 0 0 14px; font-size: 0.88rem; font-weight: 600; color: var(--text); letter-spacing: 0.01em; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--text-2); text-decoration: none; }
.footer ul a:hover { color: var(--text); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.88rem;
}
.footer-bottom.plain { margin-top: 0; padding-top: 0; border-top: 0; }

/* Legal page */
.legal { max-width: 720px; padding-block: clamp(56px, 8vw, 96px); }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.03em; margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin-bottom: 36px; font-size: 0.92rem; }
.legal h2 { font-size: 1.25rem; margin: 32px 0 10px; letter-spacing: -0.01em; }
.legal p { color: var(--text-2); }
.legal p + p { margin-top: 12px; }
.legal a { color: var(--accent); }

/* Motion: one page-load sequence in the hero */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .rise-2 { animation-delay: 90ms; }
  .rise-3 { animation-delay: 180ms; }
  .rise-4 { animation-delay: 270ms; }
  .rise-5 { animation-delay: 380ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* Responsive */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: grid; position: absolute; left: 0; right: 0; top: 68px;
    padding: 10px var(--gutter) 16px; gap: 2px;
    background: var(--menu-bg); border-bottom: 1px solid var(--line);
  }
  .nav-links.open a { padding: 12px; font-size: 1.05rem; }
  .menu-btn { display: inline-flex; }
  .nav-cta .btn { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; border-top: 1px solid var(--line); }
  .principles, .company-grid { grid-template-columns: 1fr; }
  .band-row { justify-content: flex-start; }
  .band-row .label { width: 100%; padding-inline: 0; margin-bottom: 4px; }
  .band-row span:not(.label):first-of-type { border-left: 0; padding-left: 0; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .facts li { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .stage { border-radius: 14px 14px 0 0; }
}
