:root {
  --bg: #0f1115;
  --surface-card: #1a1d24;
  --border: #2d3340;
  --text: #f5f6f8;
  --text-muted: #9aa3b2;
  --primary: #7c5cff;
  --primary-fade: rgba(124, 92, 255, 0.18);
  --green: #4ade80;
  --red: #ef4444;
  --blue-fade: rgba(96, 165, 250, 0.18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: rgba(15, 17, 21, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.topbar-brand img { height: 28px; display: block; }

/* ---------- Hero ---------- */
.hero {
  padding-top: 64px;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Mobile: stack everything in one column with the mockup nestled between the
   headline and the tagline. Desktop: two columns with the mockup spanning
   the right side across all rows. Implemented with grid-template-areas so
   layout intent is declarative. */
.hero-grid {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "eyebrow"
    "headline"
    "mockup"
    "tagline"
    "form";
  row-gap: 1.25rem;
  padding: 3rem 0;
  align-items: start;
}

.eyebrow      { grid-area: eyebrow; }
.hero-headline { grid-area: headline; }
.hero-mockup  { grid-area: mockup; margin: 0.5rem 0; }
.tagline      { grid-area: tagline; }
.form-wrap    { grid-area: form; }

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 3fr 2fr;
    grid-template-areas:
      "eyebrow  mockup"
      "headline mockup"
      "tagline  mockup"
      "form     mockup";
    column-gap: 3rem;
    row-gap: 1.5rem;
    padding: 0;
    align-items: center;
  }
  .hero-mockup { margin: 0; align-self: center; }
  .hero { padding-left: 5rem; padding-right: 5rem; }
}

.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-headline {
  font-size: 2.5rem;
  line-height: 1.1;
  font-weight: 800;
  margin: 0;
}
@media (min-width: 768px) { .hero-headline { font-size: 3.25rem; } }
@media (min-width: 1024px) { .hero-headline { font-size: 3.75rem; } }

.tagline {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin: 0;
}
@media (min-width: 768px) { .tagline { font-size: 1.25rem; } }

/* ---------- CTA + form modal ---------- */
.form-wrap {
  max-width: 36rem;
}
.cta-button {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 1rem 2.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(124, 92, 255, 0.4);
  background: #6a4cef;
}
.cta-button:active {
  transform: translateY(0);
}
.cta-subline {
  margin: 1rem 0 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}
.modal[hidden] { display: none; }

.modal-content {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.12); color: var(--text); }

/* ---------- Native form (inside modal) ---------- */
.form-card { padding: 2rem; color: var(--text); }
.form-card-title {
  margin: 0 0 0.375rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.form-card-subtitle {
  margin: 0 0 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.waitlist-form { display: flex; flex-direction: column; gap: 1.125rem; }

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4375rem;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
/* Without this, .field's display:flex beats the user-agent [hidden]
   { display:none } at equal specificity — so hidden fieldsets stayed
   visible. Same trick the .modal[hidden] rule uses. */
.field[hidden] { display: none; }
.field-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  padding: 0;
}
.field-req { color: var(--primary); margin-left: 0.125rem; }
.field-hint {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.8125rem;
  margin-left: 0.375rem;
}

.field input[type="email"],
.field input[type="text"] {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem 0.875rem;
  font-size: 1rem;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.field input[type="email"]:focus,
.field input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18);
}
.field input::placeholder { color: var(--text-muted); }

.radio-group { display: flex; gap: 0.625rem; }
.radio-group-stacked { flex-direction: column; }
.radio {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.625rem;
  padding: 0.75rem 0.875rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.9375rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.radio:hover { border-color: var(--text-muted); }
.radio:has(input:checked) {
  border-color: var(--primary);
  background: rgba(124, 92, 255, 0.12);
  color: var(--text);
}
.radio input { accent-color: var(--primary); margin: 0; }

.cta-button-block { width: 100%; padding: 0.875rem; margin-top: 0.5rem; }
.cta-button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Multi-box "Who would you like to meet with?" list ---------- */
.creator-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.creator-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}
.creator-row .creator-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem 0.875rem;
  font-size: 1rem;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.creator-row .creator-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18);
}
.creator-row .creator-input::placeholder { color: var(--text-muted); }

.creator-remove {
  flex: 0 0 auto;
  width: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.125rem;
  line-height: 1;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.creator-remove:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(239, 68, 68, 0.08);
}

.creator-add {
  margin-top: 0.5rem;
  align-self: flex-start;
  background: transparent;
  color: var(--primary);
  border: none;
  padding: 0.375rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.creator-add:hover { text-decoration: underline; }

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

.form-success {
  text-align: center;
  padding: 3rem 2rem;
}
.form-success-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.15);
  color: var(--green);
  font-size: 1.5rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.form-success-msg { color: var(--text-muted); margin: 0; font-size: 0.9375rem; }

/* ---------- Hero mockup (right column on desktop, stacked below copy on mobile) ---------- */
.hero-mockup {
  display: flex;
  justify-content: center;
}

.mockup-frame {
  width: 100%;
  max-width: 22rem;
  background: #0a0c10;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.mockup-videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.mockup-video {
  aspect-ratio: 4/3;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.mockup-video.host { background: linear-gradient(135deg, var(--primary-fade), rgba(124,92,255,0.05)); }
.mockup-video.fan  { background: linear-gradient(135deg, var(--blue-fade), rgba(96,165,250,0.05)); }
.mockup-avatar {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: rgba(124,92,255,0.3);
  margin-bottom: 0.5rem;
}
.mockup-video.fan .mockup-avatar { background: rgba(96,165,250,0.3); }
.mockup-live-dot {
  position: absolute; top: 0.5rem; left: 0.5rem;
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--green);
  animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

.mockup-timer {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0; font-size: 0.75rem; color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.timer-current { color: var(--text); }
.timer-bar { flex: 1; height: 4px; background: var(--border); border-radius: 999px; overflow: hidden; }
.timer-fill { width: 60%; height: 100%; background: var(--primary); }

.mockup-controls {
  display: flex; justify-content: center; align-items: center; gap: 1rem;
  padding: 0.5rem 0;
}
.ctrl { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--border); border: none; cursor: default; }
.ctrl-end { width: 3rem; height: 3rem; background: var(--red); }

/* ---------- Footer ---------- */
footer {
  background: #0a0c10;
  color: var(--text-muted);
  padding: 4rem 1.5rem 2rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.footer-brand img { height: 20px; margin-bottom: 1rem; display: block; }
.footer-brand p { font-size: 0.875rem; max-width: 24rem; margin: 0; }
.footer-contact h4 {
  color: var(--text);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 1rem 0;
}
.footer-contact a {
  font-size: 0.875rem;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-contact a:hover { color: var(--text); }
.footer-copy {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.75rem;
}
