:root {
  --bg: #0a0a0b;
  --bg-elevated: #151517;
  --text: #f5f5f7;
  --text-dim: #9a9aa1;
  --accent: #cdff3d;
  --accent-text: #0a0a0b;
  --border: #232326;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

.dot { color: var(--accent); }

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(10,10,11,0.75);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  color: var(--accent-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  background: var(--accent);
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(205,255,61,0.25);
}

main {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 40px;
  align-items: center;
  padding: 90px 0 100px;
}

.hero-text h1 {
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 22px;
}

.subhead {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--text-dim);
  margin-bottom: 36px;
}

.form-label {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.waitlist-form {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 440px;
  margin-bottom: 12px;
}

.waitlist-form input {
  flex: 1;
  padding: 14px 18px;
  font-size: 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}

.waitlist-form input:focus { border-color: var(--accent); }
.waitlist-form input::placeholder { color: var(--text-dim); }

.waitlist-form button {
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: var(--accent-text);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
}

.waitlist-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(205,255,61,0.3);
}

.waitlist-form button:active { transform: translateY(0); }

.form-message {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-message.success { color: var(--accent); }
.form-message.error { color: #ff6b6b; }

.fine-print {
  font-size: 13px;
  color: var(--text-dim);
}

/* Hero visual / phones */

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.phone-stack {
  position: relative;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 9 / 19.5;
}

.phone {
  position: absolute;
  width: 86%;
  aspect-ratio: 9 / 19.5;
  background: #000;
  border-radius: 32px;
  border: 5px solid #1c1c1e;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.phone-back {
  top: 6%;
  right: 0;
  transform: rotate(6deg);
  opacity: 0.85;
  z-index: 1;
}

.phone-front {
  top: 0;
  left: 0;
  transform: rotate(-4deg);
  z-index: 2;
}

.phone-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 14px 12px;
  color: var(--text);
}

.phone-statusbar {
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 10px;
}

.voting-row { margin-bottom: 8px; }

.voting-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(205,255,61,0.12);
  padding: 4px 8px;
  border-radius: 999px;
}

.prompt-label {
  font-size: 9px;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.prompt-word {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
}

.photo-frame {
  flex: 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-elevated);
}

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

.phone-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #000;
  margin-left: -8px;
  object-fit: cover;
}

.avatar-stack img:first-child { margin-left: 0; }

.avatar-more {
  font-size: 10px;
  color: var(--text-dim);
  margin-left: 6px;
}

.like-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leaderboard-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 12px;
}

.leaderboard-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.leaderboard-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.lb-name {
  font-size: 10px;
  font-weight: 600;
  flex: 1;
}

.lb-score {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
}

.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(205,255,61,0.1);
  border: 1px solid rgba(205,255,61,0.25);
  padding: 6px 14px;
  border-radius: 999px;
}

/* How it works */

.how-it-works {
  padding: 60px 0 90px;
  border-top: 1px solid var(--border);
}

.how-it-works h2 {
  text-align: center;
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 48px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.step { text-align: center; }

.step-icon {
  width: 34px;
  height: 34px;
  color: var(--accent);
  margin-bottom: 16px;
}

.step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  font-size: 14px;
  color: var(--text-dim);
  max-width: 260px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .steps { grid-template-columns: 1fr; gap: 40px; }
}

/* Waitlist CTA */

.waitlist-cta {
  text-align: center;
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.waitlist-cta h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.waitlist-cta p {
  color: var(--text-dim);
  margin-bottom: 28px;
}

.cta-button {
  display: inline-block;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(205,255,61,0.3);
}

/* Footer */

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-logo {
  font-weight: 800;
  font-size: 16px;
}

.footer-copy {
  color: var(--text-dim);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

/* Legal pages */

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 70px 24px 100px;
}

.legal-page h1 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 36px;
}

.legal-page h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 32px 0 10px;
}

.legal-page p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
}

.legal-page a {
  color: var(--accent);
}

.legal-back {
  display: inline-block;
  margin-top: 48px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

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

/* Responsive */

@media (max-width: 900px) {
  .nav-links { display: none; }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 50px 0 70px;
  }

  .hero-text h1 { letter-spacing: -1.5px; }

  .subhead { margin-left: auto; margin-right: auto; }

  .form-label { text-align: left; }

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

  .hero-visual { margin-top: 40px; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .waitlist-form { flex-direction: column; }
}
