:root {
  --bg: #000;
  --bg-elevated: #161617;
  --bg-tile: #1d1d1f;
  --text: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-muted: #86868b;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #2997ff;
  --nav-h: 44px;
  --local-h: 52px;
  --max: 980px;
  --wide: 1260px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.47059;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

sup {
  font-size: 0.6em;
  vertical-align: super;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  border-radius: 980px;
  padding: 12px 22px;
  font-size: 17px;
  font-weight: 400;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--blue-hover);
}

.btn--sm {
  padding: 6px 14px;
  font-size: 12px;
  line-height: 1.333;
}

.btn--blue {
  background: var(--blue);
}

.text-link,
.link-more {
  color: var(--link);
  font-size: 17px;
}

.text-link:hover,
.link-more:hover {
  text-decoration: underline;
}

.price {
  color: var(--text);
  font-size: 17px;
  margin-top: 14px;
}

.price--card {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 12px 0 16px;
  line-height: 1.4;
}

.eyebrow {
  color: var(--text-muted);
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 8px;
}

.lede {
  color: var(--text-secondary);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.381;
  max-width: 680px;
  margin-top: 20px;
}

.section-intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 48px;
}

.section-intro--center {
  text-align: center;
}

.section-intro h2,
.section-head h2,
.ways h2,
.compare .section-intro h2 {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.07;
}

.section-head {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 24px 28px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Global Nav */
.global-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22, 22, 23, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  height: var(--nav-h);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.global-nav__inner {
  max-width: 1024px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 8px;
}

.global-nav__logo {
  color: var(--text);
  display: flex;
  opacity: 0.8;
}

.global-nav__logo:hover {
  opacity: 1;
}

.global-nav__links {
  display: none;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
}

.global-nav__links a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  padding: 0 10px;
  white-space: nowrap;
}

.global-nav__links a:hover {
  color: #fff;
}

