/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #050508;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.055);
  --border: rgba(255,255,255,0.08);
  --border-bright: rgba(255,255,255,0.14);
  --text-primary: #f0f0f8;
  --text-secondary: rgba(240,240,248,0.55);
  --text-muted: rgba(240,240,248,0.35);
  --accent-purple: #a78bfa;
  --accent-blue: #38bdf8;
  --gradient: linear-gradient(135deg, #a78bfa, #38bdf8);
  --gradient-text: linear-gradient(90deg, #c4b5fd, #7dd3fc);
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== Accessibility ===== */
.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;
}

/* ===== Canvas Background ===== */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: rgba(5,5,8,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 12px rgba(167,139,250,0.4));
  transition: filter 0.3s ease;
}

.logo-link:hover .logo-mark {
  filter: drop-shadow(0 0 20px rgba(167,139,250,0.7));
}

.logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-cta {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 18px;
  border: 1px solid var(--border-bright);
  border-radius: 50px;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}

.nav-cta:hover {
  color: var(--text-primary);
  border-color: rgba(167,139,250,0.5);
  background: rgba(167,139,250,0.08);
  box-shadow: 0 0 20px rgba(167,139,250,0.1);
}

/* ===== Main Layout ===== */
main {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Hero ===== */
.hero {
  padding-top: 180px;
  padding-bottom: 80px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 36px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: rgba(255,255,255,0.02);
}

.pulse-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 0 0 rgba(56,189,248,0.5);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(56,189,248,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(56,189,248,0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 80px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.hero-title em {
  font-style: normal;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-subtitle strong {
  color: var(--text-primary);
  font-weight: 500;
}

.keyword-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.pill {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: rgba(255,255,255,0.02);
  white-space: nowrap;
  transition: all 0.25s ease;
}

.pill:hover {
  color: var(--text-secondary);
  border-color: var(--border-bright);
}

/* ===== Features ===== */
.features {
  padding-bottom: 80px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-bright);
  transform: translateY(-2px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(167,139,250,0.04);
}

.feature-icon {
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px rgba(167,139,250,0.3));
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== Waitlist Section ===== */
.waitlist-section {
  padding-bottom: 120px;
}

.waitlist-card {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 24px;
  padding: clamp(40px, 6vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.waitlist-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(167,139,250,0.3), rgba(56,189,248,0.3), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.waitlist-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  border: 1px solid rgba(167,139,250,0.25);
  padding: 5px 14px;
  border-radius: 50px;
}

.waitlist-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.waitlist-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

/* ===== Form ===== */
.waitlist-form {
  max-width: 480px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.input-group {
  margin-bottom: 12px;
}

.input-group:last-of-type {
  margin-bottom: 0;
}

.waitlist-form input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: all 0.25s ease;
  appearance: none;
}

.waitlist-form input::placeholder {
  color: var(--text-muted);
}

.waitlist-form input:focus {
  border-color: rgba(167,139,250,0.5);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px rgba(167,139,250,0.1);
}

.waitlist-form input:invalid:not(:placeholder-shown) {
  border-color: rgba(248,113,113,0.5);
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  padding: 16px 28px;
  background: var(--gradient);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 24px rgba(167,139,250,0.25);
  letter-spacing: -0.01em;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(167,139,250,0.4), 0 0 60px rgba(56,189,248,0.15);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-arrow {
  transition: transform 0.25s ease;
}

.submit-btn:hover .btn-arrow {
  transform: translateX(3px);
}

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

/* ===== Success State ===== */
.success-message {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  animation: fadeUp 0.5s ease;
}

.success-message h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.success-message p {
  font-size: 15px;
  color: var(--text-secondary);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 24px 48px;
  border-top: 1px solid var(--border);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.footer-copy {
  font-size: 12px;
  color: rgba(240,240,248,0.2);
}

/* ===== Shake animation ===== */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.shake {
  animation: shake 0.4s ease;
  border-color: rgba(248,113,113,0.6) !important;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .nav {
    padding: 16px 20px;
  }

  .hero {
    padding-top: 130px;
    padding-bottom: 60px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .waitlist-card {
    padding: 36px 24px;
  }
}
