:root {
  --bg: #000;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --muted-2: #6e6e73;
  --line: rgba(255, 255, 255, 0.14);
  --surface: #0b0b0d;
  --surface-2: #111114;
  --blue: #2997ff;
  --header-height: 52px;
  --max-width: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(22px, calc((100vw - var(--max-width)) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.brand {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 12px;
  color: #d2d2d7;
}

.site-nav a {
  transition: color 0.2s ease, opacity 0.2s ease;
}

.site-nav a:hover {
  color: #fff;
}

.nav-cta {
  padding: 7px 13px;
  border-radius: 999px;
  background: #0071e3;
  color: #fff !important;
}

.hero {
  min-height: calc(100svh - var(--header-height));
  padding: clamp(72px, 10vw, 148px) 22px 70px;
  text-align: center;
  position: relative;
  overflow: clip;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.hero h1,
.closing h2 {
  margin: 0;
  font-size: clamp(52px, 8.3vw, 116px);
  line-height: 0.92;
  letter-spacing: -0.06em;
  font-weight: 700;
}

.hero-intro {
  max-width: 710px;
  margin: 34px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.42;
  letter-spacing: -0.017em;
}

.hero-subline {
  margin: 19px 0 0;
  color: #d2d2d7;
  font-size: 15px;
  font-weight: 600;
}

/* Ancien bouton texte */
.store-button {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 176px;
  min-height: 54px;
  margin-top: 28px;
  padding: 8px 16px 9px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 10px;
  background: #050505;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 0.25s ease, border-color 0.25s ease,
    background 0.25s ease;
}

.store-button:hover {
  transform: translateY(-2px);
  border-color: #fff;
  background: #101012;
}

.store-kicker {
  font-size: 10px;
  line-height: 1.1;
  color: #f5f5f7;
}

.store-button strong {
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

/* Bouton officiel Mac App Store */
.store-button-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  margin: 28px auto 0;
}

.store-button-image img {
  display: block;
  width: 160px;
  height: auto;
}

.hero-stage {
  position: relative;
  width: min(1080px, 96vw);
  margin: clamp(55px, 8vw, 104px) auto 0;
  perspective: 1600px;
  border: none;
  outline: none;
  box-shadow: none;
}

.hero-glow {
  position: absolute;
  z-index: -1;
  inset: 12% 12% -8%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(56, 91, 255, 0.19),
    rgba(0, 0, 0, 0) 68%
  );
  filter: blur(24px);
  opacity: 0.7;
}

.device-shell {
  width: 100%;
  transform-origin: 50% 40%;
  will-change: transform, opacity;
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
}

/* Image principale du Mac sans contour */
.device-shell img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Images des quatre sections */
.feature-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.feature-list {
  width: min(var(--max-width), calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(60px, 9vw, 120px) 0;
}

.feature {
  min-height: min(840px, 88svh);
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.45fr);
  align-items: center;
  gap: clamp(42px, 7vw, 110px);
  padding: clamp(90px, 10vw, 145px) 0;
  border-top: 1px solid var(--line);
}

.feature-text-right {
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.72fr);
}

.feature-copy {
  max-width: 405px;
}

.feature-index {
  margin: 0 0 18px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.feature h2 {
  margin: 0 0 26px;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.052em;
  font-weight: 700;
}

.feature-copy > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  letter-spacing: -0.016em;
}

.feature-visual {
  margin: 0;
  will-change: transform;
}

.closing {
  min-height: 92svh;
  display: grid;
  place-items: center;
  padding: 130px 22px;
  text-align: center;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(
      circle at 50% 55%,
      rgba(41, 151, 255, 0.09),
      transparent 38%
    ),
    #000;
}

.closing-inner {
  max-width: 930px;
}

.closing h2 {
  font-size: clamp(58px, 8.8vw, 120px);
}

.closing-inner > p:not(.eyebrow) {
  max-width: 720px;
  margin: 35px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 1.65vw, 21px);
  line-height: 1.48;
}

.site-footer {
  width: min(var(--max-width), calc(100% - 44px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted-2);
  font-size: 12px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 22px;
}

.site-footer a:hover {
  color: var(--text);
}

/* Scroll reveal — JS ajoute .is-visible */
[data-reveal] {
  opacity: 0;
  filter: blur(8px);
  transition:
    opacity 1s cubic-bezier(0.2, 0.65, 0.3, 1),
    transform 1.05s cubic-bezier(0.2, 0.65, 0.3, 1),
    filter 0.9s ease;
}

[data-reveal="up"] {
  transform: translate3d(0, 54px, 0);
}

[data-reveal="left"] {
  transform: translate3d(-64px, 30px, 0);
}

[data-reveal="right"] {
  transform: translate3d(64px, 30px, 0);
}

[data-reveal].is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

@media (max-width: 820px) {
  .site-header {
    padding-inline: 18px;
  }

  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding-top: 72px;
  }

  .hero h1 {
    font-size: clamp(52px, 15vw, 82px);
  }

  .hero-intro {
    max-width: 620px;
  }

  .feature-list {
    width: min(680px, calc(100% - 36px));
  }

  .feature,
  .feature-text-right {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 92px 0;
  }

  .feature-text-right .feature-visual {
    order: 2;
  }

  .feature-text-right .feature-copy {
    order: 1;
  }

  .feature-copy {
    max-width: 570px;
  }

  .feature h2 {
    font-size: clamp(40px, 10vw, 62px);
  }

  .feature-visual img {
    border-radius: 18px;
  }

  [data-reveal="left"],
  [data-reveal="right"] {
    transform: translate3d(0, 45px, 0);
  }

  .site-footer {
    padding: 28px 0;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
