/* Editorial presentation inspired by the supplied AHS product page. */
:root {
  --bg-page: #f7f9fd;
  --bg-elevated: #fff;
  --bg-secondary: #f8faff;
  --bg-tertiary: #eaf0fb;
  --bg-frosted: rgba(247,249,253,.9);
  --bg-frosted-modal: rgba(255,255,255,.96);
  --text-primary: #142137;
  --text-secondary: #65748c;
  --text-tertiary: #7888a5;
  --border-color: #dce3ef;
  --border-subtle: #e8edf5;
  --border-strong: #bfcde3;
  --apple-blue: #245ef5;
  --apple-blue-hover: #154bdb;
  --apple-blue-text: #2458dc;
  --apple-blue-subtle: #e9f0ff;
  --apple-blue-border: #cbdcff;
  --segment-bg: #eef3fc;
  --segment-active-bg: #245ef5;
  --segment-active-text: #fff;
  --segment-active-shadow: 0 6px 18px #245ef52b;
  --shadow-card: 0 12px 34px rgba(36,76,146,.06);
  --shadow-card-hover: 0 24px 48px rgba(36,76,146,.13);
  --ease-apple: cubic-bezier(.2,.6,.35,1);
}
[data-theme="dark"] {
  --bg-page: #101a2a;
  --bg-elevated: #19263b;
  --bg-secondary: #1c2b42;
  --bg-tertiary: #263957;
  --bg-frosted: rgba(16,26,42,.9);
  --bg-frosted-modal: rgba(25,38,59,.97);
  --text-primary: #f1f5fd;
  --text-secondary: #b7c4d8;
  --text-tertiary: #91a3c0;
  --border-color: #34445e;
  --border-subtle: #2b3a52;
  --border-strong: #5d7295;
  --apple-blue: #75a0ff;
  --apple-blue-hover: #91b3ff;
  --apple-blue-text: #a5c0ff;
  --apple-blue-subtle: #253b66;
  --apple-blue-border: #46639b;
  --segment-bg: #263957;
  --segment-active-bg: #75a0ff;
  --segment-active-text: #101a2a;
  --segment-active-shadow: 0 6px 18px #0004;
  --shadow-card: 0 12px 34px #0003;
  --shadow-card-hover: 0 24px 48px #0006;
}
html { scroll-padding-top: 110px; }
body { background: var(--bg-page); }
:focus-visible { outline: 3px solid var(--apple-blue); outline-offset: 3px; }
.read-progress { position: fixed; inset: 0 auto auto 0; width: 100%; height: 3px; transform: scaleX(0); transform-origin: left; background: var(--apple-blue); z-index: 200; pointer-events: none; }
.top-nav { top: 14px; width: min(1360px, calc(100% - 32px)); height: 64px; margin: 14px auto 0; border: 1px solid rgba(255,255,255,.8); border-radius: 999px; box-shadow: 0 12px 42px #3966af16; }
[data-theme="dark"] .top-nav { border-color: var(--border-color); }
.nav-content { max-width: none; padding: 0 22px; }
.nav-brand { gap: 12px; font-size: 15px; white-space: nowrap; }
.nav-mark { width: 34px; height: 34px; flex: none; }
.nav-badge { border-radius: 999px; }
.nav-links { display: flex; align-items: center; gap: 24px; margin-left: auto; margin-right: 24px; font-size: 13px; color: var(--text-secondary); }
.nav-links a:hover { color: var(--apple-blue-text); }
.nav-search-trigger, .theme-toggle-btn, .language-switch { min-height: 36px; border-radius: 999px; }
.wrap { max-width: 1360px; padding: 0 42px 90px; }
.hero { position: relative; overflow: hidden; margin: 0; padding: 74px 0 42px; border-bottom: 1px solid var(--border-color); }
.hero::before { content: ""; position: absolute; z-index: -1; width: 620px; height: 400px; right: -130px; top: -120px; background: radial-gradient(ellipse,#dce8ff 0,transparent 68%); pointer-events: none; }
[data-theme="dark"] .hero::before { background: radial-gradient(ellipse,#244274 0,transparent 68%); }
.hero-eyebrow { font: 11px var(--font-mono); letter-spacing: .17em; color: var(--apple-blue-text); margin-bottom: 20px; }
.hero-eyebrow::before { content: ""; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--apple-blue); }
.hero h1 { font-size: clamp(42px,5.2vw,68px); font-weight: 650; line-height: 1.22; letter-spacing: -.045em; margin: 0 0 19px; }
.hero-lead { max-width: 760px; margin: 0; font-size: 16px; line-height: 1.9; }
.explore-section { padding-top: 37px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 28px; }
.section-heading h2 { max-width: 620px; font-size: clamp(23px,2.4vw,31px); line-height: 1.3; font-weight: 600; letter-spacing: -.025em; }
.section-heading p { max-width: 350px; font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.stats-grid { margin-top: 0; gap: 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.stat-card { min-height: 100px; padding: 20px 24px; border: 0; border-right: 1px solid var(--border-color); border-radius: 0; background: transparent; box-shadow: none; }
.stat-card:last-child { border-right: 0; }
.stat-card:hover { transform: none; background: var(--apple-blue-subtle); box-shadow: none; }
.stat-card.active { border-color: var(--border-color); background: var(--apple-blue-subtle); box-shadow: inset 0 3px var(--apple-blue); }
.stat-num { font-size: 34px; font-weight: 600; }
.stat-label { margin-top: 6px; }
.stat-indicator { display: none; }
.apple-callout { margin-top: 20px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.apple-callout-icon { color: var(--apple-blue); fill: currentColor; }
.methodology-link { color: var(--apple-blue-text); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.filter-panel { position: relative; top: auto; margin-top: 30px; padding: 17px; border-radius: 14px; box-shadow: none; }
.segment-btn.active { color: var(--segment-active-text); }
[data-theme="dark"] .quick-tag.active { color: #101a2a; }
.cards-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--border-color); border-radius: 14px; background: var(--bg-elevated); box-shadow: var(--shadow-card); }
.card:hover { transform: translateY(-3px); border-color: var(--apple-blue-border); box-shadow: var(--shadow-card-hover); }
.card-top { margin-bottom: 14px; }
.badge { background: transparent; border-color: transparent; padding: 0 10px 0 0; color: var(--text-tertiary); }
.badge-source-Palantir, .badge-source-OpenAI, .badge-source-Datawhale { color: var(--apple-blue-text); background: transparent; border-color: transparent; }
.badge-detail, .badge-evidence { color: var(--text-secondary); background: transparent; border-color: transparent; }
.company-title { font-size: 23px; margin-bottom: 5px; }
.scenario-text { margin-bottom: 18px; }
.card-content-block { gap: 10px; margin-bottom: 0; }
.card-row { padding: 14px 16px; border: 1px solid var(--border-subtle); border-radius: 9px; background: var(--bg-secondary); }
.card-row.highlight { border-color: var(--apple-blue-border); background: var(--apple-blue-subtle); }
.card-row.highlight .card-row-label { color: var(--apple-blue-text); }
.card-footer { margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--border-subtle); }
.modal-box { border: 1px solid var(--border-color); }
.sources-section { background: var(--bg-elevated); }
.source-entry { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--border-subtle); }
.source-entry strong { font-size: 13.5px; line-height: 1.6; font-weight: 600; overflow-wrap: anywhere; }
.source-title-link { color: var(--apple-blue-text); font-size: 13.5px; line-height: 1.6; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.source-entry small { color: var(--text-tertiary); font-size: 12px; }
.source-label { color: var(--apple-blue-text); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.source-publisher-note { margin-top: 12px; color: var(--text-secondary); font-size: 12px; line-height: 1.7; }
.source-publisher-link { display: inline-block; width: fit-content; margin-top: 10px; color: var(--apple-blue-text); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.site-registration { padding: 20px 16px 36px; border-top: 1px solid var(--border-color); color: var(--text-tertiary); font-size: 12px; text-align: center; }
.site-registration a { color: inherit; text-decoration: none; }
.site-registration a:hover { color: var(--apple-blue-text); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1040px) {
  .nav-links { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .top-nav { top: 8px; width: calc(100% - 16px); height: 58px; margin-top: 8px; }
  .nav-content { padding: 0 12px; gap: 8px; }
  .nav-brand { gap: 7px; font-size: 12px; }
  .nav-mark { width: 30px; height: 30px; }
  .nav-badge, .nav-search-trigger span:not(.kbd-pill), .kbd-pill { display: none; }
  .nav-actions { gap: 5px; }
  .nav-search-trigger, .theme-toggle-btn, .language-switch { padding: 6px 9px; }
  .wrap { padding: 0 16px 60px; }
  .hero { padding: 54px 0 28px; }
  .hero h1 { font-size: clamp(34px,8vw,48px); }
  .hero-lead { font-size: 14px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 13px; }
  .explore-section { padding-top: 29px; }
  .stat-card { min-height: 85px; padding: 15px; }
  .stat-card:nth-child(2) { border-right: 0; }
  .stat-card:nth-child(n+3) { border-top: 1px solid var(--border-color); }
  .stat-num { font-size: 29px; }
  .filter-panel { margin-top: 28px; }
  .card { padding: 20px; }
  .company-title { font-size: 22px; }
  .card-content-block { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .stat-card { transition: none; }
}
