:root {
  color-scheme: dark;
  --bg: #090b0d;
  --surface: #101418;
  --surface-2: #151b20;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.2);
  --text: #f5f7f8;
  --muted: #a6afb8;
  --subtle: #68737d;
  --gold: #d39b48;
  --cyan: #70c9d7;
  --rose: #e592a8;
  --green: #82c77b;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(180deg, #10151a 0%, #090b0d 46%, #08090a 100%);
  background-size: 72px 72px, 72px 72px, auto;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, rgba(211, 155, 72, 0.11), transparent 34%),
    linear-gradient(245deg, rgba(112, 201, 215, 0.1), transparent 30%);
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
}

.site-shell,
.page-shell,
.policy-page {
  width: min(var(--max), calc(100vw - 40px));
  margin: 0 auto;
}

.site-shell {
  padding: 28px 0 56px;
}

.page-shell,
.policy-page {
  padding: 28px 0 64px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: clamp(44px, 8vw, 88px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.brand-mark img {
  display: block;
  width: 28px;
  height: auto;
  filter: invert(1) brightness(1.15);
  opacity: 0.92;
}

.site-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.site-nav a,
.back-link,
.text-link {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a {
  min-height: 36px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 650;
}

.site-nav a:hover,
.back-link:hover,
.text-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(36px, 7vw, 88px);
  align-items: center;
  min-height: min(680px, calc(100vh - 150px));
}

.hero-copy,
.product-copy {
  display: grid;
  gap: 22px;
  align-content: start;
}

.eyebrow,
.status-pill,
.metric-label {
  margin: 0;
  color: var(--subtle);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  max-width: 12ch;
  font-size: clamp(3.6rem, 9vw, 7.6rem);
  line-height: 0.9;
  font-weight: 760;
  letter-spacing: -0.04em;
}

.product-page h1 {
  max-width: 11ch;
  font-size: clamp(3.2rem, 8vw, 6.9rem);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.25;
}

.lede,
.body-copy,
.feature-card p,
.policy p,
.policy li,
.timeline li,
.product-summary {
  color: var(--muted);
  line-height: 1.65;
}

.lede {
  max-width: 42rem;
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
}

.body-copy {
  max-width: 42rem;
  font-size: 1rem;
}

.logo-panel {
  display: grid;
  gap: 20px;
  align-content: center;
  min-height: 420px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    var(--surface);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

.brand-logo {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  filter: invert(1) brightness(1.12) drop-shadow(0 20px 38px rgba(0, 0, 0, 0.35));
  opacity: 0.9;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(26, 1fr);
  gap: 4px;
  height: 84px;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.signal-strip span {
  display: block;
  height: calc(20px + var(--h) * 1px);
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), rgba(112, 201, 215, 0.12));
  opacity: var(--o);
}

.hero-actions,
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button,
.button-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 0 17px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

.button {
  border: 1px solid rgba(211, 155, 72, 0.72);
  background: var(--gold);
  color: #12100b;
}

.button-secondary {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
}

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

.app-store-badge {
  display: inline-flex;
  width: 150px;
  height: 50px;
  line-height: 0;
  text-decoration: none;
}

.app-store-badge img {
  display: block;
  width: 150px;
  height: 50px;
}

.app-store-badge:hover {
  transform: translateY(-1px);
}

.section {
  margin-top: clamp(64px, 12vw, 120px);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.section-heading p {
  max-width: 34rem;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

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

.product-card,
.feature-card,
.policy {
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(11, 14, 16, 0.82);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.25);
}

.product-card {
  display: grid;
  gap: 22px;
  min-height: 420px;
  padding: 22px;
  text-decoration: none;
}

.product-card:hover {
  border-color: var(--border-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.024)),
    rgba(11, 14, 16, 0.9);
}

.product-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.product-title {
  margin-bottom: 7px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.025em;
}

.product-summary {
  max-width: 30rem;
  margin-bottom: 0;
}

.status-pill {
  width: fit-content;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  white-space: nowrap;
}

.mini-mockup {
  display: grid;
  min-height: 190px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #080a0c;
  overflow: hidden;
}

.trace {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 16px;
}

.trace::before,
.trace::after {
  position: absolute;
  right: 12px;
  left: 12px;
  height: 1px;
  background: rgba(211, 155, 72, 0.36);
  content: "";
}

.trace::before {
  top: 44%;
}

.trace::after {
  top: 57%;
}

.trace-dots {
  position: relative;
  height: 122px;
}

.trace-dots span {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(46% + var(--y) * 1px);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 20px rgba(211, 155, 72, 0.62);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.metric {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.metric strong {
  display: block;
  margin-top: 4px;
  font-size: 1.2rem;
}

.crib-monitor {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
}

.monitor-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.monitor-status {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.waveform {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  min-height: 110px;
}

.waveform span {
  display: block;
  width: 7px;
  height: calc(22px + var(--h) * 1px);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--rose), rgba(229, 146, 168, 0.2));
}

.monitor-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.feature-card {
  padding: 22px;
}

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

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(34px, 7vw, 88px);
  align-items: center;
  margin-top: 44px;
}

.product-visual {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), transparent 35%),
    rgba(11, 14, 16, 0.88);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.screenshot-hero {
  display: grid;
  place-items: center;
  overflow: hidden;
}

.screenshot-hero img,
.screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  background: #eff0f5;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.screenshot-hero img {
  width: min(100%, 390px);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.screenshot-card {
  display: grid;
  gap: 12px;
  margin: 0;
}

.screenshot-card.featured {
  grid-column: span 2;
  grid-row: span 2;
}

.screenshot-card figcaption {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.phone-frame {
  width: min(100%, 390px);
  margin: 0 auto;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  background: #050607;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.phone-screen {
  min-height: 600px;
  padding: 20px;
  border-radius: 24px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #12181d, #07090b);
  background-size: 38px 38px, 38px 38px, auto;
}

.app-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.app-name {
  margin-bottom: 4px;
  font-size: 1.1rem;
  font-weight: 760;
}

.app-mode {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-dot::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 20px rgba(130, 199, 123, 0.8);
  content: "";
}

.reading-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.big-reading {
  margin-bottom: 0;
  font-size: clamp(3rem, 8vw, 4.6rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.big-reading span {
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0;
}

.graph {
  position: relative;
  height: 142px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    rgba(255, 255, 255, 0.025);
  background-size: 28px 28px;
  overflow: hidden;
}

.graph span {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(50% + var(--y) * 1px);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent, var(--gold));
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent, var(--gold)) 70%, transparent);
}

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

.app-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.app-list strong {
  color: var(--text);
}

.crib-screen {
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #17171c, #09090d);
  background-size: 38px 38px, 38px 38px, auto;
}

.crib-status-card {
  display: grid;
  gap: 18px;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid rgba(229, 146, 168, 0.35);
  border-radius: 12px;
  background: rgba(229, 146, 168, 0.09);
}

.sleep-ring {
  display: grid;
  width: 190px;
  height: 190px;
  place-items: center;
  justify-self: center;
  border: 16px solid rgba(229, 146, 168, 0.18);
  border-top-color: var(--rose);
  border-right-color: var(--rose);
  border-radius: 50%;
}

.sleep-ring strong {
  display: block;
  font-size: 2.4rem;
  line-height: 1;
}

.sleep-ring span {
  color: var(--muted);
  font-size: 0.82rem;
}

.timeline {
  margin: 0;
  padding-left: 1.2rem;
}

.timeline li + li {
  margin-top: 10px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: clamp(64px, 10vw, 110px);
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--subtle);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

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

.back-link {
  display: inline-flex;
  width: fit-content;
  min-height: 36px;
  align-items: center;
  margin-bottom: 34px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.policy {
  max-width: 920px;
  padding: clamp(24px, 4vw, 42px);
}

.policy h1 {
  max-width: none;
  margin-bottom: 14px;
  font-size: clamp(2.8rem, 7vw, 5rem);
}

.policy h2 {
  margin: 32px 0 10px;
  font-size: 1.05rem;
  letter-spacing: 0.035em;
}

.policy ul {
  padding-left: 1.2rem;
}

.policy a {
  color: var(--text);
}

.updated {
  margin-bottom: 24px;
  color: var(--subtle);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .hero-section,
  .product-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .product-grid,
  .feature-grid,
  .feature-grid.three,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-card.featured {
    grid-column: auto;
    grid-row: auto;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .logo-panel {
    min-height: 320px;
  }

  .phone-screen {
    min-height: 520px;
  }
}

@media (max-width: 620px) {
  .site-shell,
  .page-shell,
  .policy-page {
    width: min(100vw - 24px, var(--max));
    padding-top: 18px;
  }

  .site-header,
  .site-footer,
  .product-card-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    margin-bottom: 42px;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  h1 {
    max-width: 8ch;
    font-size: clamp(2.9rem, 14vw, 4rem);
  }

  .lede {
    max-width: 29ch;
  }

  .product-page h1 {
    max-width: 9.5ch;
  }

  .hero-section {
    gap: 36px;
  }

  .logo-panel {
    min-width: 0;
    padding: 20px;
    overflow: hidden;
  }

  .brand-logo {
    width: 82%;
    max-width: 82%;
    margin: 0 auto;
    transform: none;
  }

  .phone-frame {
    width: 100%;
    max-width: 300px;
    border-radius: 24px;
    padding: 8px;
  }

  .screenshot-hero img,
  .screenshot-card img {
    border-radius: 20px;
  }

  .product-visual {
    min-width: 0;
    padding: 12px;
    overflow: hidden;
  }

  .phone-screen {
    min-height: 470px;
    padding: 14px;
    border-radius: 18px;
  }

  .metric-row,
  .monitor-bottom {
    grid-template-columns: 1fr;
  }

  .sleep-ring {
    width: 156px;
    height: 156px;
  }
}
