:root {
  --bg: #050505;
  --bg-soft: #0b0b0f;
  --text: #f5f5f7;
  --muted: #8b8b96;
  --line: rgba(255, 255, 255, 0.12);
  --purple: #6d28d9;
  --purple-soft: #c4b5fd;
  --cyan: #22d3ee;
  --display: "Syne", system-ui, sans-serif;
  --sans: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

button,
input {
  font: inherit;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.stage__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 50% at 50% -8%, rgba(109, 40, 217, 0.38), transparent 58%),
    radial-gradient(ellipse 55% 45% at 78% 48%, rgba(109, 40, 217, 0.16), transparent 60%),
    radial-gradient(ellipse 50% 40% at 22% 62%, rgba(34, 211, 238, 0.1), transparent 58%),
    linear-gradient(180deg, #07070a 0%, var(--bg) 45%, #030303 100%);
}

.stage__bloom {
  position: absolute;
  left: 50%;
  top: 12%;
  width: min(70vw, 520px);
  height: min(40vw, 280px);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(109, 40, 217, 0.28), transparent 68%);
  filter: blur(40px);
  animation: bloom 7s ease-in-out infinite;
}

.stage__grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 3vh, 2rem);
  padding: clamp(1.5rem, 4vh, 2.5rem) 1.25rem;
  width: min(100%, 68rem);
  margin: 0 auto;
}

.reveal {
  animation: rise 0.9s var(--ease) both;
  animation-delay: var(--d, 0s);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.brand__logo {
  width: min(72vw, 240px);
  height: auto;
  filter:
    brightness(1.12) contrast(1.05)
    drop-shadow(0 0 28px rgba(109, 40, 217, 0.45))
    drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
  animation: brand-glow 5.5s ease-in-out infinite;
}

.split {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  width: 100%;
}

.split__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 34rem;
  gap: 1.1rem;
}

.copy {
  width: 100%;
}

.copy__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.copy__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5);
  animation: ping 2s ease-out infinite;
}

.copy__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.55rem, 4.4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.copy__title em {
  font-style: normal;
  color: var(--purple-soft);
}

.copy__lead {
  margin: 0.85rem 0 0;
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 36ch;
}

.waitlist {
  position: relative;
  width: 100%;
}

.waitlist__intro {
  margin: 0 0 0.75rem;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
}

.waitlist__field {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.45rem;
  border: 1px solid rgba(196, 181, 253, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(16px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 18px 50px rgba(109, 40, 217, 0.22);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.waitlist__field:focus-within {
  border-color: rgba(196, 181, 253, 0.55);
  box-shadow:
    0 0 0 4px rgba(109, 40, 217, 0.18),
    0 20px 56px rgba(109, 40, 217, 0.28);
}

.waitlist__input {
  width: 100%;
  padding: 1rem 1.1rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  outline: none;
}

.waitlist__input::placeholder {
  color: #7a7a86;
  opacity: 1;
}

.waitlist__btn {
  width: 100%;
  padding: 1.05rem 1.4rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #8b5cf6, var(--purple) 55%, #4c1d95);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(109, 40, 217, 0.5);
  transition: transform 0.2s var(--ease), filter 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.waitlist__btn:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 18px 42px rgba(109, 40, 217, 0.6);
}

.waitlist__btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  filter: none;
  box-shadow: none;
}

.waitlist__btn.is-busy:disabled {
  opacity: 0.7;
  cursor: wait;
}

.waitlist__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.waitlist__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.7rem 0 0;
  text-align: left;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #8a8a96;
  cursor: pointer;
}

.waitlist__consent input {
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.12rem 0 0;
  accent-color: var(--purple);
  cursor: pointer;
}

.waitlist__hint {
  min-height: 1.25em;
  margin: 0.7rem 0 0;
  font-size: 0.86rem;
  font-weight: 500;
}

.waitlist__hint.is-success {
  color: #34d399;
}

.waitlist__hint.is-error {
  color: #f87171;
}

.device {
  position: relative;
  perspective: 1100px;
  flex-shrink: 0;
  animation: phone-float 5.5s ease-in-out infinite;
}

.device__glow {
  position: absolute;
  inset: 12% -18% -8%;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.42), transparent 68%);
  filter: blur(28px);
  z-index: 0;
}

