:root {
  color-scheme: light;
  --ink: #10171a;
  --muted: #5e6d70;
  --paper: #f5f8f7;
  --surface: #ffffff;
  --line: #d9e4e1;
  --charcoal: #071014;
  --charcoal-2: #101d21;
  --teal: #21c7b8;
  --blue: #376df4;
  --green: #21835f;
  --coral: #ee7154;
  --amber: #c88726;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(16, 23, 26, 0.14);
}

* {
  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;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

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

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

.brand {
  gap: 10px;
  font-size: 16px;
  font-weight: 760;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  background:
    radial-gradient(circle at 70% 35%, var(--coral) 0 12%, transparent 13%),
    radial-gradient(circle at 50% 50%, rgba(33, 199, 184, 0.2), transparent 58%);
  box-shadow: 0 0 22px rgba(33, 199, 184, 0.34);
}

.nav-links {
  gap: 26px;
  font-size: 14px;
  color: rgba(247, 251, 250, 0.76);
}

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

.nav-action {
  min-width: 142px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 740;
  background: var(--teal);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 84svh;
  overflow: hidden;
  color: #f8fbfb;
  background: var(--charcoal);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("./assets/cranioswift-hero.png");
  background-size: cover;
  background-position: 58% center;
  transform: scale(1.01);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 16, 20, 0.96) 0%, rgba(7, 16, 20, 0.82) 28%, rgba(7, 16, 20, 0.34) 68%, rgba(7, 16, 20, 0.08) 100%),
    linear-gradient(0deg, rgba(7, 16, 20, 0.38), transparent 28%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(84px, 12vw, 140px) 0 72px;
}

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

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

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

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(58px, 10vw, 122px);
  line-height: 0.92;
  font-weight: 830;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
  font-weight: 790;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.15;
}

.hero-copy {
  max-width: 610px;
  color: rgba(248, 251, 251, 0.82);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.48;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin: 36px 0 44px;
}

.button,
.contact-form button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 780;
  cursor: pointer;
}

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

