:root {
  color-scheme: light;
  --ink: #102024;
  --muted: #657477;
  --faint: #8b999b;
  --page: #eef4f2;
  --paper: #ffffff;
  --panel: #f7faf9;
  --line: #d8e3e0;
  --charcoal: #071014;
  --charcoal-2: #102126;
  --teal: #21c7b8;
  --teal-ink: #0d8f84;
  --blue: #376df4;
  --green: #21835f;
  --amber: #c88726;
  --coral: #ee7154;
  --radius: 8px;
}

* {
  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;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.research-banner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 7px 20px;
  color: #ffe6e3;
  background: #2b0a08;
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 64px;
  color: #d9e5e6;
  background: rgba(7, 16, 20, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 780;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  background:
    radial-gradient(circle at 68% 34%, var(--coral) 0 13%, transparent 14%),
    radial-gradient(circle at 50% 50%, rgba(33, 199, 184, 0.2), transparent 58%);
}

.nav-links {
  gap: 28px;
  font-size: 14px;
}

.nav-links a {
  color: rgba(230, 239, 240, 0.78);
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-action,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: var(--radius);
  font-weight: 780;
}

.nav-action,
.button.primary {
  color: #071014;
  background: var(--teal);
}

.button.secondary {
  color: var(--ink);
  background: #ffffff;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: var(--charcoal);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("./assets/cranioswift-hero.png");
  background-size: cover;
  background-position: 70% center;
  opacity: 0.52;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 16, 20, 0.98), rgba(7, 16, 20, 0.84) 45%, rgba(7, 16, 20, 0.28)),
    linear-gradient(180deg, rgba(7, 16, 20, 0.05), rgba(7, 16, 20, 0.46));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 92px 0 74px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 840;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--teal-ink);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(72px, 11vw, 112px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.18;
}

.hero-lede {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  font-weight: 760;
}

.hero-copy {
  max-width: 680px;
  color: #d5e1e1;
  font-size: 21px;
  line-height: 1.44;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.metrics,
.section,
.site-footer {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 180px));
  gap: 22px;
  padding: 54px 0 22px;
}

.metric strong {
  display: block;
  font-size: 38px;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 76px 0;
}

.platform,
.pilot,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 70px;
  align-items: start;
}

.section p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.principle-grid,
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.principle-grid article,
.evidence-grid article {
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.principle-grid article:nth-child(1) {
  background: #e9f7f0;
  border-color: var(--green);
}

.principle-grid article:nth-child(2) {
  background: #eaf0ff;
  border-color: var(--blue);
}

.principle-grid article:nth-child(3) {
  background: #e8fbf8;
  border-color: var(--teal-ink);
}

.pilot {
  padding: 44px;
  background: #fff5df;
  border: 1px solid var(--amber);
  border-radius: var(--radius);
}

.pilot-steps {
  display: grid;
  gap: 12px;
}

.pilot-steps span {
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid rgba(200, 135, 38, 0.35);
  border-radius: var(--radius);
  font-weight: 740;
}

.section-heading {
  max-width: 840px;
  margin-bottom: 34px;
}

.split-heading {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 70px;
  align-items: end;
}

.split-heading p {
  margin-bottom: 20px;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.role-grid article {
  min-height: 260px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  align-content: start;
  gap: 10px;
}

.role-grid article:nth-child(1) {
  border-color: var(--blue);
  background: #eef3ff;
}

.role-grid article:nth-child(2) {
  border-color: #9f8df2;
  background: #f2efff;
}

.role-grid article:nth-child(3) {
  border-color: var(--green);
  background: #e9f7f0;
}

.role-grid article:nth-child(4) {
  border-color: var(--amber);
  background: #fff5df;
}

.role-grid span,
.package-panel-head span,
.manifest-list strong,
.state-stack span,
.roadmap-lanes span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.role-grid h3,
.package-panel h3,
.roadmap-lanes h3 {
  margin-bottom: 4px;
}

.role-grid p,
.package-panel p,
.roadmap-lanes p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.workbench-preview {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 280px;
  gap: 22px;
  min-height: 460px;
  overflow: hidden;
  background: #f2f6f5;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.preview-sidebar {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 28px;
  color: #d9e5e6;
  background: var(--charcoal-2);
}

.preview-sidebar strong,
.preview-review strong {
  margin-bottom: 4px;
  font-size: 20px;
}

.preview-sidebar span,
.preview-review span {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.preview-sidebar .active-case {
  color: #ffffff;
  border-color: var(--teal);
  background: rgba(33, 199, 184, 0.13);
}

.preview-main {
  padding: 28px 0;
}

.preview-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.preview-flow span {
  padding: 14px;
  color: var(--teal-ink);
  background: #e8fbf8;
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 780;
}

.preview-flow .needs-decision {
  color: var(--amber);
  background: #fff5df;
  border-color: var(--amber);
}

.preview-viewer {
  position: relative;
  height: 310px;
  overflow: hidden;
  background: #0b171b;
  border-radius: var(--radius);
}

.preview-review {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 28px 20px;
  background: #ffffff;
  border-left: 1px solid var(--line);
}

.preview-review span {
  border-color: var(--line);
}

.preview-review .selected {
  color: var(--amber);
  background: #fff5df;
  border-color: var(--amber);
}

.skull-shape,
.defect-shape,
.implant-shape {
  position: absolute;
  display: block;
  border-radius: 50%;
}

.skull-shape {
  width: 390px;
  height: 210px;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  background: #1c343a;
  border: 1px solid #32525a;
}

.defect-shape {
  width: 118px;
  height: 88px;
  left: calc(50% + 90px);
  top: calc(50% - 48px);
  background: rgba(238, 113, 84, 0.78);
}

.implant-shape {
  width: 82px;
  height: 60px;
  left: calc(50% + 108px);
  top: calc(50% - 34px);
  background: var(--teal);
}

.text-link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--teal-ink);
  font-weight: 820;
}

.package {
  padding-top: 86px;
}

.package-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: stretch;
}

