:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #0b1220;
  --ink-2: #1f2a3d;
  --muted: #5b6475;
  --line: #e3e6eb;
  --line-2: #d3d8e0;
  --accent: #0f8a7e;
  --accent-d: #0b6e65;
  --accent-soft: #e3f4f1;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --red: #c2410c;
  --red-soft: #ffedd5;
  --blue-soft: #e8effc;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 18px;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
code { font-family: var(--mono); font-size: .9em; background: #eef0f3; padding: 1px 6px; border-radius: 5px; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(245, 246, 248, .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; text-decoration: none; min-height: 44px; }
.lm { width: 26px; height: 26px; border-radius: 7px; background: var(--ink); color: #5eead4; display: grid; place-items: center; font: 600 16px var(--mono); }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: #eceef2; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; border: 0; }
.btn:hover { background: var(--ink-2); }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 15px; }
.ib { width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 8px; color: var(--muted); }
.ib:hover { background: #eef0f3; color: var(--ink); }
.ib.light { color: #b8c2d4; }
.ib.light:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* hero */
.hero { padding: 72px 0 36px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 500 13px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-d); margin: 0 0 14px; }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; line-height: 1.1; }
.hero h1 { font-size: clamp(42px, 6.4vw, 80px); font-weight: 700; max-width: 900px; }
.hero h1 span { color: var(--accent); }
.lead { font-size: 20px; color: var(--muted); max-width: 720px; margin: 22px 0 26px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 0; color: var(--muted); }
.facts b { color: var(--ink); font-weight: 600; }

/* demo */
.demo-sec { padding: 20px 0 72px; }
.demo-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.demo-bar h2 { font-size: 20px; }
.demo-bar p { margin: 0; color: var(--muted); font-size: 15px; }
.host { background: var(--surface); border-radius: var(--r-l); border: 1px solid var(--line-2); box-shadow: 0 30px 70px -30px rgba(11, 18, 32, .35), 0 2px 6px rgba(11, 18, 32, .05); overflow: hidden; }
.host-chrome { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: #eef0f3; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.lights { display: flex; gap: 6px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #d3d8e0; }
.host-label { font: 500 13px var(--mono); color: var(--muted); margin-right: auto; }
.tsel select { min-height: 40px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 10px; background: #fff; font-weight: 500; max-width: 340px; }
.sa { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); min-height: 40px; }
.sa input { width: 18px; height: 18px; accent-color: var(--accent); }
.host-body { display: grid; grid-template-columns: minmax(0, 1fr) 420px; height: 680px; }

/* ticket pane */
.ticket { overflow: auto; padding: 22px 24px; border-right: 1px solid var(--line); }
.t-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font: 500 13px var(--mono); color: var(--muted); }
.t-top .num { color: var(--ink); font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font: 600 12px var(--font); }
.pill.open { background: var(--blue-soft); color: #1d4ed8; }
.pill.closed { background: #e9f7ef; color: #15803d; }
.pill.p1, .pill.p2 { background: var(--red-soft); color: var(--red); }
.pill.p3 { background: var(--amber-soft); color: var(--amber); }
.pill.p4 { background: #eef0f3; color: var(--muted); }
.ticket h3 { font-size: 22px; margin: 10px 0 14px; }
.t-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; padding: 14px; background: #f8f9fb; border-radius: var(--r-m); border: 1px solid var(--line); }
.t-meta dt { font: 500 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.t-meta dd { margin: 2px 0 0; font-weight: 500; font-size: 14px; }
.t-h { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 20px 0 10px; display: flex; align-items: center; gap: 8px; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.notes li { border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px 14px; background: #fff; position: relative; }
.notes li.internal { background: #fffbeb; border-color: #fde68a; }
.notes li.resolution { background: #f0fdf4; border-color: #bbf7d0; }
.notes .nh { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 4px; flex-wrap: wrap; }
.notes .nh b { color: var(--ink); font-weight: 600; }
.notes p { margin: 0; font-size: 14.5px; }
.configs { display: grid; gap: 8px; }
.cfg { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-m); font-size: 14px; }
.cfg .i { color: var(--muted); margin-top: 2px; }
.cfg b { display: block; font-weight: 600; }
.cfg span { color: var(--muted); font-size: 13px; }

/* pod */
.pod { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto auto; background: #fbfbfc; min-height: 0; }
.pod-h { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.pod-logo { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; letter-spacing: -.02em; }
.pod-logo .lm { width: 22px; height: 22px; font-size: 13px; border-radius: 6px; }
.who { margin-left: auto; font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.who i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.pod-log { overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.sys { font: 500 12.5px var(--mono); color: var(--muted); display: grid; gap: 3px; padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: var(--r-m); }
.sys .ok { color: var(--accent-d); }
.m-me { align-self: flex-end; max-width: 88%; background: var(--ink); color: #fff; padding: 9px 13px; border-radius: 14px 14px 4px 14px; font-size: 14.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.m-me code { background: rgba(255, 255, 255, .14); color: #5eead4; }
.m-ai { align-self: stretch; background: #fff; border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 12px 14px 8px; font-size: 14.5px; position: relative; }
.m-ai.err { border-color: #fed7aa; background: #fff7ed; }
.m-ai .md > *:first-child { margin-top: 0; }
.md h4 { font-size: 14px; margin: 12px 0 6px; letter-spacing: -.01em; }
.md p { margin: 6px 0; }
.md ul, .md ol { margin: 6px 0; padding-left: 20px; }
.md li { margin: 3px 0; }
.md table { border-collapse: collapse; width: 100%; font-size: 13px; margin: 8px 0; }
.md th, .md td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.md th { font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.md blockquote { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; }
.m-act { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; border-top: 1px solid var(--line); padding-top: 4px; }
.m-act small { color: var(--muted); font: 500 11.5px var(--mono); }
.copy { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; min-height: 32px; padding: 0 8px; border-radius: 6px; }
.copy:hover { background: #eef0f3; color: var(--ink); }
.copy.done { color: var(--accent-d); }
.copy .i { width: 15px; height: 15px; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; } }
.pod-quick { display: flex; gap: 6px; padding: 0 12px 10px; overflow-x: auto; scrollbar-width: none; }
.pod-quick button { flex: none; border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 0 11px; min-height: 32px; font: 500 13px var(--mono); color: var(--ink-2); }
.pod-quick button:hover { border-color: var(--accent); color: var(--accent-d); }
.pod-in { position: relative; display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; align-items: flex-end; }
.pod-in textarea { flex: 1; min-width: 0; resize: none; min-height: 44px; max-height: 120px; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font-size: 14.5px; line-height: 1.4; }
.pod-in textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.send { width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.send:hover { background: var(--accent-d); }
.send:disabled { opacity: .5; cursor: not-allowed; }
.ac { position: absolute; left: 12px; right: 12px; bottom: calc(100% + 4px); background: #fff; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(11, 18, 32, .3); padding: 6px; max-height: 300px; overflow: auto; z-index: 3; }
.ac [role=option] { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.ac [role=option] b { font: 600 13.5px var(--mono); color: var(--ink); min-width: 78px; }
.ac [role=option] span { font-size: 13px; color: var(--muted); }
.ac [aria-selected="true"] { background: var(--accent-soft); }
.ac [aria-selected="true"] b { color: var(--accent-d); }
.pod-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 0; padding: 0 12px 10px; background: #fff; font-size: 11.5px; color: var(--muted); }
.pod-foot code { font-size: 11px; padding: 0 4px; }
.pod-foot .low { color: var(--red); font-weight: 600; }
.podonly { position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, #f8f9fb 0 12px, #f1f3f6 12px 24px); display: grid; place-content: center; text-align: center; padding: 30px; gap: 8px; z-index: 4; }
.podonly .i { width: 36px; height: 36px; margin: 0 auto; color: var(--ink); }
.podonly h3 { font-size: 22px; }
.podonly p { margin: 0; color: var(--muted); max-width: 300px; }

/* commands */
.sec { padding: 72px 0 0; }
.sec-h { margin-bottom: 26px; }
.sec-h h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 650; max-width: 760px; }
.cmds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.cmd { border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 20px; display: grid; gap: 8px; align-content: start; background: var(--surface); }
.cmd code { justify-self: start; font-size: 15px; font-weight: 600; background: var(--ink); color: #5eead4; padding: 3px 9px; }
.cmd p { margin: 0; color: var(--muted); font-size: 15px; }
.cmd button { justify-self: start; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--accent-d); font-weight: 600; padding: 0; min-height: 36px; }
.cmd button:hover { text-decoration: underline; }
.cmd button .i { width: 15px; height: 15px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.steps li { position: relative; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.steps .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-d); font: 600 14px var(--mono); }
.steps b { display: block; margin: 12px 0 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 14.5px; }
.sgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sgrid article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 22px; }
.sgrid .i { width: 22px; height: 22px; color: var(--accent); }
.sgrid h3 { font-size: 17px; margin: 14px 0 6px; letter-spacing: -.01em; }
.sgrid p { margin: 0; color: var(--muted); font-size: 15px; }
.setup { padding-bottom: 88px; }
.setup-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.setup-steps { margin: 0; padding-left: 22px; display: grid; gap: 14px; font-size: 16px; }
.setup-steps li::marker { font-family: var(--mono); color: var(--accent-d); }
.code { background: var(--ink); color: #dbe3f0; border-radius: var(--r-m); overflow: hidden; }
.code-h { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 6px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); font: 500 13px var(--mono); color: #93a1b8; }
.code pre { margin: 0; padding: 16px; overflow: auto; font: 13.5px/1.7 var(--mono); }
.code code { background: none; padding: 0; color: inherit; font-size: inherit; }
.foot { border-top: 1px solid var(--line-2); padding: 28px 0 36px; color: var(--muted); font-size: 14px; }
.foot-in { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.foot p { margin: 0; max-width: 760px; }
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 40; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 500; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); animation: tin .2s ease-out; }
@keyframes tin { from { opacity: 0; transform: translateY(6px); } }

@media (max-width: 1080px) {
  .host-body { grid-template-columns: minmax(0, 1fr) 380px; }
  .t-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmds, .sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .top-in { justify-content: space-between; }
  .host-body { grid-template-columns: minmax(0, 1fr); height: auto; }
  .ticket { border-right: 0; border-bottom: 1px solid var(--line); max-height: 420px; }
  .pod { height: 640px; }
  .setup-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .hero { padding-top: 44px; }
  .lead { font-size: 18px; }
  .host { border-radius: 14px; }
  .host-label { width: 100%; }
  .lights { display: none; }
  .tsel, .tsel select { width: 100%; max-width: none; }
  .ticket { padding: 18px 16px; }
  .t-meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cmds, .sgrid, .steps { grid-template-columns: minmax(0, 1fr); }
  .pod-quick button, .copy { min-height: 44px; }
  .cmd button { min-height: 44px; }
  .ib { width: 44px; height: 44px; }
}
