/* GhostiFi coming-soon: neon #84F21D on black. System sans for UI; the logo SVG is outlined Audiowide. */
:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #9ca3af;
  --line: #1f1f1f;
  --field: #0c0c0c;
  --neon: #84f21d;
  --neon-hover: #9aff3d;
  --neon-dim: rgba(132, 242, 29, 0.22);
  --danger: #f87171;
  --radius: 8px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --max: 72rem;
}

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  position: relative;
}

/* Faint site grid, strongest at the top, fading down. */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(132, 242, 29, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(132, 242, 29, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
  mask-image: linear-gradient(to bottom, #000 0, #000 28rem, transparent 52rem);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 28rem, transparent 52rem);
}

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

a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover,
a:focus-visible {
  color: var(--neon);
}

:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}

main,
footer {
  position: relative;
  z-index: 1;
}

main {
  flex: 1;
  width: 100%;
  padding: 0 0 3.5rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Hero ---------- */
.hero-stage {
  position: relative;
  padding: 2rem 0 1rem;
  overflow: hidden;
}

.hero-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -8rem;
  width: 52rem;
  height: 36rem;
  transform: translateX(-42%);
  background: radial-gradient(ellipse at center, rgba(132, 242, 29, 0.16) 0%, rgba(132, 242, 29, 0.05) 38%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-stage .wrap,
.hero {
  position: relative;
  z-index: 1;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.logo {
  width: min(14.25rem, 76vw);
  height: auto;
  /* Keep top SVG clear-space tight to the stage, leave room under the wordmark. */
  margin: -0.5rem 0 0.2rem;
}

.eyebrow {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  color: var(--muted);
}

h1 {
  margin: 0.5rem 0 0;
  max-width: 22ch;
  font-size: clamp(2rem, 8.4vw, 3rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 .accent {
  color: var(--neon);
  text-shadow: 0 0 22px rgba(132, 242, 29, 0.38);
}

.subhead {
  margin: 1.15rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 1.55;
}

.signup {
  width: min(24.5rem, 100%);
  margin: 1.85rem 0 0;
  text-align: left;
}

.signup label {
  display: block;
  margin: 0.85rem 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.signup label[for="email"],
.signup label[for="email-bottom"] {
  margin-top: 0;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.signup input[type="email"],
.signup input[type="text"],
.signup select {
  width: 100%;
  height: 3rem;
  padding: 0 0.9rem;
  border: 1px solid #2a2a2a;
  border-radius: var(--radius);
  background: var(--field);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  appearance: none;
  -webkit-appearance: none;
}

.signup select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path fill='%239ca3af' d='M4.2 6.2 8 10l3.8-3.8 1.2 1.2L8 12.4 3 7.4z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1rem;
  padding-right: 2.4rem;
}

.signup input::placeholder {
  color: #6b7280;
}

.signup input:hover,
.signup select:hover {
  border-color: #3a3a3a;
}

.signup input:focus,
.signup select:focus {
  border-color: var(--neon);
  outline: none;
}

.signup button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 3rem;
  margin-top: 1rem;
  padding: 0 1rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--neon);
  color: #000000;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(132, 242, 29, 0.28);
}

.signup button:hover:not(:disabled) {
  background: var(--neon-hover);
  box-shadow: 0 0 28px rgba(132, 242, 29, 0.4);
}

.signup button:active:not(:disabled) {
  transform: translateY(1px);
}

.signup button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.signup .cf-turnstile {
  margin-top: 0.85rem;
}

.fineprint {
  margin: 0.75rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

.status {
  width: 100%;
  margin: 0.85rem 0 0;
  min-height: 1.25em;
  text-align: center;
  font-size: 0.95rem;
}

.status.success {
  color: var(--neon);
  font-size: 1.05rem;
  line-height: 1.5;
}

.status.error {
  color: var(--danger);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Gateway mock ---------- */
.gateway {
  width: 100%;
  max-width: 26rem;
  margin: 2.25rem auto 0;
}

.gateway-card {
  padding: 1.2rem 1.25rem 1.3rem;
  border: 1px solid #222;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(132, 242, 29, 0.045) 0%, transparent 42%),
    #090909;
  box-shadow:
    0 0 0 1px rgba(132, 242, 29, 0.06),
    0 18px 50px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(132, 242, 29, 0.07);
}

.gateway-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.gateway-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.18rem 0.55rem 0.18rem 0.45rem;
  border: 1px solid rgba(132, 242, 29, 0.35);
  border-radius: 999px;
  background: rgba(132, 242, 29, 0.08);
  color: var(--neon);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 0 rgba(132, 242, 29, 0.55);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(132, 242, 29, 0.55); }
  70% { box-shadow: 0 0 0 0.5rem rgba(132, 242, 29, 0); }
  100% { box-shadow: 0 0 0 0 rgba(132, 242, 29, 0); }
}

.gateway-ip {
  margin: 0.95rem 0 0;
  font-family: var(--mono);
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--text);
}

.gateway-region {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.gateway-row {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  margin-top: 1.15rem;
}

.qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex: none;
}

.qr {
  display: block;
  width: 8.35rem;
  height: 8.35rem;
  background: #ffffff;
  border: 1px solid var(--neon);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(132, 242, 29, 0.18), 0 0 16px rgba(132, 242, 29, 0.4);
}

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

.qr:focus-visible {
  outline-offset: 2px;
}


.hero-trust {
  display: none;
}

.qr-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.gateway-actions {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.7rem;
  flex: 1;
  min-width: 0;
  padding-top: 0.15rem;
}

.timer {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.32rem 0.6rem;
  border: 1px solid rgba(132, 242, 29, 0.4);
  border-radius: 999px;
  background: rgba(132, 242, 29, 0.08);
  color: var(--neon);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.rotate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 2.6rem;
  border: 1px solid #3a3a3a;
  border-radius: var(--radius);
  background: #111;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

/* ---------- Shared sections ---------- */
.section-title {
  margin: 0 0 1.1rem;
  text-align: center;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.icon {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
  color: var(--neon);
}

.pains {
  margin: 3.2rem 0 0;
}

.pains ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pains li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--neon);
  border-radius: var(--radius);
  background: #070707;
  color: #d1d5db;
  font-size: 0.95rem;
  line-height: 1.45;
}

.pains .icon {
  margin-top: 0.12rem;
}

.how {
  margin: 3.4rem 0 0;
}

.how ol {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.how li {
  padding: 1.15rem 1.25rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #070707;
}

.how .num {
  display: block;
  margin: 0 0 0.45rem;
  color: var(--neon);
  font-size: 3.15rem;
  font-weight: 750;
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-shadow: 0 0 22px rgba(132, 242, 29, 0.3);
}

.how h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.how p {
  margin: 0;
  color: #d1d5db;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 3.25rem 0 0;
}

.audience {
  margin: 3.4rem 0 0;
}

.audience .cards {
  margin-top: 0;
}

.cards article {
  padding: 1.25rem 1.3rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #070707;
}

.audience .icon {
  width: 1.55rem;
  height: 1.55rem;
  margin-bottom: 0.7rem;
}

.cards h2,
.cards h3 {
  margin: 0 0 0.5rem;
  color: var(--neon);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cards p {
  margin: 0;
  color: #d1d5db;
  font-size: 0.98rem;
  line-height: 1.55;
}

.faq {
  width: min(40rem, 100%);
  margin: 3.5rem auto 0;
}

.faq-item + .faq-item {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.faq h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.faq p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.cta-band {
  margin: 3.5rem 0 0;
  padding: 1.35rem 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(132, 242, 29, 0.05) 0%, transparent 70%),
    #070707;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-copy h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cta-copy p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.signup-compact {
  width: 100%;
  margin: 0;
}

.signup-compact button {
  margin-top: 0.65rem;
}

.signup-compact .status {
  text-align: left;
}

.cred {
  margin: 2.25rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

footer {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  color: var(--muted);
  font-size: 0.875rem;
}

footer p {
  margin: 0;
}

footer nav {
  display: flex;
  gap: 1.15rem;
}

footer a {
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
  text-decoration: underline;
}

.legal {
  width: min(40rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 3rem 0 4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.legal .logo {
  width: min(12.5rem, 70vw);
  margin: 0 0 2rem;
}

.legal p {
  color: var(--muted);
  font-size: 1.05rem;
}

.legal a.back {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--text);
  text-decoration: none;
}

.legal a.back:hover {
  color: var(--neon);
}

.legal h1 {
  max-width: none;
  margin: 0 0 0.85rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.02em;
  text-align: center;
  text-shadow: none;
}

@media (max-width: 959px) {
  h1 {
    max-width: none;
  }
}

@media (min-width: 720px) {
  .pains ul {
    grid-template-columns: 1fr 1fr;
  }

  .how ol {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 3.75rem;
  }

  .cards article {
    padding: 1.4rem 1.35rem 1.5rem;
  }

  .cta-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.4rem 1.5rem;
  }

  .signup-compact {
    width: min(28rem, 100%);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.6rem 0.65rem;
    align-items: start;
  }

  .signup-compact button {
    width: auto;
    margin-top: 0;
    padding: 0 1.15rem;
    white-space: nowrap;
  }

  .signup-compact .status {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .signup-compact .cf-turnstile {
    grid-column: 1 / -1;
    margin-top: 0.15rem;
  }
}

@media (min-width: 960px) {
  .hero-stage {
    padding: 2.75rem 0 2rem;
  }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(20rem, 0.88fr);
    gap: 3.25rem;
    align-items: center;
    text-align: left;
  }

  .hero-copy {
    align-items: flex-start;
    text-align: left;
  }

  .logo {
    width: 13.25rem;
    margin: -0.65rem 0 0.1rem;
  }

  .eyebrow {
    margin-top: 0.7rem;
  }

  h1 {
    margin-top: 0.55rem;
    max-width: none;
    font-size: 4.25rem; /* 68px */
    line-height: 1.05;
  }

  h1 .br-desk {
    display: block;
  }

  h1 .br-desk + br {
    display: none;
  }

  .subhead {
    max-width: 36rem;
  }

  .signup {
    margin-top: 1.7rem;
  }

  .fineprint,
  .hero-copy .status {
    text-align: left;
  }

  .gateway {
    margin: 0;
    max-width: none;
  }

  .hero-trust {
    display: block;
    margin: 1.05rem 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.45;
    letter-spacing: 0.01em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .signup button:active:not(:disabled) {
    transform: none;
  }

  .dot {
    animation: none;
    box-shadow: 0 0 0.35rem rgba(132, 242, 29, 0.55);
  }
}


/* ---------- Connected easter-egg page ---------- */
.connected-page .connected {
  width: min(28rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2rem 0 3.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.connected-page .logo {
  width: min(12.5rem, 70vw);
  margin: 0 0 0.4rem;
}

.connected-page .eyebrow {
  margin-top: 0.15rem;
}

.connected-page h1 {
  margin-top: 0.55rem;
  max-width: none;
  font-size: clamp(2rem, 8.5vw, 3.15rem);
  line-height: 1.08;
}

.connected-page .lead,
.connected-page .explain {
  margin: 1rem 0 0;
  max-width: 26rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.connected-page .connected-status {
  width: 100%;
  margin: 1.6rem 0 0;
  text-align: left;
}

.connected-page .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 3rem;
  margin-top: 1.5rem;
  padding: 0 1.2rem;
  border-radius: var(--radius);
  background: var(--neon);
  color: #000000;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 0 22px rgba(132, 242, 29, 0.28);
}

.connected-page .cta:hover,
.connected-page .cta:focus-visible {
  background: var(--neon-hover);
  color: #000000;
}

.connected-page .fineprint {
  margin-top: 0.75rem;
}

@media (min-width: 720px) {
  .connected-page .connected {
    padding-top: 3rem;
  }
}
