:root {
  --bg: #1a0f2e;
  --surface: #2a1b45;
  --primary: #ff6b35;
  --accent: #9b59b6;
  --text: #f7f2ff;
  --muted: #b8a9d9;
  --open: #2ecc71;
  --low: #f1c40f;
  --closed: #e74c3c;
  --not-participating: #334155;
  --radius: 16px;
  --wrap: min(1080px, calc(100% - 2rem));
  --focus: 0 0 0 3px rgba(255, 107, 53, 0.55);
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  outline: none;
  box-shadow: var(--focus);
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

/* Atmosphere (below cinematic hero) */
.sky {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(155, 89, 182, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(255, 107, 53, 0.12), transparent 50%),
    linear-gradient(180deg, #120822 0%, var(--bg) 45%, #140c24 100%);
}

.sky--page {
  /* Same fixed backdrop for sections under the hero */
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.35;
}

.glow-primary {
  width: 220px;
  height: 220px;
  top: 12%;
  right: -40px;
  background: var(--primary);
}

.glow-accent {
  width: 180px;
  height: 180px;
  bottom: 30%;
  left: -50px;
  background: var(--accent);
}

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(247, 242, 255, 0.7), transparent),
    radial-gradient(1px 1px at 28% 42%, rgba(247, 242, 255, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 72% 22%, rgba(247, 242, 255, 0.65), transparent),
    radial-gradient(1px 1px at 88% 48%, rgba(247, 242, 255, 0.45), transparent),
    radial-gradient(1px 1px at 54% 12%, rgba(247, 242, 255, 0.5), transparent);
}

.porch-row {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background:
    linear-gradient(180deg, transparent, rgba(26, 15, 46, 0.85)),
    repeating-linear-gradient(
      90deg,
      transparent 0 48px,
      rgba(255, 107, 53, 0.08) 48px 52px,
      transparent 52px 96px
    );
  opacity: 0.55;
  mask-image: linear-gradient(180deg, transparent, #000 40%);
}

.hero-art {
  width: 100%;
  margin: 0;
  padding: 0;
  background: #0a0614;
}

.hero-art__frame {
  position: relative;
  width: 100%;
  line-height: 0;
}

.hero-art__image {
  display: block;
  width: 100%;
  height: auto;
}

.hero-hotspot {
  position: absolute;
  z-index: 2;
  margin: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  appearance: none;
}

.hero-hotspot:focus {
  outline: none;
}

.hero-hotspot:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  background: rgba(255, 107, 53, 0.12);
}

/* Percentage geometry relative to the illustration frame (Share left, Discover right). */
.hero-hotspot--share {
  left: 18.5%;
  top: 51.5%;
  width: 29%;
  height: 9.5%;
}

.hero-hotspot--discover {
  left: 52.5%;
  top: 51.5%;
  width: 29%;
  height: 9.5%;
}

@media (max-width: 719px) {
  .hero-hotspot--share {
    left: 16%;
    top: 50.5%;
    width: 32%;
    height: 11%;
  }

  .hero-hotspot--discover {
    left: 52%;
    top: 50.5%;
    width: 32%;
    height: 11%;
  }
}

.lead {
  margin: 0 0 2rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.cta-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  width: 100%;
  max-width: 28rem;
}

.cta-pair {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  min-width: 0;
}

.cta-pair .btn {
  width: 100%;
  min-height: 48px;
}

.cta-support {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  border-radius: 14px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

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

.btn:active {
  transform: translateY(0);
  opacity: 0.92;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(247, 242, 255, 0.28);
}

.btn-compact {
  margin-top: 0.75rem;
  font-size: 1rem;
}

.section {
  padding: 2.75rem 0;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  line-height: 1.2;
}

.section-lead {
  margin: 0 0 1.5rem;
  max-width: 36rem;
  color: var(--muted);
}

.screenshots {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0 calc(4rem + 48px);
  background: transparent;
  overflow: visible;
}

.screenshots-lead {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.phone-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  padding: 0.5rem 0 1.5rem;
  overflow: visible;
}

.phone {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(304px, 88vw);
  text-align: center;
}

.phone-copy {
  margin-bottom: 0.75rem;
  max-width: 16rem;
}

.phone-copy h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.phone-copy p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted);
}

