/* ============================================================
   SublimeTV — Landing
   DA alignée sur l'app : noir profond + blanc, le contenu
   (captures) apporte la couleur. Statique = défilement fluide.
   ============================================================ */

:root {
  --bg: #0a0a0c;
  --bg-2: #101014;
  --ink: #f5f5f7;
  --muted: #a2a2ac;
  --muted-2: #6c6c78;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.14);
  --card: rgba(255, 255, 255, 0.035);
  --card-hi: rgba(255, 255, 255, 0.06);

  --r-sm: 14px;
  --r: 20px;
  --r-lg: 28px;
  --r-xl: 34px;
  --shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
  --shadow-soft: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* liquid glass */
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-hi: rgba(255, 255, 255, 0.16);
  --glass-blur: saturate(180%) blur(22px);

  --maxw: 1180px;
}

* { box-sizing: border-box; }

/* Squircle corners (continuous superellipse) where supported — Apple-style.
   Falls back to the generous border-radius set per component. */
@supports (corner-shape: superellipse(1)) {
  .btn, .pill, .card, .plat, .frame, .frame img, .cta__inner,
  .card__icon, .steps__n, .tag, .nav__capsule {
    corner-shape: superellipse(1.6);
  }
}
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { letter-spacing: -0.025em; font-weight: 700; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
figure { margin: 0; }
section { position: relative; }

/* ---------------- Backdrop (static, cheap) ---------------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 50% -10%, #16161c 0%, var(--bg) 58%);
}
.backdrop__glow {
  position: absolute;
  top: -10%;
  left: 50%;
  width: 900px;
  height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.06), transparent 75%);
  pointer-events: none;
}
.backdrop__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 70% at 50% 0%, #000 0%, transparent 65%);
  opacity: 0.4;
}
.backdrop__noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__phone { animation: none !important; }
}

/* ---------------- Nav — floating liquid-glass capsule ---------------- */
.nav {
  position: sticky;
  top: 14px;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  transition: top 0.3s var(--ease);
}
.nav.is-stuck { top: 10px; }
.nav__capsule {
  display: flex;
  align-items: center;
  gap: 22px;
  width: 100%;
  max-width: 880px;
  padding: 10px 12px 10px 22px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-hi);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 16px 40px -16px rgba(0, 0, 0, 0.7);
  transition: max-width 0.4s var(--ease), background 0.3s;
}
.nav.is-stuck .nav__capsule { max-width: 760px; background: rgba(255, 255, 255, 0.08); }
.nav__brand { display: inline-flex; align-items: center; gap: 8px; }
.nav__logo { height: 28px; width: auto; display: block; }
.nav__beta {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  line-height: 1;
}
.nav__links {
  display: flex;
  gap: 26px;
  margin: 0 auto;
  font-size: 0.92rem;
  color: var(--muted);
}
.nav__links a { transition: color 0.2s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { margin-left: auto; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn--white {
  position: relative;
  background: linear-gradient(180deg, #ffffff, #ededf2);
  color: #0a0a0c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 30px -12px rgba(255, 255, 255, 0.45);
}
.btn--white:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 #fff, 0 16px 40px -14px rgba(255, 255, 255, 0.55); }
.btn--ghost {
  background: var(--glass-bg);
  border-color: var(--glass-hi);
  color: var(--ink);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.btn--sm { padding: 9px 18px; font-size: 0.9rem; }
.btn--lg { padding: 13px 24px; font-size: 1rem; }
.btn--xl { padding: 16px 34px; font-size: 1.05rem; }

/* ---------------- Frames (device mockups around real shots) ---------------- */
.frame {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background: #050507;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 16px 12px;
  font-size: 0.82rem;
  color: var(--ink);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  text-align: center;
}

.frame--monitor { aspect-ratio: 16 / 10; border-radius: 16px; padding: 8px; background: #0c0c10; }
.frame--monitor img { border-radius: 9px; }

.frame--tv { aspect-ratio: 16 / 9; border-radius: 18px; padding: 10px; background: #0c0c10; }
.frame--tv img { border-radius: 8px; }
.frame--tv::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -14px;
  width: 120px; height: 14px;
  transform: translateX(-50%);
  background: linear-gradient(#15151b, #0a0a0c);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 10px 10px;
}

.frame--phone {
  aspect-ratio: 9 / 19.3;
  border-radius: 30px;
  padding: 8px;
  background: #0c0c10;
  border-color: var(--line-2);
}
.frame--phone img { border-radius: 22px; }
.frame__notch {
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 7px;
  background: #050507;
  border-radius: 99px;
  z-index: 2;
}

/* ---------------- Hero ---------------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 60px 24px 36px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 44px;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-hi);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 500;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.pill__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero__title {
  font-size: clamp(2.7rem, 6vw, 4.3rem);
  line-height: 1.03;
  margin: 22px 0 0;
  font-weight: 800;
}
.shine {
  background: linear-gradient(100deg, #fff 0%, #b9b9c4 50%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lede {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 31em;
}
.hero__actions { display: flex; gap: 13px; margin-top: 30px; flex-wrap: wrap; }
.hero__meta { margin-top: 20px; color: var(--muted-2); font-size: 0.88rem; }

.hero__stage { position: relative; padding: 10px 0; }
.hero__monitor { transform: perspective(1600px) rotateY(-9deg) rotateX(3deg); }
.hero__phone {
  position: absolute;
  right: -6px;
  bottom: -34px;
  width: 132px;
  z-index: 3;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.9);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------------- Strip ---------------- */
.strip {
  max-width: var(--maxw);
  margin: 18px auto 0;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.strip__item { display: flex; align-items: baseline; gap: 12px; max-width: 280px; }
.strip__item b { font-size: 2.2rem; font-weight: 700; }
.strip__item span { color: var(--muted); font-size: 0.9rem; }
.strip__sep { width: 1px; height: 38px; background: var(--line); }

/* ---------------- Section base ---------------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 92px 24px;
  content-visibility: auto;
  contain-intrinsic-size: auto 760px;
}
.section__head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
}
.section__head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 14px 0 12px; line-height: 1.1; }
.section__head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------------- Bento ---------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  position: relative;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 60%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
/* specular glass sheen — follows the cursor (interactive liquid glass) */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(120% 80% at 15% -10%, rgba(255, 255, 255, 0.12), transparent 55%),
    radial-gradient(260px circle at var(--gx, 20%) var(--gy, 0%), rgba(255, 255, 255, 0.16), transparent 60%);
  pointer-events: none;
  transition: opacity 0.4s;
}
.card:hover { transform: translateY(-4px); border-color: var(--glass-hi); }
.card--line { background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03) 60%); border-color: var(--line-2); }

.card__icon, .card > h3, .card > p { position: relative; z-index: 1; }

.card__icon {
  width: 44px; height: 44px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-hi);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  margin-bottom: 16px;
}
.card__icon svg { width: 22px; height: 22px; color: var(--ink); }
.card h3 { font-size: 1.18rem; margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------------- Screens — one labelled pane per platform ---------------- */
.showpane {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  margin-top: 72px;
}
.showpane:first-of-type { margin-top: 0; }
.showpane--rev .showpane__media { order: -1; }
.showpane__text h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 16px 0 12px; }
.showpane__text p { color: var(--muted); font-size: 1.02rem; margin: 0; max-width: 34em; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-hi);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.tag svg { width: 17px; height: 17px; color: var(--ink); }

.showpane__media--phones {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.showpane__media--phones .frame--phone { width: 200px; flex: none; }
.showpane__phone--back { margin-top: 36px; }

/* ---------------- Split (mise en route) ---------------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center; }
.split__media { position: relative; }
.split__tv { width: 100%; }

.steps { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.steps__n {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-hi);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.steps b { display: block; font-size: 1.06rem; }
.steps p { margin: 3px 0 0; color: var(--muted); font-size: 0.95rem; }

/* ---------------- Platforms ---------------- */
.platforms__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plat {
  text-align: center;
  padding: 38px 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 60%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.plat:hover { transform: translateY(-4px); border-color: var(--glass-hi); }
.plat svg { width: 38px; height: 38px; color: var(--ink); margin: 0 auto 16px; }
.plat b { display: block; font-size: 1.12rem; }
.plat span { color: var(--muted); font-size: 0.9rem; }

/* ---------------- Transparency notice ---------------- */
.notice { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.notice__inner {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 30px 34px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02) 60%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.notice__icon {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-hi);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.notice__icon svg { width: 24px; height: 24px; color: var(--ink); }
.notice__body h3 { font-size: 1.2rem; margin: 2px 0 12px; }
.notice__body p { color: var(--muted); font-size: 0.94rem; margin: 0 0 10px; max-width: 78ch; }
.notice__body p:last-child { margin-bottom: 0; }
.notice__body strong { color: var(--ink); font-weight: 600; }

/* ---------------- CTA ---------------- */
.cta { padding: 64px 24px 110px; }
.cta__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 64px 40px;
  border-radius: var(--r-xl);
  border: 1px solid var(--glass-hi);
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(255, 255, 255, 0.1), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  position: relative;
  overflow: hidden;
}
.cta__logo { height: 38px; width: auto; margin: 0 auto 22px; opacity: 0.95; }
.cta__inner h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 12px; }
.cta__inner > p { color: var(--muted); margin: 0 0 30px; font-size: 1.06rem; }
.cta__fine { color: var(--muted-2); font-size: 0.86rem; margin: 22px 0 0; }

.downloads { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.dl { padding: 10px 20px; text-align: left; }
.dl svg { width: 22px; height: 22px; flex: none; }
.dl__text { display: flex; flex-direction: column; line-height: 1.12; }
.dl__text b { font-size: 0.98rem; }
.dl__text span { font-size: 0.72rem; font-weight: 600; opacity: 0.6; letter-spacing: 0.01em; }

/* ---------------- Footer ---------------- */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 60px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__logo { height: 26px; width: auto; opacity: 0.85; }
.footer__copy { color: var(--muted-2); font-size: 0.86rem; margin: 0; max-width: 60ch; }

/* ---------------- Reveal on scroll ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .nav__links { gap: 20px; }
}

/* Tablet / stacked layout */
@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 30px;
    gap: 34px;
    text-align: center;
  }
  .hero__lede { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__stage { order: -1; max-width: 520px; width: 100%; margin: 0 auto; }
  .hero__monitor { transform: none; }

  .bento { grid-template-columns: repeat(2, 1fr); }

  .showpane { grid-template-columns: 1fr; gap: 28px; margin-top: 56px; }
  .showpane__media { order: -1; max-width: 620px; width: 100%; margin: 0 auto; }
  .showpane__text { text-align: center; }
  .tag { margin: 0 auto; }

  .split { grid-template-columns: 1fr; gap: 40px; }
  .split__media { order: -1; max-width: 620px; width: 100%; margin: 0 auto; }
  .split__copy { text-align: center; }
  .steps { text-align: left; max-width: 460px; margin-left: auto; margin-right: auto; }

  .nav__links { display: none; }
}

/* Phone */
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .platforms__grid { grid-template-columns: 1fr; }

  .section { padding: 60px 18px; }
  .section__head { margin-bottom: 40px; }

  .nav { padding: 0 12px; }
  .nav__capsule { gap: 12px; padding: 9px 10px 9px 16px; }
  .nav__logo { height: 24px; }

  .hero { padding: 22px 18px 20px; }
  .hero__phone { width: 100px; right: 0; bottom: -24px; }

  .strip { gap: 14px 24px; }
  .strip__sep { display: none; }
  .strip__item { max-width: none; }

  .showpane__media--phones { gap: 12px; }
  .showpane__media--phones .frame--phone { width: 47%; }
  .showpane__phone--back { margin-top: 20px; }

  .notice { padding: 0 18px; }
  .notice__inner { flex-direction: column; gap: 16px; padding: 26px 22px; }

  /* Last section on the page: give it a full-viewport height so the header
     "Télécharger" anchor can scroll #download to the top. Without it, #download
     + footer are shorter than the viewport, the scroll clamps at the page
     bottom, and the taller #platforms section stays filling the screen. */
  .cta { padding: 48px 18px 80px; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
  .cta__inner { padding: 48px 22px; border-radius: 26px; }

  .footer { flex-direction: column; text-align: center; justify-content: center; }
}

/* Small phone */
@media (max-width: 380px) {
  .hero__title { font-size: 2.25rem; }
  .nav__links { display: none; }
  .nav__cta { padding: 8px 14px; }
  .btn--lg { padding: 12px 20px; font-size: 0.95rem; }
  .hero__phone { width: 86px; bottom: -18px; }
}
