:root {
  color-scheme: light;
  --ink: #05080b;
  --muted: #5f6b75;
  --soft: #8f969a;
  --line: #e8e8e8;
  --paper: #ffffff;
  --green: #b6ddff;
  --pale-green: #b6ddff;
  --blue: #b6ddff;
  --shadow: 0 18px 50px rgba(18, 30, 40, 0.08);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #ffffff;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial,
    sans-serif;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

body.preview-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.page-shell {
  width: min(100%, 1280px);
  margin: 0 auto;
  overflow: visible;
  background: var(--paper);
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  width: min(100%, 1280px);
  min-height: 76px;
  padding: 0 60px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid rgba(74, 126, 164, 0.18);
  border-radius: 999px;
  background: rgba(247, 251, 255, 0.92);
}

.language-switch button {
  min-width: 58px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  color: #5f6b75;
  background: transparent;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.language-switch button.is-active {
  color: #07111c;
  background: var(--blue);
}

main {
  padding-top: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 150px;
}

.brand img {
  width: 100%;
  height: auto;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 4vw, 54px);
  font-size: 16px;
  font-weight: 800;
}

.nav-links a {
  padding: 12px 0;
}

.nav-links a:hover {
  color: var(--green);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: #f5f7f4;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 0.22s ease;
}

.menu-open .menu-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-open .menu-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

section {
  padding: 86px max(34px, calc((100% - var(--max)) / 2));
}

#intro {
  padding-top: 43px;
}

.hero {
  padding-top: 48px;
  text-align: center;
}

.hero h1 {
  margin: 0 auto 56px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.15;
  letter-spacing: 0;
}

.hero-visual {
  position: relative;
  z-index: 0;
  width: min(940px, 100%);
  margin: 0 auto;
  padding: clamp(12px, 2vw, 24px);
  overflow: visible;
}

