:root {
  --bg: #0b1220;
  --bg-2: #101a2e;
  --card: #16223a;
  --line: #23324f;
  --fg: #f1f5f9;
  --muted: #94a3b8;
  --accent: #22d3ee;
  --accent-2: #3b82f6;
  --user: #2563eb;
  --font: "Amazon Ember", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 70% -10%, #17264a 0%, var(--bg) 60%);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: 0.92em; background: rgba(255, 255, 255, 0.06); padding: 1px 6px; border-radius: 6px; }
pre code { background: none; padding: 0; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: 17px; }
p { margin: 0 0 12px; }
.sub { color: var(--muted); max-width: 760px; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(11, 18, 32, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 700; font-size: 18px; }
.brand:hover { text-decoration: none; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px var(--accent); }
.nav nav { display: flex; gap: 20px; font-size: 14px; }
.nav nav a { color: var(--muted); }
.nav nav a:hover { color: var(--fg); text-decoration: none; }
.nav nav a.gh { color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
@media (max-width: 720px) { .nav nav a:not(.gh) { display: none; } }

main { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
section { padding: 64px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }

/* hero */
.hero { padding-top: 72px; text-align: center; }
.kicker { color: var(--accent); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-size: clamp(38px, 6.4vw, 68px); font-weight: 800; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-2), #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 19px; color: var(--muted); max-width: 720px; margin: 18px auto 30px; }

.convo { max-width: 640px; margin: 0 auto 30px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.convo .u, .convo .a { padding: 12px 16px; border-radius: 18px; font-size: 16px; max-width: 88%; }
.convo .u { align-self: flex-end; background: var(--user); border-bottom-right-radius: 6px; }
.convo .a { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 6px; }

.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg); font-weight: 600; background: var(--bg-2); }
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn.primary { background: var(--accent); color: #082f49; border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.08); }

.shot { margin: 0; }
.shot img { width: 100%; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); display: block; }
.shot figcaption { color: var(--muted); font-size: 14px; margin-top: 12px; text-align: center; }

/* grids and cards */
.grid { display: grid; gap: 16px; margin-top: 26px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.four, .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid.four, .grid.three, .grid.two { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card h3 { margin-bottom: 8px; }

.why p:first-of-type { font-size: 17px; max-width: 820px; }

.diagram {
  font-family: var(--mono); font-size: 13px; line-height: 1.5;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px; overflow-x: auto; color: #cbd5e1; margin: 22px 0 8px;
}
.how .shot { margin-top: 30px; }

/* tools table */
table { width: 100%; border-collapse: collapse; margin: 22px 0 18px; font-size: 15px; }
td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
td:first-child { white-space: nowrap; width: 230px; }
tr:last-child td { border-bottom: 1px solid var(--line); }
td:last-child { color: var(--muted); }

/* run */
.run pre {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px; overflow-x: auto; font-family: var(--mono); font-size: 14px; line-height: 1.6; color: #e2e8f0;
  margin: 22px 0 18px;
}

footer { border-top: 1px solid var(--line); padding: 34px 24px 48px; text-align: center; color: var(--muted); font-size: 14px; }
footer .fine { font-size: 12px; opacity: 0.7; }
