:root {
  color-scheme: light dark;
  --bg: #f5f6f8;
  --panel: #ffffff;
  --panel-2: #f0f1f4;
  --border: #e3e5ea;
  --text: #151821;
  --muted: #687080;
  --faint: #9aa1ae;
  --accent: #6252ee;
  --accent-2: #9b5cf6;
  --accent-soft: rgba(98, 82, 238, 0.1);
  --ok: #16a34a;
  --grad: linear-gradient(135deg, #5b4bf0 0%, #8b5cf6 60%, #c056e8 100%);
  --shadow: 0 30px 80px -20px rgba(30, 17, 80, 0.35), 0 6px 16px rgba(16, 24, 40, 0.08);
  --radius: 14px;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f14;
    --panel: #161821;
    --panel-2: #1d202b;
    --border: #272a37;
    --text: #e8eaf0;
    --muted: #9aa1b2;
    --faint: #626877;
    --accent: #8576ff;
    --accent-soft: rgba(133, 118, 255, 0.14);
    --ok: #4ade80;
    --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 6px 16px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: -20vh -10vw auto;
  height: 80vh;
  background: radial-gradient(60% 60% at 70% 20%, rgba(139, 92, 246, 0.18), transparent 70%),
              radial-gradient(40% 50% at 20% 10%, rgba(91, 75, 240, 0.14), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
a { color: var(--accent); text-decoration: none; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--accent-soft); padding: 0.1em 0.35em; border-radius: 5px; }

.nav, main, .footer { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.nav nav { display: flex; align-items: center; gap: 24px; }
.nav nav a:not(.btn) { color: var(--muted); font-size: 15px; }
.nav nav a:not(.btn):hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 22px; border-radius: 10px;
  background: var(--grad); color: #fff; font-weight: 600; font-size: 15px;
  box-shadow: 0 8px 24px -8px rgba(98, 82, 238, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(98, 82, 238, 0.7); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-ghost { background: var(--panel); color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.btn-ghost:hover { box-shadow: none; border-color: var(--accent); }

.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 64px 0 88px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: 0.02em; margin: 0 0 14px; }
h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.06; letter-spacing: -0.03em; margin: 0 0 20px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--muted); max-width: 540px; margin: 0 0 30px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.get .downloads { margin: -12px 0 40px; }
.chips { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13px; color: var(--muted); border: 1px solid var(--border); background: var(--panel); padding: 4px 12px; border-radius: 999px; }

/* App mock */
.mock { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; font-size: 13px; }
.mock-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: var(--panel-2); border-bottom: 1px solid var(--border); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.mock-bar i:nth-child(1) { background: #ff5f57; }
.mock-bar i:nth-child(2) { background: #febc2e; }
.mock-bar i:nth-child(3) { background: #28c840; }
.mock-bar span { margin-left: 10px; color: var(--muted); font-size: 12px; }
.mock-tools { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.pill { padding: 3px 10px; border-radius: 6px; border: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.pill-accent { background: var(--grad); color: #fff; border-color: transparent; }
.row { display: grid; grid-template-columns: 1fr 1.15fr 32px; gap: 12px; padding: 0 14px; height: 34px; align-items: center; border-bottom: 1px solid var(--border); }
.row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.head { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; height: 30px; }
.row.sel { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
.row em { font-style: normal; font-size: 10px; font-weight: 700; color: #fff; background: #dc2626; border-radius: 4px; padding: 1px 4px; margin-left: 4px; }
.row .ok { color: var(--ok); font-weight: 700; text-align: center; }
.row .faint { color: var(--faint); }
.caret { display: inline-block; width: 1.5px; height: 14px; background: var(--accent); margin-left: 1px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } html { scroll-behavior: auto; } }
.mock-status { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: var(--muted); font-size: 12px; }
.bar { flex: 0 0 120px; height: 6px; border-radius: 3px; background: var(--panel-2); overflow: hidden; }
.bar b { display: block; width: 64%; height: 100%; background: var(--grad); }

/* Sections */
.section { padding: 72px 0; border-top: 1px solid var(--border); }
h2 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -0.02em; margin: 0 0 12px; }
.sub { color: var(--muted); font-size: 17px; margin: 0 0 36px; max-width: 680px; }
h3 { font-size: 17px; margin: 0 0 8px; }
article p, .steps p { color: var(--muted); margin: 0; font-size: 15px; }

.engines { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.engines article, .features article {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 6px;
}
.engines .out { margin-top: auto; padding-top: 12px; font-size: 13px; color: var(--text); }
.engines .out::before { content: "→ "; color: var(--accent); font-weight: 700; }

.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { position: relative; }
.steps li > span {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--grad); color: #fff; font-weight: 700; margin-bottom: 14px;
}

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }

.get pre {
  background: #12131a; color: #e6e7ee; border-radius: var(--radius); padding: 22px 24px; overflow-x: auto;
  font-family: var(--mono); font-size: 14px; line-height: 1.7; max-width: 680px; margin: 0;
  border: 1px solid var(--border);
}
.get pre code { background: none; padding: 0; font-size: inherit; }
.get .c { color: #7d8396; }

.footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.footer span { display: flex; align-items: center; gap: 8px; }

@media (max-width: 1100px) {
  .engines { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .engines { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav nav a:not(.btn) { display: none; }
  .steps, .features, .engines { grid-template-columns: 1fr; }
}
