:root {
  color-scheme: dark;
  --bg: #000000;
  --bg-subtle: #0a0a0a;
  --surface: #0f0f0f;
  --surface-raised: #161616;
  --surface-elevated: #1a1a1a;
  --border-hairline: rgba(255, 255, 255, 0.05);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: #333333;
  --text: #e2e2e2;
  --text-secondary: #c4c7c9;
  --text-tertiary: #9b9b9b;
  --muted: #6f6f6f;
  --inverse: #0a0a0a;
  --trace: #8b5cf6;
  --ice: #9fd0e8;
  --success: #7dc9a2;
  --warning: #c9a84c;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shell: min(1120px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 70% 0%, rgba(139, 92, 246, 0.14), transparent 28rem),
    linear-gradient(180deg, #030303 0%, var(--bg) 34rem);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 70%);
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  width: var(--shell);
  height: 76px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
}

.site-header.is-elevated {
  border-color: var(--border-subtle);
}

.brand,
.nav-links,
.hero-actions,
.metric-strip,
.surface-header,
.dose-row,
.progress-module,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand img {
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
}

.nav-links {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border-hairline);
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.64);
}

.nav-links a {
  border-radius: 999px;
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 14px;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.section-shell {
  width: var(--shell);
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: calc(100vh - 76px);
  grid-template-columns: minmax(0, 0.98fr) minmax(340px, 0.78fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  padding: 54px 0 78px;
}

.hero-copy {
  min-width: 0;
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1.7;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

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

h1 {
  margin-bottom: 22px;
  color: var(--text);
  font-size: clamp(56px, 8vw, 104px);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 0.94;
}

h2 {
  margin-bottom: 18px;
  color: var(--text);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.24;
}

p {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.72;
  overflow-wrap: break-word;
}

.hero-lede {
  max-width: 640px;
  margin-bottom: 30px;
  color: var(--text-secondary);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.62;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: var(--text);
  color: var(--inverse);
  font-size: 15px;
  font-weight: 750;
  padding: 0 24px;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.button:focus-visible,
.icon-button:focus-visible,
.nav-links a:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 4px;
}

.button svg {
  width: 18px;
  height: 18px;
}

svg {
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.button-secondary {
  border-color: var(--border-strong);
  background: rgba(15, 15, 15, 0.7);
  color: var(--text);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: var(--surface-elevated);
}

.button-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
}

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

.metric-strip {
  width: min(100%, 620px);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  background: var(--border-hairline);
}

.metric-strip div {
  flex: 1 1 0;
  min-width: 120px;
  padding: 18px;
  background: rgba(15, 15, 15, 0.72);
}

.metric-strip strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 22px;
}

.metric-strip span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.hero-device {
  position: relative;
  display: grid;
  justify-items: center;
}

.hero-device img {
  position: relative;
  z-index: 2;
  width: min(100%, 440px);
  filter: drop-shadow(0 36px 92px rgba(0, 0, 0, 0.62));
}

.device-glow {
  position: absolute;
  inset: 12% 9% 10%;
  border-radius: 40%;
  background:
    radial-gradient(circle at 55% 16%, rgba(255, 255, 255, 0.22), transparent 24%),
    radial-gradient(circle at 44% 54%, rgba(139, 92, 246, 0.22), transparent 38%);
  filter: blur(34px);
  opacity: 0.9;
}

.component-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 24px 0 108px;
}

.mini-card,
.feature-card,
.app-surface,
.proof-panel,
.cta-section {
  border: 1px solid var(--border-subtle);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(15, 15, 15, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mini-card {
  min-height: 230px;
  border-radius: var(--radius-xl);
  padding: 24px;
}

.icon-shell {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--surface-raised);
  color: var(--ice);
}

.icon-shell svg {
  width: 21px;
  height: 21px;
}

.mini-card p,
.feature-card p {
  margin-bottom: 0;
  color: var(--text-tertiary);
  font-size: 15px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: center;
  padding: 0 0 118px;
}

.section-copy {
  max-width: 520px;
}

.app-surface {
  border-radius: var(--radius-xl);
  padding: 18px;
}

.surface-header {
  justify-content: space-between;
  gap: 16px;
  padding: 4px 4px 16px;
}

.surface-header span,
.dose-row span,
.progress-module span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.surface-header strong,
.dose-row strong,
.progress-module strong {
  display: block;
  color: var(--text);
  font-size: 17px;
}

.status-pill {
  border: 1px solid rgba(125, 201, 162, 0.18);
  border-radius: 999px;
  background: rgba(125, 201, 162, 0.08);
  color: var(--success) !important;
  padding: 8px 12px;
}

.dose-row {
  gap: 14px;
  min-height: 74px;
  margin-top: 10px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.26);
  padding: 12px;
}

.dose-row > div:nth-child(2) {
  flex: 1;
}

.vial-mark {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(139, 92, 246, 0.42);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.72) 0 7%, transparent 8%),
    linear-gradient(180deg, rgba(139, 92, 246, 0.9), rgba(58, 33, 143, 0.44));
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.16);
}

.vial-ice {
  border-color: rgba(159, 208, 232, 0.42);
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.78) 0 7%, transparent 8%),
    linear-gradient(180deg, rgba(159, 208, 232, 0.9), rgba(58, 127, 168, 0.38));
  box-shadow: 0 0 28px rgba(159, 208, 232, 0.16);
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--surface-raised);
  color: var(--text);
  cursor: pointer;
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.progress-module {
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.22);
  padding: 18px;
}

.progress-module strong {
  margin-top: 6px;
  font-size: 36px;
  line-height: 1;
}

.rings {
  display: flex;
  gap: 7px;
}

