:root {
  --bg: #080b14;
  --surface: #0f1219;
  --surface-hover: #151a24;
  --border: rgba(139, 92, 246, 0.1);
  --text: #e2e8f0;
  --muted: #7a8ba8;
  --accent: #8b5cf6;
  --accent-glow: rgba(139, 92, 246, 0.15);
  --green: #22c55e;
  --font-display: 'JetBrains Mono', monospace;
  --font-body: 'Inter', system-ui, sans-serif;
  --glass-bg: linear-gradient(135deg, rgba(12, 16, 28, 0.75), rgba(8, 11, 20, 0.55));
  --glass-border: 1px solid rgba(139, 92, 246, 0.12);
  --glass-blur: blur(20px);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --glow-accent: 0 0 20px rgba(139, 92, 246, 0.15);
}

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

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(139, 92, 246, 0.5); }
* { scrollbar-width: thin; scrollbar-color: rgba(139, 92, 246, 0.3) transparent; }

html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 60% 50% at 15% 15%, rgba(139, 92, 246, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 85% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 55% 50%, rgba(139, 92, 246, 0.03) 0%, transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: linear-gradient(135deg, rgba(12, 16, 28, 0.85), rgba(8, 11, 20, 0.7));
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: var(--glass-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.nav-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 8px 18px;
  background: var(--accent);
  color: #fff !important;
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover {
  background: transparent;
  color: var(--accent) !important;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.btn-primary:hover {
  background: transparent;
  color: var(--accent);
}
.btn-ghost {
  background: var(--glass-bg);
  color: var(--muted);
  border: var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: var(--glow-accent);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  width: 100%;
  justify-content: center;
}
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-lg { padding: 14px 32px; font-size: 15px; }
.btn.disabled {
  opacity: 0.4;
  pointer-events: none;
  border-color: var(--border);
  color: var(--muted);
}

/* ── Sections ── */
.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-inner > h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.2;
}

/* ── Hero ── */
.hero {
  padding: 160px 24px 100px;
  text-align: center;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: 20px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--muted);
}
.hero-stat i { color: var(--accent); font-size: 15px; }

/* ── How It Works ── */
.how-it-works {
  padding: 100px 0;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.step-card {
  position: relative;
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.step-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: var(--glow-accent);
  transform: translateY(-2px);
}
.step-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.1);
  font-size: 20px;
  color: var(--accent);
}
.step-num {
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  opacity: 0.4;
}
.step-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.step-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Features ── */
.features {
  padding: 100px 0;
  background:
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(139, 92, 246, 0.04) 0%, transparent 70%),
    rgba(8, 11, 20, 0.5);
  border-top: var(--glass-border);
  border-bottom: var(--glass-border);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.feature-card {
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: 12px;
  padding: 24px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: var(--glow-accent);
  transform: translateY(-2px);
}
.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent);
  font-size: 17px;
  margin-bottom: 14px;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.feature-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Pricing ── */
.pricing {
  padding: 100px 0;
}
.pricing-sub {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 48px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
  max-width: 1060px;
  margin: 0 auto;
}
.price-card {
  position: relative;
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: 14px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.price-card .btn {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}
.price-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow), var(--glass-shadow);
}
.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.price-tier {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.price-for {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 24px;
  line-height: 1;
}
.price-dollar {
  font-size: 24px;
  font-weight: 600;
  vertical-align: top;
  line-height: 1.6;
}
.price-period {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
}
.price-features {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}
.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid rgba(139, 92, 246, 0.06);
}
.price-features li:last-child { border-bottom: none; }
.price-features li i {
  font-size: 12px;
  color: var(--green);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}
.price-features li .fa-clock { color: var(--muted); }

/* ── CTA ── */
.cta {
  padding: 100px 0;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 70%),
    rgba(8, 11, 20, 0.5);
  border-top: var(--glass-border);
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.cta-inner p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Footer ── */
.footer {
  padding: 40px 0;
  border-top: var(--glass-border);
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
}
.footer-logo {
  width: 22px;
  height: 22px;
  border-radius: 4px;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 13px;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-size: 12px;
  color: var(--muted);
  opacity: 0.6;
  flex: 1;
  text-align: right;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { padding: 120px 20px 60px; }
  .hero h1 { font-size: 32px; }
  .hero-br { display: none; }
  .hero-sub { font-size: 15px; }
  .hero-stats { gap: 20px; }

  .nav-links a:not(.nav-cta) { display: none; }

  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

  .section-inner > h2 { font-size: 24px; }

  .how-it-works,
  .features,
  .pricing,
  .cta { padding: 60px 0; }

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

@media (max-width: 480px) {
  .nav-brand { font-size: 17px; gap: 8px; }
  .nav-logo { width: 24px; height: 24px; }
  .nav-cta { padding: 7px 12px; font-size: 12px; white-space: nowrap; }
}

/* ── Nav active link ── */
.nav-active {
  color: var(--text) !important;
}

/* ── Docs layout ── */
.docs-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 60px;
  padding-left: 240px;
}

