/* ============================================================
   iPhone 17 Pro — Landing Page
   ============================================================ */

:root {
  --bg: #000;
  --bg-soft: #0a0a0a;
  --panel: #111;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --accent: #ff6a2c;        /* Cosmic Orange vibe */
  --accent-2: #2e5cff;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 22px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; height: auto; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(0, 0, 0, 0.72);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 48px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__brand {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, #c4360c 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 4px 14px rgba(255, 106, 44, 0.35);
}
.brand-mark__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(255,255,255,0.9);
}
.brand-mark__num { letter-spacing: 0.02em; }
.brand-mark__pro {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav__links {
  display: flex;
  gap: 28px;
  margin: 0 auto;
  font-size: 12px;
  color: var(--muted);
}
.nav__links a { transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--text);
  color: #000;
  font-weight: 500;
  transition: transform 0.2s var(--ease), background 0.2s;
}
.nav__cta:hover { transform: translateY(-1px); }

@media (max-width: 720px) {
  .nav__links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("IPhoneBackgroundWide.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  animation: heroZoom 14s var(--ease) both;
  z-index: -2;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 50% 90%, rgba(0,0,0,0.55), transparent 70%),
    linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.55) 100%);
  z-index: -1;
}
@keyframes heroZoom {
  from { transform: scale(1.12); }
  to   { transform: scale(1.0); }
}

.hero__content {
  padding: 96px 22px 140px;
  max-width: 860px;
  animation: heroIn 1.1s var(--ease) both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
  font-weight: 600;
}
.eyebrow--dark { color: var(--accent); }

.hero__title {
  font-size: clamp(48px, 9vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(180deg, #fff 0%, #b8b8c0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__tagline {
  font-size: clamp(18px, 2.2vw, 24px);
  color: #d8d8dc;
  margin: 22px auto 32px;
  max-width: 640px;
  font-weight: 400;
  line-height: 1.35;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__price {
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
  will-change: transform;
}
.btn--primary {
  background: var(--accent);
  color: #1a0a00;
}
.btn--primary:hover {
  background: #ff7c45;
  transform: translateY(-1px);
}
.btn--ghost {
  border-color: rgba(255,255,255,0.4);
  color: var(--text);
  background: rgba(255,255,255,0.04);
}
.btn--ghost:hover {
  border-color: var(--text);
  background: rgba(255,255,255,0.1);
}
.btn--block { width: 100%; }

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.hero__scroll span {
  width: 3px;
  height: 7px;
  background: #fff;
  border-radius: 2px;
  animation: scrollDot 1.6s var(--ease) infinite;
}
@keyframes scrollDot {
  0%   { transform: translateY(0); opacity: 1; }
  60%  { transform: translateY(10px); opacity: 0; }
  61%  { transform: translateY(0); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Mobile background swap */
@media (max-width: 768px) {
  .hero__bg {
    background-image: url("IPhoneBackgroundLong.png");
  }
}

/* ---------- Explode (video) section ---------- */
.explode {
  background: #000;
  padding: 120px 22px;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.explode__copy h2 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 8px 0 18px;
  font-weight: 700;
}
.lede {
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 18px);
  max-width: 46ch;
}
.explode__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #050505;
  box-shadow: 0 30px 80px rgba(255, 106, 44, 0.06), 0 0 0 1px var(--line);
  aspect-ratio: 9 / 16;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}
.explode__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 880px) {
  .explode {
    grid-template-columns: 1fr;
    padding: 80px 22px;
    gap: 36px;
  }
}

/* ---------- Features ---------- */
.features {
  padding: 100px 22px 60px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.features__head h2 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 48px;
  max-width: 18ch;
  font-weight: 700;
}
.muted { color: var(--muted); }

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 18px;
}
.feature {
  background: linear-gradient(180deg, #131316 0%, #0c0c0e 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 106, 44, 0.4);
}
.feature--lg {
  grid-column: span 2;
  grid-row: span 2;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 106, 44, 0.16), transparent 60%),
    linear-gradient(180deg, #16110d 0%, #0c0a08 100%);
}
.feature__kicker {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
  font-weight: 600;
}
.feature h3 {
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-weight: 600;
  line-height: 1.05;
}
.feature p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .feature--lg { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 560px) {
  .features__grid { grid-template-columns: 1fr; }
  .feature--lg { grid-column: span 1; }
}

/* ---------- Colors ---------- */
.colors {
  padding: 100px 22px;
  text-align: center;
  max-width: var(--maxw);
  margin: 0 auto;
}
.colors h2 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 48px;
  font-weight: 700;
}
.colors__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}
.colors__list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.swatch {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: block;
  box-shadow:
    inset 0 -8px 20px rgba(0,0,0,0.35),
    inset 0 8px 20px rgba(255,255,255,0.12),
    0 16px 40px rgba(0,0,0,0.6);
  transition: transform 0.4s var(--ease);
}
.colors__list li:hover .swatch { transform: scale(1.06) rotate(-3deg); }
.swatch--orange { background: radial-gradient(circle at 30% 30%, #ffa066, #d94d12 60%, #6b1f04 100%); }
.swatch--blue   { background: radial-gradient(circle at 30% 30%, #5a86d6, #1d3a73 60%, #0a1730 100%); }
.swatch--silver { background: radial-gradient(circle at 30% 30%, #ffffff, #c8cad0 55%, #6e7178 100%); }
.swatch__label {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- Specs / buy cards ---------- */
.specs {
  padding: 80px 22px 120px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.specs h2 {
  font-size: clamp(34px, 5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 48px;
  font-weight: 700;
  text-align: center;
}
.specs__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.card {
  background: linear-gradient(180deg, #131316 0%, #0a0a0c 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 106, 44, 0.45);
}
.card--max {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(46, 92, 255, 0.16), transparent 60%),
    linear-gradient(180deg, #0d1018 0%, #08090c 100%);
}
.card--max:hover { border-color: rgba(46, 92, 255, 0.5); }
.card__model {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}
.card__size {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.card__list {
  list-style: none;
  padding: 0;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #d0d0d4;
  font-size: 15px;
}
.card__list li::before {
  content: "—  ";
  color: var(--accent);
}
.card__price {
  margin: 6px 0 4px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.card__note {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 760px) {
  .specs__grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 36px 22px 60px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reduced-motion .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}
.reduced-motion .hero__bg,
.reduced-motion .hero__content,
.reduced-motion .hero__scroll span {
  animation: none;
}
