/* Opal public page. One look: the night sky from the Horizon film
   (assets/horizon-poster.jpg: deep navy, indigo, a blue planet rim).
   One accent: opal, a teal-to-violet gradient (--opal-teal to --opal-violet). */

:root {
  --night: #0B0C24;
  --night-2: #12123A;
  --indigo: #221A5C;
  --tile: #14163A;
  --tile-hover: #1E2156;
  --opal-teal: #4FD8CB;
  --opal-violet: #A08BFA;
  --opal: linear-gradient(100deg, var(--opal-teal), var(--opal-violet));
  --text: #FFFFFF;
  --text-soft: #C9CDEA;
  --card: #FFFFFF;
  --card-ink: #0B0C24;
  --radius: 24px;
  --wrap: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Unbounded", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --script: "Caveat", "Segoe Script", "Bradley Hand", "Comic Sans MS", cursive;
}

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

html { -webkit-text-size-adjust: 100%; background: var(--night); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--night);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }

a { color: var(--opal-teal); text-underline-offset: 3px; }
a:hover { color: var(--text); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--opal-teal);
  outline-offset: 3px;
}

h1, h2 { margin: 0; font-family: var(--display); line-height: 1.08; color: var(--text); }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* The night sky: stars and an indigo haze over deep navy. */
.sky {
  overflow-x: hidden;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 255, 255, 0.8), transparent 60%),
    radial-gradient(1px 1px at 28% 42%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 47% 9%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1px 1px at 63% 31%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 82% 12%, rgba(255, 255, 255, 0.8), transparent 60%),
    radial-gradient(1px 1px at 91% 47%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1px 1px at 6% 61%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1px 1px at 38% 70%, rgba(255, 255, 255, 0.4), transparent 60%),
    radial-gradient(ellipse 70% 40% at 15% 4%, var(--indigo) 0%, transparent 70%),
    linear-gradient(180deg, var(--night) 0, var(--night-2) 640px);
  background-size: 640px 900px, 640px 900px, 640px 900px, 640px 900px,
                   640px 900px, 640px 900px, 640px 900px, 640px 900px, auto, auto;
}

/* Header */
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding-top: 18px; padding-bottom: 18px;
}
.brand {
  font-family: var(--display); font-weight: 700; font-size: 1.3rem;
  color: var(--text); text-decoration: none;
}
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 0.95rem; }
.site-header nav a { color: var(--text-soft); text-decoration: none; font-weight: 600; }
.site-header nav a:hover { color: var(--text); text-decoration: underline; }

/* Hero */
.hero {
  position: relative;
  padding: 24px 0 140px;
  overflow: hidden;
}
/* The planet: a big curve rising from the bottom edge, lit from behind. */
.hero::before {
  content: "";
  position: absolute;
  left: 50%; bottom: -1100px;
  width: 2400px; height: 1300px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 0%, #1A2550 0%, var(--night-2) 45%);
  box-shadow: 0 -2px 0 rgba(122, 166, 224, 0.55), 0 -30px 90px rgba(74, 122, 184, 0.45);
  pointer-events: none;
}
/* Fade the planet into the page below, so there is no seam under the card. */
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 160px;
  background: linear-gradient(180deg, transparent, var(--night-2));
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; gap: 28px; align-items: center;
}
.hero-text { display: flex; flex-direction: column; gap: 18px; }

.script {
  font-family: var(--script); font-weight: 600;
  font-size: clamp(1.9rem, 6.5vw, 2.5rem); line-height: 1.1;
  color: var(--opal-teal);
  transform: rotate(-2deg); transform-origin: left center;
}
h1 {
  font-weight: 800;
  font-size: clamp(2.6rem, 11vw, 5rem);
  letter-spacing: -0.02em;
}
.lead { font-size: clamp(1.1rem, 3.6vw, 1.3rem); line-height: 1.5; color: var(--text-soft); max-width: 32em; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 60px; padding: 16px 30px; border-radius: 999px;
  font-weight: 700; font-size: 1.05rem; text-decoration: none; text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { transform: translateY(-2px); }
.button-main {
  background: var(--opal); color: var(--night);
  box-shadow: 0 12px 30px -10px rgba(79, 216, 203, 0.6);
}
.button-main:hover { color: var(--night); box-shadow: 0 16px 36px -10px rgba(160, 139, 250, 0.7); }
.button-light { background: var(--text); color: var(--night); }
.button-light:hover { color: var(--night); background: #E9E6FF; }
.play {
  width: 26px; height: 26px; border-radius: 50%; background: var(--night); flex: none;
  position: relative;
}
.play::after {
  content: ""; position: absolute; left: 10px; top: 7px;
  border-style: solid; border-width: 6px 0 6px 9px;
  border-color: transparent transparent transparent var(--opal-teal);
}

.trust {
  list-style: none; margin: 4px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  font-size: 0.95rem; font-weight: 600; color: var(--text);
}
.trust li { display: flex; align-items: center; gap: 10px; }
.trust li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--opal-teal);
  box-shadow: 0 0 0 4px rgba(79, 216, 203, 0.22);
}

