:root {
  --text: #1d1d1f;
  --muted: #6e6e73;
  --blue: #0071e3;
  --blue-dark: #005bbf;
  --page: #f5f5f7;
  --white: #fff;
  --black: #000;
  --nav-height: 44px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

.global-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-height);
  background: rgba(245, 245, 247, 0.82);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: saturate(180%) blur(20px);
}

.nav-bar {
  width: min(1240px, 100%);
  height: var(--nav-height);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
  padding: 0 18px;
}

.brand {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  color: #1d1d1f;
}

.brand svg {
  width: 18px;
  height: 22px;
  display: block;
  fill: currentColor;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-links a,
.nav-actions a {
  color: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  line-height: 1;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-actions a:hover,
.nav-links a:focus-visible,
.nav-actions a:focus-visible {
  color: #000;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.search-icon,
.bag-icon {
  position: relative;
  width: 18px;
  height: 18px;
  display: inline-block;
}

.search-icon::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 6px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}

.bag-icon::before {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 3px;
  left: 4px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 2px 2px 4px 4px;
}

.bag-icon::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 6px;
  width: 6px;
  height: 5px;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.menu-toggle {
  display: none;
}

.ribbon {
  display: grid;
  place-items: center;
  min-height: 52px;
  padding: 10px 20px;
  color: #1d1d1f;
  background: var(--white);
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
}

.ribbon p {
  max-width: min(980px, 100%);
}

.scroll-scene {
  position: relative;
  height: 390svh;
  min-height: 2200px;
  background: #fbfbfd;
}

.mac-story {
  background: #050505;
}

.scene-sticky {
  --copy-y: 0px;
  --copy-opacity: 1;
  --copy-scale: 1;
  --visual-x: 0px;
  --visual-y: 0px;
  --visual-scale: 1;
  --visual-rotate: 0deg;
  --glow-opacity: 0.8;
  --scan-opacity: 0;
  --scan-y: 18%;
  --note-one-opacity: 0;
  --note-one-y: 28px;
  --note-two-opacity: 0;
  --note-two-y: 28px;
  --note-three-opacity: 0;
  --note-three-y: 28px;
  --paper-rise: 0;
  position: sticky;
  top: var(--nav-height);
  height: calc(100svh - var(--nav-height));
  min-height: 680px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: min(6vw, 72px);
  padding: 66px max(28px, calc((100vw - 1180px) / 2)) 44px;
  background:
    radial-gradient(circle at 72% 42%, rgba(223, 213, 194, 0.62), transparent 30%),
    radial-gradient(circle at 52% 88%, rgba(255, 255, 255, 0.9), transparent 26%),
    linear-gradient(180deg, #fbfdff 0%, #f5f8fb 100%);
}

.scene-sticky::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 5;
  height: 30%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(245, 245, 247, 0), rgb(245 245 247 / var(--paper-rise)));
}

.scene-sticky.dark {
  color: var(--white);
  background:
    radial-gradient(circle at 66% 56%, rgba(115, 147, 255, 0.22), transparent 32%),
    radial-gradient(circle at 50% 92%, rgba(255, 255, 255, 0.13), transparent 30%),
    linear-gradient(180deg, #17171a 0%, #050505 100%);
}

.scene-sticky.dark::after {
  background: linear-gradient(180deg, rgba(5, 5, 5, 0), rgb(5 5 5 / var(--paper-rise)));
}

.scene-copy {
  position: relative;
  z-index: 7;
  width: min(560px, 100%);
  min-width: 0;
  max-width: 560px;
  opacity: var(--copy-opacity);
  transform: translateY(var(--copy-y)) scale(var(--copy-scale));
  transform-origin: 0 50%;
  will-change: transform, opacity;
}

.eyebrow {
  color: #bf4800;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.dark .eyebrow {
  color: #8fd0ff;
}

.scene-copy h1,
.scene-copy h2,
.promo-card h2,
.store-heading h2,
.specs-heading h2 {
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.scene-copy h1 {
  margin-top: 6px;
  font-size: clamp(58px, 8vw, 112px);
  font-weight: 700;
  line-height: 0.94;
}

.scene-copy h1 span {
  display: block;
}

.scene-copy h2 {
  margin-top: 8px;
  font-size: clamp(48px, 6.8vw, 92px);
  font-weight: 700;
  line-height: 0.98;
}

.scene-lede {
  max-width: 520px;
  margin-top: 18px;
  color: var(--text);
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.22;
}

.dark .scene-lede {
  color: rgba(255, 255, 255, 0.78);
}

.hero-actions,
.card-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.link-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 17px;
  line-height: 1;
}

.link-button.primary {
  color: var(--white);
  background: var(--blue);
}

.link-button.primary:hover,
.link-button.primary:focus-visible {
  background: var(--blue-dark);
}

.link-button.secondary {
  color: var(--blue);
  border: 1px solid var(--blue);
}

.link-button.secondary:hover,
.link-button.secondary:focus-visible {
  color: var(--white);
  background: var(--blue);
}

.scene-visual {
  position: relative;
  z-index: 4;
  min-width: 0;
  align-self: stretch;
  min-height: 520px;
  display: grid;
  place-items: center;
  transform: translate(var(--visual-x), var(--visual-y)) rotate(var(--visual-rotate)) scale(var(--visual-scale));
  transform-origin: center;
  will-change: transform;
}

.product-glow,
.mac-halo {
  position: absolute;
  inset: 8% 4%;
  border-radius: 50%;
  opacity: var(--glow-opacity);
  filter: blur(12px);
  background: radial-gradient(circle, rgba(224, 201, 160, 0.42), transparent 64%);
  will-change: opacity;
}

.phone-image {
  position: relative;
  z-index: 2;
  width: min(720px, 52vw);
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 42px 56px rgba(0, 0, 0, 0.2));
}

.scan-line {
  display: none;
}

.mac-visual {
  min-height: 500px;
}

.mac-halo {
  inset: 16% 0 4%;
  background: radial-gradient(circle, rgba(148, 180, 255, 0.38), transparent 62%);
}

.mac-image {
  position: relative;
  z-index: 2;
  width: min(900px, 64vw);
  max-width: none;
  mix-blend-mode: screen;
  filter: drop-shadow(0 48px 70px rgba(0, 0, 0, 0.46));
}

.mac-reflection {
  position: absolute;
  right: 10%;
  bottom: 12%;
  left: 10%;
  height: 16%;
  opacity: calc(var(--glow-opacity) * 0.5);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(153, 186, 255, 0.35), transparent 68%);
  filter: blur(16px);
}

