:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --bg-strong: #eef2ff;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: rgba(15, 23, 42, 0.12);
  --primary: #1f3bb3;
  --primary-strong: #19308f;
  --accent: #6d5efc;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: radial-gradient(900px 500px at 5% -10%, rgba(109, 94, 252, 0.15), transparent 60%),
              radial-gradient(800px 600px at 100% 0%, rgba(31, 59, 179, 0.14), transparent 55%),
              var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
@media (max-width: 800px) { .section { padding: 56px 0; } }

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1f3bb3, #6d5efc);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  padding: 6px 10px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.nav-links a:hover { background: rgba(31, 59, 179, 0.08); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #1f3bb3, #6d5efc);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(31, 59, 179, 0.2);
}

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

.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12); }
.btn:focus-visible, a:focus-visible { outline: 2px solid #6d5efc; outline-offset: 2px; }

.lang-toggle {
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid rgba(31, 59, 179, 0.2);
  background: #fff;
  font-weight: 600;
  font-size: 12px;
}

.hero {
  padding: 96px 0 80px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -120px 0 0 0;
  background: linear-gradient(135deg, rgba(31, 59, 179, 0.14), rgba(109, 94, 252, 0.12));
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

h1 {
  font-size: 44px;
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

@media (max-width: 720px) { h1 { font-size: 32px; } }

.sub {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 22px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.micro { font-size: 13px; color: var(--muted); margin-top: 12px; }
.disclaimer { font-size: 12px; color: var(--muted); margin-top: 6px; }

.hero-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero-card ul { margin: 0; padding-left: 18px; color: var(--muted); }

.section-title {
  font-size: 28px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.section-sub { color: var(--muted); margin: 0 0 28px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12); }

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

.code-mini {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  background: rgba(109, 94, 252, 0.08);
  border: 1px solid rgba(109, 94, 252, 0.2);
  font-family: var(--mono);
}

.progress {
  position: relative;
  margin: 18px 0 28px;
  height: 22px;
}

.progress-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(31, 59, 179, 0.15), rgba(109, 94, 252, 0.2));
  border-radius: 999px;
}

.progress-nodes {
  position: relative;
  display: flex;
  justify-content: space-between;
}

.progress-node {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #1f3bb3;
  transform: translateY(-4px);
}

.progress-pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, #6d5efc, #1f3bb3);
  transform: translateY(-50%);
  animation: pulse-move 2.8s infinite ease-in-out;
}

@keyframes pulse-move {
  0% { left: 0; opacity: 0.6; }
  50% { opacity: 1; }
  100% { left: calc(100% - 16px); opacity: 0.6; }
}

@media (prefers-reduced-motion: reduce) {
  .progress-pulse { animation: none; }
  .card, .btn { transition: none; }
}

.bullets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  padding-left: 0;
  list-style: none;
}

@media (max-width: 720px) { .bullets { grid-template-columns: 1fr; } }

.bullets li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
}

.bullet-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(109, 94, 252, 0.12);
  border: 1px solid rgba(109, 94, 252, 0.3);
  display: grid;
  place-items: center;
  flex: 0 0 18px;
}

.note {
  margin-top: 20px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(109, 94, 252, 0.25);
  background: rgba(109, 94, 252, 0.08);
}

.note h4 { margin: 0 0 6px; font-size: 14px; }

.code-block {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: #0b1120;
  color: #e2e8f0;
  padding: 18px;
  font-family: var(--mono);
  overflow-x: auto;
}

.code-block pre { margin: 0; white-space: pre; }

.code-label {
  font-size: 11px;
  color: rgba(226, 232, 240, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.code-block .tok-cmd { color: #93c5fd; }
.code-block .tok-flag { color: #c084fc; }
.code-block .tok-str { color: #86efac; }
.code-block .tok-key { color: #fda4af; }

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.copy-btn:focus-visible { outline: 2px solid #93c5fd; }

.best-practices {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}

.best-practices li { margin: 6px 0; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 800px) { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }

.use-cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1000px) { .use-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .use-cases { grid-template-columns: 1fr; } }

.faq-list { display: grid; gap: 8px; }

.faq-item {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  padding: 8px 16px;
  box-shadow: var(--shadow);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(31, 59, 179, 0.2);
  display: grid;
  place-items: center;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  color: var(--muted);
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 240px;
  opacity: 1;
  padding-bottom: 12px;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.footer {
  padding: 40px 0 56px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.small-print { margin-top: 12px; font-size: 12px; color: var(--muted); }
