/* Today3 marketing homepage — scoped to body.page-home */

body.page-home {
  --home-display: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  --home-glow: color-mix(in srgb, var(--accent) 42%, transparent);
  --home-orange: #ff9500;
  --home-check-ink: #fff;
  --home-orange-soft: color-mix(in srgb, var(--home-orange) 18%, transparent);
  --home-ambient-blur: 14px;
  --home-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  font-family: var(--home-display);
  min-height: 100vh;
  overflow-x: clip;
}

body.page-home .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom-color: color-mix(in srgb, var(--line) 55%, transparent);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

body.page-home .brand {
  letter-spacing: -0.03em;
}

/* Ambient background */
.home-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.home-ambient::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 55% 45% at 12% 18%, var(--home-glow), transparent 68%),
    radial-gradient(ellipse 48% 40% at 88% 12%, var(--home-orange-soft), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 72%);
  animation: home-mesh 18s ease-in-out infinite alternate;
}

.home-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  animation: home-float 14s ease-in-out infinite;
}

.home-orb--a {
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  top: -8%;
  right: -6%;
  background: color-mix(in srgb, var(--accent) 55%, #fff);
}

.home-orb--b {
  width: min(320px, 42vw);
  height: min(320px, 42vw);
  bottom: 8%;
  left: -8%;
  background: color-mix(in srgb, var(--home-orange) 45%, var(--accent));
  animation-delay: -5s;
}

.home-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--line) 35%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--line) 35%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
  opacity: 0.35;
}

@keyframes home-mesh {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.06) translate(2%, -1%);
  }
}

@keyframes home-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-3%, 4%) scale(1.05);
  }
}

body.page-home > :not(.home-ambient) {
  position: relative;
  z-index: 1;
}

/* Hero */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  padding: clamp(48px, 10vw, 96px) 0 clamp(56px, 8vw, 80px);
}

html[data-lang="zh-CN"] .home-hero {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
}

.home-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  font-size: 12px;
  letter-spacing: 0.06em;
}