/* Opal in her round badge, her orb glowing behind her */
.hero-art { display: flex; justify-content: center; }
.badge {
  --d: min(80vw, 440px);
  position: relative;
  width: var(--d);
  padding-top: calc(var(--d) * 0.36);
}
.orb {
  position: absolute; left: 0; bottom: 0;
  width: var(--d); height: var(--d); border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.95) 0%, rgba(178, 246, 238, 0.85) 12%, transparent 34%),
    radial-gradient(circle at 50% 45%, var(--opal-teal) 0%, #6FA8E8 32%, var(--opal-violet) 55%, var(--indigo) 86%);
  box-shadow:
    0 0 0 8px var(--night),
    0 0 0 11px var(--opal-violet),
    0 0 70px 20px rgba(160, 139, 250, 0.35),
    0 0 140px 40px rgba(79, 216, 203, 0.18);
}
/* Square at the top, round at the bottom: her head rises out of the circle,
   and the cut at her waist follows its curve. */
.badge-clip {
  position: relative;
  width: var(--d);
  height: calc(var(--d) * 1.36);
  margin-top: calc(var(--d) * -0.36);
  border-radius: 0 0 calc(var(--d) / 2) calc(var(--d) / 2);
  overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
}
.badge-clip img {
  width: 82%;
  margin-bottom: calc(var(--d) * -0.12);
  filter: drop-shadow(0 16px 30px rgba(5, 6, 20, 0.55));
}
.chip {
  position: absolute; left: -6px; bottom: calc(var(--d) * 0.1); z-index: 2;
  display: flex; align-items: center; gap: 12px;
  max-width: 230px; padding: 12px 18px 12px 12px;
  background: var(--card); color: var(--card-ink);
  border-radius: 18px;
  font-size: 0.95rem; font-weight: 700; line-height: 1.3;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6);
}
.chip-dot {
  flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--opal);
  position: relative;
}
.chip-dot::after {
  content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--card);
}

/* The card that floats over the bottom of the hero */
.help { position: relative; z-index: 2; margin-top: -96px; padding: 0 20px; }
.help-card {
  max-width: 1120px; margin: 0 auto;
  background: var(--card); color: var(--card-ink);
  border-radius: var(--radius);
  padding: 26px 20px;
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.7);
}
.help-card h2 { color: var(--card-ink); font-size: clamp(1.3rem, 4.6vw, 1.7rem); margin-bottom: 18px; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tile {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 20px; border-radius: 18px;
  background: var(--tile); color: var(--text); text-decoration: none;
  box-shadow: 0 10px 20px -12px rgba(11, 12, 36, 0.8);
  transition: background 0.15s ease;
}
.tile:hover { background: var(--tile-hover); color: var(--text); }
.tile-text { display: flex; flex-direction: column; gap: 6px; }
.tile strong { font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.tile-text span { font-size: 0.95rem; line-height: 1.45; color: var(--text-soft); }
.arrow {
  flex: none; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--opal); color: var(--night);
  font-size: 1.2rem; font-weight: 700;
}

/* Pip */
.pip { padding: 80px 0 72px; }
.pip-inner { display: grid; gap: 32px; align-items: center; }
.pip-text { display: flex; flex-direction: column; gap: 14px; }
.pip h2 { font-size: clamp(1.7rem, 6vw, 2.6rem); }
.pip p { color: var(--text-soft); max-width: 30em; }
.pip-row {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.pip-row li {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1; padding: 14px; border-radius: var(--radius);
  background: radial-gradient(circle at 50% 45%, rgba(160, 139, 250, 0.28), rgba(20, 22, 58, 0.9) 70%);
  border: 1px solid rgba(160, 139, 250, 0.25);
}
.pip-row img { max-height: 100%; width: auto; object-fit: contain; }

/* Footer */
.site-footer { border-top: 1px solid rgba(201, 205, 234, 0.15); padding: 28px 0 36px; color: var(--text-soft); }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
}
.footer-inner p { font-size: 0.95rem; }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  color: var(--text); font-weight: 700; font-size: 1.15rem;
}
.wordmark img { height: 24px; width: auto; }
.wordmark b { color: var(--opal-teal); font-weight: 700; }
.wordmark:hover { color: var(--text-soft); }

/* The film */
.film {
  width: min(960px, calc(100vw - 24px)); max-width: none;
  padding: 16px; border: 0; border-radius: var(--radius);
  background: var(--night-2); color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.film::backdrop { background: rgba(5, 6, 20, 0.82); }
.film-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.film-head h2 { font-size: 1.1rem; }
.film-close {
  width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--text); color: var(--night); font-size: 1.6rem; line-height: 1;
}
.film video { width: 100%; aspect-ratio: 16 / 9; background: #000000; border-radius: 14px; }
.film-note { margin-top: 10px; font-size: 0.9rem; color: var(--text-soft); }

/* Phones: full-width hero buttons, Opal's face back above the fold */
@media (max-width: 639px) {
  .actions .button { flex: 1 1 100%; justify-content: center; }
  .hero-grid { gap: 8px; }
}

/* Wider screens */
@media (min-width: 640px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pip-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .help-card { padding: 30px 32px; }
}

@media (min-width: 960px) {
  .hero { padding: 40px 0 150px; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; }
  .hero-art { justify-content: flex-end; }
  .badge { --d: min(36vw, 470px); }
  .chip { left: -48px; }
  .help { margin-top: -110px; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tile { flex-direction: column; align-items: flex-start; gap: 18px; }
  .tile .arrow { align-self: flex-end; }
  .pip { padding: 104px 0 88px; }
  .pip-inner { grid-template-columns: 1fr 1.4fr; gap: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .button:hover { transform: none; }
}
