:root {
  --bg: #0a0a0b;
  --surface: #14151700;
  --surface-raised: #17181a;
  --border: #2a2c2f;
  --text: #f0f0f1;
  --text-muted: #9a9da3;
  --text-faint: #6f7279;
  --accent: #FF8A00;
  --accent-2: #FF9D2E;
  --accent-3: #FFB157;
  --accent-deep: #E6690E;
  --blue: #3fb6ff;
  --radius: 10px;
  --mono: 'JetBrains Mono','Fira Code',ui-monospace,'SFMono-Regular',Consolas,monospace;
  --sans: -apple-system,BlinkMacSystemFont,'Segoe UI',Inter,Roboto,Helvetica,Arial,sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
code, .mono { font-family: var(--mono); }

/* ---- nav ---- */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10,10,11,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
header.site img.logo { height: 44px; width: auto; display: block; }
nav.primary { display: flex; align-items: center; gap: 28px; }
nav.primary a { text-decoration: none; color: var(--text-muted); font-size: 14.5px; font-weight: 500; transition: color .15s; }
nav.primary a:hover { color: var(--text); }
nav.primary a.current { color: var(--accent); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 7px; font-size: 14.5px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  font-family: var(--sans);
}
.btn-primary { background: var(--accent); color: #0a0a0b; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: #3a3d41; background: var(--surface-raised); }
.btn-soon { border-color: var(--border); color: var(--text-faint); }
.btn-soon:hover { border-color: #3a3d41; background: var(--surface-raised); color: var(--text-muted); }
.btn-soon .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); display: inline-block; }

/* ---- hero (home) ---- */
.hero { padding: 96px 0 88px; text-align: center; position: relative; overflow: hidden; border-top: none; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 520px;
  background: radial-gradient(ellipse at center, rgba(255,138,0,0.14), transparent 65%);
  pointer-events: none;
}
.hero .stones { height: 92px; margin: 0 auto 28px; display: block; position: relative; }
.hero h1 {
  font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -0.02em;
  margin: 0 0 20px; position: relative;
}
.hero h1 .accent { color: var(--accent); }
.hero p.lede {
  max-width: 640px; margin: 0 auto 36px; color: var(--text-muted);
  font-size: 18px; position: relative;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }
.hero-ctas .btn { padding: 12px 24px; font-size: 15.5px; }

.badges { display: flex; gap: 10px; justify-content: center; margin-top: 28px; flex-wrap: wrap; position: relative; }
.badge {
  font-family: var(--mono); font-size: 12px; color: var(--text-faint);
  border: 1px solid var(--border); border-radius: 100px; padding: 4px 12px;
}

/* ---- query bar mock ---- */
.query-mock {
  max-width: 760px; margin: 48px auto 0; text-align: left;
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; font-family: var(--mono); font-size: 14.5px; position: relative;
  box-shadow: 0 20px 60px -20px rgba(255,138,0,0.15);
}
.query-mock .dot-row { display: flex; gap: 6px; margin-bottom: 12px; }
.query-mock .dot { width: 9px; height: 9px; border-radius: 50%; background: #3a3d41; }
.query-mock .kw { color: var(--accent-2); }
.query-mock .str { color: #9fd18a; }
.query-mock .pipe { color: var(--text-faint); }

/* ---- page hero (sub-pages) ---- */
.page-hero { padding: 88px 0 64px; text-align: center; position: relative; overflow: hidden; border-top: none; }
.page-hero::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 480px;
  background: radial-gradient(ellipse at center, rgba(255,138,0,0.14), transparent 65%);
  pointer-events: none;
}
.page-hero .stones { height: 84px; margin: 0 auto 24px; display: block; position: relative; }
.page-hero .eyebrow {
  font-family: var(--mono); font-size: 12.5px; color: var(--accent-2);
  letter-spacing: 2px; text-transform: uppercase; margin: 0 0 14px; position: relative;
}
.page-hero h1 {
  font-size: clamp(32px, 4.6vw, 50px); font-weight: 800; letter-spacing: -0.02em;
  margin: 0 0 18px; position: relative;
}
.page-hero p.lede {
  max-width: 640px; margin: 0 auto; color: var(--text-muted);
  font-size: 18px; position: relative;
}

/* ---- section shell ---- */
section { padding: 90px 0; border-top: 1px solid var(--border); }
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; color: var(--accent-2);
  letter-spacing: 2px; text-transform: uppercase; margin: 0 0 12px;
}
h2.section-title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.01em; margin: 0 0 14px; }
p.section-sub { color: var(--text-muted); max-width: 640px; font-size: 16.5px; margin: 0 0 48px; }
.section-head { text-align: center; margin: 0 auto; max-width: 720px; }
.section-head p.section-sub { margin-left: auto; margin-right: auto; }