.rings i {
  width: 16px;
  height: 42px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: linear-gradient(to top, var(--trace) var(--fill, 70%), rgba(255, 255, 255, 0.05) 0);
}

.rings i:nth-child(1) { --fill: 92%; }
.rings i:nth-child(2) { --fill: 72%; }
.rings i:nth-child(3) { --fill: 84%; }
.rings i:nth-child(4) { --fill: 100%; }
.rings i:nth-child(5) { --fill: 78%; }
.rings i:nth-child(6) { --fill: 66%; }
.rings i:nth-child(7) { --fill: 88%; }

.feature-section {
  padding-bottom: 116px;
}

.section-heading {
  max-width: 620px;
  margin-bottom: 28px;
}

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

.feature-card {
  min-height: 240px;
  border-radius: var(--radius-xl);
  padding: 22px;
}

.feature-card span {
  display: inline-flex;
  margin-bottom: 42px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
}

.proof-section {
  padding-bottom: 116px;
}

.proof-panel {
  display: grid;
  grid-template-columns: 0.62fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  overflow: hidden;
  border-radius: 32px;
  padding: clamp(24px, 5vw, 52px);
}

.proof-panel img {
  width: min(100%, 330px);
  justify-self: center;
  border-radius: 28px;
  filter: drop-shadow(0 24px 64px rgba(0, 0, 0, 0.5));
}

.proof-panel p:last-child,
.cta-section p {
  max-width: 660px;
  margin-bottom: 0;
}

.cta-section {
  display: grid;
  justify-items: center;
  border-radius: 32px;
  padding: clamp(38px, 7vw, 76px) clamp(22px, 5vw, 62px);
  text-align: center;
}

.cta-section h2 {
  max-width: 820px;
}

.cta-section p {
  margin-bottom: 28px;
}

.site-footer {
  width: var(--shell);
  justify-content: space-between;
  margin: 0 auto;
  padding: 42px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.site-footer a {
  color: var(--text-tertiary);
  transition: color 180ms ease;
}

.site-footer a:hover {
  color: var(--text);
}

.legal-page {
  padding-bottom: 40px;
}

.legal-hero {
  padding: 76px 0 36px;
}

.legal-hero h1 {
  max-width: 880px;
  margin-bottom: 20px;
  font-size: clamp(48px, 7vw, 88px);
}

.legal-hero p {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(18px, 2vw, 21px);
}

.legal-hero span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: rgba(15, 15, 15, 0.7);
  padding: 10px;
}

.legal-toc a {
  border-radius: 999px;
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  padding: 10px 12px;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.legal-toc a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.legal-card {
  border: 1px solid var(--border-subtle);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(15, 15, 15, 0.78);
  padding: clamp(24px, 5vw, 54px);
}

.legal-section {
  padding: 0 0 34px;
}

.legal-section + .legal-section {
  border-top: 1px solid var(--border-hairline);
  padding-top: 34px;
}

.legal-section h2 {
  margin-bottom: 16px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.14;
}

.legal-section p,
.legal-section li {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.78;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section a {
  color: var(--ice);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.privacy-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  background: rgba(0, 0, 0, 0.2);
}

.privacy-table > div {
  display: grid;
  grid-template-columns: 0.55fr 1fr 1fr;
  border-top: 1px solid var(--border-hairline);
}

.privacy-table > div:first-child {
  border-top: 0;
  background: rgba(255, 255, 255, 0.035);
}

.privacy-table strong,
.privacy-table span {
  padding: 14px;
  border-left: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.privacy-table strong:first-child,
.privacy-table span:first-child {
  border-left: 0;
}

.privacy-table strong {
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-note {
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: var(--radius-xl);
  background: rgba(201, 168, 76, 0.08);
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  padding: 18px;
}

.legal-note strong {
  color: var(--warning);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  :root {
    --shell: min(100vw - 28px, 760px);
  }

  .site-header {
    height: 68px;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .split-section,
  .proof-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding: 42px 0 62px;
  }

  .hero-copy,
  .section-copy,
  .section-heading {
    max-width: none;
  }

  .hero-device img {
    width: min(86vw, 390px);
  }

  .component-band,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .privacy-table > div {
    grid-template-columns: 1fr;
  }

  .privacy-table strong,
  .privacy-table span {
    border-left: 0;
    border-top: 1px solid var(--border-hairline);
  }

  .privacy-table strong:first-child,
  .privacy-table span:first-child {
    border-top: 0;
  }

  .split-section,
  .feature-section,
  .proof-section {
    padding-bottom: 82px;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: min(100vw - 24px, 520px);
  }

  body {
    background:
      radial-gradient(circle at 70% 0%, rgba(139, 92, 246, 0.12), transparent 20rem),
      #000;
  }

  .site-header .button {
    display: none;
  }

  .site-header,
  .section-shell,
  .hero {
    width: calc(100% - 24px);
    max-width: 366px;
    margin-left: 12px;
    margin-right: 12px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-top: 30px;
  }

  h1 {
    font-size: clamp(48px, 15vw, 58px);
  }

  .eyebrow {
    max-width: 366px;
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .hero-copy,
  .hero-lede {
    width: 100%;
    max-width: 366px;
  }

  .hero-lede {
    font-size: 18px;
  }

  .hero-actions,
  .metric-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .metric-strip div {
    width: 100%;
  }

  .component-band,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .mini-card,
  .feature-card {
    min-height: auto;
  }

  .progress-module {
    align-items: flex-start;
    flex-direction: column;
  }

  .proof-panel,
  .cta-section,
  .legal-card,
  .legal-toc {
    border-radius: var(--radius-xl);
  }

  .legal-hero {
    padding-top: 44px;
  }

  .legal-toc {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-bottom: 28px;
  }
}
