:root {
  --bg: #0a0e1f;
  --bg-alt: #0f1428;
  --card: #141a30;
  --ink: #e8ecf5;
  --ink-mute: #94a3b8;
  --accent: #a78bfa;
  --accent-2: #10b981;
  --cyan: #67e8f9;
  --warn: #fbbf24;
  --border: #252b48;
  --gradient: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  --rule: rgba(103, 232, 249, 0.28);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100vw; }
img, svg { max-width: 100%; height: auto; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(124, 58, 237, 0.16), transparent 55%),
    var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: #c084fc; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--cyan);
  color: #0a0e1f;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 13px;
}
.skip-link:focus { top: 12px; color: #0a0e1f; }
.kicker {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  color: var(--warn);
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}
.now-planned {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 0;
  font-size: 14px;
}
.now-planned th, .now-planned td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.now-planned th {
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}
.now-planned td { color: var(--ink-mute); }
.now-planned strong { color: var(--ink); }
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 31, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: 1080px; margin: 0 auto; padding: 14px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.brand { font-weight: 800; font-size: 20px; letter-spacing: -0.5px; color: var(--ink); }
.brand-accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand small {
  font-weight: 500; color: var(--ink-mute); margin-left: 8px;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
}
.nav-links { display: flex; gap: 18px; font-size: 14px; flex-wrap: wrap; }
.nav-links a { color: var(--ink-mute); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 56px 20px 24px; }
.eyebrow {
  color: var(--cyan); font-weight: 700; font-size: 11px;
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 14px;
}
h1 {
  font-size: clamp(32px, 5.4vw, 52px); line-height: 1.08; font-weight: 800;
  margin: 0 0 18px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lede { color: var(--ink-mute); font-size: 18px; max-width: 720px; margin: 0 0 28px; }
.lede strong { color: var(--ink); font-weight: 650; }
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 28px;
  align-items: start;
}
.ledger {
  background: #0c1224;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  position: sticky;
  top: 84px;
  box-shadow: inset 3px 0 0 var(--cyan);
}
.ledger h2 {
  margin: 0; padding: 14px 16px 10px;
  font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan);
  border-bottom: 1px dashed var(--border);
}
.ledger dl { margin: 0; }
.ledger div {
  display: grid; grid-template-columns: 108px 1fr;
  gap: 10px; padding: 11px 16px;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}
.ledger div:last-child { border-bottom: 0; }
.ledger dt {
  color: var(--ink-mute); font-weight: 650;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}