.docs-sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  width: 240px;
  height: calc(100vh - 60px);
  overflow-y: auto;
  border-right: var(--glass-border);
  background: linear-gradient(180deg, rgba(12, 16, 28, 0.9), rgba(8, 11, 20, 0.8));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: 10;
}
.docs-sidebar-inner {
  padding: 28px 20px;
}
.docs-sidebar-section {
  margin-bottom: 24px;
}
.docs-sidebar-heading {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin-bottom: 8px;
  padding-left: 10px;
}
.docs-sidebar-link {
  display: block;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s;
  line-height: 1.4;
}
.docs-sidebar-link:hover {
  color: var(--text);
  background: rgba(139, 92, 246, 0.06);
}
.docs-sidebar-link.active {
  color: var(--accent);
  background: rgba(139, 92, 246, 0.1);
}

.docs-content {
  flex: 1;
  min-width: 0;
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 64px 80px;
}

/* ── Docs sections ── */
.docs-section {
  margin-bottom: 64px;
  scroll-margin-top: 80px;
}
.docs-section h1 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  line-height: 1.15;
}
.docs-section h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: var(--glass-border);
}
.docs-section h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 10px;
}
.docs-section p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 14px;
}
.docs-intro {
  font-size: 17px !important;
  color: var(--muted) !important;
  max-width: 640px;
  margin-bottom: 32px !important;
}

/* ── Docs card grid ── */
.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.docs-card {
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.docs-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: var(--glow-accent);
  transform: translateY(-1px);
}
.docs-card-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent);
  font-size: 15px;
  margin-bottom: 12px;
}
.docs-card h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
}
.docs-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* ── Docs steps ── */
.docs-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}
.docs-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.docs-step-num {
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}
.docs-step-body h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
}
.docs-step-body p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* ── Docs tables ── */
.docs-table-wrap {
  overflow-x: auto;
  margin: 14px 0 20px;
}
.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.docs-table th,
.docs-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: var(--glass-border);
}
.docs-table th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  background: rgba(12, 16, 28, 0.5);
}
.docs-table td {
  color: var(--text);
}
.docs-table td code {
  font-family: var(--font-display);
  background: rgba(139, 92, 246, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--accent);
}

/* ── Docs lists ── */
.docs-list {
  margin: 10px 0 20px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}
.docs-list li {
  margin-bottom: 6px;
}
.docs-list code {
  font-family: var(--font-display);
  background: rgba(139, 92, 246, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--accent);
}

/* ── Docs code blocks ── */
.docs-code {
  margin: 14px 0 20px;
  border: var(--glass-border);
  border-radius: 10px;
  overflow: hidden;
}
.docs-code-label {
  background: rgba(12, 16, 28, 0.6);
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  border-bottom: var(--glass-border);
}
.docs-code pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  background: rgba(8, 11, 20, 0.8);
}
.docs-code code {
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}

/* ── Docs callouts ── */
.docs-callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 16px 0 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}
.docs-callout i {
  color: var(--accent);
  font-size: 16px;
  margin-top: 3px;
  flex-shrink: 0;
}
.docs-callout strong {
  color: var(--text);
}

/* ── Docs: inline code ── */
.docs-section p code,
.docs-step-body code {
  font-family: var(--font-display);
  background: rgba(139, 92, 246, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--accent);
}
.docs-section a {
  color: var(--accent);
  text-decoration: none;
}
.docs-section a:hover {
  text-decoration: underline;
}

/* ── Docs responsive ── */
@media (max-width: 1024px) {
  .docs-content {
    padding: 32px 32px 60px;
  }
  .docs-card-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .docs-sidebar {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 260px;
    height: calc(100vh - 60px);
    box-shadow: 4px 0 24px rgba(0,0,0,0.3);
  }
  .docs-sidebar.open {
    display: block;
  }
  .docs-layout {
    padding-left: 0;
  }
  .docs-content {
    padding: 24px 20px 60px;
  }
  .docs-section h1 { font-size: 28px; }
  .docs-section h2 { font-size: 22px; }
}
