:root {
  --bg: #050508;
  --surface: #0a0a0f;
  --surface-2: #111118;
  --border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.5);
  --text-muted: rgba(255, 255, 255, 0.3);
  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.4);
  --green: #22c55e;
  --red: #ef4444;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: white;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  background: rgba(5, 5, 8, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
}

.nav-logo svg {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(99, 102, 241, 0.15);
  padding: 6px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 60px;
  line-height: 1.7;
}

.hero-visual {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0.3;
  animation: pulse 3s ease-out infinite;
}

.pulse-ring-2 {
  animation-delay: 1s;
}

.pulse-ring-3 {
  animation-delay: 2s;
}

.pulse-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px var(--accent-glow);
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

/* Features */
.features {
  padding: 80px 40px;
  background: var(--surface);
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

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

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

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

/* Dashboard Preview */
.dashboard-preview {
  padding: 80px 40px;
}

.preview-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.preview-dots {
  display: flex;
  gap: 8px;
}

.preview-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-muted);
}

.preview-title {
  font-size: 13px;
  color: var(--text-secondary);
}

.preview-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px;
}

.preview-metric {
  text-align: center;
}

.metric-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.metric-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--text);
}

.metric-unit {
  font-size: 20px;
  color: var(--text-secondary);
}

.metric-trend {
  font-size: 13px;
  margin-top: 8px;
}

.metric-trend.up {
  color: var(--green);
}

.metric-trend.down {
  color: var(--green);
}

.preview-ai {
  padding: 0 40px 40px;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--accent);
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
}

/* Closing */
.closing {
  padding: 100px 40px;
  background: var(--surface);
  text-align: center;
}

.closing-content {
  max-width: 800px;
  margin: 0 auto;
}

.closing h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
}

.closing p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 60px;
}

.closing-visual {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  display: block;
  margin-top: 8px;
}

/* Footer */
.footer {
  padding: 40px;
  border-top: 1px solid var(--border);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
}

.footer-brand svg {
  color: var(--accent);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    padding: 16px 20px;
  }
  
  .hero {
    padding: 100px 20px 60px;
  }
  
  .hero-visual {
    width: 150px;
    height: 150px;
  }
  
  .pulse-center {
    width: 48px;
    height: 48px;
  }
  
  .features, .dashboard-preview, .closing {
    padding: 60px 20px;
  }
  
  .preview-content {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px;
  }
  
  .metric-value {
    font-size: 36px;
  }
  
  .closing-visual {
    gap: 40px;
  }
  
  .stat-value {
    font-size: 36px;
  }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.2px;
  text-decoration: none;
  border-radius: 12px;
  padding: 14px 28px;
  transition: all 0.2s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 24px rgba(99,102,241,0.35);
}

.btn-primary:hover {
  background: #4f52e8;
  box-shadow: 0 0 40px rgba(99,102,241,0.55);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.25);
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

.btn-sm {
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 8px;
}

.btn-lg {
  font-size: 17px;
  padding: 18px 36px;
}

/* ---- Nav link ---- */
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.15s;
}

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

/* ---- Hero CTAs ---- */
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

/* ---- Closing CTAs ---- */
.closing-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero-ctas,
  .closing-ctas {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

/* ---- Waitlist form ---- */
.waitlist-block {
  margin: 0 auto 40px;
  max-width: 480px;
  text-align: center;
}

.waitlist-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.waitlist-row {
  display: flex;
  gap: 8px;
}

.waitlist-input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 16px;
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}

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

.waitlist-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.waitlist-btn {
  flex-shrink: 0;
}

.waitlist-subtext {
  font-size: 12px;
  color: var(--text-muted);
  min-height: 18px;
}

.waitlist-msg {
  font-size: 13px;
  color: var(--red);
  min-height: 18px;
}

.waitlist-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 10px;
  font-size: 14px;
  color: #22c55e;
}

@media (max-width: 768px) {
  .waitlist-row {
    flex-direction: column;
  }
  .waitlist-btn {
    width: 100%;
    justify-content: center;
  }
}