/* Not named ad.css / ad.js: EasyList and uBlock treat those paths as ads
   and drop the whole layout, leaving the raw 1254px PNG on a white page. */

:root {
  --night: #08090f;
  --ink: #f7f8fb;
  --proof: #62f0b2;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: #05060a;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}

/* Clip the full-size stage inside the viewport before its transform loads. */
body { position: relative; }

.stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  transform-origin: top left;
  background:
    radial-gradient(ellipse at 72% 40%, rgba(98, 240, 178, 0.08), transparent 42%),
    radial-gradient(ellipse at 18% 78%, rgba(157, 124, 255, 0.1), transparent 40%),
    var(--night);
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 45%, #000 30%, transparent 78%);
}

.brand {
  position: absolute;
  left: 0;
  right: 586px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.crest {
  display: block;
  width: 640px;
  height: 640px;
  margin: 0 0 4px;
  filter: drop-shadow(0 18px 48px rgba(120, 70, 255, 0.4));
}

.copy { width: 640px; }

.kicker {
  margin: 0 0 16px;
  color: var(--proof);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  margin: 0 0 18px;
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.cta {
  margin-top: 36px;
  font-size: 18px;
  font-weight: 700;
}

.cta span { color: var(--proof); }

.device {
  position: absolute;
  right: 168px;
  top: 50%;
  width: 418px;
  height: 872px;
  padding: 14px;
  transform: translateY(-50%);
  border-radius: 48px;
  z-index: 3;
  background: linear-gradient(180deg, #1b1e28, #0b0d14 40%, #07080c);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 28px 80px rgba(0, 0, 0, 0.55);
}

.island {
  position: absolute;
  top: 22px;
  left: 50%;
  width: 118px;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #05060a;
  z-index: 2;
}

.screen {
  width: 390px;
  height: 844px;
  overflow: hidden;
  border-radius: 34px;
  background: #08090f;
}

.screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stage[data-layout="9x16"] {
  width: 1080px;
  height: 1920px;
}

/* Phone first, crest below. Do not overlay: the 16:9 split cannot
   stand on a narrow screen, and a scaled phone at z-index 3 covers
   the 420px crest. */
.stage[data-layout="9x16"] .brand {
  left: 48px;
  right: 48px;
  top: 1008px;
  bottom: auto;
  transform: none;
  z-index: 2;
}

.stage[data-layout="9x16"] .crest {
  width: 280px;
  height: 280px;
  margin: 0 auto 8px;
}

.stage[data-layout="9x16"] .copy { width: auto; }

.stage[data-layout="9x16"] h1 { font-size: 52px; }

.stage[data-layout="9x16"] .device {
  left: 50%;
  right: auto;
  top: 72px;
  transform: translateX(-50%);
  z-index: 1;
}

.legal-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 9, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.legal-brand {
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #f7f8fb;
  text-decoration: none;
  font-size: 16px;
}

.legal-nav-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.legal-nav-links a {
  color: #9aa0a6;
  text-decoration: none;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}

.legal-nav-links a:hover {
  color: #f7f8fb;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(98, 240, 178, 0.3);
}

.hero-legal-links {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-legal-links a {
  color: #9aa0a6;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.hero-legal-links a:hover {
  color: #f7f8fb;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(98, 240, 178, 0.3);
}

@media (max-width: 600px) {
  .legal-nav {
    padding: 12px 16px;
  }
  .legal-brand {
    font-size: 14px;
  }
  .legal-nav-links {
    gap: 8px;
  }
  .legal-nav-links a {
    font-size: 11px;
    padding: 4px 10px;
  }
}