.scene-notes {
  position: absolute;
  left: max(28px, calc((100vw - 1180px) / 2));
  bottom: 82px;
  z-index: 8;
  width: min(390px, calc(100% - 56px));
  display: grid;
  gap: 12px;
  pointer-events: none;
}

.scene-note {
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(22px);
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
}

.dark .scene-note {
  background: rgba(22, 22, 26, 0.84);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.42);
}

.scene-note span {
  display: block;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.dark .scene-note span {
  color: #8fd0ff;
}

.scene-note strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(21px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.12;
}

.note-one {
  opacity: var(--note-one-opacity);
  transform: translateY(var(--note-one-y));
}

.note-two {
  opacity: var(--note-two-opacity);
  transform: translateY(var(--note-two-y));
}

.note-three {
  opacity: var(--note-three-opacity);
  transform: translateY(var(--note-three-y));
}

.iphone-specs {
  padding: 88px 24px 100px;
  background:
    linear-gradient(180deg, #f5f8fb 0%, #f5f5f7 100%);
}

.specs-heading {
  width: min(1120px, 100%);
  margin: 0 auto 32px;
  text-align: center;
}

.specs-heading h2 {
  margin-top: 8px;
  color: #1d1d1f;
  font-size: clamp(38px, 5.6vw, 72px);
  font-weight: 700;
  line-height: 1.04;
}

.spec-grid {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto;
}

.spec-grid article {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.06);
}

.spec-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.spec-grid strong {
  display: block;
  margin-top: 12px;
  color: var(--text);
  font-size: clamp(21px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.12;
}

.spec-grid p {
  margin-top: auto;
  padding-top: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  background: var(--page);
}

.promo-card {
  min-height: 620px;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  padding: 42px 28px 0;
  text-align: center;
  background: var(--white);
}

.promo-card h2 {
  margin-top: 5px;
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 700;
  line-height: 1.05;
}

.promo-card p:not(.eyebrow) {
  max-width: 520px;
  margin: 10px auto 0;
  color: var(--text);
  font-size: 19px;
  line-height: 1.36;
}

.promo-card img {
  align-self: end;
  width: min(760px, 100%);
  margin: 22px auto 0;
  object-fit: contain;
}

.light-card {
  min-height: 720px;
  isolation: isolate;
}

.light-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.76) 28%, rgba(255, 255, 255, 0) 58%);
}

