/* Research-site visual pass: editorial spacing, product-scale media, EviPilot palette. */
:root {
  --shell: min(1360px, calc(100vw - 96px));
  --research-ink: #102f3a;
  --research-teal: #008f87;
  --research-teal-dark: #006e68;
  --research-mint: #e8f5f1;
  --research-wash: #f2f8f6;
  --research-blue: #337fb7;
  --research-line: #cfdfdc;
  --research-radius: 22px;
  font-family: 'Manrope', 'Source Sans 3', system-ui, sans-serif;
}

body {
  overflow-x: hidden;
  background: #fff;
  color: var(--research-ink);
  font-family: 'Manrope', 'Source Sans 3', system-ui, sans-serif;
  font-size: 16px;
}

button, input, select, textarea { font-family: inherit; }

.nav {
  position: sticky;
  z-index: 80;
  top: 0;
  width: 100%;
  height: 76px;
  padding-inline: max(32px, calc((100vw - 1360px) / 2));
  border-bottom: 1px solid rgba(122, 155, 151, .24);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 8px 28px rgba(24, 65, 66, .035);
  backdrop-filter: blur(18px) saturate(140%);
}

.brand { font-size: 21px; font-weight: 750; letter-spacing: -.035em; }
.brand-mark {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 6px 2px 6px 2px;
  background: var(--research-teal);
  box-shadow: inset 0 0 0 5px #d9f0ea;
}
.nav-links { gap: 8px; font-size: 14px; font-weight: 600; }
.nav-links a { padding: 9px 14px; border-radius: 999px; }
.nav-links a:hover, .nav-links a.is-active { color: var(--research-teal-dark); background: var(--research-mint); }
.nav-pill {
  padding: 10px 17px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--research-ink);
  font-size: 13px;
  font-weight: 700;
}
.nav-pill:hover { background: var(--research-teal-dark); }

