:root {
  --bg: #0b0c10;
  --bg-alt: #101218;
  --card: #15171f;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f5f7;
  --text-muted: #9aa0ac;
  --accent: #7c5cff;
  --accent-2: #37e0c8;
  --accent-gradient: linear-gradient(135deg, #7c5cff 0%, #37e0c8 100%);
  --radius: 16px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.bg-glow {
  position: fixed;
  inset: -20% -20% auto -20%;
  height: 700px;
  background: radial-gradient(60% 60% at 30% 0%, rgba(124, 92, 255, 0.35), transparent 70%),
              radial-gradient(50% 50% at 80% 10%, rgba(55, 224, 200, 0.25), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(11, 12, 16, 0.7);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  color: var(--accent-2);
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.nav-cta {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 24px 20px;
}

.mobile-nav a:not(.btn) {
  color: var(--text-muted);
  text-decoration: none;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav .btn {
  margin-top: 12px;
  width: 100%;
}

@media (max-width: 720px) {
  .header-inner .nav-links,
  .header-inner .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .mobile-nav.open {
    display: flex;
  }
}

/* Buttons */
.btn {
  border: none;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #05060a;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: 110px 24px 60px;
  text-align: center;
  max-width: 860px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.3);
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(55, 224, 200, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(55, 224, 200, 0); }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 36px;
}

/* Waitlist form */
.waitlist-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.waitlist-form input[type="email"] {
  flex: 1 1 260px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--accent);
}

.waitlist-form input.invalid {
  border-color: #ff5c7a;
}

.form-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-form {
  justify-content: center;
}

/* Social proof */
.social-proof {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 20px 0 0;
}

.social-proof-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.progress-bar {
  width: 100%;
  max-width: 280px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  border-radius: 999px;
  transition: width 0.6s ease;
}

.avatar-stack {
  display: flex;
}

.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-gradient);
  border: 2px solid var(--bg);
  margin-left: -9px;
}

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

.social-proof-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

/* Share block (referral) */
.share-block {
  margin-top: 22px;
  padding: 20px;
  border-radius: 14px;
  background: rgba(124, 92, 255, 0.08);
  border: 1px solid rgba(124, 92, 255, 0.25);
  text-align: center;
}

.share-title {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: 0.95rem;
}

.share-row {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto 14px;
}

.share-row input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.82rem;
}

.share-row .btn {
  padding: 10px 18px;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.share-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.share-buttons a {
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.share-buttons a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.share-count {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Trust */
.trust {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px 24px 60px;
}

.trust p {
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 90px 0;
}

.section.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
  margin: 0 0 12px;
  font-weight: 800;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 50px;
  font-size: 1.05rem;
}

/* Grids & Cards */
.grid {
  display: grid;
  gap: 24px;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

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

@media (max-width: 980px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.4);
  box-shadow: 0 16px 40px rgba(124, 92, 255, 0.12);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(124, 92, 255, 0.1);
  color: var(--accent-2);
  margin-bottom: 16px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

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

/* Steps */
.steps {
  text-align: center;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #05060a;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.1rem;
}

.step h3 {
  margin: 0 0 10px;
}

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

/* Waitlist section */
.waitlist-section {
  text-align: center;
}

.waitlist-box {
  max-width: 640px;
}

.waitlist-box h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 14px;
  font-weight: 800;
}

.waitlist-box > p {
  color: var(--text-muted);
  margin: 0 0 36px;
  font-size: 1.05rem;
}

.success-message,
.error-message {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.success-message.visible {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(55, 224, 200, 0.12);
  border: 1px solid rgba(55, 224, 200, 0.35);
  color: var(--accent-2);
}

.success-message svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.error-message.visible {
  display: block;
  background: rgba(255, 92, 122, 0.12);
  border: 1px solid rgba(255, 92, 122, 0.35);
  color: #ff8fa3;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
}

summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  float: right;
  color: var(--accent-2);
  font-weight: 800;
}

details[open] summary::after {
  content: "−";
}

details p {
  color: var(--text-muted);
  margin: 14px 0 0;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  background: var(--accent-gradient);
  color: #05060a;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(124, 92, 255, 0.35);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.floating-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-cta:hover {
  transform: translateY(-2px);
}

@media (max-width: 560px) {
  .floating-cta {
    left: 24px;
    right: 24px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .badge-dot {
    animation: none;
  }
  .btn,
  .card,
  .floating-cta {
    transition: none;
  }
}
