* {
  box-sizing: border-box
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif;
  color: #111;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 40%, #f0f9ff 100%);
  background-attachment: fixed
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px
}

header {
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, .1);
  position: sticky;
  top: 0;
  z-index: 50
}

/* hero placeholder only */
#hero {
  position: relative;
}

.hero-title {
  letter-spacing: -0.02em;
  /* elegant gradient for hero title */
  background: linear-gradient(90deg, #22d3ee 0%, #6366f1 40%, #a855f7 70%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ensure gradient stays on per-letter spans created by JS */
.hero-title span {
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  font-size: 32px;
  margin: 8px 0
}

.hero .lead {
  color: #555;
  max-width: 700px;
  margin: 8px auto
}

.hero .btn,
.pricing .btn,
.cta .btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  margin-top: 12px
}

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

.features .card,
.pricing .card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px
}

.features .card .icon {
  font-size: 20px;
  margin-bottom: 8px
}

.pricing .card.featured {
  border-color: var(--primary);
  transform: scale(1.05)
}

.cta {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 48px 16px
}

footer {
  background: #f8f9fa;
  padding: 24px 16px;
  text-align: center;
  color: #666;
  border-top: 1px solid #eee
}

/* Dark mode styles */
.dark body {
  color: #e5e7eb;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 40%, #334155 100%);
}

.dark header {
  background: rgba(15, 23, 42, .95);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.dark .features .card,
.dark .pricing .card {
  border-color: #374151;
  background: #1f2937;
}

.dark .hero .lead {
  color: #d1d5db;
}

.dark footer {
  background: #111827;
  color: #9ca3af;
  border-top: 1px solid #374151;
}

/* Pricing toggle buttons */
.pricing-toggle-btn {
  background: #f3f4f6;
  color: #6b7280;
}

.pricing-toggle-btn.active {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.dark .pricing-toggle-btn {
  background: #374151;
  color: #9ca3af;
}

.dark .pricing-toggle-btn.active {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
}