:root {
  --bg: #07111f;
  --bg2: #0b1729;
  --text: #eef6ff;
  --muted: #a9bdd5;
  --line: rgba(255,255,255,.12);
  --accent: #61dafb;
  --accent2: #42e8a4;
  --gold: #d8b56d;
  --shadow: 0 24px 80px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(7,17,31,.92); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}
.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  object-fit: contain;
  display: block;
  background: transparent;
  flex: 0 0 auto;
}
.brand strong { display: block; font-size: 17px; letter-spacing: -.02em; }
.brand small { display: block; color: var(--muted); font-size: 12px; margin-top: -2px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  margin-left: auto;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; font-size: 22px; padding: 6px 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 10px 16px; font-weight: 800; font-size: 14px; border: 1px solid transparent; transition: transform .2s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #04101d; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.btn-secondary { border-color: var(--line); background: rgba(255,255,255,.06); color: var(--text); }
.btn-ghost { color: var(--text); border-color: rgba(97,218,251,.35); background: rgba(97,218,251,.06); }
.btn-large { padding: 14px 22px; font-size: 15px; }

.hero { position: relative; overflow: hidden; padding: 94px 0 76px; background: radial-gradient(circle at 15% 18%, rgba(97,218,251,.18), transparent 28%), radial-gradient(circle at 82% 8%, rgba(66,232,164,.12), transparent 26%), linear-gradient(180deg, #07111f 0%, #09182a 100%); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--accent2); font-size: 13px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
h1, h2, h3 { line-height: 1.05; margin: 0; }
h1 { font-size: clamp(42px, 6vw, 72px); letter-spacing: -0.058em; }
h2 { font-size: clamp(31px, 4vw, 52px); letter-spacing: -0.045em; }
h3 { font-size: 22px; letter-spacing: -0.025em; }
p { color: var(--muted); }
.hero-copy { font-size: 20px; max-width: 720px; margin: 24px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-card { background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04)); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 28px; overflow: hidden; }
.terminal-bar { display: flex; gap: 8px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.terminal-bar span { width: 12px; height: 12px; background: rgba(255,255,255,.28); border-radius: 50%; }
.risk-panel { padding: 24px; }
.risk-row { display: flex; justify-content: space-between; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.risk-row span { color: var(--muted); }
.risk-row strong { text-align: right; }
.score-card { margin-top: 22px; border-radius: 22px; padding: 20px; background: rgba(216,181,109,.07); border: 1px solid rgba(216,181,109,.34); }
.score-card span { color: var(--gold); font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.score-card strong { display: block; margin-top: 8px; font-size: 24px; }

.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.035); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid div { padding: 24px; border-right: 1px solid var(--line); }
.trust-grid div:last-child { border-right: 0; }
.trust-grid strong { display: block; }
.trust-grid span { color: var(--muted); font-size: 14px; }

.section { padding: 88px 0; }
.section-muted { background: rgba(255,255,255,.035); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-heading { max-width: 840px; margin-bottom: 36px; }
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.content-block, .card { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035)); border-radius: 24px; padding: 26px; }
.cards { display: grid; gap: 22px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }

.cta { padding: 68px 0; background: radial-gradient(circle at 20% 0%, rgba(97,218,251,.16), transparent 32%), linear-gradient(135deg, #102944, #07111f); }
.cta-inner { display: flex; justify-content: space-between; gap: 36px; align-items: center; }
.cta-inner p { max-width: 680px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

.site-footer { padding: 34px 0; border-top: 1px solid var(--line); background: #050c16; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; }
.footer-grid p { margin: 8px 0 0; }
.footer-grid div:last-child { display: flex; gap: 18px; color: var(--muted); flex-wrap: wrap; }

@media (max-width: 1080px) {
  .hero-grid, .cta-inner { grid-template-columns: 1fr; display: grid; }
  .content-grid, .cards.four { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-actions { justify-content: flex-start; }
}

@media (max-width: 790px) {
  .container { width: min(100% - 28px, 1180px); }
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 78px; left: 14px; right: 14px; padding: 18px; border: 1px solid var(--line); background: rgba(7,17,31,.98); border-radius: 20px; flex-direction: column; align-items: stretch; display: none; }
  .nav-links.open { display: flex; }
  .hero { padding-top: 64px; }
  .content-grid, .cards.four, .trust-grid { grid-template-columns: 1fr; }
  .trust-grid div { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-grid { flex-direction: column; }
  h1 { font-size: 42px; }
}


.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}

.price-card {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
  border-radius: 26px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.price-card.featured {
  border-color: rgba(97,218,251,.55);
  box-shadow: 0 24px 80px rgba(97,218,251,.10);
}

.price-card.enterprise {
  border-color: rgba(216,181,109,.42);
}

.plan-label {
  color: var(--accent2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.price-card h3 {
  font-size: 34px;
  margin-bottom: 14px;
}

.price-card h3 span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

.price-card ul {
  margin: 20px 0 26px;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.price-card li {
  padding: 10px 0 10px 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: relative;
}

.price-card li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent2);
  font-weight: 900;
}

.price-card .btn {
  margin-top: auto;
}

@media (max-width: 1180px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 790px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}



@media (max-width: 790px) {
  .brand-logo {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    font-size: 11px;
  }
}




/* KAIROSIQ_REPAIRED_HEADER_LOGO_PATCH */
@media (max-width: 790px) {
  .brand {
    min-width: auto;
    gap: 10px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    font-size: 11px;
  }
}

@media (max-width: 430px) {
  .brand small {
    display: none;
  }

  .brand {
    min-width: auto;
  }
}


/* KAIROSIQ_PAGE_WORDMARK_PATCH */
.page-wordmark {
  width: 260px;
  height: auto;
  display: block;
  margin: 0 0 34px 0;
  object-fit: contain;
}

.hero .eyebrow {
  margin-top: 0;
}

@media (max-width: 790px) {
  .page-wordmark {
    width: 210px;
    margin-bottom: 28px;
  }

  .brand {
    min-width: auto;
    gap: 10px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    font-size: 11px;
  }
}

@media (max-width: 430px) {
  .page-wordmark {
    width: 180px;
  }

  .brand small {
    display: none;
  }
}


/* KAIROSIQ_NO_HEADER_BRAND_PATCH */
.site-header .brand,
.site-header .brand-logo {
  display: none !important;
}

@media (max-width: 790px) {
  .nav {
    min-height: 70px;
    justify-content: flex-end;
  }

  .nav-links {
    top: 70px;
  }
}


/* KAIROSIQ_INSTITUTIONAL_SCANNER_TABLE_PATCH */
.scanner-hero .hero-copy {
  max-width: 780px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  box-shadow: 0 18px 60px rgba(0,0,0,.18);
}

.table-wrap.compact {
  max-width: 980px;
}

.institutional-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.institutional-table th {
  text-align: left;
  vertical-align: top;
  padding: 18px 20px;
  background: rgba(97,218,251,.09);
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.institutional-table td {
  vertical-align: top;
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.institutional-table tbody tr:last-child td {
  border-bottom: 0;
}

.institutional-table tbody tr:hover td {
  background: rgba(255,255,255,.026);
}

.institutional-table td strong {
  color: var(--text);
  font-size: 15px;
}

.scanner-family-table th:nth-child(1),
.scanner-family-table td:nth-child(1) {
  width: 18%;
  min-width: 190px;
}

.scanner-family-table th:nth-child(2),
.scanner-family-table td:nth-child(2) {
  width: 38%;
  min-width: 360px;
}

.scanner-family-table th:nth-child(3),
.scanner-family-table td:nth-child(3) {
  width: 18%;
  min-width: 210px;
}

.scanner-family-table th:nth-child(4),
.scanner-family-table td:nth-child(4) {
  width: 26%;
  min-width: 280px;
}

.function-table {
  min-width: 840px;
}

.function-table th:nth-child(1),
.function-table td:nth-child(1) {
  width: 34%;
}

.summary-table {
  min-width: 760px;
}

.table-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.table-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.075);
  color: var(--text);
}

.table-list li:last-child {
  border-bottom: 0;
}

.table-list span {
  color: var(--accent2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  white-space: nowrap;
}

.positioning-note {
  margin-top: 34px;
  max-width: 980px;
  border: 1px solid rgba(216,181,109,.32);
  background: rgba(216,181,109,.07);
  border-radius: 24px;
  padding: 28px;
}

.positioning-note h3 {
  margin-bottom: 10px;
}

.positioning-note p {
  margin-bottom: 0;
}

@media (max-width: 790px) {
  .institutional-table {
    min-width: 860px;
  }

  .institutional-table th,
  .institutional-table td {
    padding: 16px;
    font-size: 13px;
  }

  .table-wrap {
    border-radius: 18px;
  }
}


/* KAIROSIQ_LOW_RISK_REGULATORY_PROSE_PATCH */
.footer-grid-legal {
  align-items: flex-start;
}

.footer-caveat {
  margin-top: 14px;
  color: var(--text);
  font-size: 13px;
  max-width: 940px;
}

.footer-disclaimer {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  max-width: 980px;
}

.footer-grid-legal div:first-child {
  max-width: 980px;
}

.footer-grid-legal div:last-child {
  min-width: 220px;
}

.positioning-note {
  margin-top: 34px;
  max-width: 980px;
  border: 1px solid rgba(216,181,109,.32);
  background: rgba(216,181,109,.07);
  border-radius: 24px;
  padding: 28px;
}

.positioning-note h3 {
  margin-bottom: 10px;
}

.positioning-note p {
  margin-bottom: 0;
}
