:root {
  --bg: #0B0C10;
  --card: #12151D;
  --border: #1A1E28;
  --muted: #1A1E28;
  --input: #232836;
  --fg: #EEF0F5;
  --sec: #A3A9B8;
  --mute-fg: #7A8296;
  --primary: #C8F04A;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
svg { display: block; flex-shrink: 0; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); }
.wrap { width: 720px; max-width: calc(100% - 40px); margin: 0 auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Top bar */
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 17px; line-height: 24px; font-weight: 500; border-radius: 6px; }
.iconlink { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: -10px; border-radius: 8px; color: var(--sec); transition: background-color .14s ease-out, color .14s ease-out; }

/* Hero */
.hero { padding-top: 72px; }
h1 { margin: 0; font-size: 60px; line-height: 64px; font-weight: 500; letter-spacing: -0.03em; }
.cursor { display: inline-block; width: 24px; height: 50px; margin-left: 12px; vertical-align: -6px; background: var(--primary); }
.lede { margin: 20px 0 0; max-width: 600px; font-size: 18px; line-height: 28px; color: var(--sec); }
.actions { margin-top: 36px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cmd { height: 48px; display: flex; align-items: center; gap: 16px; padding: 0 6px 0 18px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; }
.cmd code { font-family: var(--mono); font-size: 15px; line-height: 20px; white-space: nowrap; }
.cmd code span, .term .ps { color: var(--mute-fg); }
.copy { position: relative; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 4px; background: var(--muted); color: var(--sec); cursor: pointer; transition: background-color .14s ease-out, color .14s ease-out, transform .1s ease-out; }
.copy:active { transform: scale(.97); }
.copy svg { grid-area: 1 / 1; transition: opacity .15s ease-out, transform .15s ease-out; }
.copy .i-check { opacity: 0; transform: scale(.9); color: var(--primary); }
.copy.done .i-copy { opacity: 0; transform: scale(.9); }
.copy.done .i-check { opacity: 1; transform: none; }
.demo { display: flex; align-items: center; gap: 6px; font-size: 15px; line-height: 20px; font-weight: 500; text-decoration: none; border-radius: 4px; }
.demo svg { color: var(--sec); transition: transform .14s ease-out, color .14s ease-out; }
.alt { font-size: 14px; line-height: 20px; color: var(--mute-fg); }
.alt a, .closer a, .footer a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: transparent; transition: color .14s ease-out, text-decoration-color .14s ease-out; border-radius: 2px; }
.alt a { text-decoration-color: rgba(122, 130, 150, .5); }
.trust { margin-top: 20px; display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: var(--mute-fg); }

