:root {
  --bg: #0a0a0b;
  --surface: #13131a;
  --accent: #6366f1;
  --accent-light: #8b5cf6;
  --text-primary: #fafafa;
  --text-muted: #a1a1aa;
  --border: rgba(255, 255, 255, 0.05);
  --border-strong: rgba(255, 255, 255, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --max-w: 1152px;
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

ul {
  list-style: none;
}

main {
  flex: 1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: opacity 0.15s ease, background-color 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(to right, var(--accent), var(--accent-light));
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
}

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

.btn-lg {
  padding: 12px 24px;
  font-size: 16px;
}

.btn-block {
  display: block;
  width: 100%;
  padding: 12px;
  font-size: 14px;
  margin-top: 32px;
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.logo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 2px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 11, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  color: var(--text-muted);
}

.nav-links a {
  transition: color 0.15s ease;
}

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

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 96px 24px;
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    60% 50% at 50% 40%,
    rgba(99, 102, 241, 0.18) 0%,
    rgba(139, 92, 246, 0.1) 40%,
    transparent 70%
  );
  animation: glow-pulse 6s ease-in-out infinite;
}

.hero-glow-secondary {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
  background: radial-gradient(40% 30% at 80% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 60%),
    radial-gradient(40% 30% at 20% 80%, rgba(99, 102, 241, 0.12) 0%, transparent 60%);
}

@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 896px;
  margin: 0 auto;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 60px;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 72px;
  }
}

.gradient-text {
  background: linear-gradient(to right, #818cf8, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  max-width: 672px;
  margin: 24px auto 0;
  font-size: 18px;
  color: var(--text-muted);
  text-wrap: pretty;
}

@media (min-width: 640px) {
  .hero-sub {
    font-size: 20px;
  }
}

.hero-ctas {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

@media (min-width: 640px) {
  .hero-ctas {
    flex-direction: row;
    justify-content: center;
  }
}

.hero-ctas .btn {
  width: 100%;
}

@media (min-width: 640px) {
  .hero-ctas .btn {
    width: auto;
  }
}

.hero-note {
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Sections ---------- */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 96px 24px;
}

.section-narrow {
  max-width: 768px;
}

.section-head {
  max-width: 768px;
  margin: 0 auto;
  text-align: center;
}

.section-head-secondary {
  margin-top: 128px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 48px;
  }
}

.section-sub {
  margin-top: 16px;
  font-size: 18px;
  color: var(--text-muted);
}

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.15s ease;
}

.card.feature:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.card-title {
  font-size: 20px;
  font-weight: 600;
}

.card-desc {
  margin-top: 8px;
  color: var(--text-muted);
}

/* ---------- Steps ---------- */
.steps {
  margin-top: 64px;
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.1);
  color: #818cf8;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ---------- Features grid ---------- */
.features-grid {
  margin-top: 64px;
  display: grid;
  gap: 24px;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.icon {
  width: 24px;
  height: 24px;
}

.icon-sm {
  width: 20px;
  height: 20px;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  margin-top: 64px;
  display: grid;
  gap: 24px;
  align-items: start;
}

@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tier {
  position: relative;
  display: flex;
  flex-direction: column;
}

.tier-popular {
  border: none;
  box-shadow: 0 0 0 2px var(--accent);
}

.popular-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: linear-gradient(to right, var(--accent), var(--accent-light));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}

.tier-name {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.tier-price {
  margin-top: 16px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price {
  font-size: 36px;
  font-weight: 700;
}

.price-suffix {
  color: var(--text-muted);
}

.tier-leads {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #818cf8;
}

.tier-features {
  margin-top: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tier-features li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-muted);
}

.check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m5 12 5 5L20 7' stroke='%23818cf8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

/* ---------- FAQ ---------- */
.faq-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
}

.faq-question {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  text-align: left;
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.2s ease, opacity 0.2s ease;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-answer > div,
.faq-answer > p {
  overflow: hidden;
}

.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text-muted);
}

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

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-brand {
  max-width: 320px;
}

.footer-tag {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

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

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  color: var(--text-muted);
  transition: color 0.15s ease;
}

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

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 24px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Focus ---------- */
.btn:focus-visible,
.faq-question:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}