.device__frame {
  position: relative;
  z-index: 1;
  width: min(46vw, 168px);
  aspect-ratio: 9 / 19.2;
  margin: 0 auto;
  padding: 10px;
  border-radius: 32px;
  background:
    linear-gradient(155deg, #3a3a44 0%, #1a1a22 38%, #0c0c12 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 28px 60px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  transform: rotateX(6deg) rotateY(-10deg) rotateZ(2deg);
}

.device__btn {
  position: absolute;
  background: linear-gradient(90deg, #2a2a32, #15151c);
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.device__btn--silent {
  left: -2px;
  top: 18%;
  width: 3px;
  height: 18px;
}

.device__btn--vol-up {
  left: -2px;
  top: 28%;
  width: 3px;
  height: 34px;
}

.device__btn--vol-down {
  left: -2px;
  top: 42%;
  width: 3px;
  height: 34px;
}

.device__btn--power {
  right: -2px;
  top: 30%;
  width: 3px;
  height: 52px;
}

.device__island {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 3;
  width: 36%;
  height: 11px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #050508;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(0, 0, 0, 0.35);
}

.device__screen {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 90% 45% at 50% 12%, rgba(109, 40, 217, 0.38), transparent 55%),
    radial-gradient(ellipse 70% 40% at 50% 88%, rgba(34, 211, 238, 0.14), transparent 55%),
    linear-gradient(180deg, #0c0c14 0%, #07070c 100%);
}

.ui {
  position: absolute;
  inset: 0;
  padding: 14% 11% 12%;
  display: flex;
  flex-direction: column;
  gap: 8%;
}

.ui__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
  padding: 0 0.15rem;
}

.ui__signal {
  width: 14px;
  height: 8px;
  border-radius: 2px;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.25) 0 20%,
      transparent 20% 28%,
      rgba(255, 255, 255, 0.4) 28% 48%,
      transparent 48% 56%,
      rgba(255, 255, 255, 0.65) 56% 76%,
      transparent 76% 84%,
      rgba(255, 255, 255, 0.9) 84% 100%);
}

.ui__mark {
  display: flex;
  justify-content: center;
  margin-top: 2%;
}

.ui__mark img {
  width: 42%;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.45));
  opacity: 0.95;
}

.ui__stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  justify-content: flex-start;
  margin-top: 2%;
}

.ui__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  transform: translateY(8px);
  opacity: 0;
  animation: card-in 4.8s ease-in-out infinite;
}

.ui__card--a {
  animation-delay: 0s;
}

.ui__card--b {
  animation-delay: 0.35s;
}

.ui__card--c {
  animation-delay: 0.7s;
}

.ui__label {
  font-size: 0.48rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(196, 181, 253, 0.85);
}

.ui__bar {
  display: block;
  height: 5px;
  width: 78%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(196, 181, 253, 0.55), rgba(34, 211, 238, 0.2));
}

.ui__bar--short {
  width: 42%;
  background: rgba(255, 255, 255, 0.18);
}

.ui__bar--mid {
  width: 62%;
}

.ui__chip {
  width: fit-content;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  font-size: 0.42rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ede9fe;
  background: rgba(109, 40, 217, 0.55);
  box-shadow: 0 0 12px rgba(109, 40, 217, 0.35);
}

.ui__dots {
  display: flex;
  gap: 4px;
}

.ui__dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.35;
  animation: dot-bounce 1.2s ease-in-out infinite;
}

.ui__dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.ui__dots i:nth-child(3) {
  animation-delay: 0.3s;
}

.social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  margin-top: 0.15rem;
}

.social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 999px;
  color: var(--purple-soft);
  background: rgba(196, 181, 253, 0.1);
  border: 1px solid rgba(196, 181, 253, 0.28);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}

.social__link svg {
  width: 1.08rem;
  height: 1.08rem;
  fill: currentColor;
}

.social__link:hover {
  color: #fff;
  background: rgba(109, 40, 217, 0.4);
  border-color: rgba(196, 181, 253, 0.5);
  transform: translateY(-2px);
}

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

@keyframes bloom {
  0%,
  100% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.06);
  }
}

@keyframes brand-glow {
  0%,
  100% {
    filter:
      brightness(1.1) contrast(1.05)
      drop-shadow(0 0 24px rgba(109, 40, 217, 0.35))
      drop-shadow(0 16px 36px rgba(0, 0, 0, 0.4));
  }
  50% {
    filter:
      brightness(1.16) contrast(1.06)
      drop-shadow(0 0 36px rgba(109, 40, 217, 0.55))
      drop-shadow(0 18px 42px rgba(0, 0, 0, 0.45));
  }
}

@keyframes phone-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes card-in {
  0%,
  8% {
    opacity: 0;
    transform: translateY(10px);
  }
  18%,
  70% {
    opacity: 1;
    transform: translateY(0);
  }
  82%,
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes dot-bounce {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(34, 211, 238, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0);
  }
}

