@font-face {
  font-family: "Bebas Neue";
  src: url("/fonts/BebasNeue-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --navy-900: #050822;
  --navy-800: #070b2e;
  --navy-700: #0e1550;
  --blue-500: #2d3cff;
  --blue-300: #8f9bff;
  --red: #ff3b3b;
  --white: #ffffff;
  --muted: #b7bde6;
  --line: rgba(255, 255, 255, 0.12);
  --display: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy-800);
  background-image: radial-gradient(90% 50% at 50% 100%, rgba(45, 60, 255, 0.28), transparent 70%);
  color: var(--white);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.92;
  margin: 0;
}
[hidden] { display: none !important; }

/* Top bar */
.topbar {
  padding: calc(14px + env(safe-area-inset-top)) 16px 14px;
  display: flex;
  justify-content: center;
}
.topbar .logo { width: 150px; height: auto; }

/* Hero */
.hero { position: relative; }
.hero-media {
  position: relative;
  height: 58svh;
  min-height: 360px;
  overflow: hidden;
  background: var(--navy-900);
}
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--navy-800) 0%, rgba(7, 11, 46, 0.7) 14%, transparent 34%);
}
.live-pill {
  display: inline-flex;
  margin-bottom: 12px; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--red);
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.live-pill i, .btn-live::before {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--white);
  animation: pulse 1.2s ease-in-out infinite;
}
.live-pill i { display: block; }

.hero-copy {
  position: relative;
  z-index: 2;
  margin-top: -36px;
  padding: 0 16px 8px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
.hero h1 { font-size: clamp(64px, 19vw, 120px); }
body[data-state="live"] .hero h1 { color: var(--white); }
.hero-sub {
  margin: 10px auto 0;
  max-width: 34ch;
  font-size: 18px;
  font-weight: 700;
  color: var(--red);
}
body[data-state="post"] .hero-sub,
body[data-track="kon"] .hero-sub {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
}

.next-up {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 4px 10px;
  margin-top: 18px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--display);
  text-transform: uppercase;
}
.next-up-label { font-size: 16px; letter-spacing: 0.12em; color: var(--muted); }
.next-up-name { font-size: 28px; }
.next-up-date { font-size: 22px; color: var(--red); }

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 360px;
  margin: 18px auto 0;
}
.countdown div {
  padding: 10px 0 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(5, 8, 34, 0.6);
}
.countdown b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Buttons */
.ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  margin: 20px auto 0;
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 23px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 3px; }
.btn-primary { background: var(--white); color: var(--navy-800); }
.btn-primary:hover { background: #e9ebff; }
.btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--white); }
.btn-live { background: var(--red); color: var(--white); }
.btn-live:hover { background: #ff5555; }
.btn-live::before { content: ""; display: block; }

/* Sections */
.section {
  padding: 56px 16px 0;
  max-width: 1080px;
  margin: 0 auto;
}
.section h2 {
  font-size: clamp(40px, 11vw, 64px);
  text-align: center;
  margin-bottom: 24px;
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
}
.step-list li {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.step-list img { width: 100%; aspect-ratio: 27 / 16; object-fit: cover; }
.step-list h3 { font-size: 30px; padding: 16px 16px 6px; }
.step-list p { margin: 0; padding: 0 16px 18px; color: var(--muted); }

.clip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.clip { margin: 0; }
.clip-play, .clip video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy-900);
  cursor: pointer;
}
.clip-play img { width: 100%; height: 100%; object-fit: cover; }
.play-icon {
  position: absolute;
  left: 50%; top: 50%;
  width: 56px; height: 56px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(5, 8, 34, 0.65);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85);
}
.play-icon::after {
  content: "";
  position: absolute;
  left: 22px; top: 17px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--white);
}
.clip figcaption {
  margin-top: 8px;
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
}
.clip figcaption em {
  display: block;
  margin-top: 2px;
  font-family: var(--body);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.remind { text-align: center; }
.remind h2 { margin-bottom: 8px; }
.remind > p { margin: 0; font-size: 18px; font-weight: 700; color: var(--red); }
body[data-state="post"] .remind > p { font-size: 16px; font-weight: 400; color: var(--muted); }

.notify { max-width: 440px; margin: 24px auto 0; text-align: left; }
.notify label { display: block; margin-bottom: 8px; font-weight: 600; }
.notify-row { display: flex; gap: 8px; }
.notify input {
  flex: 1;
  min-width: 0;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font: inherit;
}
.notify input:focus { outline: 2px solid var(--blue-300); outline-offset: 1px; }
.notify .btn { flex: none; }
.consent, .notify-status { margin: 8px 4px 0; font-size: 12px; color: var(--muted); }

/* Footer */
.footer {
  margin-top: 72px;
  padding: 40px 16px calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--navy-900);
  text-align: center;
}
.footer .logo { width: 170px; height: auto; margin: 0 auto; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.badge {
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 19px;
  color: var(--white);
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.legal { max-width: 640px; margin: 20px auto 0; font-size: 12px; color: var(--muted); }
.legal p { margin: 6px 0 0; }
.legal a { color: inherit; }

/* Calendar sheet */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(2, 4, 18, 0.7);
  animation: fade 0.15s ease;
}
.sheet-panel {
  width: 100%;
  max-width: 460px;
  padding: 24px 16px calc(20px + env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0;
  background: var(--navy-700);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: rise 0.2s ease;
}
.sheet-panel h3 { font-size: 34px; }
.sheet-panel p { margin: 0 0 8px; color: var(--red); font-family: var(--display); font-size: 22px; letter-spacing: 0.04em; }
.sheet-close {
  margin-top: 4px;
  padding: 12px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

@keyframes pulse { 50% { opacity: 0.35; } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Tablet + desktop: video and copy side by side */
@media (min-width: 810px) {
  .topbar { position: static; justify-content: flex-start; padding: 24px 32px 0; max-width: 1180px; margin: 0 auto; }
  .topbar .logo { width: 190px; filter: none; }
  .hero {
    display: grid;
    grid-template-columns: minmax(300px, 400px) 1fr;
    align-items: center;
    gap: 56px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 32px 0;
  }
  .hero-media { height: auto; min-height: 0; aspect-ratio: 9 / 16; border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
  .hero-media::after { display: none; }
  .hero-copy { margin-top: 0; padding: 0; text-align: left; }
  .hero h1 { font-size: clamp(88px, 9vw, 150px); }
  .hero-sub { margin-left: 0; font-size: 22px; }
  .countdown, .ctas { margin-left: 0; }
  .ctas { flex-direction: row; flex-wrap: wrap; max-width: none; }
  .ctas .btn { padding: 12px 28px; }
  .remind .ctas { justify-content: center; margin-left: auto; }
  .section { padding: 96px 32px 0; }
  .step-list { grid-template-columns: repeat(3, 1fr); }
  .clip-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .sheet { align-items: center; }
  .sheet-panel { border-radius: 20px; }
}
@media (min-width: 1100px) {
  .clip-grid { grid-template-columns: repeat(5, 1fr); }
}
