/* videoterminal.app landing — "terminal cinema": Fraunces (the output's voice) × IBM Plex Mono
   (the machine's voice) on the product's own palette. Motion by GSAP — same engine as the edits. */
:root {
  --bg: #0b0f17; --bg2: #0d1220; --panel: #101624; --panel2: #16203a; --line: #1f2a3d;
  --ink: #e6edf7; --dim: #8a93a5; --accent: #2b8fff; --gold: #e6c34a; --pink: #ff5fd6; --green: #7fe0a8; --red: #ff3b30;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 Fraunces, Georgia, serif; overflow-x: hidden; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
em { font-style: italic; }
a { color: inherit; text-decoration: none; }
b { font-weight: 600; }

/* atmosphere */
.grain { position: fixed; inset: -100%; z-index: 60; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.8'/%3E%3C/svg%3E");
  animation: grain 7s steps(10) infinite; }
@keyframes grain { 0%,100%{transform:translate(0,0)} 20%{transform:translate(-4%,3%)} 40%{transform:translate(3%,-2%)} 60%{transform:translate(-2%,-4%)} 80%{transform:translate(4%,2%)} }
body::after { content:''; position: fixed; inset: 0; z-index: 59; pointer-events: none;
  background: radial-gradient(ellipse 120% 90% at 50% 40%, transparent 55%, rgba(2,4,9,.55) 100%); }
.playhead-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 100;
  background: var(--pink); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px rgba(255,95,214,.7); }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 90; display: flex; align-items: center; gap: 26px;
  padding: 16px 34px; background: linear-gradient(rgba(11,15,23,.92), rgba(11,15,23,0)); }
.logo { font-family: 'IBM Plex Mono', monospace; font-weight: 400; letter-spacing: .02em; font-size: 15px; }
.logo b { font-weight: 700; }
.spacer { flex: 1; }
.nav-a { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--dim); }
.nav-a:hover { color: var(--ink); }
.nav-cta { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: #fff; background: var(--accent);
  padding: 8px 16px; border-radius: 8px; }

/* hero */
.hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 110px 24px 60px; position: relative;
  background: radial-gradient(ellipse 60% 45% at 50% 30%, rgba(43,143,255,.09), transparent 70%), var(--bg); }