/* —— Mobile only (desktop ≥768px inchangé) —— */
@media (max-width: 767.98px) {
  .hero {
    justify-content: center;
    min-height: 100svh;
    gap: 1.05rem;
    padding: max(1.25rem, env(safe-area-inset-top)) 1.15rem max(1.5rem, env(safe-area-inset-bottom));
  }

  .split {
    gap: 0.9rem;
    align-items: center;
  }

  .split__content {
    display: contents;
  }

  .brand {
    order: 1;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .brand__logo {
    width: min(40vw, 136px);
    margin-inline: auto;
  }

  .copy {
    order: 2;
    width: 100%;
    max-width: 21rem;
    text-align: center;
    margin-inline: auto;
  }

  .copy__status {
    margin-bottom: 0.35rem;
    font-size: 0.68rem;
  }

  .copy__title {
    font-size: clamp(1.32rem, 5.6vw, 1.6rem);
    line-height: 1.22;
  }

  .copy__lead {
    margin: 0.5rem auto 0;
    max-width: 28ch;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  /* CTA d’abord : conversion avant le décoratif */
  .waitlist {
    order: 3;
    width: 100%;
    max-width: 21rem;
    margin: 0.15rem auto 0;
  }

  .waitlist__field {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
  }

  .waitlist__field:focus-within {
    border: 0;
    box-shadow: none;
  }

  .waitlist__input {
    text-align: left;
    width: 100%;
    min-height: 3.15rem;
    padding: 0.9rem 1rem;
    font-size: 16px;
    border-radius: 14px;
    border: 1px solid rgba(196, 181, 253, 0.3);
    background: rgba(255, 255, 255, 0.06);
    margin-bottom: 0.65rem;
  }

  .waitlist__input:focus {
    border-color: rgba(196, 181, 253, 0.55);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.18);
  }

  .waitlist__btn {
    width: 100%;
    min-height: 3.15rem;
    padding: 0.95rem 1.1rem;
    font-size: 1rem;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(109, 40, 217, 0.42);
  }

  .waitlist__hint {
    margin-top: 0.5rem;
    min-height: 1.1em;
  }

  .waitlist__consent {
    margin-top: 0.65rem;
    font-size: 0.7rem;
    max-width: 21rem;
  }

  .waitlist__hint,
  .waitlist__intro {
    text-align: center;
  }

  /* Sur mobile le téléphone concurrence le CTA — on le garde au desktop */
  .device {
    display: none;
  }

  .social {
    gap: 0.35rem;
    margin-top: 0.55rem;
    padding-bottom: 0.1rem;
  }

  .social__link {
    width: 2.25rem;
    height: 2.25rem;
  }

  .social__link svg {
    width: 0.95rem;
    height: 0.95rem;
  }
}

@keyframes phone-float-mobile {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@media (min-width: 768px) {
  .brand {
    justify-content: flex-start;
  }

  .brand__logo {
    width: min(100%, 260px);
  }

  .split {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.5rem, 4vw, 3.5rem);
  }

  .split__content {
    align-items: flex-start;
    text-align: left;
    flex: 1;
    min-width: 0;
    max-width: none;
  }

  .copy__lead {
    margin-left: 0;
    max-width: 34ch;
  }

  .waitlist__field {
    flex-direction: row;
    align-items: stretch;
    border-radius: 16px;
    padding: 0.4rem 0.4rem 0.4rem 0.95rem;
  }

  .waitlist__input {
    flex: 1;
    padding-left: 0.25rem;
    font-size: 1.02rem;
  }

  .waitlist__btn {
    width: auto;
    white-space: nowrap;
    min-width: 11.5rem;
    font-size: 0.98rem;
  }

  .device__frame {
    width: min(24vw, 188px);
  }

  .copy__title {
    font-size: clamp(1.75rem, 2.8vw, 2.45rem);
  }
}

@media (min-width: 960px) {
  .brand__logo {
    width: 280px;
  }

  .device__frame {
    width: 200px;
  }

  .split__content {
    max-width: 32rem;
  }

  .copy__title {
    font-size: 2.55rem;
  }

  .social__link {
    width: 2.6rem;
    height: 2.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .ui__card {
    opacity: 1;
    transform: none;
  }

  .brand__logo {
    filter:
      brightness(1.12) contrast(1.05)
      drop-shadow(0 0 28px rgba(109, 40, 217, 0.45))
      drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
  }

  .device {
    transform: none;
  }
}

@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
  .device {
    animation: none !important;
  }
}