.button.secondary {
  color: #f8fbfb;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

.button:hover,
.contact-form button:hover {
  transform: translateY(-1px);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 10px;
  max-width: 510px;
  margin-bottom: 0;
}

.hero-metrics div {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(8, 21, 25, 0.54);
}

.hero-metrics dt,
.metric-list dt {
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-metrics dd {
  margin-bottom: 0;
  color: #ffffff;
  font-weight: 760;
}

.section {
  padding: clamp(70px, 9vw, 118px) 0;
}

.section-inner {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.two-column,
.evidence-layout,
.about-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 0.78fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: start;
}

.intro {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.intro p:not(.eyebrow),
.evidence p,
.about p,
.contact p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 36px;
}

.section-heading.compact {
  margin-bottom: 26px;
}

.section-intro {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(248, 251, 251, 0.72);
  font-size: 18px;
  line-height: 1.58;
}

.workflow {
  background: var(--paper);
}

.workflow-grid,
.audience-grid,
.path-grid,
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.workflow-step,
.audience-grid article,
.path-grid article,
.status-list div,
.roadmap-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(16, 23, 26, 0.06);
}

.workflow-step {
  min-height: 246px;
  padding: 24px;
}

.workflow-step span {
  display: block;
  margin-bottom: 52px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 860;
}

.workflow-step p,
.audience-grid p,
.path-grid p,
.status-list p,
.roadmap-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.path-grid article {
  min-height: 280px;
  padding: 26px;
}

.path-grid span {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--green);
  font-size: 12px;
  font-weight: 860;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.path-grid p {
  margin-bottom: 22px;
}

.dark-link {
  color: var(--green);
}

.workspace {
  color: #eff9f7;
  background:
    linear-gradient(180deg, #0a171a 0%, #111f22 100%);
}

.workspace h2 {
  color: #f8fbfb;
}

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

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: stretch;
}

.viewer-pane,
.evidence-rail {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
}

.viewer-pane {
  overflow: hidden;
}

.viewer-toolbar,
.viewer-footer {
  justify-content: space-between;
  min-height: 52px;
  padding: 0 18px;
  color: rgba(248, 251, 251, 0.74);
  font-size: 13px;
  border-color: rgba(255, 255, 255, 0.1);
}

.viewer-toolbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.viewer-footer {
  gap: 16px;
  justify-content: flex-start;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.viewer-pane img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.evidence-rail {
  padding: 22px;
}

.case-status {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 12px;
  align-items: start;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 18px rgba(200, 135, 38, 0.62);
}

.case-status p {
  margin-bottom: 5px;
  color: rgba(248, 251, 251, 0.58);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.case-status strong {
  color: #ffffff;
  font-size: 17px;
  line-height: 1.35;
}

.metric-list {
  margin: 20px 0;
}

.metric-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-list dt {
  color: rgba(248, 251, 251, 0.56);
}

.metric-list dd {
  margin-bottom: 0;
  color: #ffffff;
  font-weight: 780;
  text-align: right;
}

.text-link {
  display: inline-flex;
  color: var(--teal);
  font-weight: 800;
}

.audience,
.clinical {
  background: #ffffff;
}

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

.audience-grid article {
  min-height: 190px;
  padding: 26px;
}

.evidence {
  background: #eef4f1;
}

.partners {
  background: var(--paper);
}

.roadmap {
  background: #ffffff;
}

.about {
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.about-layout {
  margin-bottom: 30px;
}

.about-layout p {
  max-width: 680px;
}

.origin-card {
  min-height: 280px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(33, 199, 184, 0.08), rgba(55, 109, 244, 0.05)),
    var(--paper);
  box-shadow: 0 12px 34px rgba(16, 23, 26, 0.08);
}

.origin-card span,
.team-grid span {
  display: inline-flex;
  margin-bottom: 46px;
  color: var(--green);
  font-size: 12px;
  font-weight: 860;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.origin-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.96;
  letter-spacing: 0;
}

.origin-card p {
  margin-bottom: 0;
}

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

.team-grid article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(16, 23, 26, 0.06);
}

.team-grid p {
  margin-bottom: 0;
}

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

.roadmap-grid article {
  min-height: 230px;
  padding: 26px;
}

.roadmap-grid span {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 860;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.status-list {
  display: grid;
  gap: 12px;
}

.status-list div {
  padding: 20px;
}

.status-list span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 860;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact {
  background: #ffffff;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 740;
}

.contact-form input,
.contact-form select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.contact-form button {
  width: 100%;
  margin-top: 8px;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 0 40px;
  color: rgba(248, 251, 251, 0.72);
  background: var(--charcoal);
  font-size: 14px;
}

.site-footer span:first-child {
  color: #ffffff;
  font-weight: 780;
}

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

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: 96px;
  }

  .hero-media {
    background-position: 67% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(7, 16, 20, 0.95) 0%, rgba(7, 16, 20, 0.72) 56%, rgba(7, 16, 20, 0.38) 100%),
      linear-gradient(0deg, rgba(7, 16, 20, 0.48), transparent 34%);
  }

  .two-column,
  .evidence-layout,
  .about-layout,
  .contact-layout,
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .workflow-grid,
  .audience-grid,
  .path-grid,
  .team-grid,
  .roadmap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .evidence-rail {
    order: -1;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 62px;
    padding: 0 16px;
  }

  .brand {
    font-size: 15px;
  }

  .nav-action {
    min-width: 132px;
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero-content,
  .section-inner {
    width: min(100% - 32px, 1160px);
  }

  .hero-content {
    padding: 76px 0 54px;
  }

  h1 {
    font-size: clamp(42px, 12vw, 54px);
  }

  h2 {
    font-size: clamp(31px, 9vw, 42px);
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .workflow-grid,
  .audience-grid,
  .path-grid,
  .team-grid,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .workflow-step {
    min-height: 210px;
  }

  .workflow-step span {
    margin-bottom: 34px;
  }

  .viewer-toolbar,
  .viewer-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 64px;
  }

  .metric-list div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .metric-list dd {
    text-align: left;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    min-height: 96px;
    padding: 18px 16px;
  }
}
