/* Lovally — Coming soon */
:root {
  --bg: #0E0E0E;
  --red: #EE2737;
  --orange: #FE5000;
  --text: #FFFFFF;
  --text-soft: rgba(255, 255, 255, 0.85);
  --gap: 28px;
  --logo-w: 216px;
  --logo-h: 52px;
  --title: 88px;
  --slogan: 18px;
  --badge-h: 48px;
  --badge-gap: 12px;
}

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

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: "Ubuntu", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Full-screen stage, ready for a background video later */
.stage {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding-block: 48px;
  padding-inline: 24px;
  overflow: hidden;
}

.stage__media {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: var(--bg);
}

/* Background video container (YouTube iframe or MP4) */
#bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  pointer-events: none;
}

#bg-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg);
  pointer-events: none;
}

/* 16:9 iframe scaled up and centred to cover the viewport */
#bg-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-width: 177.78vh;
  min-height: 100vh;
  border: 0;
  transform: translate(-50%, -50%);
  background: var(--bg);
  pointer-events: none;
}

@supports (height: 100lvh) {
  #bg-video iframe {
    min-width: 177.78lvh;
    min-height: 100lvh;
  }
}

/* Overlay to keep text legible over the video */
.stage__overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

/* Sound toggle */
.sound-toggle {
  position: fixed;
  right: 40px;
  bottom: 40px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--text);
  font-family: "Ubuntu", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.sound-toggle__icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: none;
}

.sound-toggle__icon[hidden] { display: none; }

.sound-toggle:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

@media (max-width: 809px) {
  .sound-toggle {
    right: 24px;
    bottom: 24px;
    font-size: 16px;
  }
  .sound-toggle__icon { width: 18px; height: 18px; }
}

.hero {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap);
  text-align: center;
}

.hero__logo {
  display: block;
  margin-inline: auto;
  width: var(--logo-w);
  max-width: 100%;
  height: auto;
}

.hero__title {
  margin: 0;
  font-size: var(--title);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hero__slogan {
  margin: 0;
  font-size: var(--slogan);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--text-soft);
}

.badges {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: var(--badge-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.badge {
  display: block;
  border-radius: 8px;
  line-height: 0;
  transition: transform .2s ease, opacity .2s ease;
}

.badge svg {
  display: block;
  height: var(--badge-h);
  width: auto;
}

.badge:hover { opacity: .9; }

.badge:focus-visible,
.legal-link:focus-visible,
a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.legal-link {
  position: absolute;
  inset-block-end: 14px;
  inset-inline: 0;
  margin-inline: auto;
  width: max-content;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.legal-link:hover { color: var(--text); text-decoration: underline; }

/* Tablet 810–1199px */
@media (max-width: 1199px) {
  :root {
    --gap: 24px;
    --logo-w: 177px;
    --logo-h: auto;
    --title: 72px;
    --slogan: 17px;
    --badge-h: 44px;
    --badge-gap: 12px;
  }
}

/* Mobile up to 809px */
@media (max-width: 809px) {
  :root {
    --gap: 20px;
    --logo-w: clamp(83px, 28.2vw, 137px);
    --logo-h: auto;
    --title: clamp(34px, 11.5vw, 56px);
    --slogan: 16px;
    --badge-h: 40px;
    --badge-gap: 10px;
  }
}

@media (max-width: 359px) {
  :root { --badge-h: 36px; --badge-gap: 8px; }
}

/* Simple text page (privacy notice) */
.page {
  max-width: 720px;
  margin-inline: auto;
  padding-block: 56px 64px;
  padding-inline: 24px;
  line-height: 1.6;
  color: var(--text-soft);
}

.page h1 {
  color: var(--text);
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-block: 28px 24px;
}

.page h2 {
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
  margin-block: 32px 8px;
}

.page a { color: var(--orange); }
.page a:hover { color: var(--text); }

.page .back {
  display: inline-block;
  margin-block-start: 32px;
}

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