/* === Variables & Reset === */
:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #16161f;
  --border: #1e1e2e;
  --text: #e4e4e7;
  --text-muted: #71717a;
  --primary: #3B82F6;
  --primary-hover: #2563EB;
  --primary-glow: rgba(59, 130, 246, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  font-family: var(--font);
}
.btn:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 4px 20px var(--primary-glow); }
.btn-sm { padding: 8px 20px; font-size: 0.875rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--bg-elevated); border-color: var(--text-muted); transform: translateY(-1px); box-shadow: none; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-glow); transform: translateY(-1px); box-shadow: none; }
.btn-full { width: 100%; }

/* === Nav === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a { font-size: 0.9rem; color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === Hero === */
.hero {
  padding: 160px 0 80px;
  text-align: center;
}
.badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-glow);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(to bottom, #fff 40%, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  max-width: 560px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.hero-visual { margin-top: 60px; }
.code-window {
  max-width: 540px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
}
.code-dots {
  display: flex;
  gap: 6px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.code-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.code-dots span:first-child { background: #ef4444; }
.code-dots span:nth-child(2) { background: #eab308; }
.code-dots span:last-child { background: #22c55e; }
.code-window pre {
  padding: 20px;
  font-size: 0.85rem;
  line-height: 1.7;
  overflow-x: auto;
}
.code-window code { font-family: 'SF Mono', 'Fira Code', monospace; color: var(--text-muted); }
.code-window .kw { color: var(--primary); font-weight: 600; }
.code-window .cm { color: #22c55e; }

/* === Section Headers === */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto;
}

/* === Features === */
.features { padding: 100px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.2s;
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-glow);
  border-radius: var(--radius-sm);
  color: var(--primary);
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* === How It Works === */
.how-it-works { padding: 100px 0; background: var(--bg-elevated); }
.steps { display: flex; align-items: flex-start; justify-content: center; gap: 16px; }
.step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 32px 24px;
}
.step-num {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.step-icon { color: var(--text-muted); margin-bottom: 16px; }
.step h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--text-muted); }
.step-arrow {
  display: flex;
  align-items: center;
  padding-top: 80px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* === Pricing === */
.pricing { padding: 100px 0; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.price-card {
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  transition: border-color 0.3s;
}
.price-card:hover { border-color: rgba(59, 130, 246, 0.4); }
.price-card.popular { border-color: var(--primary); }
.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
  white-space: nowrap;
}
.price-tier { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.price-amount { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.price-amount .currency { font-size: 1.5rem; vertical-align: super; margin-right: 2px; }
.price-amount .period { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.price-amount .custom { font-size: 2rem; }
.price-then { font-size: 0.95rem; color: var(--text); margin-bottom: 12px; }
.price-then strong { color: #22c55e; font-weight: 700; }
.price-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 24px; }
.price-features { margin-bottom: 28px; }
.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* === Testimonials === */
.testimonials { padding: 100px 0; background: var(--bg-elevated); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stars { color: #eab308; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card > p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-glow);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.9rem; }
.testimonial-author span { font-size: 0.8rem; color: var(--text-muted); }

/* === FAQ === */
.faq { padding: 100px 0; }
.faq-list { max-width: 680px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
}
.faq-q svg { flex-shrink: 0; color: var(--text-muted); transition: transform 0.3s; }
.faq-item.active .faq-q svg { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.active .faq-a { max-height: 200px; }
.faq-a p { padding-bottom: 20px; font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* === CTA === */
.cta-section {
  padding: 100px 0;
  text-align: center;
  background: var(--bg-elevated);
}
.cta-section h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: 12px; }
.cta-section > .container > p { color: var(--text-muted); margin-bottom: 32px; font-size: 1.05rem; }
.cta-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
}
.cta-form input {
  flex: 1;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}
.cta-form input:focus { border-color: var(--primary); }
.cta-form input::placeholder { color: var(--text-muted); }
.form-msg { margin-top: 12px; font-size: 0.85rem; min-height: 20px; }
.form-msg.success { color: #22c55e; }
.form-msg.error { color: #ef4444; }

/* === Footer === */
.footer { padding: 60px 0 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 12px; }
.footer-links { display: flex; gap: 64px; }
.footer-links h4 { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 16px; }
.footer-links a { display: block; font-size: 0.9rem; color: var(--text-muted); padding: 4px 0; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { padding: 24px 0; margin-top: 40px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

/* === Mobile === */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 16px;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .cta-form { flex-direction: column; }
  .footer-inner { flex-direction: column; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
}

@media (max-width: 480px) {
  .hero { padding: 120px 0 60px; }
}
