:root {
  --brand-50: #eef2ff;
  --brand-100: #e0e7ff;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;
  --ink: #18181b;
  --muted: #52525b;
  --subtle: #71717a;
  --line: #e4e4e7;
  --surface: #ffffff;
  --surface-alt: #fafafa;
  --code-bg: #0f0f14;
  --code-ink: #e4e4e7;
  --radius: 14px;
  --max: 1120px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface);
}

a {
  color: var(--brand-600);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img,
svg {
  display: block;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
}

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

.logo img {
  width: 32px;
  height: 32px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
}

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

.nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav .nav-link {
  display: none;
}

@media (min-width: 760px) {
  .nav .nav-link {
    display: inline;
  }
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

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

.button-primary {
  background: var(--brand-600);
  color: #fff;
}

.button-primary:hover {
  background: var(--brand-700);
}

.button-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: #d4d4d8;
  background: var(--surface-alt);
}

.nav .button {
  height: 36px;
  padding: 0 14px;
  color: #fff;
}

/* Hero */

.hero {
  padding: 88px 0 72px;
  background:
    radial-gradient(60% 50% at 50% 0%, var(--brand-50) 0%, rgba(255, 255, 255, 0) 100%);
}

.hero .container {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero .container {
    grid-template-columns: 1.05fr 1fr;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
  font-size: 0.85rem;
  font-weight: 600;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-600);
}

.hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 750;
}

.hero p.lead {
  margin: 0 0 32px;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Code window */

.code-window {
  border-radius: var(--radius);
  background: var(--code-bg);
  color: var(--code-ink);
  box-shadow: 0 24px 60px -24px rgba(24, 24, 27, 0.45);
  overflow: hidden;
  min-width: 0;
}

.code-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid #27272a;
  font-size: 0.8rem;
  color: #a1a1aa;
}

.code-window-bar span.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3f3f46;
}

.code-window-bar .title {
  margin-left: 10px;
}

.code-window pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.7;
}

.tok-cmd {
  color: #a5b4fc;
}

.tok-str {
  color: #86efac;
}

.tok-key {
  color: #fcd34d;
}

.tok-dim {
  color: #71717a;
}

/* Sections */

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-header {
  max-width: 40em;
  margin-bottom: 48px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-600);
  font-weight: 650;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Feature grid */

.grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 680px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.card h3 {
  margin: 16px 0 8px;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

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

.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-600);
}

.icon svg {
  width: 20px;
  height: 20px;
}

/* Steps */

.steps {
  display: grid;
  gap: 20px;
  counter-reset: step;
  padding: 0;
  margin: 0;
  list-style: none;
}

@media (min-width: 960px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  counter-increment: step;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-600);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.steps h3 {
  margin: 16px 0 8px;
  font-size: 1.05rem;
}

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

/* Lists */

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%234f46e5'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 0 1 0 1.4l-8 8a1 1 0 0 1-1.4 0l-4-4a1 1 0 1 1 1.4-1.4L8 12.6l7.3-7.3a1 1 0 0 1 1.4 0Z' clip-rule='evenodd'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.check-list strong {
  color: var(--ink);
}

.split {
  display: grid;
  gap: 48px;
  align-items: start;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.roadmap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.roadmap span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px dashed #d4d4d8;
  color: var(--muted);
  font-size: 0.9rem;
}

/* CTA */

.cta {
  padding: 56px 32px;
  border-radius: 20px;
  background: var(--brand-600);
  color: #fff;
  text-align: center;
}

.cta h2 {
  color: #fff;
}

.cta p {
  margin: 0 auto 28px;
  max-width: 36em;
  color: var(--brand-100);
  font-size: 1.05rem;
}

.cta .button-primary {
  background: #fff;
  color: var(--brand-700);
}

.cta .button-primary:hover {
  background: var(--brand-50);
}

.cta .button-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.cta .button-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cta .hero-actions {
  justify-content: center;
}

/* Footer */

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--subtle);
}

/* Legal pages */

.legal {
  padding: 64px 0 88px;
}

.legal .container {
  max-width: 760px;
}

.legal h1 {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.legal .updated {
  margin: 0 0 40px;
  color: var(--subtle);
}

.legal h2 {
  margin: 40px 0 12px;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.legal p,
.legal li {
  color: #3f3f46;
}

.legal ul {
  padding-left: 22px;
}

.legal li {
  margin-bottom: 6px;
}

/* 404 */

.not-found {
  padding: 120px 0;
  text-align: center;
}

.not-found h1 {
  margin: 0 0 12px;
  font-size: 2.4rem;
  letter-spacing: -0.02em;
}

.not-found p {
  margin: 0 0 28px;
  color: var(--muted);
}