.phone-bezel {
  position: relative;
  width: 100%;
  padding: 0.7rem 0.6rem 0.9rem;
  border-radius: 28px;
  background: linear-gradient(160deg, #3a2a5c, #1c1230 60%);
  border: 2px solid rgba(247, 242, 255, 0.18);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(247, 242, 255, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.phone-notch {
  width: 38%;
  height: 10px;
  margin: 0 auto 0.45rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
}

.phone-screen {
  position: relative;
  aspect-ratio: 9 / 19.5;
  border-radius: 18px;
  overflow: hidden;
  background: #120822;
  border: 1px solid rgba(247, 242, 255, 0.08);
}

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

.phone-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  background:
    radial-gradient(ellipse 70% 40% at 50% 20%, rgba(255, 107, 53, 0.18), transparent 60%),
    linear-gradient(180deg, #1c1230, #120822);
}

.steps {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 1.2rem;
  background: rgba(42, 27, 69, 0.72);
  border-radius: var(--radius);
  border: 1px solid rgba(247, 242, 255, 0.08);
}

.step-num {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.18);
  color: var(--primary);
  font-weight: 800;
}

.steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 44px;
}

.swatch {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(247, 242, 255, 0.12);
}

.swatch-green {
  background: var(--open);
}

.swatch-yellow {
  background: var(--low);
}

.swatch-red {
  background: var(--closed);
}

.swatch-black {
  background: var(--not-participating);
}

.swatch-none {
  background: transparent;
  border: 2px dashed rgba(184, 169, 217, 0.55);
  box-shadow: none;
}

.ways {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.way {
  padding: 1.35rem 1.35rem 1.5rem;
  background: rgba(42, 27, 69, 0.72);
  border-radius: var(--radius);
  border: 1px solid rgba(247, 242, 255, 0.08);
}

.way h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.way p {
  margin: 0;
  color: var(--muted);
}

.founding {
  text-align: center;
  padding-bottom: 3.5rem;
}

.founding-lead {
  margin: 0.5rem auto 0.75rem;
  max-width: 28rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.founding-invite {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  color: var(--muted);
}

.founding .btn {
  margin-inline: auto;
}

.site-footer {
  border-top: 1px solid rgba(247, 242, 255, 0.08);
  background: rgba(12, 8, 22, 0.65);
  padding: 2rem 0 2.5rem;
}

.footer-inner {
  display: grid;
  gap: 1rem;
}

.footer-brand {
  margin: 0;
  font-weight: 800;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-nav a,
.footer-contact {
  color: var(--muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--text);
}

.footer-nav a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

.soon {
  font-size: 0.85em;
  opacity: 0.8;
}

.copyright {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.dialog {
  border: none;
  padding: 0;
  background: transparent;
  max-width: calc(100vw - 2rem);
}

.dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.dialog-panel {
  width: min(420px, 100%);
  margin: auto;
  padding: 1.5rem;
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid rgba(247, 242, 255, 0.1);
}

.dialog-panel h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
}

.dialog-panel p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.dialog-founding {
  font-weight: 600;
  color: var(--text) !important;
}

.dialog-panel .btn {
  width: 100%;
}

@media (min-width: 720px) {
  .cta-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem 1.25rem;
    max-width: min(36rem, 100%);
    align-items: start;
  }

  .screenshots {
    padding: 4rem 0 calc(4.5rem + 48px);
  }

  .phone-gallery {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-end;
    gap: clamp(1.25rem, 2.4vw, 2rem);
    padding: 1.75rem 0 2.25rem;
    overflow: visible;
  }

  .phone {
    width: clamp(196px, 28.5vw, 262px);
    flex: 0 0 auto;
  }

  .phone--discover {
    transform: translateY(6px);
  }

  .phone--share {
    width: clamp(208px, 30.2vw, 278px);
    transform: translateY(-12px);
    z-index: 2;
  }

  .phone--share .phone-bezel {
    box-shadow:
      0 22px 46px rgba(0, 0, 0, 0.4),
      0 0 22px rgba(255, 107, 53, 0.1),
      inset 0 1px 0 rgba(247, 242, 255, 0.14);
  }

  .phone--live {
    transform: translateY(6px);
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .ways {
    grid-template-columns: 1fr 1fr;
  }

  .legend {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .phone {
    width: 284px;
  }

  .phone--share {
    width: 300px;
  }

  .phone-gallery {
    gap: 2.35rem;
  }
}

@media (min-width: 720px) and (prefers-reduced-motion: no-preference) {
  .phone:hover .phone-bezel {
    transform: translateY(-4px);
  }

  .phone--share:hover .phone-bezel {
    transform: translateY(-4px);
    box-shadow:
      0 30px 56px rgba(0, 0, 0, 0.45),
      0 0 32px rgba(255, 107, 53, 0.18),
      inset 0 1px 0 rgba(247, 242, 255, 0.14);
  }
}