.hero-color-block {
  position: absolute;
  top: 58%;
  left: 50%;
  z-index: 0;
  display: block;
  width: min(100vw - 44px, 1280px);
  height: 54%;
  border-radius: 28px;
  background: linear-gradient(90deg, #b9defd 0%, #c6e8ff 50%, #b9defd 100%);
  opacity: 1;
  transform: translate(-50%, -50%) scaleY(1);
  transform-origin: center bottom;
  will-change: opacity, transform;
}

.js-ready .hero-visual:not(.in-view) .hero-color-block {
  opacity: 0;
  transform: translate(-50%, -50%) translateY(28px);
}

.js-ready .hero-visual .hero-color-block {
  transition:
    opacity 0.72s ease,
    transform 0.72s cubic-bezier(0.2, 0.72, 0.24, 1);
}

.js-ready .hero-visual.in-view .hero-color-block {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}

.hero-card {
  position: relative;
  z-index: 1;
  display: block;
  padding: clamp(10px, 1.7vw, 22px);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 52px rgba(31, 45, 58, 0.12);
  backface-visibility: hidden;
  will-change: opacity, transform;
}

.hero-visual img {
  width: 100%;
  margin: 0 auto;
}

.js-ready .hero-visual.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.js-ready .hero-visual:not(.in-view) .hero-card {
  opacity: 0;
  transform: translateY(28px);
}

.js-ready .hero-visual .hero-card {
  transition:
    opacity 0.72s ease 0.2s,
    transform 0.72s cubic-bezier(0.2, 0.72, 0.24, 1) 0.2s;
}

.js-ready .hero-visual.in-view .hero-card {
  opacity: 1;
  transform: translateY(0);
}

.section-kicker {
  display: block;
  margin: 0 auto 36px;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.section-title {
  margin: 0 auto 36px;
  font-size: clamp(38px, 5.8vw, 68px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
  text-align: center;
}

.section-intro {
  max-width: 980px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  text-align: center;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
  margin-top: 112px;
}

.quick-card {
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.quick-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  margin-bottom: 34px;
}

.quick-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #000;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-card h3 {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.35;
}

.quick-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.dashboard-figure,
.compare-table,
.bubble-map,
.sleep-card {
  margin: 0;
}

.dashboard-figure {
  margin-top: 74px;
}

.dashboard-figure img,
.bubble-map img,
.sleep-card img {
  width: 100%;
}

.features {
  display: grid;
  grid-template-columns: 0.94fr 0.86fr;
  gap: 74px;
  align-items: stretch;
  border-top: 1px solid var(--line);
}

.features h2,
.usage h2 {
  margin: 0 0 46px;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 500;
  line-height: 1.1;
}

.features-copy > p {
  margin: 0 0 54px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.feature-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.65;
}

.feature-list span {
  color: #68727c;
  font-weight: 800;
}

.feature-list p {
  margin: 0;
}

.sleep-card {
  display: flex;
  min-height: 560px;
  overflow: hidden;
}

.sleep-card img {
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: 58% center;
  border-radius: 2px;
}

@media (min-width: 921px) {
  .sleep-card {
    align-self: end;
    justify-self: end;
    width: min(90%, 430px);
    min-height: 0;
  }

  .sleep-card img {
    height: auto;
    min-height: 0;
    object-fit: contain;
  }
}

.specs {
  border-top: 1px solid var(--line);
}

.compare-table {
  margin-top: 76px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 52px 0 62px;
  scrollbar-color: rgba(14, 83, 136, 0.34) transparent;
}

.compare-table table {
  width: 100%;
  min-width: 1080px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.compare-table th {
  padding: 30px 34px 28px;
  border-bottom: 1px solid #8e99a4;
  color: #6f7881;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.compare-table th:first-child {
  border-top: 1px solid #dde4ea;
  border-right: 1px solid #dde4ea;
  border-left: 1px solid #dde4ea;
  border-radius: 18px 18px 0 0;
  color: var(--ink);
  font-size: 28px;
  box-shadow: 18px 0 46px rgba(31, 45, 58, 0.035);
}

.compare-table td {
  min-height: 92px;
  padding: 28px 34px;
  border-right: 1px solid #e4e8ec;
  border-bottom: 1px solid #e4e8ec;
  color: #05111d;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.75;
  vertical-align: middle;
}

.compare-table td:last-child {
  border-right: 0;
}

.compare-table td:first-child {
  position: relative;
  padding-left: 70px;
  border-right: 1px solid #dde4ea;
  border-left: 1px solid #dde4ea;
  background: #fff;
  box-shadow: 18px 0 46px rgba(31, 45, 58, 0.035);
}

.compare-table tr:last-child td:first-child {
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  box-shadow: 18px 0 46px rgba(31, 45, 58, 0.035);
}

.compare-table td:first-child span {
  position: absolute;
  top: 50%;
  left: 32px;
  color: #8dccff;
  font-size: 18px;
  font-weight: 500;
  transform: translateY(-50%);
}

.story-block {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 92px;
}

.bubble-map {
  display: flex;
  align-items: center;
  min-height: 420px;
  overflow: visible;
}

.bubble-map img {
  height: auto;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  transform: scale(1.24);
}

blockquote {
  position: relative;
  margin: 0;
  padding: 38px 40px;
}

blockquote::before,
blockquote::after {
  position: absolute;
  color: #000;
  font-size: 64px;
  line-height: 1;
}

blockquote::before {
  top: 0;
  left: 0;
  content: "“";
}

blockquote::after {
  right: 0;
  bottom: 108px;
  content: "”";
}

blockquote p {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.75;
}

blockquote cite {
  display: block;
  margin-top: 86px;
  font-style: normal;
  text-align: right;
}

blockquote cite b,
blockquote cite span {
  display: block;
}

blockquote cite b {
  margin-bottom: 10px;
  font-size: 18px;
}

blockquote cite span {
  color: var(--green);
  font-size: 14px;
}

.usage {
  border-top: 1px solid var(--line);
}

.usage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 82px;
}

.soft-button,
.contact-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #000;
  background: var(--pale-green);
  font-size: 15px;
  font-weight: 800;
}

.soft-button {
  min-width: 148px;
  padding: 0 28px;
  gap: 10px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}

.video-demo-button__icon {
  position: relative;
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #0b8cff;
  box-shadow: 0 8px 18px rgba(11, 140, 255, 0.22);
}

.video-demo-button__icon::before {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #fff;
  content: "";
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px;
  margin-bottom: 78px;
}

.step {
  padding-top: 58px;
  border-top: 1px solid var(--line);
}

.step span {
  display: block;
  margin-bottom: 58px;
  color: #909294;
  font-size: 76px;
  font-weight: 300;
  line-height: 0.9;
}

.step h3 {
  margin: 0 0 20px;
  font-size: 18px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.usage-images {
  display: grid;
  grid-template-columns: 0.82fr 1.06fr 1.06fr;
  gap: 34px;
  align-items: stretch;
}

.usage-images figure {
  margin: 0;
}

.usage-images img {
  width: 100%;
  border-radius: 4px;
}

.app-download-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(34px, 5vw, 54px) clamp(22px, 4vw, 38px);
  border-radius: 4px;
  background: transparent;
  color: #2d4256;
  text-align: center;
}

.app-download-card h3 {
  margin: 0 0 clamp(28px, 4vw, 42px);
  color: #52697d;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: 0;
}

.app-phone-panel {
  width: min(100%, 238px);
  padding: 28px 22px 24px;
  border: 2px solid #2b4154;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.18);
}

.app-phone-panel .app-logo {
  width: min(72px, 50%);
  margin: 0 auto 10px;
  border-radius: 8px;
}

.app-phone-panel strong {
  display: block;
  color: #07111c;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.app-phone-panel > p {
  margin: 7px 0 20px;
  color: #1b2c3c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

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

.app-qr-list img {
  width: clamp(76px, 8vw, 92px);
  margin: 0 auto 7px;
  border-radius: 0;
}

.app-qr-list span {
  display: block;
  color: #111a23;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.app-download-note {
  margin: 24px 0 0;
  color: #5e7184;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
}

.app-setup-card {
  min-height: 100%;
  padding: clamp(28px, 4vw, 46px) clamp(22px, 3vw, 34px);
  border-radius: 4px;
  background: #f7fbff;
  color: #172432;
  box-shadow: inset 0 0 0 1px rgba(74, 126, 164, 0.12);
}

.app-setup-card h3 {
  margin: 0 0 26px;
  color: #2d4256;
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: 0;
}

.setup-steps {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.setup-steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: start;
}

.setup-steps li > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #06111d;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.setup-steps p {
  margin: 0;
  color: #445464;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.62;
}

.setup-steps b {
  color: #172432;
}

.setup-shot-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 320px);
  margin: 16px auto 0;
}