.global-nav__icons {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.icon-btn,
.menu-toggle {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  padding: 4px;
}

.menu-toggle {
  width: 20px;
  height: 20px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  height: 1px;
  background: currentColor;
  width: 100%;
  transition: transform 0.25s ease;
}

@media (min-width: 834px) {
  .global-nav__links {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
}

/* Local Nav */
.local-nav {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: rgba(29, 29, 31, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  height: var(--local-h);
}

.local-nav__inner {
  max-width: var(--wide);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.local-nav__title {
  font-size: 19px;
  font-weight: 600;
}

.local-nav__right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.local-nav__links {
  display: none;
  gap: 20px;
}

.local-nav__links a {
  font-size: 12px;
  color: var(--text-secondary);
}

.local-nav__links a:hover {
  color: var(--text);
}

@media (min-width: 734px) {
  .local-nav__links {
    display: flex;
  }
}

/* Hero */
.hero {
  min-height: calc(100vh - var(--nav-h) - var(--local-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  padding: 40px 24px 72px;
  overflow: hidden;
  background: #000;
}

.hero--bleed {
  justify-content: flex-end;
  padding: 0;
  min-height: calc(100vh - var(--nav-h) - var(--local-h));
}

.hero__bleed-media {
  position: absolute;
  inset: 0;
}

.hero__bleed-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  animation: heroRise 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__bleed-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.05) 40%,
    rgba(0, 0, 0, 0.75) 78%,
    rgba(0, 0, 0, 0.95) 100%
  );
}

.hero__copy {
  text-align: center;
  animation: fadeUp 0.9s ease 0.25s both;
}

.hero__copy--overlay {
  position: relative;
  z-index: 2;
  padding: 0 24px 64px;
  width: 100%;
}

.product-showcase {
  padding: 80px 0 40px;
  background: #000;
}

.showcase-stage {
  display: flex;
  justify-content: center;
  padding: 20px 24px 10px;
}

.showcase-phone {
  width: min(70vw, 360px);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
  transition: opacity 0.3s ease, transform 0.35s ease;
}

.showcase-phone.is-switching {
  opacity: 0;
  transform: scale(0.97);
}

.colors--compact {
  margin-bottom: 24px;
}

.angle-strip {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.angle-strip img {
  width: 100%;
  border-radius: 16px;
  background: #1d1d1f;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s ease, outline 0.2s ease;
  outline: 2px solid transparent;
}

.angle-strip img.is-active,
.angle-strip img:hover {
  opacity: 1;
}

.angle-strip img.is-active {
  outline-color: rgba(255, 255, 255, 0.35);
}

.lineup {
  padding: 40px 0 20px;
  background: #000;
}

.lineup img {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
}

.global-nav__icons a.icon-btn {
  text-decoration: none;
  color: inherit;
}

.hero__headline {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 28px;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Highlights */
.highlights {
  padding: 80px 0 40px;
  background: #000;
}

.highlights__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 24px 32px;
  max-width: var(--wide);
  margin: 0 auto;
  scrollbar-width: thin;
  scrollbar-color: #424245 transparent;
}

.highlight-card {
  flex: 0 0 min(78vw, 340px);
  scroll-snap-align: start;
  background: var(--bg-tile);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease;
}

.highlight-card:hover {
  transform: translateY(-4px);
}

.highlight-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.highlight-card p {
  padding: 24px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

/* Design */
.design {
  padding: 100px 0 60px;
}

.colors {
  max-width: var(--max);
  margin: 0 auto 80px;
  padding: 0 24px;
  text-align: center;
}

.colors h3 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
}

.colors__caption {
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.colors__swatches {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
}

.swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--swatch);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  outline-offset: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.swatch.is-active {
  box-shadow:
    0 0 0 2px #000,
    0 0 0 4px #fff;
}

.swatch:hover {
  transform: scale(1.08);
}

.colors__stage {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.colors__phone {
  width: min(60vw, 320px);
  transition: opacity 0.35s ease, transform 0.45s ease;
}

.colors__phone.is-switching {
  opacity: 0;
  transform: scale(0.96);
}

.feature-grid {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 834px) {
  .feature-grid {
    grid-template-columns: 1.2fr 1fr;
  }
  .feature-tile--wide {
    grid-row: span 2;
  }
}

.feature-tile {
  background: var(--bg-tile);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-tile img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.feature-tile--wide img {
  flex: 1;
  aspect-ratio: auto;
  min-height: 280px;
}

.feature-tile__text {
  padding: 28px;
}

.feature-tile__text h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-tile__text p {
  color: var(--text-secondary);
  font-size: 17px;
}

/* Cameras */
.cameras {
  padding: 100px 0;
  background: linear-gradient(180deg, #000 0%, #0a0a0c 40%, #000 100%);
}

.stat-line {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 12px;
}

.stat-line span {
  background: linear-gradient(90deg, #5ac8fa, #0071e3, #e85d04);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.camera-hero {
  max-width: var(--wide);
  margin: 0 auto 48px;
  padding: 0 24px;
}

.camera-hero img {
  width: 100%;
  border-radius: 28px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.lens-grid {
  max-width: var(--max);
  margin: 0 auto 64px;
  padding: 0 24px;
  display: grid;
  gap: 24px;
}

@media (min-width: 734px) {
  .lens-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.lens-grid h3 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 12px;
}

.lens-grid li {
  color: var(--text-secondary);
  font-size: 14px;
  padding: 4px 0;
}

.photo-strip {
  max-width: var(--wide);
  margin: 0 auto 80px;
  padding: 0 24px;
  display: grid;
  gap: 20px;
}

@media (min-width: 834px) {
  .photo-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

.photo-strip figure {
  background: var(--bg-tile);
  border-radius: 24px;
  overflow: hidden;
}

.photo-strip img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.photo-strip figcaption {
  padding: 18px 20px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.center-stage {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 834px) {
  .center-stage {
    grid-template-columns: 1fr 1.1fr;
  }
}

.center-stage__copy h3 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 16px;
}

.center-stage__copy p {
  color: var(--text-secondary);
  font-size: 19px;
  font-weight: 600;
}

.center-stage img {
  border-radius: 28px;
  width: 100%;
}

/* Performance */
.performance {
  padding: 100px 0;
}

.perf-stats {
  max-width: var(--max);
  margin: 0 auto 48px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (min-width: 834px) {
  .perf-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.perf-stat__value {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #f5f5f7, #86868b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.perf-stat__label {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 6px;
}

.perf-visual {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 24px;
}

.perf-visual img {
  width: 100%;
  border-radius: 28px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Compare */
.compare {
  padding: 100px 0 60px;
  background: #f5f5f7;
  color: #1d1d1f;
}

.compare .section-intro h2 {
  color: #1d1d1f;
}

.compare-grid {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .compare-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.compare-card {
  background: #fff;
  border-radius: 28px;
  padding: 36px 28px;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.compare-card.is-current {
  outline: 2px solid #0071e3;
  outline-offset: 0;
}

.compare-card__badge {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
  white-space: nowrap;
}

.compare-card img {
  width: 160px;
  margin: 28px auto 20px;
}

.compare-card__phone {
  width: 120px;
  height: 240px;
  margin: 36px auto 20px;
  border-radius: 28px;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.compare-card__phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 8px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.35);
}

.compare-card__phone--air {
  background: linear-gradient(160deg, #c9dff5 0%, #8eb8e8 45%, #6a9fd4 100%);
  height: 220px;
  width: 110px;
}

.compare-card__phone--17 {
  background: linear-gradient(160deg, #2a4a7a 0%, #1c3a6e 50%, #142848 100%);
}

.compare-card h3 {
  font-size: 28px;
  font-weight: 600;
}

.compare-card__tag {
  color: #6e6e73;
  font-size: 14px;
  margin: 8px 0 12px;
  min-height: 40px;
}

.color-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.color-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.compare-card__specs {
  margin-top: 28px;
  text-align: left;
  border-top: 1px solid #d2d2d7;
  padding-top: 20px;
}

.compare-card__specs li {
  font-size: 14px;
  padding: 8px 0;
  color: #1d1d1f;
  border-bottom: 1px solid #f0f0f2;
}

.compare .price--card {
  color: #1d1d1f;
}

/* Ways */
.ways {
  padding: 80px 24px 100px;
  background: #f5f5f7;
  color: #1d1d1f;
  text-align: center;
}

.ways h2 {
  margin-bottom: 40px;
}

.ways__grid {
  max-width: var(--wide);
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

@media (min-width: 834px) {
  .ways__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ways__grid article {
  background: #fff;
  border-radius: 24px;
  padding: 36px 28px;
  text-align: left;
}

.ways__grid h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}

.ways__grid p {
  color: #6e6e73;
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.ways .text-link {
  color: var(--blue);
  font-size: 14px;
}

/* Footer */
.footer {
  background: #f5f5f7;
  border-top: 1px solid #d2d2d7;
  color: #6e6e73;
  font-size: 12px;
  padding: 20px 0 40px;
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.footer__legal {
  line-height: 1.5;
  padding-bottom: 16px;
  border-bottom: 1px solid #d2d2d7;
  margin-bottom: 16px;
}

.footer__copy {
  margin-bottom: 12px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer__links a:hover {
  text-decoration: underline;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Mobile menu open state */
body.nav-open .global-nav__links {
  display: flex;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  flex-direction: column;
  background: #161617;
  padding: 16px;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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