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

:root {
  --bg: #0a0a0b;
  --surface: #111113;
  --surface-2: #1a1a1e;
  --border: #2a2a2e;
  --text: #e8e8ed;
  --text-muted: #8b8b96;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --green: #22c55e;
  --red: #ef4444;
  --radius: 8px;
  --radius-lg: 12px;
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

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

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

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

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

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

.mobile-menu {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn:hover { border-color: var(--text-muted); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface-2);
}

.btn-sm { padding: 6px 14px; font-size: 0.8125rem; }
.btn-lg { padding: 12px 24px; font-size: 1rem; }

/* ── Hero ── */
.hero {
  padding: 160px 0 80px;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 4px 14px;
  font-size: 0.8125rem;
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 20px;
}

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

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

/* ── Metric Cards (Hero Visual) ── */
.metric-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.metric-trend {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Sections ── */
section { padding: 100px 0; }

h2 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 56px;
}

/* ── Features ── */
.features { background: var(--surface); }

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

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

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

.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;
}

/* ── Metrics Section ── */
.metrics-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.metrics-group h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.metrics-group li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 8px 0;
}

/* ── Pricing ── */
.pricing { background: var(--surface); }

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

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

.pricing-card.featured {
  border-color: var(--accent);
}

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

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

.price {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.price-period {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-card ul {
  margin-bottom: 28px;
}

.pricing-card li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.pricing-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 0.8rem;
}

.pricing-card .btn { width: 100%; justify-content: center; }

/* ── CTA ── */
.cta {
  text-align: center;
  padding: 100px 0;
}

.cta h2 {
  margin-bottom: 12px;
}

.cta p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 8px;
}

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

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.25rem; }
  .hero-sub { font-size: 1rem; }

  .metric-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .feature-grid { grid-template-columns: 1fr; }
  .metrics-list { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
  }

  .nav-links.open { display: flex; }
  .mobile-menu { display: block; }

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

  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
}

@media (max-width: 480px) {
  .metric-cards { grid-template-columns: 1fr; }
  .metrics-list { grid-template-columns: 1fr; }
}
