/* 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));
}

.flank-container {
  display: grid;
  grid-template-columns: 160px 640px 160px;
  align-items: center;
  justify-content: center;
  gap: 36px;
  width: 100%;
}

.store-flank {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.flank-ios {
  grid-column: 1;
}

.copy {
  grid-column: 2;
  width: 640px;
}

.flank-android {
  grid-column: 3;
}

.flank-qr-box {
  width: 144px;
  height: 144px;
  padding: 10px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flank-qr-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(98, 240, 178, 0.5);
}

.flank-qr {
  width: 100%;
  height: 100%;
  display: block;
}

.flank-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  width: 144px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.flank-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(98, 240, 178, 0.4);
  transform: translateY(-1px);
}

.flank-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(247, 248, 251, 0.6);
  line-height: 1.2;
}

.flank-platform {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
}

.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); }
.cta-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, color 0.15s ease;
}

.cta-link:hover {
  color: var(--proof);
  transform: translateX(2px);
}

.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"] h1 { font-size: 52px; }

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

.stage[data-layout="9x16"] .flank-container {
  grid-template-columns: 144px 144px;
  grid-template-rows: auto auto;
  gap: 20px 24px;
  justify-content: center;
  width: auto;
}

.stage[data-layout="9x16"] .copy {
  grid-column: 1 / span 2;
  grid-row: 1;
  width: auto;
}

.stage[data-layout="9x16"] .flank-ios {
  grid-column: 1;
  grid-row: 2;
}

.stage[data-layout="9x16"] .flank-android {
  grid-column: 2;
  grid-row: 2;
}

.stage[data-layout="9x16"] .flank-qr-box {
  width: 120px;
  height: 120px;
  padding: 8px;
}

.stage[data-layout="9x16"] .flank-pill {
  width: 120px;
  padding: 6px 10px;
}
