:root {
  color-scheme: light dark;
  --bg: #f7f5f2;
  --surface: #ffffff;
  --surface-2: #f1efe9;
  --text: #111116;
  --muted: #5b5b68;
  --accent: #0b6b5e;
  --accent-2: #f2c14e;
  --border: rgba(18, 18, 22, 0.08);
  --shadow: 0 20px 50px rgba(16, 16, 24, 0.12);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max: 1120px;
  font-size: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e14;
    --surface: #15151d;
    --surface-2: #1b1b25;
    --text: #f7f7fb;
    --muted: #b1b1c4;
    --accent: #51d6b6;
    --accent-2: #f4bd50;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Spline Sans", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 4.4rem);
}

h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(90%, var(--max));
  margin: 0 auto;
}

.bg-orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  z-index: -2;
}

.orb-a {
  background: radial-gradient(circle, rgba(81, 214, 182, 0.7), transparent 60%);
  top: -120px;
  left: -120px;
}

.orb-b {
  background: radial-gradient(circle, rgba(242, 193, 78, 0.6), transparent 65%);
  bottom: -180px;
  right: -120px;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.4;
  z-index: -3;
}

@media (prefers-color-scheme: dark) {
  .bg-grid {
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    opacity: 0.18;
  }
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
  z-index: 5;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
}

.brand-mark {
  background: var(--accent);
  color: #0b0b0f;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.brand-text {
  font-size: 1.05rem;
}

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

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

.btn {
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #0b0b0f;
  box-shadow: 0 10px 20px rgba(81, 214, 182, 0.3);
}

.btn.ghost {
  border-color: var(--border);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
}

.btn:hover {
  transform: translateY(-2px);
}

.hero {
  padding: 5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

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

.lead {
  font-size: 1.1rem;
  max-width: 38rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
}

.hero-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.meta-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.2rem;
}

.meta-value {
  color: var(--text);
  font-weight: 600;
}

.hero-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--muted);
}

.pill {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

pre {
  margin: 0;
  background: var(--surface-2);
  padding: 1rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  border: 1px solid var(--border);
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.85rem;
  color: var(--text);
}

.hero-card-foot {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.section {
  padding: 4.5rem 0;
}

.section-lead {
  max-width: 42rem;
}

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

.feature-card,
.code-block,
.faq-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.copy-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  font-size: 0.75rem;
  cursor: pointer;
  color: var(--muted);
}

.copy-btn:hover {
  color: var(--text);
}

.pricing-card {
  background: linear-gradient(120deg, rgba(81, 214, 182, 0.12), rgba(242, 193, 78, 0.18));
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border);
  display: grid;
  gap: 1.5rem;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
}

.pricing-note {
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--text);
  color: var(--bg);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  font-size: 0.85rem;
  z-index: 10;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 700px) {
  .hero {
    padding-top: 3.5rem;
  }

  .pricing-card {
    padding: 2rem;
  }

  .toast {
    right: 1rem;
    left: 1rem;
    text-align: center;
  }
}
