/* jeeves.codes: the product's own palette (desktop/overlay/web/app.css), warm graphite with the logo's orange. */
:root {
  --bg: #0f0d0c;
  --surface: #171413;
  --raised: #1d1816;
  --border: #2a2422;
  --border-strong: #3b312d;
  --text: #f2ece8;
  --muted: #a9a19c;
  --faint: #8f8580;
  --accent: #ff8a4c;
  --accent-fill: #e86b3e;
  --accent-hover: #ff9757;
  --ok: #4fbf7f;
  --grad: linear-gradient(90deg, #ff3a37, #ff9050);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.92em; }
.wrap { width: min(1160px, 100%); margin: 0 auto; padding: 0 24px; }
.grow { flex: 1; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 8px 12px; background: var(--surface); border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid rgba(255, 138, 76, 0.6); outline-offset: 2px; border-radius: 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; border: 1px solid transparent; border-radius: 8px; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; transition: background 120ms ease, border-color 120ms ease, transform 120ms ease; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 10px; }
.btn-primary { background: var(--accent-fill); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--raised); border-color: #62483d; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 5; background: rgba(15, 13, 12, 0.82); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--border); }
.nav-row { display: flex; align-items: center; gap: 22px; height: 62px; }
.brand img { width: 105px; }
.nav-links { display: flex; gap: 20px; margin-left: 12px; }
.nav-links a, .nav-signin { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav-links a:hover, .nav-signin:hover { color: var(--text); }

/* Hero */
.hero { position: relative; padding: 84px 0 72px; background: radial-gradient(60% 50% at 70% 10%, rgba(255, 112, 70, 0.10), transparent 70%), radial-gradient(40% 40% at 10% 0%, rgba(255, 58, 55, 0.07), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 12px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 12px rgba(255, 112, 70, 0.7); }
h1 { margin-top: 18px; font-size: clamp(38px, 5.4vw, 62px); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin-top: 22px; max-width: 54ch; color: var(--muted); font-size: 18px; line-height: 1.6; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { margin-top: 16px; color: var(--faint); font-size: 13px; }

/* The illustrated session */
.window { margin: 0; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 138, 76, 0.04); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--border); background: #141110; }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3b312d; }
.window-bar span { margin-left: 10px; color: var(--faint); font-size: 12px; }
.window-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); min-height: 300px; }
.code { border-right: 1px solid var(--border); background: #110f0e; min-width: 0; }
.code-tab { display: inline-block; padding: 8px 14px; border-right: 1px solid var(--border); border-bottom: 2px solid var(--accent); color: var(--text); font: 12px var(--mono); background: var(--bg); }
.code pre { margin: 0; padding: 14px 0; overflow: hidden; font: 12.5px/1.75 var(--mono); color: #d9d1cc; white-space: pre; }
.code .ln { display: inline-block; width: 34px; padding-right: 10px; text-align: right; color: #5f5651; }
.code .add { display: inline-block; width: 100%; background: rgba(79, 191, 127, 0.10); box-shadow: inset 2px 0 0 var(--ok); }
.code .k { color: #ff9a6a; } .code .f { color: #f5c37a; } .code .s { color: #9fd59d; } .code .n { color: #c9a7f5; } .code .t { color: #7cc4e8; }
.agent { display: flex; flex-direction: column; gap: 12px; padding: 16px; min-width: 0; font-size: 13px; }
.msg-you { align-self: flex-end; max-width: 92%; padding: 9px 12px; border-radius: 12px 12px 4px 12px; background: var(--raised); border: 1px solid var(--border-strong); }
.steps { list-style: none; margin: 0; padding: 0 0 0 10px; border-left: 2px solid var(--border-strong); display: grid; gap: 6px; color: var(--muted); }
.steps code { color: var(--text); }
.ico { display: inline-block; width: 18px; color: var(--faint); }
.delta { margin-left: 4px; color: var(--ok); font: 11px var(--mono); }
.verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill-ok { color: #7fe0a6; background: rgba(79, 191, 127, 0.12); border: 1px solid rgba(79, 191, 127, 0.3); }
.jev { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); color: var(--faint); font-size: 12px; }
.orb { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffd2b8, #ff8a4c 45%, #a8321c); box-shadow: 0 0 10px rgba(255, 138, 76, 0.55); }

/* Sections */
.section { padding: 88px 0; border-top: 1px solid var(--border); }
.section h2, .band h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; font-weight: 680; }
.section-lede { margin-top: 12px; max-width: 62ch; color: var(--muted); font-size: 17px; }
.starts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.start-card { padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); transition: border-color 120ms ease, transform 120ms ease; }
.start-card:hover { border-color: #62483d; transform: translateY(-2px); }
.start-ico { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #3a2d28; border-radius: 9px; background: #211a17; color: var(--accent); }
.start-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.start-card h3, .feature h3 { margin-top: 16px; font-size: 16px; font-weight: 640; }
.start-card p, .feature p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 36px; border: 1px solid var(--border); border-radius: 14px; background: var(--border); overflow: hidden; }
.feature { padding: 26px; background: var(--bg); }
.feature h3 { margin-top: 0; }
.feature h3::before { content: ""; display: block; width: 26px; height: 3px; margin-bottom: 16px; border-radius: 2px; background: var(--grad); }
.how { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 36px 0 0; padding: 0; }
.how li { display: flex; gap: 16px; }
.how-n { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #62483d; color: var(--accent); font-weight: 700; }
.how h3 { font-size: 17px; font-weight: 640; }
.how p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.band { padding: 64px 0; border-top: 1px solid var(--border); background: radial-gradient(50% 120% at 85% 50%, rgba(255, 112, 70, 0.10), transparent 70%), var(--surface); }
.band-row { display: flex; align-items: center; gap: 24px; justify-content: space-between; }
.band p { margin-top: 8px; color: var(--muted); }
.foot { padding: 28px 0 40px; border-top: 1px solid var(--border); }
.foot-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-row img { width: 79px; opacity: 0.9; }
.foot-note { color: var(--faint); font-size: 13px; }
.foot a { color: var(--muted); font-size: 13px; text-decoration: none; }
.foot a:hover { color: var(--text); }

/* 404.html */
.notfound { display: grid; place-items: center; min-height: 80vh; padding: 64px 0; text-align: center; }
.notfound img { margin: 0 auto 28px; }
.notfound h1 { margin: 0; font-size: 32px; }
.notfound .section-lede { margin: 12px auto 28px; }

@media (max-width: 980px) {
  .hero { padding: 56px 0 56px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .starts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav-links, .nav-signin { display: none; }
  .nav-row { gap: 12px; }
  .lede { font-size: 16px; }
  .window-body { grid-template-columns: minmax(0, 1fr); }
  .code { border-right: 0; border-bottom: 1px solid var(--border); }
  .starts, .features { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 64px 0; }
  .band-row { flex-direction: column; align-items: flex-start; }
}
