: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;
}


/* ========================================
   HEADER
   ======================================== */

.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
   ======================================== */

.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;
}


/* ========================================
   BOUTON 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;
}


/* ========================================
   MAC HERO
   ======================================== */

.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;
}

.device-shell img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}


/* ========================================
   FONCTIONNALITÉS
   ======================================== */

.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;
}


/* ========================================
   CONCLUSION
   ======================================== */

.closing {
  min-height: 92svh;
  display: grid;
  place-items: center;
  padding: 130px 22px;
  text-align: center;

  /* Pas de trait entre la conclusion et les tarifs */
  border-top: none;

  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;
}


/* ========================================
   TARIFS — HEYPSTER STUDIO
   ======================================== */

.pricing {
  padding: 0 22px 130px;
  background: #000;
}

.pricing-inner {
  width: min(760px, 100%);
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 58px 64px;
  border: none;
  border-radius: 34px;

  background: linear-gradient(
    180deg,
    #2b2b2b 0%,
    #202020 18%,
    #151515 45%,
    #090909 72%,
    #010101 100%
  );
}

.pricing-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;

  background: linear-gradient(
    180deg,
    #414141 0%,
    #3a3a3a 25%,
    #313131 55%,
    #242424 78%,
    #1a1a1a 100%
  );

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}


.pricing-plan-icon {

  width: 96px;

  height: 96px;

  margin-bottom: 48px;

  display: flex;

  align-items: center;

  justify-content: center;

}

.pricing-plan-icon img {

  display: block;

  width: 100%;

  height: 100%;

  object-fit: contain;

}

/* L'icône Pro est naturellement plus horizontale */

.pricing-plan-pro .pricing-plan-icon img {

  width: 90%;

  height: 90%;

  object-fit: contain;

}


/* Prix */

.pricing-content {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  gap: 48px;
}

.pricing-plan {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.pricing-label {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
}

.pricing-plan strong {
  color: var(--text);
  font-size: clamp(38px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 600;
}

.pricing-plan strong small {
  margin-left: 5px;
  color: var(--muted);
  font-size: 16px;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.pricing-divider {
  width: 1px;
  height: 72px;
  background: rgba(255, 255, 255, 0.14);
}


/* Description */

.pricing-description {
  max-width: 590px;
  margin: 48px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  text-align: center;
}


/* ========================================
   FOOTER
   ======================================== */

.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);
}


/* ========================================
   ANIMATIONS AU SCROLL
   ======================================== */

[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);
}


/* ========================================
   IPHONE / IPAD
   ======================================== */

@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;
  }


  /* Tarifs */

  .pricing {
    padding: 0 18px 90px;
  }

  .pricing-card {
    padding: 42px 28px;
    border-radius: 26px;
  }

  .pricing-app-icon {
    width: 82px;
    height: 82px;
    margin-bottom: 38px;
  }

  .pricing-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pricing-divider {
    width: 100%;
    height: 1px;
  }

  .pricing-plan strong {
    font-size: 42px;
  }

  .pricing-description {
    margin-top: 38px;
    font-size: 14px;
  }


  /* Animations */

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


  /* Footer */

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


/* ========================================
   RÉDUCTION DES ANIMATIONS
   ======================================== */

@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;
  }
}