:root {
  --bg: #0f1419;
  --bg-raised: #151922;
  --bg-card: #1a2332;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(203, 213, 225, 0.28);
  --brand: #e8ecf4;
  --brand-soft: #94a3b8;
  --brand-dim: rgba(148, 163, 184, 0.12);
  --brand-glow: #cbd5e1;
  --ok: #86b89a;
  --radius: 6px;
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -8%, #1a2030 0%, transparent 58%),
    var(--bg);
}

a {
  color: var(--brand-glow);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  color: #e8ecf4;
}

.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(15, 20, 25, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: block;
  border-radius: var(--radius);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  border-radius: var(--radius);
  padding: 0.45rem 0.55rem;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 1rem;
  border-top: 1px solid var(--border);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: var(--muted);
  padding: 0.35rem 0;
  text-decoration: none;
}

.mobile-menu a:hover {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--brand);
  color: #0f1419;
  border-color: var(--brand);
}

.btn-primary:hover {
  background: #f8fafc;
  border-color: #f8fafc;
  color: #0f1419;
}

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

.btn-secondary:hover {
  background: var(--brand-dim);
  border-color: var(--brand);
}

.btn-lg {
  padding: 0.75rem 1.35rem;
  font-size: 0.95rem;
}

/* Hero */
.hero {
  padding: 4.5rem 0 5rem;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 3.5rem;
  align-items: start;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-soft);
  margin: 0 0 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.2vw, 3.1rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
  color: var(--text);
}

.hero-lead {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 34rem;
  margin: 0 0 2rem;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.facts li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.facts strong {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.facts li > span,
.facts li {
  color: var(--text);
}

.hero-aside {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 2px solid var(--brand-soft);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}

.hero-aside h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 1.1rem;
  color: var(--text);
}

.hero-aside ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-aside li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

.hero-aside li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
}

.hero-aside li:first-child {
  border-top: 0;
  padding-top: 0;
}

.hero-aside li:first-child::before {
  top: 0.4rem;
}

/* Sections */
section {
  padding: 4.5rem 0;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-soft);
  margin: 0 0 0.65rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 500;
  margin: 0 0 0.85rem;
  letter-spacing: -0.01em;
}

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

.alt-bg {
  background: var(--bg-raised);
  border-block: 1px solid var(--border);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card {
  background: var(--bg-card);
  padding: 1.35rem 1.4rem;
  border: none;
  border-radius: 0;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

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

/* Premium table */
.split-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.split-table th,
.split-table td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.split-table th {
  background: var(--bg-raised);
  font-weight: 500;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.split-table tr:last-child td {
  border-bottom: 0;
}

.split-table td {
  background: var(--bg-card);
}

.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  border: 1px solid var(--border-strong);
  color: var(--brand);
  background: var(--brand-dim);
}

.tag-free {
  border-color: var(--border);
  color: var(--muted);
  background: transparent;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.15rem;
  display: flex;
  flex-direction: column;
}

.price-card.popular {
  border-color: var(--brand-soft);
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.1) 0%, var(--bg-card) 42%);
}

.price-badge {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.price-name {
  font-weight: 500;
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  margin: 0;
  line-height: 1;
  color: var(--text);
}

.price-amount sup {
  font-size: 0.85rem;
  font-family: var(--font);
  font-weight: 500;
}

.price-period {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.35rem 0 1rem;
}

.price-features {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  font-size: 0.82rem;
  color: var(--muted);
  flex: 1;
}

.price-cta {
  margin-top: auto;
}

.price-cta .btn {
  width: 100%;
}

.price-card.popular .btn-primary {
  background: var(--brand);
  color: #0f1419;
}

/* Compare */
.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.compare-table th,
.compare-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.compare-table th {
  background: var(--bg-raised);
  font-weight: 500;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-table td {
  background: var(--bg-card);
}

.compare-table .us {
  color: var(--text);
  font-weight: 500;
}

.compare-table .yes {
  color: var(--ok);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.step {
  padding: 0 0 0 1.25rem;
  border-left: 1px solid var(--border-strong);
}

.step-num {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--brand-soft);
  margin-bottom: 0.65rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 500;
}

.step p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.84em;
  color: var(--text);
  background: var(--bg-raised);
  padding: 0.12em 0.4em;
  border-radius: 3px;
  border: 1px solid var(--border);
}

/* CTA */
.cta-block {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  background: var(--bg-card);
}

.cta-block h2 {
  font-family: var(--font-display);
  margin: 0 0 0.65rem;
  font-size: 1.75rem;
  font-weight: 500;
}

.cta-block p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.cta-block a[style] {
  color: var(--brand) !important;
}

.cta-block .btn-primary {
  background: var(--brand);
  color: #0f1419;
}

.cta-block .btn-secondary {
  border-color: var(--border-strong);
  color: var(--text);
}

/* FAQ */
.faq {
  max-width: 42rem;
  margin-inline: auto;
}

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

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 500;
  font-size: 0.98rem;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}

.faq-q svg {
  flex-shrink: 0;
  color: var(--muted);
}

.faq-a {
  display: none;
  padding: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

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

.faq-item.open .faq-q svg {
  transform: rotate(180deg);
  color: var(--brand);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  background: var(--bg-raised);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-tagline {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 20rem;
  margin: 1rem 0 0;
  line-height: 1.6;
}

.footer h4 {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li {
  margin: 0.4rem 0;
  font-size: 0.9rem;
}

.footer li a {
  color: var(--muted);
  text-decoration: none;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  gap: 1.25rem;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
}

/* Legal & about */
.legal-shell {
  width: min(720px, 92vw);
  margin-inline: auto;
  padding: 4rem 0 5rem;
}

.legal-shell .section-label {
  margin-bottom: 1rem;
}

.legal-shell h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 500;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

.legal-shell h2 {
  font-size: 1.05rem;
  font-weight: 500;
  margin: 2.5rem 0 0.75rem;
  color: var(--text);
}

.legal-shell p,
.legal-shell li {
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-shell ul {
  padding-left: 1.25rem;
}

.legal-shell p strong,
.legal-shell li strong {
  color: var(--text);
}

.legal-meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
}

.legal-toc strong {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-soft);
  font-weight: 500;
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.legal-toc a {
  color: var(--muted);
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--text);
}

.code-chip {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.88em;
  background: var(--bg-raised);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  border: 1px solid var(--border);
  color: var(--text);
}

.origin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.origin-card {
  background: var(--bg-card);
  padding: 1.25rem 1.35rem;
}

.origin-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-weight: 500;
  font-size: 1.1rem;
}

.origin-links a {
  color: var(--brand);
}

.page-main {
  padding: 4rem 0 5rem;
}

.page-main .section-lead {
  margin-bottom: 1.5rem;
}

@media (max-width: 960px) {
  .hero-grid,
  .grid-3,
  .pricing-grid,
  .steps,
  .origin-grid {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .facts li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