.hero-kicker { color: var(--dim); font-size: 12.5px; letter-spacing: .08em; margin-bottom: 26px; }
.hero-h { font-size: clamp(56px, 9.5vw, 128px); line-height: .96; font-weight: 300; margin: 0 0 26px; letter-spacing: -.01em; }
.hero-h em { font-weight: 600; background: linear-gradient(100deg, var(--ink) 30%, var(--accent) 75%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { max-width: 620px; color: var(--dim); font-size: 18.5px; margin: 0 0 44px; }
.hero-sub b { color: var(--ink); }
.scroll-cue { position: absolute; bottom: 26px; color: var(--dim); font-size: 11px; letter-spacing: .1em; text-align: center; line-height: 1.9; }

/* the self-editing demo */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.hero-demo { width: min(860px, 94vw); text-align: left; overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 11.5px; color: var(--dim); }
.dot { width: 10px; height: 10px; border-radius: 50%; } .dot.r{background:#ff5f57} .dot.y{background:#febc2e} .dot.g{background:#28c840}
.demo-title { margin-left: 8px; }
.demo-badge { margin-left: auto; color: var(--gold); }
.demo-transcript { padding: 22px 24px 6px; font-size: 19px; line-height: 2; min-height: 96px; }
.demo-transcript .w { padding: 2px 5px; border-radius: 5px; background: rgba(43,143,255,.07); margin-right: 2px; display: inline-block; }
.demo-transcript .w.cut { text-decoration: line-through; color: #566074; background: rgba(230,100,90,.13); }
.demo-caption-row { height: 40px; display: flex; justify-content: center; align-items: center; }
.demo-caption { font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 600; background: rgba(0,0,0,.65);
  padding: 5px 12px; border-radius: 6px; opacity: 0; }
.demo-timeline { position: relative; margin: 8px 18px 12px; height: 62px; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.demo-clips { position: absolute; inset: 8px 8px 26px; display: flex; gap: 3px; }
.demo-clips .clip { background: linear-gradient(rgba(43,143,255,.25), rgba(43,143,255,.1)); border: 1px solid #2b3a55; border-radius: 3px; position: relative; overflow: hidden; }
.demo-clips .clip::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
  background: repeating-linear-gradient(90deg, rgba(120,180,240,.55) 0 1.5px, transparent 1.5px 4px); opacity: .7; }
.demo-play { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--pink); left: 6%; box-shadow: 0 0 8px rgba(255,95,214,.8); }
.demo-music { position: absolute; left: 8px; right: 40%; bottom: 4px; height: 16px; background: rgba(80,200,130,.15);
  border: 1px solid rgba(80,200,130,.5); border-radius: 4px; font-size: 9px; color: var(--green); padding: 0 6px; opacity: 0; }
.demo-term { padding: 12px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink); }
.prompt { color: var(--accent); font-weight: 700; }
.caret { display: inline-block; width: 8px; height: 15px; background: var(--accent); vertical-align: -2px; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* sections */
.sect { padding: 15vh 6vw; max-width: 1240px; margin: 0 auto; }
.slug { color: var(--gold); font-size: 12.5px; letter-spacing: .14em; border-top: 1px solid rgba(230,195,74,.35);
  padding-top: 14px; margin-bottom: 44px; }
.h2 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 300; line-height: 1.08; margin: 0 0 22px; }
.h2 em { font-weight: 600; color: var(--accent); }
.center { text-align: center; }
.sub2 { color: var(--dim); max-width: 560px; margin: 0 auto 56px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-copy p { color: var(--dim); margin: 0 0 16px; } .split-copy b { color: var(--ink); }
.hl { color: var(--gold); font-size: .82em; background: rgba(230,195,74,.08); padding: 2px 7px; border-radius: 5px; }
.kbd { font-family: 'IBM Plex Mono', monospace; font-size: .72em; border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 5px; padding: 1px 7px; background: var(--panel2); color: var(--ink); }
.dim { color: var(--dim); font-size: 13px; }

.term-panel { padding: 26px 26px 30px; font-size: 13.5px; line-height: 2.2; }
.term-out { color: var(--green); opacity: 0; padding-left: 18px; font-size: 12.5px; }
.term-line .say { color: var(--ink); }

/* loop — an actual LOOP: dashed ring, arrowhead, 4 stages at the compass points */
.loop-circle { position: relative; width: min(880px, 92vw); height: 640px; margin: 40px auto 0; }
.loop-ring { position: absolute; left: 50%; top: 50%; width: 560px; height: 560px; transform: translate(-50%, -50%); }
#loop-path { stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 7 8; opacity: .55; }
#loop-arrow { fill: var(--accent); opacity: 0; }
.loop-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; }
.loop-center b { font-size: 34px; font-weight: 300; line-height: 1.15; }
.loop-center em { font-weight: 600; color: var(--pink); }
.loop-card { position: absolute; width: 250px; padding: 20px 18px; border-radius: 12px; }
.loop-card.pos-n { left: 50%; top: -8px; transform: translateX(-50%); }
.loop-card.pos-e { right: -6px; top: 50%; transform: translateY(-50%); }
.loop-card.pos-s { left: 50%; bottom: -8px; transform: translateX(-50%); }
.loop-card.pos-w { left: -6px; top: 50%; transform: translateY(-50%); }
.loop-card .ln { color: var(--pink); font-size: 11px; display: block; margin-bottom: 10px; }
.loop-card b { font-size: 18px; display: block; margin-bottom: 7px; font-weight: 600; }
.loop-card p { color: var(--dim); font-size: 13px; margin: 0; line-height: 1.55; }

/* cursor — a playhead for the page (fine pointers only) */
@media (pointer: fine) {
  body { cursor: none; }
  a, button, .w { cursor: none; }
  .cursor-dot { position: fixed; z-index: 200; width: 6px; height: 6px; border-radius: 50%;
    background: var(--pink); pointer-events: none; transform: translate(-50%, -50%); box-shadow: 0 0 10px rgba(255,95,214,.9); }
  .cursor-ring { position: fixed; z-index: 199; width: 34px; height: 34px; border-radius: 50%;
    border: 1.5px solid rgba(43,143,255,.55); pointer-events: none; transform: translate(-50%, -50%);
    transition: width .25s, height .25s, border-color .25s; }
  body.cursor-hover .cursor-ring { width: 56px; height: 56px; border-color: var(--gold); }
}
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }
.hero-spot { position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(circle 340px at var(--sx, 50%) var(--sy, 35%), rgba(43,143,255,.13), transparent 70%);
  transition: opacity .5s; }
.hero:hover .hero-spot { opacity: 1; }
.hero-demo { will-change: transform; transform-style: preserve-3d; position: relative; }
.hero-demo::before { content: ''; position: absolute; inset: 0; z-index: 7; pointer-events: none; border-radius: 14px;
  background: radial-gradient(circle 260px at var(--gx, 50%) var(--gy, -30%), rgba(160,200,255,.09), transparent 70%); }

/* review */
.rev-panel { padding: 18px; }
.rev-frame { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden;
  background: linear-gradient(140deg, #182338, #0d1424 60%), var(--bg2); border: 1px solid var(--line); }
.rev-l3 { position: absolute; left: 5%; bottom: 9%; background: #0c0f16; border-left: 3px solid var(--green);
  padding: 10px 18px; } .rev-l3 b { font-size: 17px; display: block; }
.rev-l3 .mono { font-size: 9px; letter-spacing: .22em; color: var(--dim); }
.rev-draw { position: absolute; inset: 0; width: 100%; height: 100%; }
#rev-circle { stroke: var(--red); stroke-width: 3; stroke-linecap: round; }
.rev-rail { position: relative; height: 16px; margin: 12px 4px 4px; }
.rdot { position: absolute; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.rdot.ref { background: var(--red); }
.rev-note { color: var(--dim); font-size: 12px; padding: 6px 4px 2px; }

/* numbers */
.nums-sect { padding-top: 6vh; padding-bottom: 6vh; }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); padding: 46px 0; }
.num { text-align: center; }
.num b { font-size: clamp(38px, 4.5vw, 62px); font-weight: 300; display: block; color: var(--accent); font-variant-numeric: tabular-nums; }
.num span { color: var(--dim); font-size: 11.5px; display: block; max-width: 210px; margin: 8px auto 0; line-height: 1.6; }

/* pricing */
.price-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 26px; max-width: 980px; margin: 56px auto 0; align-items: stretch; }
.price-card { padding: 34px 32px; border-radius: 16px; display: flex; flex-direction: column; position: relative; }
.price-card.flagship { border-color: rgba(230,195,74,.55); background: linear-gradient(170deg, rgba(230,195,74,.06), transparent 40%), var(--panel); }
.pc-flag { position: absolute; top: -11px; left: 28px; background: var(--gold); color: #0b0f17; font-size: 10.5px;
  font-weight: 700; letter-spacing: .1em; padding: 3px 12px; border-radius: 99px; }
.pc-name { color: var(--dim); font-size: 12px; letter-spacing: .16em; margin-bottom: 14px; }
.pc-price { font-size: 42px; font-weight: 300; margin-bottom: 14px; } .pc-price span { font-size: 17px; color: var(--dim); }
.pc-desc { color: var(--dim); font-size: 15.5px; margin: 0 0 20px; }
.price-card ul { list-style: none; margin: 0 0 30px; padding: 0; font-size: 13px; line-height: 2.2; color: var(--ink); flex: 1; }
.pc-btn { display: inline-block; text-align: center; font-family: 'IBM Plex Mono', monospace; font-size: 14px;
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 22px; }
.pc-btn:hover { border-color: var(--accent); }
.pc-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.pc-btn.primary:hover { filter: brightness(1.12); }
.pc-btn.big { font-size: 17px; padding: 16px 38px; }

/* closer */
.closer { text-align: center; padding: 18vh 6vw 8vh; background: radial-gradient(ellipse 55% 45% at 50% 68%, rgba(255,95,214,.07), transparent 70%), var(--bg); }
.closer-h { color: var(--dim); font-size: 13px; margin-bottom: 26px; }
.h1b { font-size: clamp(40px, 6.5vw, 84px); font-weight: 300; line-height: 1.04; margin: 0 0 42px; }
.h1b em { font-weight: 600; color: var(--gold); }
.foot { display: flex; justify-content: space-between; color: var(--dim); font-size: 12px; margin-top: 14vh;
  border-top: 1px solid var(--line); padding-top: 24px; }

@media (max-width: 900px) {
  .split, .price-row { grid-template-columns: 1fr; }
  .loop-circle { height: auto; display: flex; flex-direction: column; gap: 14px; align-items: center; }
  .loop-ring, .loop-center { display: none; }
  .loop-card, .loop-card.pos-n, .loop-card.pos-e, .loop-card.pos-s, .loop-card.pos-w { position: static; transform: none; width: 100%; }
  .nums { grid-template-columns: 1fr 1fr; }
  .nav-a { display: none; }
}

/* the six clips the hero's agent produces — mini 9:16 cards */
.demo-cliprow { display: flex; gap: 9px; padding: 2px 18px 16px; }
.mini { width: 52px; aspect-ratio: 9/16; border-radius: 7px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #1c2a44, #101624 70%); border: 1px solid #2b3a55; }
.mini::before { content: ''; position: absolute; left: 18%; top: 22%; width: 64%; height: 34%;
  border-radius: 50% 50% 46% 46%; background: radial-gradient(circle at 50% 32%, #3d5a8a, #22334f 70%); opacity: .9; }
.mini .mn { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 7.5px; color: var(--gold); letter-spacing: .06em; }
.mini .ml { position: absolute; left: 0; right: 0; bottom: 3px; text-align: center; font-size: 7px; color: var(--dim); }

/* early-access form + Peer Through link card */
.access-form { display: flex; flex-direction: column; gap: 9px; }
.access-form input { background: #0e1626; border: 1px solid var(--line); border-radius: 9px; color: var(--ink);
  font: 13.5px 'IBM Plex Mono', monospace; padding: 11px 13px; }
.access-form input:focus { border-color: var(--accent); outline: none; }
.af-ok { color: var(--green); font-size: 13px; padding: 8px 2px; }
.hidden { display: none !important; }
.pt-card { transition: border-color .25s, transform .25s; }
.pt-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.pt-card .pc-btn { margin-top: auto; }
.pc-price span { font-size: 19px; color: var(--dim); font-weight: 300; }
.hero-dl { margin-top: 18px; display: flex; align-items: center; gap: 14px; }
.hero-dl .nav-cta { font-size: 15px; padding: 10px 22px; }
.hero-dl-sub { font-size: 11px; opacity: .65; }
.hero-dl-sub a { color: inherit; }
/* closed-alpha success: the follow step */
.af-ok .af-follow { display: inline-block; margin: 10px 0 4px; text-decoration: none; }
.af-ok-sub { color: var(--dim, #8b93a7); font-size: 11.5px; }