.home-hero h1 {
  font-size: clamp(40px, 6.5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: 18px;
  text-wrap: balance;
}

html[data-lang="zh-CN"] .home-hero h1 {
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
  text-wrap: pretty;
  font-size: clamp(38px, 5.8vw, 66px);
}

html[data-lang="zh-CN"] .home-hero h1 em {
  letter-spacing: 0;
}

.home-hero h1 em {
  font-style: normal;
  background: linear-gradient(
    120deg,
    var(--ink) 0%,
    color-mix(in srgb, var(--accent) 85%, var(--ink)) 55%,
    var(--home-orange) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-hero .lead {
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.55;
}

.home-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.home-pills li {
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.home-actions {
  margin-top: 32px;
}

.home-actions .button {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  box-shadow: 0 12px 32px color-mix(in srgb, var(--accent) 28%, transparent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-actions .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--accent) 36%, transparent);
}

.home-actions .button.secondary {
  box-shadow: none;
}

.home-actions .button.secondary:hover {
  box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 8%, transparent);
}

.home-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 16px 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.home-store:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  transform: translateY(-1px);
}

.home-store svg {
  flex-shrink: 0;
}

/* ── Device frames (iPhone 15 Pro · iPad 11" landscape · Watch S10 46mm) ── */

.home-device {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

/* iPhone — 393×852 display ratio, Dynamic Island */
.home-phone--device {
  --device-width: min(272px, 68vw);
  --bezel-pad: 3px;
  position: relative;
  width: var(--device-width);
  filter:
    drop-shadow(0 28px 44px color-mix(in srgb, var(--ink) 22%, transparent))
    drop-shadow(0 10px 20px color-mix(in srgb, var(--ink) 10%, transparent));
}

/* Side buttons (decorative) */
.home-phone--device::before,
.home-phone--device::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 2px;
  background: linear-gradient(180deg, #6e6e73 0%, #3a3a3c 45%, #1c1c1e 100%);
  box-shadow:
    0 0 0 0.5px color-mix(in srgb, #fff 12%, transparent) inset,
    1px 0 2px color-mix(in srgb, #000 25%, transparent);
}

.home-phone--device::before {
  left: calc(var(--bezel-pad) * -1 - 1px);
  top: 24%;
  width: 3px;
  height: 7.5%;
}

.home-phone--device::after {
  right: calc(var(--bezel-pad) * -1 - 1px);
  top: 18%;
  width: 3px;
  height: 11%;
}

.home-phone--device:not(.home-phone--showcase) {
  transform: rotateY(-8deg) rotateX(4deg);
  animation: home-tilt 7s ease-in-out infinite alternate;
}

.home-phone-bezel {
  position: relative;
  z-index: 1;
  padding: var(--bezel-pad);
  border-radius: 13.6% / 6.6%;
  background:
    linear-gradient(
      155deg,
      #b8b8bc 0%,
      #8e8e93 6%,
      #48484a 18%,
      #1c1c1e 42%,
      #2c2c2e 58%,
      #3a3a3c 82%,
      #aeaeb2 96%,
      #d1d1d6 100%
    );
  box-shadow:
    0 0 0 0.5px color-mix(in srgb, #000 55%, transparent),
    0 0 0 1px color-mix(in srgb, #fff 16%, transparent) inset,
    0 0 0 2px color-mix(in srgb, #000 18%, transparent) inset;
}

.home-phone-bezel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, #fff 14%, transparent) 0%,
    transparent 38%,
    color-mix(in srgb, #000 12%, transparent) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.home-phone-screen {
  position: relative;
  aspect-ratio: 393 / 852;
  width: 100%;
  border-radius: 11.8% / 5.6%;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  isolation: isolate;
  box-shadow:
    0 0 0 1px color-mix(in srgb, #000 65%, transparent) inset,
    0 0 24px color-mix(in srgb, #000 8%, transparent) inset;
}

/* Glass highlight on screen */
.home-phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    125deg,
    color-mix(in srgb, #fff 16%, transparent) 0%,
    transparent 42%,
    transparent 72%,
    color-mix(in srgb, #fff 5%, transparent) 100%
  );
  pointer-events: none;
  z-index: 4;
}

.home-phone-notch {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 11px 0 2px;
  min-height: 46px;
}

.home-phone-island {
  position: relative;
  display: block;
  width: 27%;
  min-width: 76px;
  max-width: 108px;
  height: clamp(17px, 4.8%, 28px);
  border-radius: 999px;
  background: #000;
  box-shadow:
    0 0 0 1px color-mix(in srgb, #fff 8%, transparent) inset,
    0 1px 3px color-mix(in srgb, #000 40%, transparent);
}

/* Camera lens in Dynamic Island */
.home-phone-island::after {
  content: "";
  position: absolute;
  right: 17%;
  top: 50%;
  width: 28%;
  height: 52%;
  max-width: 12px;
  max-height: 12px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2a3f5c 0%, #0d1520 55%, #000 100%);
  box-shadow: 0 0 0 1px color-mix(in srgb, #fff 6%, transparent) inset;
}

.home-phone-status {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 4px;
  min-height: 16px;
}

.home-phone-time {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.home-phone-hero {
  padding: 4px 16px 10px;
  flex-shrink: 0;
}

.home-phone-hero h2,
.home-phone-hero h3 {
  margin: 0 0 4px;
  font-size: clamp(18px, 4.5vw, 22px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.home-phone-hero p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.home-task-list {
  margin: 0;
  padding: 0 12px 8px;
  list-style: none;
  flex: 1;
}

.home-task {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  box-shadow:
    0 1px 0 color-mix(in srgb, #fff 40%, transparent) inset,
    0 8px 20px color-mix(in srgb, var(--ink) 6%, transparent);
  animation: home-task-in 0.7s ease backwards;
}

.home-phone-screen--weather .home-task {
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  border-color: color-mix(in srgb, #fff 35%, var(--line));
}

.home-task:nth-child(1) {
  animation-delay: 0.15s;
}
.home-task:nth-child(2) {
  animation-delay: 0.28s;
}
.home-task:nth-child(3) {
  animation-delay: 0.41s;
}

.home-task-check {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--accent) 55%, var(--line));
  background: transparent;
  flex-shrink: 0;
  box-sizing: border-box;
}

.home-task-check.done {
  border-color: var(--home-orange);
  background: linear-gradient(135deg, var(--home-orange), color-mix(in srgb, var(--accent) 60%, var(--home-orange)));
}

.home-task-check.done::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 9px;
  margin-top: -1px;
  border-right: 2px solid var(--home-check-ink);
  border-bottom: 2px solid var(--home-check-ink);
  transform: translate(-50%, -58%) rotate(45deg);
  box-sizing: border-box;
}

.home-task span {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.home-task small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
}

.home-phone-bar {
  height: 4px;
  margin: 0 16px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 60%, transparent);
  overflow: hidden;
  flex-shrink: 0;
}

.home-phone-bar span {
  display: block;
  height: 100%;
  width: 66%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--home-orange), var(--accent));
  animation: home-progress 2.8s ease-in-out infinite alternate;
}

.home-phone-home-indicator {
  flex-shrink: 0;
  width: 34%;
  height: 4px;
  margin: 4px auto 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 72%, transparent);
  opacity: 0.85;
}

.home-quick-add {
  margin: 2px 12px 8px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px dashed color-mix(in srgb, var(--accent) 38%, var(--line));
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
}

@keyframes home-tilt {
  0% {
    transform: rotateY(-10deg) rotateX(5deg) translateY(0);
  }
  100% {
    transform: rotateY(-4deg) rotateX(2deg) translateY(-8px);
  }
}

@keyframes home-task-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes home-progress {
  0% {
    width: 52%;
  }
  100% {
    width: 78%;
  }
}

/* ── Device showcase tabs (iPhone / iPad / Watch) ── */

.home-ecosystem {
  --showcase-header: 68px;
  --showcase-viewport: calc(100vh - var(--showcase-header));
  --showcase-step-scroll: 80vh;
  /* Watch 屏小、停留时间短 — 单独加长第三段滚动距离 */
  --showcase-step-scroll-watch: 108vh;
  padding: clamp(24px, 5vw, 48px) 0 0;
}

.home-ecosystem-pin-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  box-sizing: border-box;
  padding-top: clamp(6px, 1.2vh, 14px);
  padding-bottom: clamp(6px, 1.2vh, 12px);
}

.home-ecosystem-intro {
  flex-shrink: 0;
  margin-bottom: clamp(10px, 1.6vh, 18px);
}

.home-ecosystem-intro .eyebrow {
  margin-bottom: 6px;
}

.home-ecosystem-intro h2 {
  margin: 0 0 6px;
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.home-ecosystem-intro .section-lead {
  margin: 0;
  max-width: 40em;
  font-size: clamp(13px, 1.5vw, 15px);
  line-height: 1.45;
  color: var(--muted);
}

.home-ecosystem-scroll {
  position: relative;
  overflow: visible;
  /* Total scroll distance while the pin stays on screen */
  height: calc(
    var(--showcase-viewport) + 2 * var(--showcase-step-scroll) +
      var(--showcase-step-scroll-watch)
  );
}

/* Pinned viewport: exactly one screen — content never scrolls away while tracks advance */
.home-ecosystem-pin {
  position: sticky;
  top: var(--showcase-header);
  z-index: 2;
  height: var(--showcase-viewport);
  display: flex;
  align-items: stretch;
  box-sizing: border-box;
  overflow: visible;
}

.home-ecosystem-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 1.05fr);
  gap: clamp(20px, 3.5vw, 48px);
  align-items: center;
  width: 100%;
  flex: 1;
  min-height: 0;
  padding: 0;
}

.home-ecosystem-steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 20px;
}

.home-step-progress {
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 70%, transparent);
  overflow: hidden;
}

.home-step-progress-fill {
  display: block;
  width: 100%;
  height: 33%;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--home-orange), var(--accent));
  transition: height 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-step {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  padding: 16px 18px;
  border-radius: 16px;
  cursor: pointer;
  color: inherit;
  font: inherit;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    opacity 0.3s ease,
    transform 0.3s ease;
  opacity: 0.55;
}

.home-step:hover {
  opacity: 0.82;
}

.home-step.is-active {
  opacity: 1;
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  transform: translateX(4px);
}

.home-step-icon {
  display: none;
}

.home-step-label {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.home-step-title {
  display: block;
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.home-ecosystem-stage {
  position: relative;
  width: 100%;
  height: min(520px, 58vh);
  min-height: min(380px, 44vh);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 8px 12px;
  flex-shrink: 0;
}

.home-scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
  overflow: visible;
}

.home-scene[hidden] {
  display: flex !important;
}

.home-scene--watch {
  align-items: center;
  justify-content: center;
}

.home-scene.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* First scene visible before JS (scroll + tabs still enhance) */
.home-scene--iphone {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.home-scene--iphone:not(.is-active) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.home-ecosystem-tracks {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--showcase-viewport);
  height: calc(2 * var(--showcase-step-scroll) + var(--showcase-step-scroll-watch));
  display: flex;
  flex-direction: column;
  z-index: 0;
  pointer-events: none;
}

.home-ecosystem-track[data-step="iphone"],
.home-ecosystem-track[data-step="ipad"] {
  flex: 1 1 0;
  min-height: 0;
}

.home-ecosystem-track[data-step="watch"] {
  flex: 1.65 1 0;
  min-height: 0;
}

.home-step-mobile-caption {
  display: none;
  margin: 0;
  padding: 0 clamp(4px, 2vw, 12px) clamp(20px, 4vw, 32px);
  max-width: 36rem;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

.home-step-mobile-caption [hidden] {
  display: none !important;
}

/* Scene FX + ambient themes */
.home-scene-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.home-scene-fx--sun::before {
  content: "";
  position: absolute;
  inset: -14%;
  border-radius: inherit;
  background:
    radial-gradient(
      circle at 80% 12%,
      color-mix(in oklch, var(--home-orange) 16%, transparent) 0%,
      color-mix(in oklch, var(--home-orange) 8%, transparent) 36%,
      transparent 58%
    ),
    radial-gradient(
      circle at 20% 88%,
      color-mix(in oklch, var(--accent) 12%, transparent) 0%,
      color-mix(in oklch, var(--accent) 5%, transparent) 40%,
      transparent 62%
    );
  filter: blur(calc(var(--home-ambient-blur) + 2px));
  pointer-events: none;
}

.home-scene-fx--sun {
  background: none;
  animation: home-sun-drift 8s ease-in-out infinite alternate;
}

.home-scene-fx--sun::after,
.home-scene-fx--pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  opacity: 0.07;
  mix-blend-mode: soft-light;
  background-image: var(--home-noise);
  background-size: 96px 96px;
  pointer-events: none;
}

.home-scene-fx--breeze {
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%),
    linear-gradient(300deg, color-mix(in srgb, #74ebd5 25%, transparent), transparent 50%);
  filter: blur(10px);
}

.home-scene-fx--breeze::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    var(--home-noise),
    repeating-linear-gradient(
      100deg,
      transparent 0 40px,
      color-mix(in srgb, var(--accent) 8%, transparent) 40px 41px
    );
  background-size: 92px 92px, auto;
  background-blend-mode: soft-light, normal;
  opacity: 0.5;
  animation: home-breeze 12s linear infinite;
}

.home-scene-fx--pulse::before {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: inherit;
  background: radial-gradient(
    circle at 50% 38%,
    color-mix(in oklch, var(--home-orange) 24%, transparent) 0%,
    color-mix(in oklch, var(--home-orange) 12%, transparent) 34%,
    color-mix(in oklch, var(--home-orange) 4%, transparent) 52%,
    transparent 68%
  );
  filter: blur(calc(var(--home-ambient-blur) + 4px));
  pointer-events: none;
}

.home-scene-fx--pulse {
  background: none;
  animation: home-pulse-glow 3s ease-in-out infinite;
}

@keyframes home-sun-drift {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-4%, 3%);
  }
}

@keyframes home-breeze {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-80px);
  }
}

@keyframes home-pulse-glow {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

body.page-home[data-device="iphone"] .home-orb--a {
  background: color-mix(in srgb, var(--home-orange) 50%, var(--accent));
}

body.page-home[data-device="ipad"] .home-orb--a {
  background: color-mix(in srgb, var(--accent) 60%, #74ebd5);
}

body.page-home[data-device="ipad"] .home-orb--b {
  background: color-mix(in srgb, #9face6 40%, var(--accent));
}

body.page-home[data-device="watch"] .home-orb--a {
  background: color-mix(in srgb, var(--home-orange) 45%, #8e2de2);
}

body.page-home[data-device="watch"] .home-orb--b {
  background: color-mix(in srgb, #4a00e0 35%, var(--accent));
}

/* Showcase phone — inherits premium frame; tuned size only */
.home-phone--showcase {
  animation: none;
  transform: none;
  --bezel-pad: 3px;
  width: min(268px, 54vw, calc(58vh * 393 / 852));
  aspect-ratio: 393 / 852;
  height: auto;
  max-height: min(540px, 58vh);
  display: block;
  flex-shrink: 0;
  filter:
    drop-shadow(0 32px 52px color-mix(in srgb, var(--ink) 20%, transparent))
    drop-shadow(0 12px 24px color-mix(in srgb, var(--home-orange) 8%, transparent));
}

.home-phone--showcase .home-phone-bezel {
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  display: block;
}

.home-phone--showcase .home-phone-screen {
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
  border-radius: 11.8% / 5.6%;
  display: flex;
  flex-direction: column;
}

.home-phone-screen--weather {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.home-phone-screen--weather::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: 0;
  border-radius: inherit;
  background:
    radial-gradient(
      ellipse 105% 75% at 80% -2%,
      color-mix(in oklch, var(--home-orange) 32%, var(--bg)) 0%,
      color-mix(in oklch, var(--home-orange) 20%, var(--bg)) 18%,
      color-mix(in oklch, var(--home-orange) 10%, var(--bg)) 36%,
      color-mix(in oklch, var(--home-orange) 4%, var(--bg)) 52%,
      transparent 76%
    ),
    radial-gradient(
      ellipse 85% 55% at 10% 108%,
      color-mix(in oklch, var(--accent) 12%, var(--bg)) 0%,
      color-mix(in oklch, var(--accent) 5%, var(--bg)) 32%,
      transparent 68%
    ),
    linear-gradient(
      in oklch 168deg,
      color-mix(in oklch, var(--home-orange) 16%, var(--bg)) 0%,
      color-mix(in oklch, var(--home-orange) 6%, var(--bg)) 22%,
      var(--bg) 46%,
      color-mix(in oklch, var(--accent) 4%, var(--bg)) 74%,
      color-mix(in oklch, var(--accent) 8%, var(--bg)) 100%
    );
  filter: blur(var(--home-ambient-blur));
  transform: translateZ(0);
  pointer-events: none;
}

.home-phone-screen--weather > :not(.home-scene-fx) {
  position: relative;
  z-index: 1;
}

.home-phone-screen--weather .home-scene-fx {
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

/* iPad — 11" landscape ~ 2420×1668 */
.home-ipad--landscape {
  --ipad-width: min(580px, 94vw);
  position: relative;
  width: var(--ipad-width);
  aspect-ratio: 2420 / 1668;
  max-height: min(420px, 54vh);
  height: auto;
  filter:
    drop-shadow(0 36px 56px color-mix(in srgb, var(--ink) 18%, transparent))
    drop-shadow(0 12px 24px color-mix(in srgb, var(--ink) 8%, transparent));
}

.home-ipad--landscape::before {
  content: "";
  position: absolute;
  top: 12%;
  left: -2px;
  width: 3px;
  height: 5%;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(180deg, #aeaeb2, #636366 50%, #48484a);
  box-shadow: -1px 0 2px color-mix(in srgb, #000 20%, transparent);
  z-index: 0;
}

.home-ipad--landscape .home-ipad-bezel {
  height: 100%;
  width: 100%;
  display: block;
  box-sizing: border-box;
}

.home-ipad--landscape .home-ipad-screen {
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
  flex: unset;
}

.home-ipad-bezel {
  position: relative;
  z-index: 1;
  padding: 10px;
  border-radius: 20px;
  background: linear-gradient(
    148deg,
    #f2f2f7 0%,
    #d1d1d6 8%,
    #aeaeb2 22%,
    #8e8e93 38%,
    #636366 52%,
    #48484a 68%,
    #8e8e93 85%,
    #e8e8ed 100%
  );
  box-shadow:
    0 0 0 0.5px color-mix(in srgb, #000 35%, transparent),
    0 0 0 1px color-mix(in srgb, #fff 22%, transparent) inset,
    0 0 0 2px color-mix(in srgb, #000 10%, transparent) inset;
}

.home-ipad-bezel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, #fff 20%, transparent) 0%,
    transparent 45%,
    color-mix(in srgb, #000 8%, transparent) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.home-ipad-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 2420 / 1668;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: var(--bg);
  box-sizing: border-box;
  isolation: isolate;
  box-shadow:
    0 0 0 1px color-mix(in srgb, #000 50%, transparent) inset,
    0 0 20px color-mix(in srgb, #000 6%, transparent) inset;
}

.home-ipad-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    color-mix(in srgb, #fff 12%, transparent) 0%,
    transparent 50%,
    color-mix(in srgb, #fff 4%, transparent) 100%
  );
  pointer-events: none;
  z-index: 3;
}

.home-ipad-screen::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: 0;
  border-radius: inherit;
  background:
    radial-gradient(
      ellipse 70% 55% at 85% 12%,
      color-mix(in oklch, var(--accent) 16%, var(--bg)) 0%,
      color-mix(in oklch, var(--accent) 8%, var(--bg)) 30%,
      color-mix(in oklch, var(--accent) 3%, var(--bg)) 48%,
      transparent 72%
    ),
    radial-gradient(
      ellipse 60% 45% at 10% 92%,
      color-mix(in oklch, #74ebd5 12%, var(--bg)) 0%,
      color-mix(in oklch, #74ebd5 4%, var(--bg)) 38%,
      transparent 70%
    ),
    linear-gradient(
      in oklch 165deg,
      var(--bg) 0%,
      color-mix(in oklch, var(--surface) 88%, var(--bg)) 52%,
      color-mix(in oklch, var(--surface) 94%, var(--bg)) 100%
    );
  filter: blur(var(--home-ambient-blur));
  transform: translateZ(0);
  pointer-events: none;
}

.home-ipad-screen > :not(.home-scene-fx) {
  position: relative;
  z-index: 1;
}

.home-ipad-screen .home-scene-fx {
  z-index: 0;
  border-radius: inherit;
}

.home-ipad-camera {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 10px;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #3d4f6a 0%, #121820 55%, #000 100%);
  box-shadow:
    0 0 0 2px color-mix(in srgb, #888 35%, #333),
    0 0 0 1px color-mix(in srgb, #fff 8%, transparent) inset;
}

.home-ipad-toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.home-ipad-columns {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 8px;
  padding: 0 10px 10px;
  min-height: 0;
  flex: 1;
}

.home-ipad-col {
  padding: 10px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  border: 1px solid color-mix(in srgb, #fff 40%, var(--line));
  box-shadow:
    0 1px 0 color-mix(in srgb, #fff 35%, transparent) inset,
    0 6px 16px color-mix(in srgb, var(--ink) 5%, transparent);
}

.home-ipad-col h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home-ipad-col--later {
  background: color-mix(in srgb, var(--bg) 82%, var(--surface));
}

.home-task-list--compact .home-task {
  margin: 4px 0;
  padding: 7px 8px;
  animation: none;
  box-shadow: none;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border-color: color-mix(in srgb, var(--line) 45%, transparent);
}

.home-task-list--compact .home-task span {
  font-size: 11px;
}

.home-later-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-later-list li {
  margin: 0 0 5px;
  padding: 6px 8px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 65%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 40%, transparent);
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
}

/* Apple Watch Series 10 46mm — squircle case + sport band */
.home-watch--series10 {
  --watch-width: min(220px, 46vw);
  --watch-band-width: 50%;
  position: relative;
  width: var(--watch-width);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: center center;
  filter:
    drop-shadow(0 28px 44px color-mix(in srgb, var(--ink) 22%, transparent))
    drop-shadow(0 10px 20px color-mix(in srgb, var(--home-orange) 6%, transparent));
}

.home-watch-case {
  position: relative;
  width: 100%;
  aspect-ratio: 39 / 46;
  flex-shrink: 0;
  z-index: 2;
}

.home-watch-band {
  position: relative;
  width: var(--watch-band-width);
  flex-shrink: 0;
  background: linear-gradient(
    90deg,
    #141416 0%,
    #323234 16%,
    #48484a 38%,
    #2c2c2e 50%,
    #48484a 62%,
    #323234 84%,
    #141416 100%
  );
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #fff 14%, transparent),
    inset 0 -1px 0 color-mix(in srgb, #000 40%, transparent),
    0 3px 10px color-mix(in srgb, var(--ink) 10%, transparent);
  z-index: 1;
}

.home-watch-band::before {
  content: "";
  position: absolute;
  inset: 10% 20%;
  border-radius: inherit;
  background: repeating-linear-gradient(
    180deg,
    color-mix(in srgb, #000 30%, transparent) 0 1.5px,
    transparent 1.5px 6px
  );
  opacity: 0.4;
  pointer-events: none;
}

.home-watch-band::after {
  content: "";
  position: absolute;
  top: 14%;
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
  width: 16%;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--home-orange) 22%, #3a3a3c),
    color-mix(in srgb, var(--home-orange) 10%, #1c1c1e)
  );
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #fff 10%, transparent),
    0 0 8px color-mix(in srgb, var(--home-orange) 12%, transparent);
  opacity: 0.85;
  pointer-events: none;
}

.home-watch-band--top {
  height: clamp(44px, 13vw, 68px);
  margin-bottom: -5px;
  border-radius: 16px 16px 8px 8px;
  clip-path: polygon(10% 100%, 2% 88%, 2% 0%, 98% 0%, 98% 88%, 90% 100%);
}

.home-watch-band--bottom {
  height: clamp(54px, 15vw, 80px);
  margin-top: -5px;
  border-radius: 8px 8px 16px 16px;
  clip-path: polygon(10% 0%, 2% 12%, 2% 100%, 98% 100%, 98% 12%, 90% 0%);
}

.home-watch-bezel {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 7%;
  border-radius: 18.5% / 17%;
  box-sizing: border-box;
  background: linear-gradient(
    155deg,
    #c8c8ce 0%,
    #aeaeb2 10%,
    #636366 28%,
    #1d1d1f 48%,
    #2c2c2e 58%,
    #48484a 75%,
    #8e8e93 92%,
    #d1d1d6 100%
  );
  box-shadow:
    0 0 0 0.5px color-mix(in srgb, #000 50%, transparent),
    0 0 0 1px color-mix(in srgb, #fff 15%, transparent) inset,
    0 0 0 2px color-mix(in srgb, #000 20%, transparent) inset;
}

.home-watch-bezel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    140deg,
    color-mix(in srgb, #fff 12%, transparent) 0%,
    transparent 42%,
    color-mix(in srgb, #000 15%, transparent) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.home-watch-crown {
  position: absolute;
  z-index: 4;
  right: -4%;
  top: 24%;
  width: 8%;
  height: 20%;
  border-radius: 3px 5px 5px 3px;
  background: linear-gradient(90deg, #8e8e93 0%, #3a3a3c 40%, #636366 70%, #aeaeb2 100%);
  box-shadow:
    1px 0 3px color-mix(in srgb, #000 35%, transparent),
    inset 0 1px 0 color-mix(in srgb, #fff 28%, transparent),
    inset -1px 0 1px color-mix(in srgb, #000 25%, transparent);
}

.home-watch-crown::after {
  content: "";
  position: absolute;
  inset: 20% 24%;
  border-radius: 2px;
  background: repeating-linear-gradient(
    0deg,
    color-mix(in srgb, #fff 18%, transparent) 0 1.5px,
    transparent 1.5px 3px
  );
}

.home-watch-action {
  position: absolute;
  z-index: 4;
  right: -3.5%;
  top: 50%;
  width: 6%;
  height: 10%;
  border-radius: 3px;
  background: linear-gradient(180deg, #8e8e93 0%, #48484a 45%, #636366 100%);
  box-shadow:
    1px 0 2px color-mix(in srgb, #000 30%, transparent),
    inset 0 1px 0 color-mix(in srgb, #fff 20%, transparent);
}

.home-watch-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 19% / 17.5%;
  padding: 6% 6% 5.5%;
  background: #0a0a0c;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 2px;
  box-sizing: border-box;
  isolation: isolate;
  box-shadow:
    0 0 0 1px color-mix(in srgb, #000 80%, transparent) inset,
    0 0 16px color-mix(in srgb, #000 40%, transparent) inset;
}

.home-watch-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, #fff 8%, transparent) 0%,
    transparent 40%,
    transparent 75%,
    color-mix(in srgb, var(--home-orange) 6%, transparent) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.home-watch-screen::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(
    ellipse 85% 65% at 50% 34%,
    color-mix(in oklch, var(--home-orange) 20%, #1a1410) 0%,
    color-mix(in oklch, var(--home-orange) 12%, #121010) 28%,
    color-mix(in oklch, var(--home-orange) 4%, #0c0c0e) 48%,
    #0a0a0c 72%
  );
  filter: blur(calc(var(--home-ambient-blur) + 2px));
  transform: translateZ(0);
  pointer-events: none;
}

.home-watch-screen > :not(.home-scene-fx) {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.home-watch-ring {
  position: relative;
  width: 45%;
  max-width: 82px;
  margin: 0 auto 4px;
  aspect-ratio: 1;
  flex-shrink: 0;
}

.home-watch-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.home-watch-ring-bg {
  fill: none;
  stroke: color-mix(in srgb, #fff 14%, transparent);
  stroke-width: 6;
}

.home-watch-ring-fill {
  fill: none;
  stroke: var(--home-orange);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 88;
  animation: home-ring-fill 2.8s ease-in-out infinite alternate;
}

.home-watch-ring span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(12px, 2.8vw, 15px);
  font-weight: 800;
  color: #f5f2eb;
  letter-spacing: -0.02em;
}

.home-watch-title {
  margin: 0 0 4px;
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  color: color-mix(in srgb, #fff 72%, transparent);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.home-watch-tasks {
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 3px;
}

.home-watch-tasks li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  border-radius: 7px;
  background: color-mix(in srgb, #fff 8%, transparent);
  border: 1px solid color-mix(in srgb, #fff 6%, transparent);
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1.2;
  color: color-mix(in srgb, #fff 82%, transparent);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.home-watch-tasks li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--accent) 75%, #fff);
  background: transparent;
  flex-shrink: 0;
  box-sizing: border-box;
}

.home-watch-tasks li.is-done::before {
  border-color: var(--home-orange);
  background: var(--home-orange);
}

.home-watch-tasks li.is-done::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 3px;
  height: 5px;
  margin-top: -1px;
  border-right: 1.5px solid var(--home-check-ink);
  border-bottom: 1.5px solid var(--home-check-ink);
  transform: translate(-50%, -58%) rotate(45deg);
  box-sizing: border-box;
  pointer-events: none;
}

@keyframes home-ring-fill {
  0% {
    stroke-dashoffset: 110;
  }
  100% {
    stroke-dashoffset: 72;
  }
}

/* Features */
.home-features {
  padding: 20px 0 72px;
}

.home-features h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.home-features .section-lead {
  max-width: 560px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 17px;
}

.home-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.home-card {
  padding: 22px 22px 20px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.home-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.home-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--home-orange), color-mix(in srgb, var(--accent) 70%, var(--home-orange)));
  color: var(--home-check-ink);
  font-size: 18px;
}

.home-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.home-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Reveal — never hide content; no JS required for visibility */
body.page-home .site-header,
body.page-home .home-hero,
body.page-home .home-hero-copy,
body.page-home .home-device,
body.page-home .home-ecosystem-intro {
  opacity: 1;
  visibility: visible;
}

.home-reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .home-ecosystem {
    --showcase-step-scroll: 0px;
  }

  .home-ecosystem-scroll {
    height: auto;
  }

  .home-ecosystem-pin {
    position: relative;
    top: auto;
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  .home-ecosystem-tracks {
    display: none;
  }

  .home-ambient::before,
  .home-orb,
  .home-phone,
  .home-task,
  .home-phone-bar span,
  .home-scene-fx--sun,
  .home-scene-fx--breeze::after,
  .home-scene-fx--pulse,
  .home-watch-ring-fill {
    animation: none;
  }

  .home-scene {
    transition: none;
  }

  .home-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  html[data-lang="zh-CN"] .home-hero h1 {
    font-size: clamp(34px, 8.5vw, 52px);
  }

  .home-pills {
    justify-content: center;
  }

  .home-actions {
    justify-content: center;
  }

  .home-actions .actions {
    justify-content: center;
  }

  .home-store {
    margin-left: auto;
    margin-right: auto;
  }

  .home-device {
    order: -1;
  }

  .home-phone--device:not(.home-phone--showcase) {
    transform: none;
    animation: none;
  }

  .home-ipad--landscape {
    width: min(100%, 440px);
    max-height: min(320px, 48vh);
  }

  .home-watch--series10 {
    width: min(200px, 58vw);
    --watch-band-width: 48%;
  }

  .home-watch-band--top {
    height: clamp(38px, 11vw, 56px);
  }

  .home-watch-band--bottom {
    height: clamp(46px, 13vw, 66px);
  }

  .home-ecosystem {
    --showcase-viewport: min(560px, 78vh);
    --showcase-step-scroll: 46vh;
    --showcase-step-scroll-watch: 58vh;
  }

  .home-ecosystem-grid {
    grid-template-columns: 1fr;
  }

  .home-ecosystem-pin {
    align-items: flex-start;
    padding-top: 0;
    overflow: visible;
  }

  .home-ecosystem-pin-inner {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .home-ecosystem-intro {
    margin-bottom: 8px;
    text-align: center;
  }

  .home-ecosystem-intro .section-lead {
    display: none;
  }

  .home-ecosystem-intro h2 {
    font-size: clamp(18px, 4.8vw, 24px);
    margin-bottom: 0;
  }

  .home-ecosystem-stage {
    height: min(400px, 52vh);
    min-height: min(320px, 40vh);
    padding: 8px;
    order: -1;
  }

  .home-phone--showcase {
    width: min(236px, 74vw, calc(52vh * 393 / 852));
    max-height: min(420px, 52vh);
  }

  .home-step-mobile-caption {
    display: block;
  }

  .home-ecosystem-steps {
    padding-left: 0;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding-bottom: 4px;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .home-ecosystem-steps::-webkit-scrollbar {
    display: none;
  }

  .home-step-progress {
    display: none;
  }

  .home-step {
    opacity: 0.72;
    min-width: min(280px, 78vw);
    flex-shrink: 0;
  }

  .home-step.is-active {
    opacity: 1;
    transform: none;
  }

  .home-step:not(.is-active) {
    display: block;
  }

  .home-step p {
    display: none;
  }

  .home-bento {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body.page-home .shell {
    width: min(920px, calc(100% - 24px));
  }

  body.page-home .nav-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 560px) {
  body.page-home .nav {
    padding: 14px 0;
  }

  .home-hero {
    padding-top: 40px;
    gap: 28px;
  }

  .home-phone--device {
    --device-width: min(240px, 78vw);
  }

  .home-ecosystem {
    --showcase-step-scroll: 44vh;
    --showcase-step-scroll-watch: 56vh;
  }

  .home-ecosystem-stage {
    height: min(360px, 48vh);
    min-height: min(300px, 38vh);
    padding: 8px 0;
  }

  .home-phone--showcase {
    width: min(216px, 80vw, calc(48vh * 393 / 852));
    max-height: min(380px, 48vh);
  }

  .home-ecosystem-scroll {
    overflow-x: clip;
    max-width: 100%;
  }

  .home-ecosystem-steps {
    max-width: 100%;
    margin: 0 -4px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .home-step {
    min-width: min(240px, 82vw);
  }

  .home-ipad--landscape {
    width: min(100%, 340px);
    max-height: min(320px, 48vh);
  }

  .home-watch--series10 {
    width: min(190px, 52vw);
    --watch-band-width: 46%;
  }

  .home-watch-band--top {
    height: clamp(34px, 10vw, 50px);
  }

  .home-watch-band--bottom {
    height: clamp(42px, 12vw, 60px);
  }

  .home-card {
    padding: 18px 16px;
  }
}

@media (max-width: 390px) {
  .home-hero h1 {
    font-size: clamp(32px, 9vw, 44px);
  }

  html[data-lang="zh-CN"] .home-hero h1 {
    font-size: clamp(30px, 8.5vw, 42px);
  }

  .home-pills li {
    font-size: 12px;
    padding: 6px 11px;
  }

  .home-actions .button {
    min-height: 44px;
    padding: 0 16px;
    font-size: 14px;
  }

  .home-ecosystem-intro h2 {
    font-size: clamp(26px, 7vw, 34px);
  }
}

@media (max-width: 320px) {
  body.page-home .shell {
    width: calc(100% - 16px);
  }

  .home-phone--device {
    --device-width: min(220px, 84vw);
  }

  .home-store {
    font-size: 13px;
    padding: 8px 12px 8px 10px;
  }
}
