:root {
  --bg: #0a0a0a;
  --surface: #18181b;
  --surface-hover: #222226;
  --border: rgba(255, 255, 255, 0.12);
  --text: #fafafa;
  --muted: #a1a1aa;
  --btn-bg: #71717a;
  --btn-text: #09090b;
  --success: #86efac;
  --error: #fca5a5;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Mobile-first Topbar */
.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  max-width: 1320px;
  margin: 0 auto;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.badge-pill {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

/* Mobile-first Canvas & Hero */
.canvas {
  position: relative;
  min-height: calc(100dvh - 68px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 56px;
}

.hero {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Social Proof Pill */
.proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(24, 24, 27, 0.85);
  backdrop-filter: blur(8px);
  font-size: 0.8rem;
  font-weight: 500;
  color: #e4e4e7;
  margin-bottom: 24px;
}

.avatars {
  display: flex;
  align-items: center;
}

.av {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  border: 1.5px solid #0a0a0a;
  margin-left: -6px;
}

.av:first-child {
  margin-left: 0;
}

.av-1 { background: #6366f1; }
.av-2 { background: #3b82f6; }
.av-3 { background: #10b981; }
.av-4 { background: #f97316; }

/* Headline & Subtitle */
.headline {
  font-size: clamp(2.25rem, 9.5vw, 4.25rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: var(--text);
  margin-bottom: 16px;
}

.subtitle {
  font-size: clamp(0.95rem, 3.6vw, 1.08rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 28px;
}

/* Mobile-first Stacked Form */
.waitlist-form {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.waitlist-form input[type="email"] {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.waitlist-form input[type="email"]::placeholder {
  color: #71717a;
}

.waitlist-form input[type="email"]:focus {
  border-color: rgba(255, 255, 255, 0.35);
  background: var(--surface-hover);
}

.waitlist-form button {
  width: 100%;
  height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  border: none;
  background: #e4e4e7;
  color: var(--btn-text);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, opacity 0.15s ease;
}

.waitlist-form button:hover:not(:disabled) {
  background: #ffffff;
}

.waitlist-form button:active:not(:disabled) {
  transform: scale(0.99);
}

.waitlist-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.turnstile-slot {
  margin-top: 14px;
}

.form-status {
  margin-top: 12px;
  min-height: 20px;
  font-size: 0.85rem;
  color: var(--muted);
}

.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--error); }

/* Editorial Ambient Cards (Mobile: subtle top/bottom glow cards, Desktop: full perimeter) */
.cards-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.media-card {
  position: absolute;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
  background: #141416;
  opacity: 0.42;
}

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

/* Mobile positions: subtle ambient corners */
.card-tl { width: 108px; height: 146px; top: 76px; left: -34px; }
.card-tr { width: 108px; height: 152px; top: 96px; right: -38px; }
.card-bl { width: 108px; height: 138px; bottom: -36px; left: -28px; }
.card-bc { display: none; }
.card-br { width: 108px; height: 138px; bottom: -34px; right: -28px; }
.card-ml { display: none; }

/* Tablet & Desktop (progressive enhancement) */
@media (min-width: 640px) {
  .waitlist-form {
    flex-direction: row;
    gap: 10px;
  }

  .waitlist-form input[type="email"] {
    flex: 1;
  }

  .waitlist-form button {
    width: auto;
    flex-shrink: 0;
  }
}

@media (min-width: 960px) {
  .topbar {
    padding: 24px 36px;
  }

  .media-card {
    opacity: 0.92;
  }

  .card-tl { width: 185px; height: 260px; top: 72px; left: 11%; }
  .card-tr { width: 185px; height: 270px; top: 150px; right: 7%; }
  .card-ml { display: block; width: 155px; height: 210px; top: 360px; left: 2%; }
  .card-bl { width: 180px; height: 240px; bottom: -20px; left: 14%; }
  .card-bc { display: block; width: 190px; height: 165px; bottom: -24px; left: 41%; }
  .card-br { width: 190px; height: 235px; bottom: -16px; right: 3%; }
}
