/*
 * StreamNext — professionele landing (donker storefront; stock bioscoopsfeer)
 */

:root {
  --bg: #141414;
  --bg-soft: #1a1a1a;
  --bg-card: rgba(32, 32, 32, 0.86);
  --line: rgba(255, 255, 255, 0.08);
  --text: rgba(245, 245, 247, 0.98);
  --muted: rgba(245, 245, 247, 0.68);
  --faint: rgba(245, 245, 247, 0.44);
  /* Accent: cinematic red adjacent to storefront norms, niet 1-op-1 Netflix */
  --accent: #d81f26;
  --accent-soft: rgba(216, 31, 38, 0.16);
  --accent-hover: #e8343b;
  --hbo: #8b35ff33;
  --radius: 4px;
  --radius-card: 6px;
  --wrap: min(980px, calc(100% - 48px));
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (max-width: 520px) {
  :root {
    --wrap: min(980px, calc(100% - 28px));
  }
}

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

html {
  scroll-behavior: smooth;
}

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

  .row-track {
    animation: none !important;
    transform: none !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: var(--wrap);
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: -200vw;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 500;
  padding: 10px 14px;
  background: white;
  color: #141414;
  border-radius: 4px;
  font-weight: 600;
}

/* ───────────── Backdrop rows (Netflix home grid feel) ───────────── */
.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Gelicenseerde bioscoop-sfeer (Unsplash) — géén specifieke titelkunst */
.stage__photo {
  position: absolute;
  inset: -6%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.06);
  transform-origin: center center;
}

.stage__photo--a {
  z-index: 0;
  opacity: 0.38;
  background-image: url("https://images.unsplash.com/photo-1440404653325-ab127d49abc1?auto=format&fit=crop&w=1920&q=80");
  filter: saturate(0.88) brightness(0.55);
}

.stage__photo--b {
  z-index: 0;
  opacity: 0.2;
  mix-blend-mode: soft-light;
  background-image: url("https://images.unsplash.com/photo-1517604931442-7e0c8ed2963c?auto=format&fit=crop&w=1920&q=80");
  filter: saturate(0) brightness(1.05);
}

.stage__dim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    165deg,
    rgba(20, 20, 26, 0.55) 0%,
    transparent 38%,
    rgba(216, 31, 38, 0.04) 100%
  );
}

.stage__vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    185deg,
    rgba(14, 14, 14, 0.2) 0%,
    rgba(14, 14, 14, 0.55) 48%,
    var(--bg) 90%
  );
  z-index: 3;
}

.h-rows {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2.2vw, 18px);
  justify-content: flex-end;
  padding-bottom: 12vh;
  opacity: 0.22;
}

@media (max-width: 720px) {
  .h-rows {
    opacity: 0.16;
    padding-bottom: 8vh;
    gap: 8px;
  }

  .h-row--c {
    display: none;
  }
}

.h-row {
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    rgba(0, 0, 0, 0.35) 4%,
    #000 10%,
    #000 90%,
    rgba(0, 0, 0, 0.35) 96%,
    transparent 100%
  );
}

.row-track {
  display: inline-flex;
  gap: clamp(10px, 1.8vw, 16px);
  width: max-content;
  padding-inline: clamp(48px, 8vw, 120px);
  will-change: transform;
}

.h-row--ltr .row-track {
  animation: row-x-left 115s linear infinite;
}

.h-row--rtl .row-track {
  animation: row-x-right 130s linear infinite;
}

.h-row--a .row-track {
  animation-delay: -8s;
}
.h-row--b .row-track {
  animation-delay: -40s;
}
.h-row--c .row-track {
  animation-delay: -72s;
}

@keyframes row-x-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes row-x-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

.tile {
  flex: 0 0 auto;
  position: relative;
  width: clamp(154px, 22vw, 232px);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.52);
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.35;
  background: linear-gradient(to top left, rgba(255, 255, 255, 0.12), transparent 55%);
  pointer-events: none;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.85) 100%);
}

.tile__t {
  position: absolute;
  z-index: 2;
  bottom: 8px;
  left: 10px;
  right: 26px;
  font-size: clamp(11px, 1.85vw, 13px);
  font-weight: 600;
  line-height: 1.26;
}

