/* ------------------------------------------------------------------ page */
:root {
  --page: #111214;
  --text: #e8e8e6;
  --muted: #7d7e82;
  --soft: #a6a7ab;
  --line: #26272b;
  --red: #e8213a;
  --red-hi: #ff3550;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--page);
  color: var(--text);
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
code, .mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
::selection { background: rgba(232, 33, 58, .45); }

.page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 720px);
  justify-content: space-between;
  align-items: center;
  gap: 56px;
  padding: 88px 86px 110px;
  max-width: 1440px;
  margin: 0 auto;
}
.intro { max-width: 480px; }
.brand { display: block; width: 176px; height: auto; }
.intro h1 { font-size: 26px; line-height: 1.18; font-weight: 400; letter-spacing: -0.005em; margin: 30px 0 22px; text-wrap: balance; }
.intro p { margin: 0 0 16px; color: var(--text); }
.intro .soft { color: var(--soft); }

/* --- the buttons: Download (white) and the repository (dark, with GitHub's mark) */
.cta-row { margin-top: 28px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 18px; border-radius: 999px; background: #fff; color: #000; font: 500 14.5px/1 "Instrument Sans", sans-serif; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; transition: transform 200ms var(--ease), background 200ms, box-shadow 200ms; }
.btn:hover { background: #e8e8e6; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn.dark { background: #1d1e21; color: var(--text); box-shadow: inset 0 0 0 1px #34353a; }
.btn.dark:hover { background: #26272b; box-shadow: inset 0 0 0 1px #45464c; }

/* --- install: one command, a tab per system */
.install { margin-top: 26px; border-radius: 10px; background: #18191c; box-shadow: inset 0 0 0 1px #2a2b30; overflow: hidden; }
.install .tabs { display: flex; gap: 2px; padding: 6px 6px 0; box-shadow: inset 0 -1px 0 #2a2b30; }
.install .tab { position: relative; height: 32px; padding: 0 12px; border: 0; background: none; color: var(--muted); font: 500 13px/32px "Instrument Sans", sans-serif; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; border-radius: 6px 6px 0 0; }
.install .tab svg { width: 13px; height: 13px; opacity: .8; }
.install .tab:hover { color: var(--text); }
.install .tab.on { color: var(--text); }
.install .tab.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; border-radius: 2px; background: var(--red); }
.install .cmd { display: flex; align-items: flex-start; gap: 10px; padding: 14px 12px 14px 16px; }
.install .cmd code { flex: 1; min-width: 0; font-size: 12.5px; line-height: 20px; color: #f1f1ef; white-space: pre-wrap; word-break: break-all; }
.install .cmd code .p { color: var(--red); user-select: none; }
.install .copy { flex-shrink: 0; height: 28px; padding: 0 10px; border-radius: 6px; border: 0; background: #26272b; color: var(--soft); font: 500 12px/28px "Instrument Sans", sans-serif; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background 150ms, color 150ms; }
.install .copy:hover { background: #303136; color: var(--text); }
.install .copy.done { color: #3dff9a; }
.install .copy svg { width: 13px; height: 13px; }

/* --- the slideshow stage (spew's: a 1000px scene scaled to fit) */
.show { width: 100%; }
.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 656 / 475;
  border-radius: 8px;
  overflow: hidden;
  background: #26272b;
  isolation: isolate;
  box-shadow: inset 0 0 0 1px #34353a;
}
.tone { position: absolute; inset: 0; opacity: 0; transition: opacity 800ms var(--ease); background: radial-gradient(120% 90% at 20% 0%, var(--a), var(--b)); }
.tone.on { opacity: 1; }
.grain { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: overlay; opacity: .12; pointer-events: none; }
.scene { position: absolute; left: 0; top: 0; width: 1000px; height: 724px; transform-origin: 0 0; transform: scale(var(--k, .656)); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 500ms var(--ease); pointer-events: none; }
.slide.on { opacity: 1; pointer-events: auto; }

.caption { margin-top: 24px; display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center; }
.caption h2 { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 400; }
.caption p { grid-column: 1 / -1; margin: 0; color: var(--soft); max-width: 500px; min-height: 45px; }
.segs { display: flex; gap: 6px; }
.seg { width: 50px; height: 22px; padding: 10px 0; border: 0; background: none; cursor: pointer; }
.seg i { display: block; height: 2px; background: #2c2d31; border-radius: 2px; overflow: hidden; position: relative; }
.seg i::after { content: ''; position: absolute; inset: 0; background: #e8e8e6; transform: scaleX(0); transform-origin: left; }
.seg.done i::after { transform: scaleX(1); }
.seg.on i::after { animation: fill var(--dur, 11s) linear forwards; }
body.paused .seg.on i::after { animation-play-state: paused; }
.seg:hover i { background: #3a3b40; }
@keyframes fill { to { transform: scaleX(1); } }

/* ------------------------------------------------------------------ windows inside the scenes
   The app in a scene only plays its script; "Full size" opens one you can click around in. */
.scene .rf { pointer-events: none; }
.win { position: absolute; border-radius: 11px; overflow: hidden; background: #0a0c0f; box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 0 0 1.5px rgba(255,255,255,.05), 0 30px 60px -20px rgba(0,0,0,.6), 0 10px 24px -8px rgba(0,0,0,.4); }
.win.back { filter: brightness(.72); }
.win > .bar { height: 30px; display: flex; align-items: center; padding: 0 12px; background: #1c1d20; box-shadow: inset 0 -1px 0 #000; position: relative; }
.win .dots { display: flex; gap: 7px; position: relative; z-index: 1; }
.win .dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.win .dots i:nth-child(2) { background: #febc2e; }
.win .dots i:nth-child(3) { background: #28c840; }
.win .title { position: absolute; inset: 0; text-align: center; font: 600 12.5px/30px "Instrument Sans", sans-serif; color: #c9cacd; pointer-events: none; }
.win.term .title { font: 400 11.5px/30px "JetBrains Mono", monospace; color: #9a9ba0; }
.win .clip { position: relative; overflow: hidden; height: calc(100% - 30px); }
.win.bare { border-radius: 14px; }
.win.bare .clip { height: 100%; }
.win .expand { position: absolute; right: 8px; top: 4px; z-index: 2; height: 22px; padding: 0 9px; border: 0; border-radius: 6px; background: #2a2b30; color: #c9cacd; font: 500 11.5px/22px "Instrument Sans", sans-serif; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; }
.win .expand:hover { background: #3a3b41; color: #fff; }
.win .expand svg { width: 11px; height: 11px; }

/* the terminal running Claude Code (not part of ReelForge) */
.term { background: #121314; font-family: "JetBrains Mono", monospace; font-size: 12.5px; line-height: 20px; color: #d8d8d6; }
.tbody { padding: 16px 20px; height: calc(100% - 30px); display: flex; flex-direction: column; }
.tbox { border: 1px solid #3a3b3f; border-radius: 6px; padding: 10px 14px; display: grid; grid-template-columns: 90px 1fr; row-gap: 2px; width: 430px; margin-bottom: 14px; }
.tbox .hd { grid-column: 1 / -1; color: #fff; margin-bottom: 8px; }
.tbox .hd .cc { color: #d97757; }
.tbox .k { color: #85868a; }
.tbox .ok { color: #76ef6b; }
.tline { white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.tline .dot { color: #76ef6b; }
.tline .dot.w { color: #ffa344; }
.tline .tool { color: #fff; font-weight: 500; }
.tline .arg { color: #85868a; }
.tline .bar-p { color: #3dff9a; }
.tline.user { color: #fff; margin: 4px 0 10px; }
.tline.user::before { content: '› '; color: #85868a; }
.tout { color: #ebebe9; white-space: pre-wrap; margin-top: 10px; }
/* the bigger terminal in the hero, so it reads at page size */
.term.big { font-size: 16px; line-height: 25px; }
.term.big .tbody { padding: 20px 24px; }
.term.big .tbox { width: 470px; grid-template-columns: 100px 1fr; }
.cmd-row { display: grid; grid-template-columns: 270px 1fr; gap: 18px; padding: 13px 0; box-shadow: inset 0 -1px 0 #26272a; font-size: 18px; line-height: 26px; }
.cmd-row .c { color: #fff; font-weight: 500; }
.cmd-row .c::before { content: '> '; color: var(--red); }
.cmd-row .d { color: #a5a6aa; font-family: "Instrument Sans", sans-serif; }

/* the onboarding format question (scenes.formatPicker), in the app's look */
.fp { background: #0a0c0f; font: 18px/26px "JetBrains Mono", monospace; color: #d7dde6; }
.fp-body { position: absolute; inset: 30px 0 0; padding: 20px 28px; box-shadow: inset 0 0 0 2px #e8213a; margin: 6px; border-radius: 3px; overflow: hidden; }
.fp-h { color: #fff; }
.fp-sub { color: #8b93a1; margin-bottom: 14px; }
.fp-q { color: #fff; font-weight: 700; margin: 10px 0 6px; }
.fp-list { border: 2px solid #e8213a; padding: 8px 12px; display: flex; flex-direction: column; }
.fp-opt { display: flex; gap: 12px; padding: 1px 6px; white-space: nowrap; }
.fp-opt .b { color: #2a303b; }
.fp-opt .r { color: #d7dde6; }
.fp-opt.on { background: #e8213a; color: #fff; font-weight: 700; }
.fp-opt.on .b { color: #3dff9a; }
.fp-opt.on .r { color: #fff; }
.fp-in { background: #161a21; padding: 9px 14px; color: #fff; }
.fp-in .rf-caret { width: 9px; height: 18px; margin-left: 2px; background: #3dff9a; display: inline-block; vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.fp-ex { color: #3dff9a; min-height: 72px; }
.fp-ex .muted { color: #8b93a1; }

.pointer { position: absolute; left: 0; top: 0; width: 18px; height: 18px; transition: transform 900ms var(--ease), opacity 300ms; opacity: 0; z-index: 50; filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)); pointer-events: none; }
.pointer.on { opacity: 1; }
.pop { animation: pop 450ms var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }

/* ------------------------------------------------------------------ real videos */
.reel { padding: 120px 0 110px; box-shadow: inset 0 1px 0 var(--line); }
.reel-head { display: grid; grid-template-columns: minmax(0, 520px) auto; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 44px; }
.reel-head h3 { margin: 0 0 14px; font-size: 22px; line-height: 1.25; font-weight: 400; }
.reel-head p { margin: 0; color: var(--soft); }
.reel-head .sum { text-align: right; font-size: 13px; color: var(--muted); }
.reel-head .sum b { display: block; font: 500 30px/1.1 "Instrument Sans", sans-serif; color: var(--text); letter-spacing: -0.01em; }
.vids { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.vid { position: relative; margin: 0; }
.vid .phone { position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #1a1b1e; box-shadow: 0 0 0 1px #2a2b30, 0 20px 40px -18px rgba(0,0,0,.7); cursor: pointer; transition: transform 400ms var(--ease), box-shadow 400ms var(--ease); }
.vid .phone:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px #3a3b40, 0 28px 50px -18px rgba(0,0,0,.8); }
.vid video, .vid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vid .shade { position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, rgba(0,0,0,.65)); pointer-events: none; }
.vid .play { position: absolute; left: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.5); backdrop-filter: blur(6px); display: grid; place-items: center; color: #fff; opacity: .9; transition: opacity 200ms; }
.vid .play svg { width: 12px; height: 12px; margin-left: 2px; }
.vid.playing .play { opacity: 0; }
.views { position: absolute; right: 8px; bottom: 9px; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px 0 8px; border-radius: 999px; background: rgba(10, 10, 12, .72); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); font: 600 12.5px/26px "Instrument Sans", sans-serif; color: #fff; white-space: nowrap; cursor: default; }
.views svg { width: 12px; height: 12px; opacity: .9; }
.vid figcaption { margin-top: 12px; font-size: 13.5px; line-height: 1.35; color: var(--soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* the full-size viewer: a video with sound, or the app at full size */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(5, 5, 6, .82); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity 250ms; padding: 24px; }
.modal.on { opacity: 1; pointer-events: auto; }
.modal .close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #222327; color: #fff; font-size: 20px; cursor: pointer; display: grid; place-items: center; }
.modal .close:hover { background: #2e2f34; }
.watch { display: flex; gap: 28px; align-items: center; max-height: 100%; }
.watch video { height: min(84vh, 760px); aspect-ratio: 9 / 16; border-radius: 16px; background: #000; display: block; box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.watch .info { width: 270px; }
.watch h4 { margin: 0 0 14px; font-size: 20px; line-height: 1.3; font-weight: 400; }
.watch .total { font: 500 34px/1.1 "Instrument Sans", sans-serif; letter-spacing: -0.01em; }
.watch .total small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.watch ul { list-style: none; padding: 0; margin: 20px 0 0; font: 13px/2 "JetBrains Mono", monospace; color: var(--soft); }
.watch li { display: flex; justify-content: space-between; box-shadow: inset 0 -1px 0 var(--line); }
.watch li b { color: #fff; font-weight: 500; }
.full-app { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px #2a2b30, 0 30px 80px rgba(0,0,0,.7); }
.full-app .clip { position: relative; overflow: hidden; }
.full-app > .bar { height: 30px; display: flex; align-items: center; padding: 0 12px; background: #1c1d20; position: relative; }
.full-app > .bar .title { position: absolute; inset: 0; text-align: center; font: 600 12.5px/30px "Instrument Sans", sans-serif; color: #c9cacd; }
.full-app .dots { display: flex; gap: 7px; }
.full-app .dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.full-app .dots i:nth-child(2) { background: #febc2e; }
.full-app .dots i:nth-child(3) { background: #28c840; }

/* ------------------------------------------------------------------ sections below the fold */
.more { max-width: 1440px; margin: 0 auto; padding: 0 86px; }
.more > .row {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 656px);
  justify-content: space-between;
  align-items: center;
  gap: 64px;
  padding: 120px 0;
  box-shadow: inset 0 1px 0 var(--line);
}
.more > .row.flip { grid-template-columns: minmax(0, 656px) minmax(0, 420px); }
.more > .row.flip > .copy { order: 2; }
.copy h3 { margin: 0 0 14px; font-size: 22px; line-height: 1.25; font-weight: 400; text-wrap: balance; }
.copy p { margin: 0 0 14px; color: var(--soft); }
.copy p a, .copy p button.link { color: var(--text); text-decoration: underline; text-decoration-color: var(--muted); text-underline-offset: 3px; }
.copy p a:hover { text-decoration-color: var(--text); }
.mini-stage { aspect-ratio: 656 / 440; }
.mini-stage .scene { height: 671px; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.limits { width: 100%; border-collapse: collapse; font-size: 15px; }
.limits td { padding: 13px 0; box-shadow: inset 0 -1px 0 var(--line); }
.limits td:last-child { text-align: right; color: var(--text); font-family: "JetBrains Mono", monospace; font-size: 13.5px; }
.limits td:first-child { color: var(--soft); }
.limits tr:first-child td { box-shadow: inset 0 -1px 0 var(--line), inset 0 1px 0 var(--line); }

.end { padding: 140px 0 120px; box-shadow: inset 0 1px 0 var(--line); text-align: center; }
.end .mark { width: 74px; height: auto; margin: 0 auto; display: block; }
.end h3 { margin: 22px 0 12px; font-size: 30px; line-height: 1.15; font-weight: 400; }
.end p { margin: 0 auto 28px; color: var(--soft); max-width: 470px; }
.end .cta-row { justify-content: center; margin-top: 0; }

footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 40px 86px 34px; font-size: 13px; color: var(--soft); max-width: 1440px; margin: 0 auto; }
footer .legal { display: flex; gap: 16px; flex-wrap: wrap; }
footer .legal a { text-decoration: none; }
footer .legal a:hover { color: var(--text); }

/* ------------------------------------------------------------------ narrower screens */
@media (max-width: 1180px) {
  .vids { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 1060px) {
  .page { grid-template-columns: 1fr; padding: 64px 24px 72px; gap: 52px; }
  .intro { max-width: 620px; }
  .more { padding: 0 24px; }
  .more > .row, .more > .row.flip { grid-template-columns: 1fr; gap: 36px; padding: 80px 0; }
  .more > .row.flip > .copy { order: 0; }
  .reel { padding: 80px 0; }
  .reel-head { grid-template-columns: 1fr; }
  .reel-head .sum { text-align: left; }
  footer { padding: 32px 24px 24px; }
  .watch { flex-direction: column; gap: 16px; }
  .watch video { height: min(64vh, 640px); }
  .watch .info { width: min(100%, 360px); }
}
@media (max-width: 560px) {
  .page { padding: 44px 16px 56px; }
  .more { padding: 0 16px; }
  footer { padding: 28px 16px 22px; }
  .intro h1 { font-size: 23px; }
  .vids { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .btn { height: 40px; }
  .cta-row .btn { flex: 1 1 auto; justify-content: center; }
  .caption { grid-template-columns: 1fr; }
  .segs { order: -1; }
  .install .tab { padding: 0 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
