:root {
  --bg: #0b0d12;
  --bg-2: #11141b;
  --card: #151924;
  --line: #232838;
  --text: #e9ecf2;
  --muted: #9aa3b5;
  --accent: #5b8cff;
  --accent-2: #7cf0c4;
  --radius: 14px;
  --max: 1120px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
code, pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(11, 13, 18, .85);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; }
.brand-mark svg { width: 16px; height: 16px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px;
  font-weight: 600; font-size: 15px; border: 1px solid var(--line); transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: #4a7cf2; }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--bg-2); }
.nav .btn { padding: 8px 16px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 640px;
  background: radial-gradient(closest-side, rgba(91, 140, 255, .22), transparent 70%); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-2); background: rgba(124, 240, 196, .08); border: 1px solid rgba(124, 240, 196, .25);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 22px; }
h1 { font-size: clamp(40px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 22px; }
h1 .grad { background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 19px; color: var(--muted); max-width: 540px; margin: 0 0 32px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.fineprint { margin-top: 16px; font-size: 14px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chip { font-size: 13px; color: var(--muted); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }

/* ---------- chat card ---------- */
.chat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #2c3245; }
.chat-head .live { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--accent-2); }
.chat-head .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); }
.chat-body { padding: 20px; display: grid; gap: 14px; font-size: 14.5px; }
.msg { padding: 12px 14px; border-radius: 12px; max-width: 92%; }
.msg.user { background: #1f2533; justify-self: end; }
.msg.bot { background: rgba(91, 140, 255, .1); border: 1px solid rgba(91, 140, 255, .25); }
.tool { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; background: #0d1017;
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: #c9d1e3; white-space: pre; overflow-x: auto; }
.tool .k { color: var(--accent-2); }
.tool .s { color: #f5c97b; }
.tool .ok { color: var(--accent-2); }
.tool .no { color: #ff8a8a; }
.label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }

/* ---------- sections ---------- */
section { padding: 88px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 14px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step, .feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step-num { font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: var(--accent); margin-bottom: 18px; }
.step h3, .feature h3 { font-size: 20px; letter-spacing: -.01em; margin: 0 0 8px; }
.step p, .feature p { color: var(--muted); margin: 0; font-size: 15.5px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(91, 140, 255, .12); border: 1px solid rgba(91, 140, 255, .3); }
.icon svg { width: 20px; height: 20px; stroke: var(--accent); }

/* ---------- developer block ---------- */
.dev .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.dev ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; color: var(--muted); }
.dev li { display: flex; gap: 10px; }
.dev li::before { content: "→"; color: var(--accent-2); }
pre.code { margin: 0; background: #0d1017; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; font-size: 13.5px; line-height: 1.7; color: #c9d1e3; overflow-x: auto; }
pre.code .c { color: #5e6880; }
pre.code .k { color: var(--accent-2); }
pre.code .s { color: #f5c97b; }

/* ---------- pricing ---------- */
.price-card { max-width: 520px; margin: 0 auto; background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 40px; position: relative; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.price-card::before { content: ""; position: absolute; inset: -1px; border-radius: 20px; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, var(--accent), transparent 40%, var(--accent-2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; }
.plan-name { font-weight: 600; color: var(--accent-2); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 6px; }
.price .amount { font-size: 64px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.price .per { color: var(--muted); font-size: 18px; }
.price-sub { color: var(--muted); margin: 0 0 28px; }
.includes { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.includes li { display: flex; gap: 12px; align-items: flex-start; }
.includes svg { flex: none; width: 20px; height: 20px; margin-top: 3px; stroke: var(--accent-2); }
.price-card .btn { width: 100%; justify-content: center; padding: 14px 20px; font-size: 16px; }
.pricing-hero { padding: 88px 0 40px; text-align: center; }
.pricing-hero .lede { margin: 0 auto; }

.teaser { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(91, 140, 255, .14), rgba(124, 240, 196, .08));
  border: 1px solid var(--line); border-radius: 20px; padding: 40px; }
.teaser h2 { margin: 0 0 6px; }
.teaser p { margin: 0; color: var(--muted); }

/* ---------- faq ---------- */
.faq { max-width: 780px; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer nav { display: flex; gap: 24px; }
footer a:hover { color: var(--text); }

/* ---------- overflow guards ---------- */
/* Grid children default to min-width:auto, so long code lines stretch the page. */
.hero .wrap > *, .dev .wrap > *, .steps > *, .features > * { min-width: 0; }
.tool { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg, .step p, .feature p { overflow-wrap: anywhere; }
.pricing-wrap { padding-bottom: 88px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .dev .wrap { grid-template-columns: 1fr; }
  .steps, .features { grid-template-columns: 1fr; }
  .nav-links .hide-sm { display: none; }
  .hero { padding: 64px 0 48px; }
  section { padding: 64px 0; }
}