.package-panel {
  padding: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.package-panel--manifest {
  background: var(--charcoal-2);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.1);
}

.package-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.package-panel-head span {
  color: var(--teal);
}

.package-panel-head strong {
  color: var(--teal);
  font-size: 16px;
}

.manifest-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.manifest-list li {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 16px 16px 42px;
  color: #d9e5e6;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.manifest-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 21px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
}

.manifest-list li[data-state="done"]::before {
  background: var(--teal);
}

.manifest-list strong {
  color: inherit;
  white-space: nowrap;
}

.package-panel--detail {
  display: grid;
  align-content: start;
}

.state-stack {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.state-stack article {
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.state-stack article:nth-child(1) {
  border-color: #9f8df2;
  background: #f2efff;
}

.state-stack article:nth-child(2) {
  border-color: var(--green);
  background: #e9f7f0;
}

.state-stack article:nth-child(3) {
  border-color: var(--amber);
  background: #fff5df;
}

.state-stack span {
  display: block;
  margin-bottom: 8px;
}

.evidence-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.evidence-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.evidence-grid strong {
  display: block;
  margin: 18px 0 8px;
  font-size: 38px;
  line-height: 1;
}

.quality-roadmap {
  padding-top: 56px;
}

.roadmap-lanes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.roadmap-lanes article {
  min-height: 230px;
  padding: 28px;
  background: var(--paper);
  border-right: 1px solid var(--line);
}

.roadmap-lanes article:last-child {
  border-right: 0;
}

.roadmap-lanes article:nth-child(1) {
  background: #e8fbf8;
}

.roadmap-lanes article:nth-child(2) {
  background: #eef3ff;
}

.roadmap-lanes article:nth-child(3) {
  background: #fff5df;
}

.roadmap-lanes article:nth-child(4) {
  background: #f7faf9;
}

.contact {
  margin-bottom: 70px;
  padding: 48px;
  background: var(--charcoal);
  border-radius: var(--radius);
  color: #ffffff;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
}

.contact h2,
.contact p {
  color: #ffffff;
}

.contact h2 {
  max-width: 760px;
  font-size: clamp(38px, 5vw, 58px);
}

.contact p {
  max-width: 720px;
  color: #cbd9da;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 920px) {
  .site-header {
    padding: 0 24px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 620px;
  }

  .metrics,
  .platform,
  .pilot,
  .split-heading,
  .role-grid,
  .package-layout,
  .workbench-preview,
  .evidence-grid,
  .roadmap-lanes,
  .contact {
    grid-template-columns: 1fr;
  }

  .principle-grid {
    grid-template-columns: 1fr;
  }

  .workbench-preview {
    min-height: auto;
  }

  .preview-main,
  .preview-review {
    padding: 24px;
  }

  .preview-flow {
    grid-template-columns: 1fr 1fr;
  }

  .role-grid article {
    min-height: auto;
  }

  .manifest-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .roadmap-lanes article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .roadmap-lanes article:last-child {
    border-bottom: 0;
  }

  .site-footer {
    flex-direction: column;
  }
}
