:root {
  --bg: #0f1115;
  --panel: #171a21;
  --panel-2: #1c212b;
  --border: #2a2f3a;
  --text: #e8eaed;
  --muted: #9aa0a6;
  --faint: #6b7280;
  --accent: #5b9fd4;
  --accent-hover: #6eaddc;
  --accent-dim: #3d6f96;
  --ok: #6abf69;
  --warn: #e0b35a;
  --err: #e57373;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 920px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

code, kbd {
  font-family: var(--mono);
  font-size: 0.88em;
  background: #0c0e12;
  padding: 0.12em 0.4em;
  border-radius: 4px;
  color: #c5d4e8;
}

pre {
  margin: 0;
  background: #0c0e12;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  overflow: auto;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.45;
  color: #d7dde8;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* —— Nav —— */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(15, 17, 21, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.brand {
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand span { color: var(--accent); font-weight: 500; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin-left: auto;
  font-size: 0.9rem;
}
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a.active { color: var(--text); }

/* —— Layout —— */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3.5rem;
  flex: 1;
  width: 100%;
}

h1 {
  font-size: clamp(1.55rem, 3.5vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.75rem;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.35rem 0 0.5rem;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.75rem;
  max-width: 42rem;
}

.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.65rem;
}

.muted { color: var(--muted); }
.faint { color: var(--faint); font-size: 0.85rem; }

/* —— Cards / panels —— */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.15rem;
}

.card h2:first-child,
.card .card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 0.85rem;
  font-weight: 600;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.feature {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.feature h3 { margin-top: 0; }
.feature p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* —— Tables —— */
.table-wrap { overflow-x: auto; margin: 0.75rem 0 1.25rem; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

td code { white-space: nowrap; }

/* —— Pricing —— */
.price-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  height: 100%;
}
.price-card.featured {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 1px rgba(91, 159, 212, 0.25);
}
.price-card .plan { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; margin: 0; }
.price-card .amount { font-size: 1.65rem; font-weight: 650; letter-spacing: -0.03em; margin: 0; }
.price-card .amount small { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.price-card ul {
  margin: 0.25rem 0 0.5rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}
.price-card li { margin-bottom: 0.35rem; }
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #243041;
  color: var(--accent);
  width: fit-content;
}
.badge.soon { background: #2a2a20; color: var(--warn); }

/* —— Buttons / CTA —— */
.btn {
  display: inline-block;
  appearance: none;
  border: none;
  background: var(--accent);
  color: #0a0c10;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.15rem;
  border-radius: 6px;
  cursor: default;
  text-decoration: none;
  line-height: 1.3;
}
.btn:hover { background: var(--accent-hover); color: #0a0c10; text-decoration: none; }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn.ghost:hover { border-color: var(--muted); color: var(--text); }
.btn.disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 1.25rem 0 0.5rem;
}

.note {
  font-size: 0.85rem;
  color: var(--faint);
  margin: 0.5rem 0 0;
}

hr.sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* —— Hero —— */
.hero {
  margin-bottom: 2rem;
}
.hero-actions { margin-top: 1.35rem; }

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.25rem 2rem;
  color: var(--faint);
  font-size: 0.75rem;
}
.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

ul.clean {
  margin: 0.5rem 0 1rem;
  padding-left: 1.2rem;
  color: var(--muted);
}
ul.clean li { margin-bottom: 0.4rem; }

.faq details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.65rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { margin-bottom: 0.55rem; }
.faq details p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.disclaimer {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 1rem 0 1.5rem;
}

@media (max-width: 560px) {
  .nav { margin-left: 0; width: 100%; }
  .site-header-inner { padding: 0.75rem 1rem; }
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-brand {
  color: var(--muted);
  font-size: 0.8rem;
}
.footer-brand strong { color: var(--text); font-weight: 600; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.8rem;
}
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--text); text-decoration: none; }
.footer-meta {
  color: var(--faint);
  font-size: 0.72rem;
  line-height: 1.4;
}

/* —— Before / after demo —— */
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
  align-items: stretch;
}
.before-after .ba-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.before-after .ba-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: var(--panel-2);
}
.before-after .ba-panel img {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
}
.before-after .ba-panel pre {
  border: none;
  border-radius: 0;
  flex: 1;
  margin: 0;
  max-height: 420px;
  font-size: 0.72rem;
}
@media (max-width: 720px) {
  .before-after { grid-template-columns: 1fr; }
  .before-after .ba-panel pre { max-height: 280px; }
}