.tile__meta {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.t-a {
  background: linear-gradient(135deg, #1c1432, #44206a);
}
.t-b {
  background: linear-gradient(145deg, #10222e, #1e5470);
}
.t-c {
  background: linear-gradient(140deg, #241016, #6b2742);
}
.t-d {
  background: linear-gradient(150deg, #0f2620, #1e6848);
}
.t-e {
  background: linear-gradient(135deg, #1f1830, #4f2ed4);
}

.t-f {
  background: linear-gradient(148deg, #152018, #2d5f40);
}
.t-g {
  background: linear-gradient(140deg, #20101a, #5f2445);
}
.t-h {
  background: linear-gradient(155deg, #101c2c, #204878);
}
.t-i {
  background: linear-gradient(135deg, #1e140f, #6a3618);
}
.t-j {
  background: linear-gradient(160deg, #141828, #3a4870);
}

.t-k {
  background: linear-gradient(145deg, #18162a, #3d2f8a);
}
.t-l {
  background: linear-gradient(150deg, #0f222a, #1b6a74);
}
.t-m {
  background: linear-gradient(138deg, #221210, #5c2918);
}
.t-n {
  background: linear-gradient(152deg, #121c22, #2a5870);
}
.t-o {
  background: linear-gradient(140deg, #201028, #5a2870);
}

/* ───────────── Navigation ───────────── */
.nav {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--wrap);
  margin: 0 auto;
  padding: 22px 0 calc(12px + env(safe-area-inset-top));
  gap: 12px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text);
}

.nav__brand {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.52rem;
  line-height: 1;
}

.nav__plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.42rem;
  height: 1.42rem;
  margin-bottom: -2px;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--accent);
}

/* ───────────── Hero billboard ───────────── */
.splash {
  position: relative;
  z-index: 48;
  min-height: clamp(560px, 88vh, 820px);
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(72px, 11vh, 120px);
  padding-inline: env(safe-area-inset-inline, 0);
}

.splash__wrap {
  width: var(--wrap);
}

.splash__tier {
  max-width: 640px;
}

.splash__pill {
  display: inline-flex;
  margin: 0 0 1.2rem;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.splash__head {
  margin: 0 0 1.15rem;
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(2.05rem, 5.4vw + 1rem, 3.55rem);
  line-height: 1.06;
  letter-spacing: -0.028em;
  text-shadow: 0 28px 64px rgba(0, 0, 0, 0.8);
}

.splash__lead {
  margin: 0 0 1.95rem;
  font-size: clamp(1rem, 0.85vw + 0.93rem, 1.155rem);
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.7;
}

.splash__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ───────────── Buttons ───────────── */
.sn-btn {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.85rem 1.35rem;
  min-height: 48px;
  transition:
    transform 0.35s var(--ease),
    background 0.2s ease,
    box-shadow 0.25s ease,
    opacity 0.18s ease;
}

.sn-btn:disabled {
  opacity: 0.55;
  cursor: progress;
}

.sn-btn--sm {
  min-height: 40px;
  padding: 0.45rem 0.92rem;
  font-size: 0.8125rem;
}

.sn-btn--fill {
  color: white;
  background: var(--accent);
  box-shadow: 0 8px 32px rgba(216, 31, 38, 0.28);
}

.sn-btn--fill:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 42px rgba(216, 31, 38, 0.34);
}

.sn-btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.sn-btn--ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.17);
}

.sn-btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}

.sn-btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sn-btn--flat {
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  min-height: 44px;
}

.sn-btn--flat:hover:not(:disabled) {
  color: var(--text);
}

.sn-btn--block {
  width: 100%;
}

.sn-btn--flat:focus-visible,
.sn-btn--fill:focus-visible,
.sn-btn--ghost:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ───────────── Divider ───────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--line), transparent);
}

/* ───────────── Value ───────────── */
.value {
  position: relative;
  z-index: 48;
  padding: clamp(64px, 10vw, 104px) 0;
}

.value__h {
  margin: 0 0 2.65rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.72rem, 3.3vw + 0.76rem, 2.42rem);
  font-weight: 600;
  color: rgba(251, 250, 255, 1);
}

.value__cols {
  display: grid;
  gap: 20px;
}

@media (min-width: 800px) {
  .value__cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value__card {
  padding: clamp(22px, 4vw, 28px);
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 40px 80px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.45s var(--ease),
    border-color 0.25s ease;
}

.value__card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
}

@media (hover: none) {
  .value__card:hover {
    transform: none;
  }
}

.value__t {
  margin: 0 0 0.72rem;
  font-size: 1.065rem;
  font-weight: 700;
}

.value__p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9625rem;
  line-height: 1.7;
}

/* ───────────── Form — HBO-style panel ───────────── */
.sign {
  position: relative;
  z-index: 48;
  padding: clamp(56px, 10vw, 96px) 0 max(76px, env(safe-area-inset-bottom));
}

.sign__grid {
  display: grid;
  gap: clamp(32px, 6vw, 48px);
  align-items: start;
}

@media (min-width: 880px) {
  .sign__grid {
    grid-template-columns: 0.94fr 1.06fr;
  }
}

.sign__ttl {
  margin: 0 0 0.65rem;
  font-weight: 800;
  letter-spacing: -0.024em;
  font-size: clamp(1.9rem, 3.5vw + 0.76rem, 2.72rem);
  line-height: 1.1;
}

.sign__sub {
  margin: 0;
  color: var(--muted);
  max-width: 44ch;
  line-height: 1.73;
}

.sign__box {
  position: relative;
  padding: clamp(28px, 5vw, 40px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(24, 24, 28, 0.78);
  backdrop-filter: blur(22px);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 40px 80px rgba(0, 0, 0, 0.45);
}

.sign__box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.sn-field {
  display: block;
  margin-bottom: 18px;
}

.sn-field__l {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.sn-field input {
  width: 100%;
  font: inherit;
  color: var(--text);
  padding: 14px 15px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 18, 22, 0.92);
}

.sn-field input:focus-visible {
  border-color: rgba(216, 31, 38, 0.5);
  outline: none;
}

.sn-field input.bad {
  border-color: rgba(255, 118, 118, 0.55);
}

.err {
  margin-top: 6px;
  font-size: 12px;
  color: #ff9baa;
}

.err.hidden {
  display: none;
}

.form-alert {
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}

.form-alert.hidden {
  display: none;
}

.form-alert[data-variant="ok"] {
  border: 1px solid rgba(52, 211, 153, 0.4);
  background: rgba(16, 185, 129, 0.12);
  color: #86efac;
}

.form-alert[data-variant="error"] {
  border: 1px solid rgba(255, 118, 118, 0.42);
  background: rgba(220, 38, 38, 0.1);
  color: #fecaca;
}

.hidden {
  display: none !important;
}

.btn-spin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: sn-spin 0.65s linear infinite;
}

@keyframes sn-spin {
  to {
    transform: rotate(360deg);
  }
}

form.busy .btn-spin.hidden {
  display: inline-block !important;
}

form.busy .btn-mark {
  opacity: 0.55;
}

/* ───────────── Footer ───────────── */
.foot {
  position: relative;
  z-index: 48;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 32px 0 max(32px, env(safe-area-inset-bottom));
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.foot__flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
}

.foot__a {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

.foot__credits {
  flex: 1 1 100%;
  max-width: 56ch;
  line-height: 1.55;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.36);
}

.foot__credits a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot__tag {
  flex: 1 1 auto;
  text-align: right;
  color: rgba(255, 255, 255, 0.42);
}

@media (max-width: 520px) {
  .splash {
    min-height: unset;
    padding-top: clamp(72px, 18vw, 100px);
    padding-bottom: 56px;
  }

  .splash__cta .sn-btn {
    width: 100%;
    justify-content: center;
  }

  .foot__credits {
    text-align: left;
    max-width: none;
  }

  .nav {
    flex-wrap: wrap;
  }

  .sn-field input {
    font-size: 16px;
  }

  .tile {
    width: clamp(148px, 62vw, 196px);
  }
}

.sn-dialog {
  margin: auto;
  border: none;
  padding-inline: max(14px, env(safe-area-inset-left, 14px)) max(14px, env(safe-area-inset-right, 14px));
  max-width: min(420px, calc(100vw - 36px));
  background: transparent;
}

.sn-dialog::backdrop {
  background: rgba(12, 12, 12, 0.82);
  backdrop-filter: blur(10px);
}

.sn-dialog__box {
  border-radius: 8px;
  padding: clamp(26px, 6vw, 34px);
  background: rgb(34, 34, 38);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sn-dialog__badge {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(216, 31, 38, 0.88);
}

.sn-dialog__ttl {
  margin: 0 0 10px;
  font-family: inherit;
  font-weight: 800;
  font-size: 1.52rem;
  letter-spacing: -0.02em;
}

.sn-dialog__txt {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.sn-dialog__buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (hover: none) {
  .sn-btn--fill:active:not(:disabled) {
    transform: scale(0.99);
    transition-duration: 0.04s;
  }
}