/* ---- feature grid ---- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px;
}
.card .icon {
  width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent); font-size: 18px; margin-bottom: 16px; font-family: var(--mono); font-weight: 700;
}
.card h3 { font-size: 17px; margin: 0 0 8px; }
.card p { color: var(--text-muted); font-size: 14.5px; margin: 0; }
.card.link-card { text-decoration: none; display: block; transition: border-color .15s, transform .15s; }
.card.link-card:hover { border-color: #3a3d41; transform: translateY(-2px); }
.card.link-card .go { color: var(--accent-2); font-size: 13px; font-family: var(--mono); margin-top: 14px; display: block; }

/* ---- diagram sections ---- */
.diagram-frame {
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; overflow-x: auto;
}
.diagram-frame object { display: block; width: 100%; min-width: 640px; aspect-ratio: 1100 / 620; border: none; }
.diagram-frame object[data*="query-flow"] { aspect-ratio: 1100 / 420; }
.diagram-caption { color: var(--text-faint); font-size: 13px; margin-top: 14px; font-family: var(--mono); }
.legend { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 18px; font-size: 13px; color: var(--text-muted); }
.legend span.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }

/* ---- two-col ---- */
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.twocol h3 { font-size: 21px; margin: 0 0 12px; }
.twocol p { color: var(--text-muted); font-size: 15.5px; }
ul.checks { list-style: none; padding: 0; margin: 18px 0 0; }
ul.checks li { padding-left: 26px; position: relative; margin-bottom: 10px; color: var(--text-muted); font-size: 15px; }
ul.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ---- stack table ---- */
table.stack { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.stack th { text-align: left; color: var(--text-faint); font-weight: 600; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; padding: 0 0 12px; border-bottom: 1px solid var(--border); }
table.stack td { padding: 14px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
table.stack td:first-child { font-family: var(--mono); color: var(--accent-2); white-space: nowrap; padding-right: 24px; }
table.stack td:nth-child(2) { color: var(--text); white-space: nowrap; padding-right: 24px; font-weight: 600; }
table.stack td:last-child { color: var(--text-muted); }

/* ---- license band ---- */
.license-band {
  background: linear-gradient(135deg, rgba(255,138,0,0.10), rgba(255,138,0,0.02));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px; display: flex; align-items: center; gap: 32px; justify-content: space-between; flex-wrap: wrap;
}
.license-band h3 { margin: 0 0 8px; font-size: 20px; }
.license-band p { margin: 0; color: var(--text-muted); font-size: 15px; max-width: 520px; }

/* ---- prose (about, license) ---- */
.prose { max-width: 760px; margin: 0 auto; }
.prose .eyebrow { margin: 0 0 12px; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -0.01em; margin: 0 0 24px; }
.prose p { color: var(--text-muted); font-size: 16.5px; margin: 0 0 20px; }
.prose p strong { color: var(--text); font-weight: 600; }
.prose blockquote {
  margin: 32px 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--accent);
  color: var(--text); font-size: 18px; font-style: normal;
}
.stone-list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.stone-list li {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; color: var(--text-muted); font-size: 15px;
}
.stone-list .n {
  font-family: var(--mono); color: var(--accent); font-weight: 700; font-size: 13px;
  flex: none; width: 20px; padding-top: 2px;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; max-width: 980px; margin: 0 auto; }
.split h3 { font-size: 18px; margin: 0 0 10px; color: var(--text); }
.split p { color: var(--text-muted); font-size: 15px; margin: 0; }
.split .col { padding: 24px; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius); }
.split .col.old { border-color: #3a2b1f; }
.split .col.new { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.split .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px; display: block; }
.split .col.old .tag { color: var(--text-faint); }
.split .col.new .tag { color: var(--accent-2); }

/* ---- cta band ---- */
.cta-band {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: linear-gradient(135deg, rgba(255,138,0,0.10), rgba(255,138,0,0.02));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 44px 32px;
}
.cta-band h3 { margin: 0 0 10px; font-size: 22px; }
.cta-band p { margin: 0 0 24px; color: var(--text-muted); font-size: 15.5px; }

/* ---- demo screenshots ---- */
.shot-status {
  max-width: 640px; margin: 0 auto 56px; text-align: center;
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 28px;
}
.shot-status .pill {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px;
  color: var(--accent-2); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  border-radius: 100px; padding: 5px 14px; margin-bottom: 14px;
}
.shot-status .pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }
.shot-status p { color: var(--text-muted); font-size: 15px; margin: 0; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.shot { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.shot img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--border); }
.shot .cap { padding: 14px 18px; }
.shot .cap h4 { margin: 0 0 4px; font-size: 14.5px; }
.shot .cap p { margin: 0; color: var(--text-muted); font-size: 13.5px; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--border); padding: 48px 0; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer img.logo { height: 44px; width: auto; display: block; opacity: 0.92; }
footer .links { display: flex; gap: 22px; font-size: 13.5px; color: var(--text-faint); }
footer .links a { text-decoration: none; }
footer .links a:hover { color: var(--text-muted); }
footer .copy { color: var(--text-faint); font-size: 12.5px; margin-top: 10px; }
footer .copy a { color: var(--text-faint); text-decoration: underline; text-underline-offset: 2px; }
footer .copy a:hover { color: var(--text-muted); }

@media (max-width: 860px) {
  nav.primary a.hide-mobile { display: none; }
  .grid { grid-template-columns: 1fr 1fr; }
  .twocol { grid-template-columns: 1fr; gap: 32px; }
  .split { grid-template-columns: 1fr; gap: 20px; }
  .shots { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  header.site nav.primary { gap: 14px; }
}