.hero {
  position: relative;
  padding: 78px 0 48px;
  background: var(--research-wash);
  border-bottom: 1px solid var(--research-line);
}
.hero::before {
  inset: 0;
  width: auto;
  transform: none;
  background:
    linear-gradient(90deg, rgba(0, 143, 135, .055) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(rgba(0, 143, 135, .045) 1px, transparent 1px) 0 0 / 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.38), transparent 72%);
}
.hero-copy { max-width: none; margin: 0; text-align: left; }
.hero-grid {
  position: relative;
  z-index: 1;
  display: block;
  width: var(--shell);
  margin-inline: auto;
}
.hero-main { max-width: 840px; margin-inline: auto; text-align: center; }
.hero .eyebrow { justify-content: center; color: #486e77; font-weight: 600; }
.project-name {
  margin: 28px 0 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--research-teal-dark);
  font: 700 13px/1.5 'IBM Plex Mono', monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.project-name::before { content: ''; width: 28px; height: 2px; margin-right: 10px; background: var(--research-teal); }
.hero h1 {
  max-width: 840px;
  margin: 0 0 25px;
  font-size: clamp(56px, 5.5vw, 82px);
  font-weight: 750;
  line-height: .99;
  letter-spacing: -.058em;
}
.hero h1 em { display: inline-block; color: var(--research-teal); }
.paper-subtitle {
  max-width: 620px;
  margin: 0 auto 18px;
  color: #294e5c;
  font-size: clamp(20px, 1.8vw, 27px);
  font-weight: 600;
  line-height: 1.36;
  letter-spacing: -.025em;
}
.hero-lede {
  max-width: 610px;
  margin: 0 auto;
  color: #5d777e;
  font-size: 17px;
  line-height: 1.72;
}
.hero-actions { justify-content: center; gap: 9px; margin-top: 28px; }
.button {
  min-height: 45px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.button.primary { background: var(--research-teal); border-color: var(--research-teal); }
.button.primary:hover { background: var(--research-teal-dark); border-color: var(--research-teal-dark); }
.button.secondary { border-color: #bfd3cf; color: #315863; background: rgba(255,255,255,.78); }
.button.resource-soon { min-height: 0; padding: 8px 10px; border-color: transparent; background: transparent; color: #668087; }
.button.resource-soon:hover { border-color: #bfd3cf; background: #fff; }

.hero-visual { position: relative; margin: 0; min-width: 0; }
.hero-visual::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 7% -4% -5% 12%;
  border-radius: 36px;
  background: #cfe7e1;
  transform: rotate(2.5deg);
}
.hero-visual-frame {
  position: relative;
  overflow: hidden;
  padding: 10px;
  border: 1px solid #c5d9d5;
  border-radius: 28px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 28px 70px rgba(19, 63, 65, .14);
}
.hero-visual-frame::before {
  display: none;
}
#heroScene { min-height: 390px; border-radius: 20px; background: #f7faf9; }
#heroScene .os-svg { width: 100%; border-radius: 20px; }
.hero-visual figcaption {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin: 17px 20px 0;
  color: #688087;
  font-size: 12px;
  line-height: 1.6;
}
.hero-visual figcaption b { color: #234a52; white-space: nowrap; }
.paper-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 38px;
  align-items: center;
  width: var(--shell);
  margin: 55px auto 0;
  padding-top: 26px;
  border-top: 1px solid #cadcd8;
}
.paper-meta .authors { max-width: none; margin: 0; color: #3f6068; font-size: 13px; line-height: 1.8; }
.paper-meta .affiliations { margin: 0; color: #6c858b; font-size: 12px; white-space: nowrap; }
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: var(--shell);
  margin: 28px auto 0;
  overflow: hidden;
  border: 1px solid #c8dcd7;
  border-radius: 18px;
  background: rgba(255,255,255,.62);
}
.hero-facts > div { display: flex; align-items: baseline; gap: 11px; padding: 19px 24px; }
.hero-facts > div + div { border-left: 1px solid #d5e4e1; }
.hero-facts strong { color: var(--research-teal-dark); font-size: 29px; line-height: 1; letter-spacing: -.04em; }
.hero-facts span { color: #5d777e; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

.section-label { color: var(--research-teal-dark); font-weight: 600; }
.section-label::before { width: 24px; height: 2px; }
.statement {
  padding: 112px 0 118px;
  border-top: 0;
}
.statement h2, .section-intro h2, .results h2 {
  color: var(--research-ink);
  font-weight: 700;
  letter-spacing: -.045em;
}
.statement h2 { max-width: 980px; font-size: clamp(43px, 4.1vw, 64px); }
.statement h2 span { color: #708b92; }
.idea-grid { gap: 18px; margin-top: 48px; }
.idea-grid article {
  position: relative;
  min-height: 220px;
  padding: 30px 30px 28px;
  overflow: hidden;
  border: 1px solid #d5e2df;
  border-top: 1px solid #d5e2df;
  border-radius: var(--research-radius);
  background: #fff;
  box-shadow: 0 10px 32px rgba(17, 59, 61, .045);
}
.idea-grid article::after {
  content: '';
  position: absolute;
  width: 110px;
  height: 110px;
  right: -50px;
  bottom: -54px;
  border-radius: 50%;
  background: var(--idea-tint);
}
.idea-grid article > span { width: auto; height: auto; padding: 5px 9px; border-radius: 999px; }
.idea-grid h3 { margin-top: 36px; font-size: 21px; }
.idea-grid p { font-size: 15px; line-height: 1.75; }
#idea > .native-overview { margin-top: 72px; }
.native-overview, .opening-demo {
  border-color: #ccdeda !important;
  border-radius: 26px !important;
  box-shadow: 0 22px 70px rgba(16, 57, 59, .085) !important;
}

.cases-section {
  padding: 110px 0 118px;
  border-block: 1px solid #d3e2df;
  background: var(--research-wash);
}
.section-intro { margin-bottom: 48px; }
.section-intro h2 { font-size: clamp(43px, 4vw, 62px); }
.section-intro > p { max-width: 470px; color: #607b82; font-size: 16px; line-height: 1.75; }
.case-explorer {
  border-color: #cbded9;
  border-radius: 26px;
  box-shadow: 0 20px 65px rgba(17, 59, 61, .09);
}
.ce-tabs { padding: 12px 14px 0; background: #fff; }
.ce-tab { border-radius: 14px 14px 0 0; }
.ce-toolbar { background: #f4f8f7; }
.ce-play { border-radius: 999px; }
.ce-control, .ce-speed { border-radius: 10px; background: #fff; }

#method { background: #fff; }
body #evipilot-figure2 {
  max-width: 1360px;
  padding: 112px 0 118px;
  font-family: 'Manrope', 'Source Sans 3', system-ui, sans-serif;
}
body #evipilot-figure2 .f2-heading { margin-bottom: 58px; }
body #evipilot-figure2 .f2-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
}
body #evipilot-figure2 h2 {
  color: var(--research-ink);
  font-family: 'Manrope', 'Source Sans 3', system-ui, sans-serif;
  font-size: clamp(43px, 4vw, 62px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.045em;
}
body #evipilot-figure2 .f2-intro {
  color: #607b82;
  font-family: 'Manrope', 'Source Sans 3', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}
body #evipilot-figure2 dialog,
body #evipilot-figure2 button,
body #evipilot-figure2 .f2-sr {
  font-family: 'Manrope', 'Source Sans 3', system-ui, sans-serif;
}
body #evipilot-figure2 .f2-canvas {
  overflow: hidden;
  border: 1px solid #cedfdb;
  border-radius: 26px;
  background: #f7faf9;
  box-shadow: 0 18px 56px rgba(16, 57, 59, .075);
}

.results {
  padding: 96px 0 104px;
  border-top: 1px solid #cfe0dc;
  background: var(--research-wash);
}
.results > .shell > h2 { max-width: 760px; font-size: clamp(40px, 3.7vw, 58px); }
#native-results .nv-bench, .closed-loop-module, #detailed-scores {
  border-color: #cbded9;
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(17, 59, 61, .055);
}
#native-results { margin-top: 34px; }
.result-grid article { border-radius: 14px; }
.ds-scroll { border-radius: 13px; }

footer {
  width: 100% !important;
  min-height: 132px;
  padding-inline: max(32px, calc((100vw - 1360px) / 2));
  color: #afc1c3;
  background: var(--research-ink);
}
footer .brand { color: #fff; }
footer > a:not(.brand) { color: #c8e8e1; }

@media (max-width: 1150px) {
  :root { --shell: calc(100vw - 56px); }
  .hero h1 { font-size: clamp(52px, 6vw, 70px); }
  .paper-meta { grid-template-columns: 1fr; gap: 8px; }
  .paper-meta .affiliations { white-space: normal; }
  body #evipilot-figure2 { width: var(--shell); }
}

@media (max-width: 900px) {
  .nav { padding-inline: 28px; }
  .nav-links { display: none; }
  .hero { padding-top: 54px; }
  .hero-main { max-width: 760px; }
  .hero-visual { max-width: 720px; }
  .paper-meta { margin-top: 42px; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts > div + div { border-top: 1px solid #d5e4e1; border-left: 0; }
  .idea-grid { grid-template-columns: 1fr; }
  .idea-grid article { min-height: 0; }
  .statement, .cases-section, body #evipilot-figure2 { padding-block: 82px; }
}

@media (max-width: 650px) {
  :root { --shell: calc(100vw - 32px); }
  .nav { height: 66px; padding-inline: 16px; }
  .nav-pill { display: inline-flex; font-size: 12px; padding: 8px 12px; }
  .brand { font-size: 19px; }
  .hero { padding: 38px 0 30px; }
  .hero h1 { font-size: clamp(43px, 13vw, 60px); }
  .paper-subtitle { font-size: 20px; }
  .hero-lede { font-size: 15px; }
  .hero-actions { align-items: stretch; }
  .button.primary, .button.secondary:not(.resource-soon) { justify-content: center; flex: 1 1 auto; }
  .button.resource-soon { display: none; }
  .hero-visual-frame { padding: 6px; border-radius: 20px; }
  .hero-visual::before { display: none; }
  #heroScene { min-height: 0; }
  .hero-visual figcaption { display: block; margin-inline: 8px; }
  .hero-visual figcaption b { display: block; margin-bottom: 4px; }
  .paper-meta { margin-top: 30px; padding-top: 20px; }
  .hero-facts > div { padding: 16px 18px; }
  .statement, .cases-section, body #evipilot-figure2, .results { padding-block: 62px; }
  .statement h2, .section-intro h2, .results > .shell > h2 { font-size: 36px; }
  .idea-grid { margin-top: 32px; }
  .idea-grid article { padding: 24px; border-radius: 17px; }
  #idea > .native-overview { margin-top: 44px; }
  .native-overview, .opening-demo, .case-explorer, body #evipilot-figure2 .f2-canvas { border-radius: 17px !important; }
  body #evipilot-figure2 { width: var(--shell); }
  footer { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual::before { transform: none; }
}