/* Preview */
.preview { margin-top: 56px; display: flex; flex-direction: column; gap: 16px; }
.stage { position: relative; height: 405px; }
.panel { position: absolute; inset: 0; transition: opacity .15s ease-out; }
.panel[hidden] { display: block; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .1s ease-out, visibility 0s .1s; }
.card { height: 100%; padding: 32px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; display: flex; flex-direction: column; justify-content: space-between; }
.row { display: flex; align-items: center; justify-content: space-between; }
.brandsm { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 500; }
.meta { font-family: var(--mono); font-size: 13px; line-height: 20px; color: var(--mute-fg); }
.arch { display: flex; align-items: center; gap: 28px; }
.arch .emblem { width: 112px; height: 112px; }
.arch .title { font-size: 40px; line-height: 44px; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.arch .title i { display: inline-block; width: 16px; height: 34px; margin-left: 10px; vertical-align: -5px; background: var(--primary); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); padding-top: 20px; margin: 0; }
.stats div { display: flex; flex-direction: column-reverse; gap: 4px; }
.stats dd { margin: 0; font-size: 26px; line-height: 32px; font-weight: 500; font-variant-numeric: tabular-nums; }
.stats dt { font-size: 13px; line-height: 20px; color: var(--mute-fg); }
.strip { display: flex; align-items: center; gap: 14px; }
.slides { height: 100%; display: flex; justify-content: space-between; gap: 16px; }
.slides img, .vframe video { height: 100%; aspect-ratio: 9 / 16; border-radius: 12px; border: 1px solid var(--border); background: var(--card); display: block; object-fit: cover; }
.reel { height: 100%; display: flex; align-items: center; gap: 32px; padding: 0; }
.reel .copytext { display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
.reel .copytext strong { font-size: 18px; line-height: 26px; font-weight: 500; }
.reel .copytext span { font-size: 14px; line-height: 22px; color: var(--sec); }
.reel .copytext code { font-family: var(--mono); font-size: 13px; color: var(--mute-fg); }
.vframe { position: relative; height: 100%; aspect-ratio: 9 / 16; flex-shrink: 0; }
.vframe video { width: 100%; cursor: pointer; }
.slides img { width: auto; }
.unmute { position: absolute; left: 12px; bottom: 12px; height: 32px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; background: rgba(11, 12, 16, .86); color: var(--fg); font-size: 13px; line-height: 20px; cursor: pointer; transition: background-color .14s ease-out, transform .1s ease-out; }
.unmute:active { transform: scale(.97); }
.unmute[aria-pressed="true"] { color: var(--primary); }
.unmute .i-on { display: none; }
.unmute[aria-pressed="true"] .i-on { display: block; }
.unmute[aria-pressed="true"] .i-off { display: none; }

.tabs { display: flex; align-items: center; gap: 4px; }
.tab { height: 32px; padding: 0 12px; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 8px; background: transparent; font-size: 13px; line-height: 20px; color: var(--mute-fg); cursor: pointer; transition: background-color .14s ease-out, color .14s ease-out; }
.tab[aria-selected="true"] { background: var(--muted); color: var(--fg); }
.tab .short { display: none; }

/* Works with */
.tools { margin-top: 80px; display: flex; flex-direction: column; gap: 28px; }
h2 { margin: 0; font-size: 15px; line-height: 20px; font-weight: 500; color: var(--sec); }
.grid { display: grid; grid-template-columns: repeat(6, 1fr); row-gap: 28px; margin: 0; padding: 0; list-style: none; }
.grid li { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 20px; color: var(--sec); }

/* Features */
.features { margin-top: 80px; border-bottom: 1px solid var(--border); list-style: none; padding: 0; margin-bottom: 0; }
.features li { min-height: 64px; display: flex; align-items: center; gap: 16px; border-top: 1px solid var(--border); font-size: 16px; line-height: 24px; }

/* Terminal */
.term { margin-top: 80px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; }
.term-tabs { position: relative; height: 44px; padding: 0 0 0 8px; display: flex; align-items: stretch; border-bottom: 1px solid var(--border); }
.term-tab { position: relative; padding: 0 12px; display: flex; align-items: center; border: 0; background: transparent; font-family: var(--mono); font-size: 13px; line-height: 20px; color: var(--mute-fg); cursor: pointer; transition: color .14s ease-out; }
.term-tab[aria-selected="true"] { color: var(--fg); }
.term-ind { position: absolute; left: 0; bottom: -1px; height: 1px; width: 1px; background: var(--primary); transform-origin: 0 0; transition: transform .22s ease-in-out; pointer-events: none; }
.term-tabs .copy { margin: auto 4px auto auto; background: transparent; }
.term-out { padding: 20px 24px 24px; font-family: var(--mono); font-size: 13px; line-height: 22px; color: var(--sec); }
.term-out[hidden] { display: none; }
.term-out .fg { color: var(--fg); }
.term-out .mu { color: var(--mute-fg); }
.term-out .gap { margin-top: 12px; }
.term-out .blk { display: inline-block; width: 8px; height: 14px; margin-right: 8px; vertical-align: -2px; background: var(--primary); }
.term-out .tr { display: flex; }
.term-out .tr span:nth-child(1) { width: 136px; flex-shrink: 0; }
.term-out .tr span:nth-child(2) { width: 64px; text-align: right; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.term-out .tr span:nth-child(3) { padding-left: 12px; color: var(--mute-fg); }
.term-out .ok { display: flex; gap: 12px; align-items: center; }
.term-out pre { margin: 0; font: inherit; white-space: pre; overflow-x: auto; }

/* Closer + footer */
.closer { margin-top: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 14px; line-height: 22px; color: var(--sec); }
.closer p { margin: 0; }
.closer .links { display: flex; align-items: center; gap: 4px; }
.pill { height: 32px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; color: var(--sec); text-decoration: none !important; transition: background-color .14s ease-out, color .14s ease-out, border-color .14s ease-out; }
.footer { margin-top: 32px; height: 72px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; font-size: 13px; line-height: 20px; color: var(--mute-fg); }
.footer .brandsm { color: var(--sec); font-size: 13px; }
.footer .meta-links { display: flex; align-items: center; gap: 24px; }

@media (hover: hover) and (pointer: fine) {
  .iconlink:hover { background: var(--muted); color: var(--fg); }
  .copy:hover { background: var(--input); color: var(--fg); }
  .term-tabs .copy:hover { background: var(--muted); }
  .demo:hover svg { transform: translate(2px, -2px); color: var(--fg); }
  .alt a:hover, .closer p a:hover, .footer a:hover { color: var(--fg); text-decoration-color: currentColor; }
  .tab:not([aria-selected="true"]):hover { color: var(--sec); background: rgba(26, 30, 40, .5); }
  .term-tab:not([aria-selected="true"]):hover { color: var(--sec); }
  .pill:hover { background: var(--muted); color: var(--fg); border-color: var(--input); }
  .unmute:hover { background: var(--card); }
}
@media (prefers-reduced-motion: reduce) {
  .copy svg, .copy:active, .unmute:active, .demo svg { transform: none !important; }
  .term-ind { transition: none; }
}

/* Mobile: njs */
@media (max-width: 760px) {
  .wrap { width: 350px; max-width: calc(100% - 40px); }
  .topbar { height: 64px; }
  .hero { padding-top: 40px; }
  h1 { font-size: 40px; line-height: 44px; letter-spacing: -0.02em; }
  .cursor { width: 16px; height: 34px; margin-left: 8px; vertical-align: -4px; }
  .lede { margin-top: 16px; font-size: 17px; line-height: 26px; }
  .actions { margin-top: 28px; flex-direction: column; align-items: flex-start; gap: 20px; }
  .cmd { width: 100%; justify-content: space-between; }
  .trust { margin-top: 24px; }
  .preview { margin-top: 48px; }
  .stage { height: auto; display: grid; }
  .panel { position: relative; inset: auto; grid-area: 1 / 1; }
  .card { height: auto; padding: 24px; gap: 28px; }
  .arch { flex-direction: column; align-items: flex-start; gap: 20px; }
  .arch .emblem { width: 88px; height: 88px; }
  .arch .title { font-size: 30px; line-height: 34px; white-space: normal; }
  .arch .title i { width: 12px; height: 26px; margin-left: 8px; vertical-align: -4px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .slides { height: auto; gap: 10px; align-items: flex-start; }
  .slides img { width: calc((100% - 20px) / 3); height: auto; }
  .reel { height: auto; flex-direction: column; align-items: flex-start; gap: 20px; }
  .vframe { height: auto; width: 200px; }
  .tab .long { display: none; }
  .tab .short { display: inline; }
  .tools { margin-top: 64px; }
  .grid { grid-template-columns: repeat(4, 1fr); row-gap: 24px; }
  .features { margin-top: 64px; }
  .features li { align-items: flex-start; padding: 16px 0; font-size: 15px; line-height: 22px; }
  .features li svg { margin-top: 2px; }
  .term { margin-top: 64px; }
  .term-out { padding: 16px 18px 20px; font-size: 12px; line-height: 20px; }
  .term-out .long-only { display: none; }
  .closer { margin-top: 64px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer { margin-top: 32px; height: auto; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px 0 32px; }
  .footer .meta-links { flex-wrap: wrap; gap: 8px 20px; white-space: nowrap; }
}
@media (max-width: 370px) {
  .term-out .tr span:nth-child(1) { width: 110px; }
}
