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

:root {
  --bg: #080808;
  --bg-2: #111118;
  --bg-3: #1a1a24;
  --border: #2a2a3a;
  --text: #e8e8f0;
  --text-muted: #888899;
  --accent: #f5a623;
  --accent-hover: #f7b84b;
  --accent-blue: #38bdf8;
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #eab308;
}

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text-muted); line-height: 1.75; }

code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.875em;
  color: var(--accent-blue);
}

pre {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
  font-size: 0.875rem;
}

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

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #000;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-accent { background: rgba(245,166,35,0.15); color: var(--accent); border: 1px solid rgba(245,166,35,0.3); }
.badge-blue { background: rgba(56,189,248,0.1); color: var(--accent-blue); border: 1px solid rgba(56,189,248,0.2); }
.badge-green { background: rgba(34,197,94,0.1); color: var(--green); border: 1px solid rgba(34,197,94,0.2); }

.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }

.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

.check-yes { color: var(--green); }
.check-no  { color: var(--red); opacity: 0.6; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 4rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--bg-3);
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
table tr:last-child td { border-bottom: none; }
table tr:hover td { background: rgba(255,255,255,0.02); }

.faq { display: flex; flex-direction: column; gap: 1rem; }
.faq-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}
.faq-item h4 { color: var(--text); margin-bottom: 0.5rem; font-size: 1rem; }
.faq-item p { margin: 0; }

.hero {
  padding: 6rem 0 4rem;
  text-align: center;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero p { font-size: 1.2rem; max-width: 640px; margin: 0 auto 2rem; }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.page-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

/* Comparison tables */
.compare-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }
.compare-table { min-width: 560px; }
.compare-table th:first-child { width: 45%; }
.compare-table td:not(:first-child),
.compare-table th:not(:first-child) { text-align: center; width: calc(55% / 2); }

/* Pricing cards */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; align-items: start; }
.pricing-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pricing-card.featured {
  border-color: var(--accent);
  position: relative;
}
.pricing-card .plan-name { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.5rem; }
.pricing-card .price { font-size: 2.5rem; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 0.25rem; }
.pricing-card .price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.pricing-card .price-equiv { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1.5rem; min-height: 1.25rem; }
.pricing-card .plan-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; line-height: 1.5; }
.pricing-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 2rem; flex: 1; }
.pricing-card li { display: flex; gap: 0.5rem; font-size: 0.9rem; color: var(--text-muted); }
.pricing-card li .icon { flex-shrink: 0; margin-top: 0.1rem; }
.pricing-card .btn { width: 100%; text-align: center; }

/* Check list items */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.check-list li { display: flex; gap: 0.6rem; color: var(--text-muted); }
.check-list li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* Feature gate table */
.feature-table-section { margin-top: 0.5rem; }
.feature-table-section th.section-header {
  background: var(--bg-3);
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 1rem;
}

@media (max-width: 640px) {
  section { padding: 3rem 0; }
  .hero { padding: 3rem 0 2rem; }
  .pricing-grid { grid-template-columns: 1fr; }
}