.light-card > div {
  position: relative;
  z-index: 2;
}

.promo-card .wearables-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: center bottom;
}

.card-actions {
  justify-content: center;
  gap: 24px;
  margin-top: 14px;
}

.card-actions a {
  color: var(--blue);
  font-size: 17px;
}

.card-actions a::after {
  content: " >";
  font-size: 0.9em;
}

.gradient-card {
  background: linear-gradient(180deg, #f8fbff 0%, #eaf4ff 52%, #dcecff 100%);
}

.airpods-image {
  align-self: end;
  width: min(560px, 92%);
  margin: 36px auto 30px;
  object-fit: contain;
  filter: drop-shadow(0 38px 58px rgba(76, 119, 166, 0.18));
}

.black-card {
  color: var(--white);
  background: radial-gradient(circle at 50% 76%, #363842 0%, #09090c 56%, #000 100%);
}

.black-card .eyebrow {
  color: #9bdcff;
}

.black-card p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.color-card {
  color: var(--white);
  background:
    linear-gradient(140deg, rgba(0, 0, 0, 0.28), transparent 38%),
    linear-gradient(135deg, #246bfe, #8b4dff 42%, #ff4c7a 74%, #ffb457);
}

.color-card .eyebrow,
.color-card p:not(.eyebrow),
.color-card .card-actions a {
  color: var(--white);
}

.vision-image {
  align-self: end;
  width: min(560px, 86%);
  margin: 52px auto 46px;
  object-fit: contain;
  filter: drop-shadow(0 46px 76px rgba(0, 0, 0, 0.58));
}

.service-strip {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: min(620px, 100%);
  margin: 90px auto 72px;
}

.service-strip span {
  min-height: 118px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.14);
  font-size: 21px;
  font-weight: 700;
  backdrop-filter: blur(14px);
}

.store-section {
  padding: 78px 24px 88px;
  background: var(--page);
}

.store-heading {
  width: min(920px, 100%);
  margin: 0 auto 28px;
}

.store-heading h2 {
  color: #1d1d1f;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
}

.store-heading p {
  max-width: 720px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.45;
}

.store-row {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto;
}

.store-row article {
  min-height: 172px;
  padding: 22px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.06);
}

.store-row span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.store-row strong {
  display: block;
  margin-top: 16px;
  color: var(--text);
  font-size: 21px;
  line-height: 1.24;
}

.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

.site-footer {
  padding: 24px;
  color: #777;
  background: #f5f5f7;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 12px;
  line-height: 1.6;
}

.site-footer p {
  width: min(980px, 100%);
  margin: 0 auto;
}

.site-footer p + p {
  margin-top: 8px;
}

@media (max-width: 980px) {
  .scene-sticky {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 18px;
    padding-top: 42px;
    text-align: center;
  }

  .scene-copy {
    width: min(720px, 100%);
    max-width: 720px;
    margin: 0 auto;
    transform-origin: 50% 50%;
  }

  .scene-lede {
    margin-right: auto;
    margin-left: auto;
  }

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

  .scene-visual {
    min-height: 390px;
  }

  .phone-image,
  .mac-image {
    width: min(760px, 104vw);
  }

  .scene-notes {
    right: 50%;
    bottom: 36px;
    transform: translateX(50%);
    width: min(560px, calc(100% - 32px));
  }
}

@media (max-width: 820px) {
  .nav-bar {
    grid-template-columns: 44px 1fr 44px;
  }

  .menu-toggle {
    width: 36px;
    height: 36px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    justify-self: end;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .menu-toggle span {
    width: 18px;
    height: 1px;
    display: block;
    background: #1d1d1f;
    transition: transform 0.2s ease;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    right: 0;
    left: 0;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 10px 34px 28px;
    background: rgba(245, 245, 247, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transform: translateY(-120%);
    transition: transform 0.25s ease;
  }

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

  .global-header.is-open .nav-links {
    transform: translateY(0);
  }

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

  .global-header.is-open .menu-toggle span:nth-child(2) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .nav-actions {
    display: none;
  }

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

  .product-grid,
  .store-row {
    grid-template-columns: 1fr;
  }

  .scroll-scene {
    height: 340svh;
    min-height: 1900px;
  }

  .scene-sticky {
    min-height: 720px;
  }

  .promo-card {
    min-height: 560px;
  }

  .service-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 54px;
  }
}

@media (max-width: 560px) {
  .ribbon {
    font-size: 13px;
  }

  .ribbon p {
    width: min(330px, 100%);
  }

  .scroll-scene {
    height: 320svh;
    min-height: 1720px;
  }

  .scene-sticky {
    min-height: 680px;
    padding: 32px 16px 26px;
  }

  .scene-copy h1 {
    font-size: clamp(38px, 11vw, 46px);
  }

  .scene-copy h2 {
    font-size: clamp(36px, 10vw, 44px);
  }

  .scene-lede,
  .spec-grid,
  .store-heading p {
    max-width: 300px;
  }

  .scene-lede,
  .store-heading p {
    font-size: 18px;
  }

  .hero-actions {
    gap: 10px;
  }

  .link-button {
    min-height: 34px;
    padding: 0 16px;
    font-size: 15px;
  }

  .scene-visual {
    min-height: 320px;
  }

  .phone-image {
    width: min(330px, 86vw);
  }

  .scene-notes {
    bottom: 24px;
    gap: 8px;
  }

  .scene-note {
    padding: 14px 16px;
    border-radius: 18px;
  }

  .scene-note strong {
    font-size: 20px;
  }

  .product-grid {
    padding-right: 0;
    padding-left: 0;
  }

  .iphone-specs {
    padding: 64px 16px 72px;
  }

  .specs-heading {
    margin-bottom: 22px;
    text-align: left;
  }

  .specs-heading h2 {
    font-size: 36px;
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }

  .spec-grid article {
    min-height: 184px;
    padding: 22px;
    border-radius: 18px;
  }

  .promo-card {
    min-height: 540px;
    padding: 34px 18px 0;
  }

  .light-card {
    min-height: 620px;
  }

  .light-card::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.84) 34%, rgba(255, 255, 255, 0) 64%);
  }

  .promo-card .wearables-image {
    width: 100%;
    height: 100%;
    margin: 0;
    object-position: center bottom;
  }

  .promo-card h2 {
    font-size: 36px;
  }

  .promo-card p:not(.eyebrow) {
    font-size: 18px;
  }

  .service-strip span {
    min-height: 98px;
    font-size: 18px;
  }
}

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

  .scroll-scene {
    height: auto;
    min-height: 0;
  }

  .scene-sticky {
    position: relative;
    top: auto;
  }

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