.setup-shot-grid img {
  width: 100%;
  border-radius: 3px;
  box-shadow: 0 10px 22px rgba(5, 16, 28, 0.12);
}

.previewable-image {
  cursor: zoom-in;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.previewable-image:hover {
  filter: saturate(1.04);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(5, 16, 28, 0.18);
}

.setup-shot-grid.single-shot {
  grid-template-columns: 1fr;
}

.setup-shot-grid.single-shot img {
  width: 100%;
}

.app-data-card {
  min-height: 100%;
  padding: clamp(28px, 4vw, 46px) clamp(22px, 3vw, 34px);
  border-radius: 4px;
  background: #f7fbff;
  color: #172432;
  box-shadow: inset 0 0 0 1px rgba(74, 126, 164, 0.12);
}

.app-data-card h3 {
  margin: 0 0 26px;
  color: #2d4256;
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: 0;
}

.data-steps {
  gap: 28px;
}

.bed-placement-image {
  grid-column: 1 / -1;
  width: min(100%, 320px);
  margin: 18px auto 0;
  border-radius: 3px;
}

.data-shot-grid {
  gap: 9px;
}

.app-data-card .setup-shot-grid {
  width: min(100%, 320px);
}

.data-feature-text {
  margin: 24px 0 0;
  color: #445464;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.62;
}

.data-feature-text b {
  color: #172432;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px 16px;
  background: rgba(4, 12, 20, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.image-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-lightbox__figure {
  position: relative;
  display: flex;
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100dvh - 44px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.image-lightbox__image {
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - 112px);
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.26s cubic-bezier(0.2, 0.72, 0.24, 1);
}

.image-lightbox.is-open .image-lightbox__image {
  transform: translateY(0) scale(1);
}

.image-lightbox__close {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  margin-top: 16px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #07111c;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.image-lightbox__close::before,
.image-lightbox__close::after {
  position: absolute;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.image-lightbox__close::before {
  transform: rotate(45deg);
}

.image-lightbox__close::after {
  transform: rotate(-45deg);
}

.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 22px 16px;
  background: rgba(4, 12, 20, 0.76);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.video-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.video-lightbox__figure {
  display: flex;
  width: min(1080px, calc(100vw - 32px));
  max-height: calc(100dvh - 44px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.video-lightbox__stage {
  position: relative;
  width: min(100%, calc((100dvh - 112px) * 16 / 9));
  aspect-ratio: 16 / 9;
  max-height: calc(100dvh - 112px);
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.26s cubic-bezier(0.2, 0.72, 0.24, 1);
}

.video-lightbox.is-open .video-lightbox__stage {
  transform: translateY(0) scale(1);
}

.video-lightbox__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-lightbox.is-loading .video-lightbox__video {
  pointer-events: none;
}

.video-lightbox__loading {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.video-lightbox.is-loading .video-lightbox__loading {
  display: grid;
}

.video-lightbox__loading span {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.36);
  border-top-color: #fff;
  border-radius: 50%;
  animation: video-loading-spin 0.8s linear infinite;
}

@keyframes video-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.video-lightbox__close {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  margin-top: 16px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #07111c;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.video-lightbox__close::before,
.video-lightbox__close::after {
  position: absolute;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.video-lightbox__close::before {
  transform: rotate(45deg);
}

.video-lightbox__close::after {
  transform: rotate(-45deg);
}

.contact {
  padding-top: 92px;
  padding-bottom: 108px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #f4fbff 0%, #ffffff 42%, #f6fbff 100%);
  text-align: center;
}

.contact .section-title {
  margin-bottom: 36px;
}

.about-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 54px;
  text-align: left;
}

.about-copy h3,
.history-block h3,
.contact-final h3 {
  margin: 0 0 22px;
  color: #07111c;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.18;
  letter-spacing: 0;
}

.about-copy p {
  margin: 0;
  color: #445464;
  font-size: 17px;
  font-weight: 700;
  line-height: 2;
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 420px));
  gap: 20px;
  align-items: end;
  justify-content: center;
}

.about-gallery figure {
  display: grid;
  align-content: start;
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.about-gallery figure:nth-child(2) {
  width: 100%;
  justify-self: auto;
}

.about-gallery img {
  width: 100%;
  height: 298px;
  object-fit: contain;
}

.about-gallery figcaption {
  margin-top: 14px;
  color: #172432;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
}

.history-block {
  margin-top: 90px;
  text-align: center;
}

.history-timeline {
  position: relative;
  display: grid;
  gap: 24px;
  margin: 52px 0 0;
  padding: 0;
  list-style: none;
}

.history-timeline::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, transparent, #b6ddff 8%, #b6ddff 92%, transparent);
  content: "";
  transform: translateX(-50%);
}

.history-timeline li {
  position: relative;
  width: calc(50% - 34px);
  min-height: 102px;
  padding: 20px 22px;
  border: 1px solid rgba(74, 126, 164, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(31, 45, 58, 0.07);
}

.history-timeline li:nth-child(odd) {
  justify-self: start;
  text-align: right;
}

.history-timeline li:nth-child(even) {
  justify-self: end;
  text-align: left;
}

.history-timeline li::before {
  position: absolute;
  top: 28px;
  width: 14px;
  height: 14px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #0b8cff;
  box-shadow: 0 0 0 1px rgba(11, 140, 255, 0.2), 0 8px 18px rgba(11, 140, 255, 0.18);
  content: "";
}

.history-timeline li:nth-child(odd)::before {
  right: -46px;
}

.history-timeline li:nth-child(even)::before {
  left: -46px;
}

.history-timeline span {
  display: block;
  margin-bottom: 8px;
  color: #0b5f9f;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.history-timeline p {
  margin: 0;
  color: #52697d;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.72;
}

.contact-final {
  margin-top: 92px;
  padding-top: 54px;
  border-top: 1px solid rgba(74, 126, 164, 0.14);
}

.contact-info {
  margin: 0 auto 38px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.contact-info span {
  padding: 0 18px;
  color: #9ba3aa;
}

.contact-button {
  width: min(640px, 100%);
  min-height: 56px;
  color: #07111c;
  background: var(--blue);
}

.site-footer {
  margin: 24px 0 0;
  color: #7a8998;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  text-align: center;
}

.site-footer span {
  margin-left: 28px;
}

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

.js-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.72s ease, transform 0.72s cubic-bezier(0.2, 0.72, 0.24, 1);
}

.js-ready .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 920px) {
  body {
    background: var(--paper);
  }

  .page-shell {
    width: 100%;
  }

  .site-header {
    grid-template-columns: auto auto;
    min-height: 64px;
    padding: 0 22px;
  }

  .header-actions {
    gap: 8px;
  }

  .language-switch button {
    min-width: 48px;
    height: 30px;
    font-size: 12px;
  }

  .brand {
    width: 118px;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 18px;
    right: 18px;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .menu-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 15px 0;
    font-size: 15px;
  }

  section {
    padding: 64px 22px;
  }

  #intro {
    padding-top: 32px;
  }

  .quick-grid,
  .features,
  .story-block,
  .usage-images {
    grid-template-columns: 1fr;
  }

  .quick-grid {
    gap: 26px;
    margin-top: 62px;
  }

  .features {
    gap: 38px;
  }

  .sleep-card {
    min-height: 420px;
  }

  .story-block {
    gap: 36px;
  }

  .bubble-map {
    min-height: 0;
    overflow: visible;
  }

  .bubble-map img {
    height: auto;
    min-height: 0;
    object-fit: contain;
    transform: none;
  }

  .usage-images {
    gap: 24px;
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 34px;
    margin-top: 42px;
  }

  .about-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .history-timeline {
    gap: 18px;
  }

  .history-timeline::before {
    left: 22px;
  }

  .history-timeline li,
  .history-timeline li:nth-child(odd),
  .history-timeline li:nth-child(even) {
    width: 100%;
    justify-self: stretch;
    padding-left: 58px;
    text-align: left;
  }

  .history-timeline li:nth-child(odd)::before,
  .history-timeline li:nth-child(even)::before {
    left: 15px;
    right: auto;
  }
}

@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }

  .hero h1,
  .section-title,
  .features h2,
  .usage h2 {
    text-align: left;
    max-width: 100%;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .hero h1 {
    margin-bottom: 34px;
    font-size: clamp(26px, 7vw, 30px);
    line-height: 1.22;
  }

  .hero-visual {
    width: 100%;
    padding: 0;
  }

  .hero-card {
    width: 100%;
    padding: 10px;
    border-radius: 18px;
  }

  .hero-color-block {
    width: calc(100vw - 44px);
    border-radius: 18px;
  }

  .section-title,
  .features h2,
  .usage h2 {
    font-size: clamp(30px, 8vw, 38px);
  }

  .section-kicker,
  .section-intro {
    text-align: left;
  }

  .quick-card {
    padding-top: 28px;
  }

  .quick-icon {
    margin-bottom: 18px;
  }

  .feature-list li {
    grid-template-columns: 44px 1fr;
    font-size: 15px;
  }

  .sleep-card {
    min-height: 320px;
  }

  .compare-table {
    margin-right: -22px;
    margin-left: -22px;
    padding: 42px 0 54px 22px;
  }

  .compare-table table {
    min-width: 860px;
  }

  .compare-table th {
    padding: 24px 22px 22px;
    font-size: 18px;
  }

  .compare-table th:first-child {
    font-size: 22px;
  }

  .compare-table td {
    padding: 22px 22px;
    font-size: 13px;
    line-height: 1.7;
  }

  .compare-table td:first-child {
    padding-left: 56px;
  }

  .compare-table td:first-child span {
    left: 24px;
  }

  .bubble-map {
    justify-content: center;
    margin-right: -22px;
    margin-left: -22px;
    overflow: hidden;
  }

  .bubble-map img {
    width: min(560px, calc(100vw + 90px));
    max-width: none;
  }

  .app-setup-card {
    padding: 28px 18px;
  }

  .setup-steps {
    gap: 22px;
  }

  .setup-steps li {
    grid-template-columns: 28px 1fr;
    gap: 10px;
  }

  .setup-steps p {
    font-size: 14px;
  }

  .setup-shot-grid {
    grid-column: 1 / -1;
    gap: 6px;
    margin-top: 14px;
  }

  .app-data-card {
    padding: 28px 18px;
  }

  .bed-placement-image {
    grid-column: 1 / -1;
    margin-top: 14px;
  }

  .data-feature-text {
    font-size: 14px;
  }

  blockquote {
    padding: 44px 0 0;
  }

  blockquote::before {
    top: 0;
    left: 0;
  }

  blockquote::after {
    display: none;
  }

  blockquote p {
    font-size: 15px;
  }

  blockquote cite {
    margin-top: 36px;
  }

  .usage-head {
    flex-direction: column;
    margin-bottom: 46px;
  }

  .about-intro {
    gap: 28px;
  }

  .about-copy h3,
  .history-block h3,
  .contact-final h3 {
    font-size: 24px;
  }

  .about-copy p {
    font-size: 15px;
    line-height: 1.86;
  }

  .about-gallery {
    grid-template-columns: 1fr;
  }

  .about-gallery img {
    height: auto;
  }

  .about-gallery figcaption {
    margin-top: 10px;
    font-size: 14px;
  }

  .history-block {
    margin-top: 62px;
  }

  .history-timeline {
    margin-top: 34px;
  }

  .history-timeline li,
  .history-timeline li:nth-child(odd),
  .history-timeline li:nth-child(even) {
    min-height: 0;
    padding: 18px 18px 18px 52px;
  }

  .history-timeline span {
    font-size: 20px;
  }

  .history-timeline p {
    font-size: 14px;
  }

  .contact-final {
    margin-top: 62px;
    padding-top: 38px;
    text-align: left;
  }

  .contact-button {
    width: 100%;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 50px;
  }

  .step {
    padding-top: 32px;
  }

  .step span {
    margin-bottom: 24px;
    font-size: 54px;
  }

  .contact-info span {
    display: none;
  }

  .site-footer {
    margin-top: 18px;
  }

  .site-footer span {
    display: block;
    margin-left: 0;
  }
}

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

  .brand {
    width: 104px;
  }

  .header-actions {
    gap: 6px;
  }

  .language-switch {
    padding: 2px;
  }

  .language-switch button {
    min-width: 42px;
    height: 28px;
    font-size: 11px;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
  }
}
