:root {
  --ink: #21172f;
  --muted: #756d80;
  --paper: #fcf9ff;
  --lavender: #eee7fa;
  --lavender-strong: #ddd0f2;
  --violet: #5f3d96;
  --violet-dark: #342052;
  --white: #ffffff;
  --line: rgba(52, 32, 82, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.shell { width: min(1280px, calc(100% - 48px)); margin-inline: auto; }
header {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: var(--violet);
  color: var(--white);
  font-size: 0.76rem;
  letter-spacing: 0;
}
nav { display: flex; align-items: center; gap: 26px; }
nav a, footer a {
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.language { padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; }

.hero {
  display: grid;
  min-height: 720px;
  align-items: center;
  gap: 5%;
  padding: 58px 64px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: var(--white);
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
}
.hero-copy { max-width: 670px; }
.eyebrow {
  margin: 0 0 20px;
  color: var(--violet);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(4.6rem, 8vw, 8.1rem);
  font-weight: 780;
  letter-spacing: -0.07em;
  line-height: 0.9;
}
.lead { max-width: 590px; margin: 30px 0 0; color: var(--muted); font-size: 1.17rem; }
.actions { display: flex; align-items: center; gap: 22px; margin-top: 32px; }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 15px;
  background: var(--violet);
  color: var(--white);
  font-size: 0.79rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}
.text-link { font-size: 0.8rem; font-weight: 850; text-underline-offset: 5px; }
.proof { display: flex; flex-wrap: wrap; gap: 9px; margin: 34px 0 0; padding: 0; list-style: none; }
.proof li {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.device-stage {
  display: grid;
  min-height: 620px;
  place-items: center;
  overflow: hidden;
  border-radius: 28px;
  background: var(--lavender);
}
.device {
  position: relative;
  width: min(520px, 112%);
  aspect-ratio: 941 / 1672;
  filter: drop-shadow(0 30px 30px rgba(44, 25, 69, 0.2));
}
.screen {
  position: absolute;
  top: 9.15%;
  left: 19.23%;
  width: 63.65%;
  height: 81.7%;
  border-radius: 9.5% / 4.2%;
  object-fit: cover;
}
.frame { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.hero-device { transform: translateY(14%); }

.principles {
  display: grid;
  gap: 1px;
  margin: 34px 0 124px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--line);
  grid-template-columns: repeat(3, 1fr);
}
.principles article { min-height: 220px; padding: 34px; background: var(--white); }
.principles span, .story-copy > span {
  color: var(--violet);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.principles h2 { margin: 18px 0 8px; font-size: 1.55rem; letter-spacing: -0.03em; }
.principles p { margin: 0; color: var(--muted); }

.experience { margin-bottom: 120px; }
.section-heading { max-width: 850px; margin: 0 auto 76px; text-align: center; }
.section-heading h2, .closing h2 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 5.3rem);
  font-weight: 760;
  letter-spacing: -0.06em;
  line-height: 0.98;
}
.section-heading p:last-child { color: var(--muted); font-size: 1.05rem; }
.story {
  display: grid;
  min-height: 690px;
  align-items: center;
  gap: 7%;
  margin-bottom: 28px;
  padding: 58px;
  border-radius: 32px;
  background: var(--lavender);
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
}
.story:nth-of-type(2) { background: #f0e7f2; }
.story:nth-of-type(3) { background: #e7edf0; }
.story.reverse { grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr); }
.story.reverse .story-copy { order: 2; }
.story-copy { max-width: 500px; }
.story h3 { margin: 22px 0 18px; font-size: clamp(2.6rem, 4.1vw, 4.7rem); letter-spacing: -0.055em; line-height: 1; }
.story-copy p { margin: 0; color: #655d70; font-size: 1.06rem; }
.story .device-stage { min-height: 570px; background: rgba(255,255,255,0.52); }
.story .device { width: min(460px, 108%); transform: translateY(15%); }

.medical {
  display: grid;
  align-items: start;
  gap: 28px;
  margin-bottom: 28px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  grid-template-columns: 0.35fr 1fr;
}
.medical h2 { margin: 0; font-size: 1.25rem; }
.medical p { margin: 0; color: var(--muted); }
.closing {
  margin-bottom: 96px;
  padding: 82px 64px;
  border-radius: 32px;
  background: var(--violet-dark);
  color: var(--white);
  text-align: center;
}
.closing .eyebrow { color: #ccb9ed; }
.closing h2 { max-width: 900px; margin-inline: auto; }
.closing .button { margin-top: 34px; background: var(--white); color: var(--violet-dark); }
footer {
  display: flex;
  min-height: 130px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }

@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 790px; }
  .device-stage { min-height: 580px; }
  .hero-device { width: min(500px, 100%); }
  .story, .story.reverse { grid-template-columns: 1fr; }
  .story-copy { max-width: 720px; }
  .story.reverse .story-copy { order: 0; }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 28px, 1280px); }
  header { min-height: 80px; }
  nav a:not(.language) { display: none; }
  .hero { min-height: 0; padding: 38px 20px 0; border-radius: 24px; }
  h1 { font-size: clamp(3.6rem, 18vw, 5.4rem); }
  .lead { font-size: 1rem; }
  .actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .proof { margin-top: 26px; }
  .device-stage { min-height: 510px; }
  .hero-device { width: 470px; max-width: 118%; }
  .principles { grid-template-columns: 1fr; margin-bottom: 84px; }
  .principles article { min-height: 0; padding: 28px; }
  .section-heading { margin-bottom: 42px; text-align: left; }
  .section-heading h2, .closing h2 { font-size: 2.8rem; }
  .story { min-height: 0; gap: 32px; padding: 34px 20px 0; border-radius: 24px; }
  .story h3 { font-size: 2.55rem; }
  .story .device-stage { min-height: 500px; }
  .story .device { width: 460px; max-width: 118%; }
  .medical { grid-template-columns: 1fr; padding: 30px 24px; }
  .closing { padding: 56px 24px; border-radius: 24px; }
  .closing .button { width: 100%; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; padding: 32px 0; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
