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

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --bg: #09090b;
  --bg-raised: #18181b;
  --bg-card: #1c1c21;
  --border: #27272a;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
}

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

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

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

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

.btn-ghost:hover {
  background: var(--bg-raised);
  color: var(--text);
  border-color: var(--text-dim);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 100%;
}

.btn-outline:hover {
  background: var(--bg-raised);
  border-color: var(--primary);
}

/* === Hero === */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 24px 80px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-light);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-light), #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 64px;
}

.stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* === Inbox Preview === */
.hero-visual {
  max-width: 680px;
  margin: 0 auto;
  perspective: 1000px;
}

.inbox-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03),
    0 20px 60px -12px rgba(0,0,0,0.5),
    0 0 120px -40px rgba(99, 102, 241, 0.15);
  transform: rotateX(2deg);
  transition: transform 0.4s ease;
}

.inbox-preview:hover {
  transform: rotateX(0deg);
}

.inbox-header {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.inbox-dots {
  display: flex;
  gap: 6px;
  margin-right: 16px;
}

.inbox-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.inbox-dots span:first-child { background: #ef4444; }
.inbox-dots span:nth-child(2) { background: #eab308; }
.inbox-dots span:last-child { background: #22c55e; }

.inbox-title {
  font-weight: 600;
  font-size: 0.9rem;
  flex: 1;
}

.inbox-count {
  font-size: 0.8rem;
  color: var(--primary-light);
  background: rgba(99, 102, 241, 0.12);
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 500;
}

.inbox-list {
  padding: 4px 0;
}

.inbox-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
  cursor: default;
}

.inbox-item:last-child {
  border-bottom: none;
}

.inbox-item:hover {
  background: rgba(255,255,255,0.02);
}

.inbox-item.unread {
  background: rgba(99, 102, 241, 0.04);
}

.inbox-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: white;
  flex-shrink: 0;
  margin-top: 2px;
}

.inbox-content {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.inbox-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.inbox-sender {
  font-weight: 600;
  font-size: 0.9rem;
}

.inbox-time {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.inbox-subject {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.inbox-snippet {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === Sections === */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* === Features === */
.features {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
}

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

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

.feature-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px -12px rgba(99, 102, 241, 0.15);
}

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

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

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* === Pricing === */
.pricing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
}

.price-card.popular {
  border-color: var(--primary);
  box-shadow: 0 0 60px -20px rgba(99, 102, 241, 0.3);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 100px;
}

.price-tier {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.price-currency {
  font-size: 1.5rem;
  vertical-align: super;
  color: var(--text-muted);
}

.price-period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dim);
}

.price-features {
  list-style: none;
  margin-bottom: 32px;
}

.price-features li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-features li::before {
  content: '';
  width: 18px;
  height: 18px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.price-card .btn {
  width: 100%;
}

/* === Waitlist === */
.waitlist {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 120px;
}

.waitlist-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
}

.waitlist-card h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.waitlist-card > p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

.waitlist-form input {
  flex: 1;
  padding: 14px 18px;
  font-size: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.waitlist-form input:focus {
  border-color: var(--primary);
}

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

.waitlist-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.waitlist-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  color: #22c55e;
  font-weight: 500;
}

.waitlist-success svg {
  width: 22px;
  height: 22px;
}

/* === Footer === */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 24px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  margin-bottom: 48px;
}

.footer-tagline {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 12px;
}

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

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 4px 0;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.made-with-love {
  color: var(--text-dim);
}

.made-with-love .heart {
  color: #ef4444;
}

/* === Responsive === */
@media (max-width: 768px) {
  .nav-links a:not(.btn) {
    display: none;
  }

  .hero {
    padding: 120px 20px 60px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-num {
    font-size: 1.2rem;
  }

  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    gap: 40px;
  }

  .footer-links {
    gap: 40px;
  }
}
