:root {
  --ink: #f4f7fb;
  --ink-soft: rgba(244, 247, 251, 0.78);
  --ink-mute: rgba(244, 247, 251, 0.55);
  --deep: #071a2e;
  --mid: #0f3d63;
  --bright: #3a8ec4;
  --accent: #e8a23a;
  --accent-ink: #1a1205;
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(7, 26, 46, 0.42);
  --font-display: "Fraunces", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--deep);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 90% 70% at 80% 20%, rgba(58, 142, 196, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(232, 162, 58, 0.12), transparent 50%),
    linear-gradient(135deg, #061525 0%, #0c3356 48%, #164a72 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #fff;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 1.5rem 0;
}

.nav-links {
  display: flex;
  gap: 1.1rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.nav-links a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.nav-links a:hover {
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.lang {
  position: relative;
}

.lang label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.lang select {
  appearance: none;
  /* Opaque light control so closed + open dropdown stay readable on Windows */
  color: #10253a;
  background-color: #f3f7fb;
  border: 1px solid rgba(255, 255, 255, 0.55);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 2rem 0.45rem 0.75rem;
  border-radius: 0;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #10253a 50%),
    linear-gradient(135deg, #10253a 50%, transparent 50%);
  background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.lang select option {
  color: #10253a;
  background-color: #ffffff;
}

.lang select:focus {
  outline: 2px solid rgba(58, 142, 196, 0.85);
  outline-offset: 2px;
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 2.5rem;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}

.hero-copy {
  max-width: 28rem;
}

.brand {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 8vw, 5.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.95;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) 0.1s forwards;
}

.headline {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) 0.25s forwards;
}

.lead {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 34ch;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) 0.4s forwards;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) 0.55s forwards;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.1rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) 0.7s forwards;
}

.store-badge {
  height: 40px;
  width: auto;
  border-radius: 7px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.15rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  color: inherit;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: #f0b45a;
  color: var(--accent-ink);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-media {
  position: relative;
  min-height: min(56vh, 420px);
  opacity: 0;
  transform: scale(1.02);
  animation: mediaIn 1.1s var(--ease) 0.35s forwards;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: -8% -6%;
  background: radial-gradient(circle at 50% 45%, rgba(58, 142, 196, 0.45), transparent 62%);
  filter: blur(8px);
  animation: pulse 5.5s ease-in-out infinite;
  z-index: 0;
}

.video-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: inherit;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #04101c;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-fallback {
  position: relative;
  z-index: 1;
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-mute);
  text-align: center;
}

.video-fallback a {
  color: var(--ink-soft);
  font-weight: 600;
}

.video-fallback a:hover {
  color: #fff;
}

.why {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 4.5rem;
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.9s var(--ease) 0.7s forwards;
}

.why h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 550;
  letter-spacing: -0.02em;
}

.why p {
  margin: 0;
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.4rem 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-mute);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  gap: 1.1rem;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

/* Support page */
.page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.page .brand-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.page h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.page .lead {
  animation: none;
  opacity: 1;
  transform: none;
  margin-bottom: 1.25rem;
}

.page p {
  color: var(--ink-soft);
}

.email-block {
  margin: 2rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.email-block span {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-mute);
  margin-bottom: 0.35rem;
}

.email-block a {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

.email-block a:hover {
  color: var(--accent);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mediaIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.04);
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 1rem;
    gap: 2rem;
  }

  .hero-copy {
    max-width: none;
  }

  .lead {
    max-width: 42ch;
  }

  .hero-media {
    min-height: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .video-frame {
    border-radius: 0;
    min-height: 0;
  }
}

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

  .brand,
  .headline,
  .lead,
  .cta-row,
  .store-badges,
  .hero-media,
  .why {
    opacity: 1;
    transform: none;
  }
}
