/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.47;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, a { font: inherit; cursor: pointer; }

/* ===== Tokens ===== */
:root {
  --bg: #fbfbfd;
  --text: #1d1d1f;
  --text-soft: #6e6e73;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --nav-bg: rgba(22, 22, 23, 0.8);
  --nav-text: #f5f5f7;
  --hero-bg: #0a0a0a;
  --hero-text: #f5f5f7;
  --section-bg: #ffffff;
  --statement-bg: #000000;
  --border: rgba(0,0,0,0.08);
}

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: 48px; padding: 0 24px;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: var(--nav-text);
  font-size: 14px;
  transition: background .3s ease, height .3s ease;
}
.nav.scrolled { background: rgba(22,22,23,0.92); height: 44px; }
.nav__logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; letter-spacing: -0.01em; font-size: 18px;
}
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  opacity: 0.86; font-size: 13px; transition: opacity .2s ease, color .2s ease;
}
.nav__links a:hover { opacity: 1; color: #fff; }
.nav__cta {
  background: var(--accent); color: #fff !important;
  padding: 6px 14px; border-radius: 980px; font-size: 13px; font-weight: 500;
  transition: background .2s ease;
}
.nav__cta:hover { background: var(--accent-hover); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 980px;
  font-size: 17px; font-weight: 500;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost {
  color: var(--accent); background: transparent;
  border: 1px solid rgba(0,0,0,0.12);
}
.btn--ghost:hover { background: rgba(0,0,0,0.04); }
.btn--large { padding: 16px 32px; font-size: 19px; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh;
  background: radial-gradient(ellipse at 50% 0%, #1a1a1a 0%, var(--hero-bg) 60%);
  color: var(--hero-text);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 120px 24px 80px;
  text-align: center;
  overflow: hidden;
}
.hero__inner { max-width: 760px; z-index: 2; position: relative; }
.hero__title {
  font-size: clamp(48px, 9vw, 112px);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1.0;
  margin-bottom: 24px;
}
.hero__title-accent {
  background: linear-gradient(135deg, #64d2ff 0%, #5e5ce6 50%, #bf5af2 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__sub {
  font-size: clamp(18px, 2.2vw, 23px);
  color: rgba(245,245,247,0.78);
  max-width: 620px; margin: 0 auto 32px;
  letter-spacing: -0.005em;
}
.hero__cta { display: inline-flex; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; justify-content: center; }
.hero__price {
  font-size: 13px; color: rgba(245,245,247,0.5);
}
.hero__image {
  position: relative; z-index: 1;
  margin-top: 56px;
  filter: drop-shadow(0 40px 80px rgba(0,0,0,0.6));
  max-width: 820px;
}
.hero__image img {
  border-radius: 18px;
  width: 100%;
  transition: transform .8s cubic-bezier(.16,1,.3,1);
}
.hero__image:hover img { transform: translateY(-6px) scale(1.01); }
.hero__scroll {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(245,245,247,0.4);
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,8px)} }

/* ===== Feature strip ===== */
.strip {
  background: var(--section-bg);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; padding: 96px 32px;
  max-width: 1200px; margin: 0 auto;
}
.strip__item {
  text-align: center; padding: 0 32px;
  border-right: 1px solid var(--border);
}
.strip__item:last-child { border-right: none; }
.strip__item svg { color: var(--accent); margin-bottom: 16px; }
.strip__item h3 {
  font-size: 21px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px;
}
.strip__item p { font-size: 15px; color: var(--text-soft); max-width: 260px; margin: 0 auto; }

/* ===== Statement ===== */
.statement {
  position: relative; padding: 140px 24px;
  background: var(--statement-bg); color: #f5f5f7;
  overflow: hidden; text-align: center;
}
.statement__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(94,92,230,0.35), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(191,90,242,0.30), transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(100,210,255,0.25), transparent 50%);
  filter: blur(40px);
}
.statement__inner { position: relative; z-index: 2; max-width: 980px; margin: 0 auto; }
.statement__title {
  font-size: clamp(40px, 7vw, 88px); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1.0; margin-bottom: 24px;
}
.statement__sub {
  font-size: clamp(17px, 2vw, 21px); color: rgba(245,245,247,0.7);
  max-width: 640px; margin: 0 auto 56px;
}
.statement__image {
  max-width: 720px; margin: 0 auto;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5));
}
.statement__image img { border-radius: 16px; }

