:root {
  --bg: #0f172a;
  --bg-elevated: #1e293b;
  --bg-card: #1e293b;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --border: #334155;
  --radius: 10px;
  --max-w: 1120px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font: 15px/1.6 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.9; }

img { max-width: 100%; height: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.logo img {
  display: block;
  height: 28px;
  width: auto;
  max-width: none;
}

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

.nav-main {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  font-size: 14px;
}

.nav-main a {
  color: var(--text-muted);
  transition: color 0.15s;
}

.nav-main a:hover {
  color: var(--text);
  opacity: 1;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  opacity: 1;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--bg-elevated);
  opacity: 1;
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.menu-toggle svg {
  display: block;
  width: 24px;
  height: 24px;
}

/* Main layout */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 80px;
}

section {
  padding: 64px 0;
}

section:first-of-type {
  padding-top: 48px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-align: center;
}

.section-subtitle {
  color: var(--text-muted);
  text-align: center;
  margin: 0 auto 40px;
  max-width: 560px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 64px 0 48px;
}

.eyebrow {
  font-size: 13px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 20px;
}

.hero .subtitle {
  font-size: 17px;
  color: var(--text-muted);
  margin: 0 auto 32px;
  max-width: 520px;
}

.hero-cta {
  display: block;
  text-align: center;
}

.hero-cta-primary {
  display: block;
  margin-bottom: 20px;
}

.hero-cta-secondary {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.header-cta .btn-register {
  border-color: var(--border);
}

/* Trust strip */
.trust-strip {
  padding-top: 32px;
  padding-bottom: 32px;
}

.card-compact {
  padding: 20px;
}

.card-compact h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.footer-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.85;
}

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.pricing-mission-note a {
  color: var(--accent);
}

.pricing-mission-note a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Free-only pricing card */
.pricing-free-card {
  max-width: 520px;
  margin: 0 auto 40px;
  padding: 32px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.08);
}

.pricing-free-header {
  margin-bottom: 24px;
}

.pricing-free-badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(59, 130, 246, 0.12);
  border-radius: 999px;
  margin-bottom: 12px;
}

.pricing-free-price {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pricing-free-price span {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-free-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  text-align: left;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.pricing-free-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.pricing-free-features li:last-child {
  border-bottom: none;
}

.pricing-free-features li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 600;
}

.pricing-mission {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pricing-mission h3 {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
}

.pricing-mission p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.pricing-mission p:last-child {
  margin-bottom: 0;
}

.pricing-mission strong {
  color: var(--text);
  font-weight: 500;
}

.pricing-mission-note {
  margin-top: 16px !important;
  font-size: 13px !important;
  text-align: center;
}

/* Pricing table (legacy — kept if reintroduced) */
.pricing-table-wrap {
  overflow-x: auto;
  margin: 0 -8px;
  padding: 0 8px 8px;
}

.pricing-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.pricing-table th,
.pricing-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
}

.pricing-table thead th {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 20px 16px;
}

.pricing-feature-col {
  width: 160px;
  min-width: 140px;
}

.pricing-table tbody th[scope="row"] {
  text-align: left;
  color: var(--text-muted);
  font-weight: 500;
  background: rgba(15, 23, 42, 0.4);
}

.pricing-table tbody tr:last-child th,
.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.plan-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.plan-audience {
  font-size: 12px;
  color: var(--text-muted);
}

.plan-highlight {
  background: rgba(59, 130, 246, 0.08);
}

.pricing-row-price td,
.pricing-row-price th[scope="row"] {
  font-size: 15px;
}

.badge-soon {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(59, 130, 246, 0.15);
  border-radius: 999px;
  vertical-align: middle;
}

.pricing-row-cta td {
  padding: 20px 12px;
}

.btn-block {
  width: 100%;
  max-width: 140px;
  margin: 0 auto;
  font-size: 13px;
  padding: 8px 12px;
}

.btn-disabled {
  opacity: 0.7;
  cursor: default;
  pointer-events: none;
}

.pricing-footnotes {
  margin: 20px auto 0;
  max-width: 720px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: left;
}

/* Engine tags */
.engine-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.engine-tag {
  padding: 10px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 24px 16px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 16px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.faq-question:hover { color: var(--accent); }

.faq-question .chevron {
  flex-shrink: 0;
  transition: transform 0.2s;
  color: var(--text-muted);
}

.faq-item.open .faq-question .chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 0 18px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  display: block;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

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

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

/* Mobile */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .nav-main,
  .header-cta {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 12px;
  }

  .site-header.menu-open .nav-main,
  .site-header.menu-open .header-cta {
    display: flex;
  }

  .site-header.menu-open .header-cta {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-left: 0;
    width: 100%;
  }

  .site-header.menu-open .header-cta .btn {
    flex: 1;
  }

  .header-inner {
    flex-wrap: wrap;
    position: relative;
  }

  .card-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .pricing-table {
    font-size: 13px;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 10px 8px;
  }

  section { padding: 48px 0; }
}
