/* Prevent flash of blue / raw content */
html,
body {
  background-color: #000;
}

body:not(.page-simple) {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* When fully loaded */
body:not(.page-simple).ready {
  opacity: 1;
  transform: translateY(0);
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --bg-color: #000080;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-color);
  color: #ffffff;
  font-family: "Helvetica World", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.video-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #000080;
  /* matches your theme */
  /* fallback while video loads */
}

.video-bg__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.video-bg__media.is-visible {
  opacity: 1;
}

.landing {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  text-align: center;
  padding: 1.5rem 1.5rem 2.25rem;
}

.logo {
  width: min(280px, 55vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.45));
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 450ms ease, transform 450ms ease;
}

.headline {
  margin: 0;
  font-size: clamp(2rem, 5.2vw, 3.8rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.08;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms ease 120ms, transform 500ms ease 120ms;
}

.subheadline {
  margin: 0;
  max-width: 720px;
  font-size: clamp(1rem, 2.1vw, 1.3rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.85), 0 1px 2px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 520ms ease 180ms, transform 520ms ease 180ms;
}

.waitlist-cta {
  width: min(100%, 24rem);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms ease 210ms, transform 500ms ease 210ms;
}

.waitlist-button {
  width: 100%;
  min-height: 2.85rem;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font: inherit;
  font-size: clamp(0.95rem, 2.1vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #03124d;
  background: linear-gradient(135deg, #ffffff 0%, #d8e4ff 100%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.waitlist-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.46);
}

.waitlist-button:active {
  transform: translateY(0);
}

.waitlist-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 3px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(10px);
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease,
    border-color 200ms ease, opacity 500ms ease 220ms;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.58);
  color: #ffffff;
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0 28px rgba(255, 255, 255, 0.12);
}

.social-link:active {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

@media (hover: hover) {
  .social-link:hover .social-icon {
    transform: scale(1.12);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.35));
  }
}

.social-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

.social-icon {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
  flex-shrink: 0;
  transition: transform 200ms ease, filter 200ms ease;
}

.footer-legal {
  margin: 0.5rem 0 0;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 520ms ease 260ms, transform 520ms ease 260ms;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.footer-legal a:hover {
  color: #ffffff;
}

.footer-legal__sep {
  margin: 0 0.35rem;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 640px) {
  .landing {
    padding-bottom: 3rem;
  }

  .footer-legal {
    font-size: 0.9rem;
  }
}

body.ready .logo,
body.ready .headline,
body.ready .subheadline,
body.ready .waitlist-cta,
body.ready .social-link,
body.ready .footer-legal {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .video-bg__media {
    display: none;
  }

  .logo,
  .headline,
  .subheadline,
  .waitlist-cta,
  .social-link,
  .footer-legal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .social-link:hover,
  .social-link:active,
  .waitlist-button:hover,
  .waitlist-button:active {
    transform: none;
  }

  .social-link:hover .social-icon {
    transform: none;
    filter: none;
  }
}

/* Cookie consent (production / privacy) */
.cookie-banner {
  position: fixed;
  z-index: 100;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 64, 0.97);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__text {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
}

.cookie-banner__text a {
  color: #ffffff;
  font-weight: 600;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-banner__btn {
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #ffffff;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.875rem;
}

.cookie-banner__btn--primary {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.55);
}

.cookie-banner__btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Simple inner pages (privacy, 404) */
.page-simple {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-color);
  color: #ffffff;
  font-family: "Helvetica World", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.page-simple__main {
  flex: 1;
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 6rem;
  width: 100%;
}

.page-simple__main h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-top: 0;
}

.page-simple__main p,
.page-simple__main li {
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.page-simple__main ul {
  padding-left: 1.25rem;
}

.page-simple__main li {
  margin-bottom: 0.5rem;
}

.page-simple__main code {
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.page-simple__main a {
  color: #ffffff;
  font-weight: 600;
}

.page-simple__back {
  display: inline-block;
  margin-bottom: 1.5rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.page-simple__back:hover {
  text-decoration: underline;
}

.page-simple__meta {
  margin-top: -0.5rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.page-simple__muted {
  margin-top: 1.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.page-simple__legal-nav {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}