.ledger dd { margin: 0; color: var(--ink); }
.phases { list-style: none; padding: 0; margin: 18px 0 0; }
.phases li {
  display: grid; grid-template-columns: 52px 1fr;
  gap: 14px; padding: 12px 0;
  border-top: 1px solid var(--border);
}
.phases .n {
  font-family: ui-monospace, Consolas, monospace;
  color: var(--cyan); font-weight: 700; font-size: 13px;
}
.phases h3 { margin: 0 0 4px; font-size: 16px; color: var(--ink); }
.phases p { margin: 0; font-size: 14px; }
.section { margin: 42px 0 0; }
.section h2 { font-size: 26px; margin: 0 0 8px; }
.section p, .section li { color: var(--ink-mute); }
.caps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.cap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  border-left: 3px solid var(--cyan);
}
.cap h3 { margin: 0 0 8px; font-size: 16px; color: var(--ink); }
.cap p { margin: 0; font-size: 14px; }
.not-list, .note {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  color: #cbd5e1;
  font-size: 14px;
}
.not-list { margin-top: 16px; }
.not-list h3 { margin: 0 0 8px; font-size: 14px; color: var(--warn); letter-spacing: 1px; text-transform: uppercase; }
.not-list ul { margin: 0; padding-left: 18px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center;
  padding: 12px 18px; border-radius: 10px; font-weight: 700; font-size: 14px;
}
.btn-primary { background: var(--gradient); color: #fff; }
.btn-primary:hover { color: #fff; }
.btn-secondary { background: var(--bg-alt); color: var(--ink); border: 1px solid var(--border); }
.related { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.related a {
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 14px; color: var(--ink); font-size: 13px;
}
footer {
  background: var(--bg-alt); padding: 36px 20px 24px;
  border-top: 1px solid var(--border); margin-top: 64px;
  color: var(--ink-mute); font-size: 13px;
}
.footer-inner { max-width: 1080px; margin: 0 auto; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner a { color: var(--ink); }
@media (max-width: 860px) {
  .page-grid, .caps { grid-template-columns: 1fr; }
  .ledger { position: static; }
  .nav { align-items: flex-start; flex-wrap: wrap; }
  .nav-links { width: 100%; gap: 10px 14px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

/* Feature grid & cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}
.feature-card h3, .feature-card h4 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}
.feature-card p {
  margin: 0;
  color: var(--ink-mute);
  font-size: 13px;
  line-height: 1.55;
}

/* Comparison tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
.comparison-table th, .comparison-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.comparison-table th {
  background: var(--bg-alt);
  color: var(--cyan);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.comparison-table tr:last-child td { border-bottom: 0; }
.comparison-table td { color: var(--ink-mute); vertical-align: top; }
.comparison-table td strong { color: var(--ink); }

/* Grounded Hit Card Contract */
.hit-card {
  background: #090e1f;
  border: 1px solid var(--cyan);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 20px 0;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.12);
}
.hit-card-header {
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-size: 11px;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 6px;
}
.hit-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  margin-bottom: 8px;
}
.hit-label { color: var(--ink-mute); text-transform: uppercase; }
.hit-val { color: var(--ink); word-break: break-all; }
.hit-val.path { color: #38bdf8; font-weight: 600; }
.hit-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}
.badge-fresh { background: rgba(16, 185, 129, 0.2); color: var(--accent-2); border: 1px solid var(--accent-2); }
.badge-soon { background: rgba(6, 182, 212, 0.2); color: var(--cyan); border: 1px solid var(--cyan); }
.badge-dev { background: rgba(251, 191, 36, 0.2); color: var(--warn); border: 1px solid var(--warn); }

/* AI Concierge */
.jh-concierge {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  width: min(370px, calc(100vw - 24px));
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  color: var(--ink);
  transition: box-shadow 0.2s;
}
.jh-concierge.collapsed {
  width: auto;
  border-radius: 999px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.jh-concierge.collapsed header,
.jh-concierge.collapsed .jh-body,
.jh-concierge.collapsed .jh-panel {
  display: none;
}
.jh-bubble {
  display: none;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 0;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.jh-bubble:hover {
  transform: scale(1.06);
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.6);
}
.jh-concierge.collapsed .jh-bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.jh-concierge header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #0b1020;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.jh-concierge header button {
  background: transparent;
  border: 0;
  color: var(--ink-mute);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
}
.jh-concierge header button:hover { color: #fff; }
.jh-body { padding: 14px; }
.jh-body p { margin: 0 0 10px; color: var(--ink-mute); font-size: 13px; line-height: 1.5; }
.jh-panel { display: none; flex-direction: column; height: 430px; }
.jh-concierge.open .jh-panel { display: flex; }
.jh-concierge.open .jh-body { display: none; }
.jh-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.jh-msg {
  max-width: 90%;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}
.jh-msg.bot {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--ink);
  align-self: flex-start;
}
.jh-msg.user {
  margin-left: auto;
  background: var(--gradient);
  color: #fff;
  align-self: flex-end;
}
.jh-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  max-height: 110px;
  overflow-y: auto;
}
.jh-chips button {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  cursor: pointer;
  font-weight: 600;
  transition: border-color 0.15s, color 0.15s;
}
.jh-chips button:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.jh-input {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--border);
  background: var(--card);
}
.jh-input input {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
}
.jh-input input:focus {
  outline: none;
  border-color: var(--accent);
}
.jh-input button {
  background: var(--gradient);
  border: 0;
  color: #fff;
  border-radius: 8px;
  padding: 9px 13px;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
}
.jh-badge {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 2px 6px;
  background: rgba(6, 182, 212, 0.15);
  border-radius: 4px;
}

