:root {
  --bg: #FFFFFF; --alt: #F4F5F7; --card: #FFFFFF; --text: #15171C; --muted: #4B5260; --faint: #6B7280;
  --line: #E1E4E9; --accent: #1B5FD6; --accent-dark: #0F3F96; --accent-soft: #E8EEFB;
  --term: #0F1419; --shadow: 0 1px 2px rgba(21, 23, 28, .06), 0 12px 40px rgba(21, 23, 28, .12);
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317; --alt: #16191E; --card: #1A1D23; --text: #E8EAEE; --muted: #A9B0BC; --faint: #8A919D;
    --line: #2A2F38; --accent: #6E9EF5; --accent-dark: #A9C5FA; --accent-soft: #1F2B44;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 40px rgba(0, 0, 0, .45);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }
code { font: .9em var(--mono); background: var(--alt); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.2; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }

/* Header */
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 17px; }
.brand:hover { color: var(--text); text-decoration: none; }
header nav { display: flex; gap: 24px; font-size: 15px; }
header nav a { color: var(--muted); }
header nav a:hover { color: var(--text); text-decoration: none; }
header nav .gh { color: var(--text); font-weight: 500; }

/* Hero */
.hero { padding: 72px 0 56px; background: radial-gradient(1000px 500px at 85% 0%, var(--accent-soft), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .02em; }
.hero h1 { font-size: clamp(34px, 4.4vw, 52px); letter-spacing: -.02em; font-weight: 700; }
.lede { font-size: 18px; color: var(--muted); margin: 20px 0 28px; }
.lede b { color: var(--text); }
.install { display: flex; align-items: center; gap: 8px; background: var(--term); color: #D7DDE5; border-radius: 10px; padding: 10px 10px 10px 16px; max-width: 100%; }
.install code { background: none; border: 0; padding: 0; color: inherit; font-size: 13.5px; white-space: nowrap; overflow-x: auto; flex: 1; scrollbar-width: none; }
.install code::before { content: '$ '; color: #7FD962; }
.copy { flex: none; background: #26303C; color: #D7DDE5; border: 0; border-radius: 6px; padding: 6px 12px; font: 500 13px var(--sans); cursor: pointer; }
.copy:hover { background: #33404F; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 500; font-size: 15px; }
.btn:hover { text-decoration: none; border-color: var(--accent); color: var(--text); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
@media (prefers-color-scheme: dark) { .btn.primary, .btn.primary:hover { color: #0B1220; } }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }

.hero-media { position: relative; margin: 0 0 0 4%; padding-bottom: 16%; }
.shot { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--card); }
.shot-ui { width: 100%; }
.shot-term { position: absolute; width: 72%; left: -12%; bottom: 0; background: var(--term); border-color: #2A3340; }

/* Strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--alt); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 24px; padding-bottom: 24px; }
.strip-grid div { display: flex; flex-direction: column; gap: 2px; }
.strip-grid span { color: var(--muted); font-size: 14px; }

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--alt); }
.title { font-size: clamp(28px, 3vw, 36px); letter-spacing: -.01em; text-align: center; }
.sub { text-align: center; color: var(--muted); max-width: 720px; margin: 14px auto 48px; font-size: 17px; }
.narrow .title, .narrow .sub { text-align: left; margin-left: 0; }
.center { text-align: center; margin-top: 28px; }
.center .btn + .btn { margin-left: 8px; }
.demo-note { color: var(--muted); font-size: 14px; max-width: 640px; margin-left: auto; margin-right: auto; }

.step { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; align-items: center; margin-top: 64px; }
.step:nth-child(odd of .step) { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.step:nth-child(odd of .step) .step-text { order: 2; }
.step h3 { font-size: 22px; margin: 10px 0 12px; }
.step p { color: var(--muted); margin: 0 0 12px; }
.num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 15px; }
.step-media .shot { background: var(--term); border-color: #2A3340; }

/* Explorer gallery */
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 18px; margin: 0 -12px 14px; }
.pgroup { display: flex; flex-direction: column; gap: 6px; }
.pg-h { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding-left: 2px; }
.pg-row { display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; gap: 8px; }
.pill { display: flex; align-items: center; gap: 9px; font: 500 14.5px var(--sans); color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px 8px 10px; min-width: 112px; cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.pill svg { flex: none; }
.pill:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.pill[aria-pressed=true] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); box-shadow: 0 0 0 1px var(--accent) inset; }
.gal-hint { text-align: center; color: var(--faint); font-size: 13.5px; margin: 0 0 18px; }
.gal-stage { position: relative; line-height: 0; }
.gal-img { width: 100%; height: auto; }
.gal-hl { position: absolute; border: 2px solid var(--accent); border-radius: 6px; pointer-events: none; transition: top .12s ease-out; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.gallery figure { margin: 0 auto; max-width: 1060px; }
.gallery figcaption { text-align: center; color: var(--muted); margin: 18px auto 0; max-width: 720px; min-height: 3.2em; }
.chrome { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: var(--alt); border-bottom: 1px solid var(--line); }
.chrome i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.chrome span { margin: 0 auto; transform: translateX(-24px); font: 12.5px var(--mono); color: var(--faint); background: var(--card); padding: 2px 14px; border-radius: 6px; max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feature-video { margin-top: 72px; }

/* Features */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.grid article { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.section.alt .grid article { background: var(--bg); }
.grid h3 { font-size: 17px; margin-bottom: 8px; }
.viewers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; margin-top: 40px; }
.viewers figure { margin: 0; }
.viewers figcaption { margin-top: 16px; }
.viewers h3 { font-size: 18px; margin-bottom: 6px; }
.viewers p { margin: 0; color: var(--muted); font-size: 15px; }
.grid p { margin: 0; color: var(--muted); font-size: 15px; }

/* Quickstart */
.quick { list-style: none; padding: 0; margin: 0 0 24px; counter-reset: q; }
.quick li { counter-increment: q; position: relative; padding-left: 46px; margin-bottom: 26px; }
.quick li::before { content: counter(q); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 15px; }
.quick h3 { font-size: 18px; margin-bottom: 10px; }
.quick p { color: var(--muted); margin: 10px 0 0; }
pre { margin: 0; background: var(--term); color: #D7DDE5; border-radius: 10px; padding: 14px 18px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; overflow-wrap: normal; }
.sub-title { font-size: 26px; margin: 56px 0 14px; letter-spacing: -.01em; }
#kinds { font-size: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.lead { font-size: 18px; color: var(--text); margin: 0 0 14px; }
.kinds { margin: 10px 0 18px; padding-left: 22px; color: var(--muted); }
.kinds li { margin: 4px 0; }
.kinds li::marker { color: var(--accent); }
.sub-title + pre { margin-bottom: 8px; }

.cmds { width: 100%; border-collapse: collapse; margin-top: 28px; }
.cmds td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmds td:first-child { width: 120px; white-space: nowrap; }
.cmds td:last-child { color: var(--muted); }

.qa { border-top: 1px solid var(--line); padding: 18px 0 6px; }
.qa:first-of-type { margin-top: 28px; }
.qa h3 { font-size: 17px; }
.qa p { color: var(--muted); margin: 8px 0 12px; }

.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot-row span:first-child { display: flex; align-items: center; gap: 8px; }

@media (max-width: 960px) {
  .viewers { grid-template-columns: minmax(0, 1fr); }
  .hero-grid, .step, .step:nth-child(odd of .step) { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .step:nth-child(odd of .step) .step-text { order: 0; }
  .hero-media { padding-bottom: 0; margin: 0; }
  .shot-term { position: static; width: 100%; margin-top: 16px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pills { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px 6px; scrollbar-width: none; }
  .pg-row { grid-template-rows: none; }
  .pill { min-width: 0; font-size: 14px; padding: 7px 10px; white-space: nowrap; }
  .gal-hint { display: none; }
  .wrap { padding: 0 16px; }
  header nav a:not(.gh) { display: none; }
  .hero { padding: 44px 0 40px; }
  .section { padding: 60px 0; }
  .grid, .strip-grid { grid-template-columns: minmax(0, 1fr); }
  .step { margin-top: 44px; }
  .chrome span { display: none; }
}