/* ===== MacBook Air ===== */
.macbook-air {
  background: linear-gradient(180deg, #1a1a1a 0%, #f5f5f7 12%);
  color: var(--text);
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center;
  padding: 120px 64px 80px; gap: 72px; max-width: 1320px; margin: 0 auto;
}
.macbook-air__media {
  position: relative;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.25));
}
.macbook-air__media img {
  width: 100%; border-radius: 12px;
  transition: transform 1.2s cubic-bezier(.16,1,.3,1);
}
.macbook-air__media:hover img { transform: scale(1.02) translateY(-4px); }
.macbook-air__copy { padding-right: 16px; }
.macbook-air__copy .eyebrow { color: var(--accent); }
.macbook-air__copy h2 {
  font-size: clamp(32px, 4.5vw, 52px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 20px;
}
.macbook-air__copy > p {
  font-size: 18px; color: var(--text-soft); margin-bottom: 28px; max-width: 460px;
}
.macbook-air__colors {
  display: flex; gap: 12px; margin-bottom: 28px;
}
.swatch {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.1);
  cursor: pointer; transition: transform .2s ease, border-color .2s ease;
}
.swatch:hover { transform: scale(1.15); border-color: var(--accent); }
.swatch--midnight { background: #1e2a3a; }
.swatch--starlight { background: #f0ece4; }
.swatch--space { background: #4a4a4c; }
.swatch--silver { background: #dcdcdc; }
.macbook-air__specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px;
  margin-bottom: 32px; max-width: 420px;
}
.macbook-air__specs div { display: flex; flex-direction: column; gap: 2px; }
.macbook-air__specs dt {
  font-size: 12px; color: var(--text-soft);
  text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600;
}
.macbook-air__specs dd { font-size: 16px; font-weight: 500; }

/* ===== Creative ===== */
.creative {
  background: var(--section-bg);
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  padding: 120px 64px; gap: 80px; max-width: 1280px; margin: 0 auto;
}

/* ===== MacBook ===== */
.macbook {
  background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
  color: #f5f5f7;
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: center;
  padding: 120px 64px; gap: 72px; max-width: 1320px; margin: 0 auto;
  border-radius: 0;
}
.macbook__copy { padding-left: 16px; }
.macbook__copy .eyebrow { color: #64d2ff; }
.macbook__copy h2 {
  font-size: clamp(32px, 4.5vw, 56px); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 20px;
}
.macbook__copy > p {
  font-size: 18px; color: rgba(245,245,247,0.7);
  margin-bottom: 32px; max-width: 460px;
}
.macbook__stats {
  display: flex; gap: 48px; margin-bottom: 36px;
}
.macbook__stat { display: flex; flex-direction: column; gap: 4px; }
.macbook__stat-num {
  font-size: clamp(36px, 5vw, 52px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1;
  background: linear-gradient(135deg, #64d2ff, #5e5ce6);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.macbook__stat-label {
  font-size: 13px; color: rgba(245,245,247,0.5); font-weight: 500;
}
.macbook__media {
  position: relative;
  filter: drop-shadow(0 40px 80px rgba(0,0,0,0.5));
}
.macbook__media img {
  width: 100%; border-radius: 12px;
  transition: transform 1.2s cubic-bezier(.16,1,.3,1);
}
.macbook__media:hover img { transform: scale(1.02) translateY(-4px); }
.creative__media { overflow: hidden; border-radius: 20px; }
.creative__media img { width: 100%; transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
.creative__media:hover img { transform: scale(1.04); }
.creative__copy { padding-right: 16px; }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px;
}
.creative__copy h2 {
  font-size: clamp(32px, 4.5vw, 52px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 20px;
}
.creative__copy p {
  font-size: 18px; color: var(--text-soft); margin-bottom: 28px; max-width: 460px;
}
.creative__list { display: flex; flex-direction: column; gap: 14px; }
.creative__list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 16px; font-weight: 500;
}
.creative__list svg { color: var(--accent); flex-shrink: 0; }

/* ===== Lifestyle ===== */
.lifestyle { background: var(--bg); padding: 80px 24px 120px; }
.lifestyle__media {
  max-width: 1280px; margin: 0 auto; position: relative;
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
.lifestyle__media img { width: 100%; }
.lifestyle__media figcaption {
  position: absolute; bottom: 24px; left: 24px;
  color: #fff; font-size: 17px; font-weight: 500;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

/* ===== Specs ===== */
.specs {
  background: var(--section-bg);
  padding: 120px 24px; text-align: center;
}
.specs__title {
  font-size: clamp(28px, 4vw, 44px); font-weight: 700;
  letter-spacing: -0.03em; margin-bottom: 64px; max-width: 640px;
  margin-left: auto; margin-right: auto;
}
.specs__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; max-width: 1080px; margin: 0 auto;
}
.spec { padding: 0 16px; border-right: 1px solid var(--border); }
.spec:last-child { border-right: none; }
.spec__num {
  display: block; font-size: clamp(40px, 6vw, 64px); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1; margin-bottom: 12px;
  background: linear-gradient(135deg, #0071e3, #5e5ce6);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.spec__unit { font-size: 0.45em; font-weight: 600; }
.spec__label { font-size: 14px; color: var(--text-soft); line-height: 1.4; }

/* ===== Buy ===== */
.buy {
  background: linear-gradient(180deg, var(--bg) 0%, #e8e8ed 100%);
  padding: 120px 24px 64px; text-align: center;
}
.buy__inner { max-width: 640px; margin: 0 auto; }
.buy__inner h2 {
  font-size: clamp(32px, 5vw, 56px); font-weight: 700;
  letter-spacing: -0.04em; margin-bottom: 16px;
}
.buy__inner > p {
  font-size: 19px; color: var(--text-soft); margin-bottom: 32px;
}
.buy__legal {
  font-size: 11px; color: var(--text-soft); line-height: 1.5;
  margin: 32px auto 48px; max-width: 520px;
}
.buy__links {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  font-size: 12px; color: var(--text-soft); margin-bottom: 24px;
}
.buy__links a:hover { color: var(--text); text-decoration: underline; }
.buy__copyright { font-size: 11px; color: var(--text-soft); }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 832px) {
  .nav__links { display: none; }
  .strip { grid-template-columns: 1fr; gap: 48px; padding: 64px 24px; }
  .strip__item { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 32px; }
  .strip__item:last-child { border-bottom: none; padding-bottom: 0; }
  .creative { grid-template-columns: 1fr; padding: 80px 24px; gap: 40px; }
  .creative__copy { padding-right: 0; }
  .macbook { grid-template-columns: 1fr; padding: 80px 24px; gap: 40px; }
  .macbook__copy { padding-left: 0; }
  .macbook__stats { gap: 32px; }
  .macbook-air { grid-template-columns: 1fr; padding: 80px 24px 64px; gap: 40px; }
  .macbook-air__copy { padding-right: 0; }
  .macbook-air__specs { grid-template-columns: 1fr 1fr; }
  .specs__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 16px; }
  .spec:nth-child(2) { border-right: none; }
  .statement { padding: 100px 24px; }
  .lifestyle__media figcaption { font-size: 14px; bottom: 16px; left: 16px; }
}
@media (max-width: 480px) {
  .hero { padding-top: 100px; }
  .hero__cta { flex-direction: column; width: 100%; }
  .hero__cta .btn { width: 100%; justify-content: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
