/* ============ Scene styling — everything lives on the 1920x1080 stage ============ */

.scene { position: absolute; inset: 0; }

/* ---------- shared: big centered supers ---------- */
.super {
  position: absolute;
  left: 0; right: 0;
  text-align: center;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
}

/* ---------- ACT 1 — toolchain hell ---------- */
.pain__ask {
  top: 300px;
  font-size: 76px;
}

.pain__caret {
  display: inline-block;
  width: 8px; height: 64px;
  margin-left: 10px;
  vertical-align: -6px;
  background: var(--white);
}

.pain__zero {
  top: 120px;
  font-size: 64px;
  color: var(--danger);
  z-index: 30;
  text-shadow: 0 4px 40px #000;
}

.term {
  position: absolute;
  width: 560px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 0 0 1px #23262d, 0 30px 70px rgba(0,0,0,.8);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 19px;
  line-height: 1.65;
}

.term__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #15171c;
  font-family: var(--font);
  font-size: 13px;
  color: #6b7280;
}

.term__dot { width: 11px; height: 11px; border-radius: 50%; background: #2d3138; }

.term__body { padding: 14px 18px 18px; color: #aeb6c2; min-height: 120px; }
.term__body .ln { display: block; white-space: pre; }
.term__body .ln--dim { color: #5b6470; }
.term__body .ln--err { color: var(--danger); }
.term__body .ln--warn { color: var(--warn); }
.term__body .ln--ok { color: #7d8694; }

.cfg {
  position: absolute;
  padding: 12px 20px;
  border-radius: 8px;
  background: #121419;
  box-shadow: 0 0 0 1px #262a32, 0 20px 50px rgba(0,0,0,.7);
  font-family: var(--mono);
  font-size: 18px;
  color: #8a93a1;
  white-space: nowrap;
}

/* ---------- ACT 2 — the turn ---------- */
.turn__tab {
  position: absolute;
  left: 50%; top: 50%;
  width: 1100px; height: 640px;
  transform: translate(-50%, -50%);
  border-radius: 14px;
  background: var(--bg-soft, #08080a);
  box-shadow: 0 0 0 1.5px #2a2d34, 0 0 120px rgba(255, 211, 0, 0.07), 0 50px 120px #000;
  overflow: hidden;
}

.turn__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 64px;
  padding: 0 22px;
  background: var(--surface);
  border-bottom: 1px solid #1d2026;
}

.turn__dot { width: 13px; height: 13px; border-radius: 50%; background: #2d3138; }

.turn__url {
  flex: 1;
  max-width: 460px;
  margin-left: 14px;
  padding: 9px 18px;
  border-radius: 100px;
  background: #15171c;
  font-family: var(--mono);
  font-size: 19px;
  color: #cfd4dc;
}

.turn__url b { color: var(--accent); font-weight: 600; }

.turn__line1 {
  top: 300px;
  font-size: 50px;
  font-weight: 700;
  color: #cfd4dc;
}

.turn__stamp {
  top: 300px;
  font-size: 62px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.turn__stamp em { font-style: normal; color: var(--accent); }

/* ---------- ACT 3 — editor ---------- */
.ed {
  position: absolute;
  left: 60px; top: 60px;
  width: 1800px; height: 960px;
  border-radius: 14px;
  background: var(--bg-soft, #08080a);
  box-shadow: 0 0 0 1.5px #2a2d34, 0 50px 120px #000;
  overflow: hidden;
}

.ed__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding: 0 22px;
  background: var(--surface);
  border-bottom: 1px solid #1d2026;
}

.ed__dot { width: 12px; height: 12px; border-radius: 50%; background: #2d3138; }

.ed__url {
  padding: 7px 16px;
  margin-left: 10px;
  border-radius: 100px;
  background: #15171c;
  font-family: var(--mono);
  font-size: 16px;
  color: #cfd4dc;
}

.ed__url b { color: var(--accent); font-weight: 600; }

.ed__actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

.ed__chip {
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  color: #9aa1ad;
  background: #15171c;
  border: 1px solid #23262d;
}

.ed__chip--accent { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

.ed__main { position: relative; display: flex; height: calc(100% - 56px); }

/* code pane */
.code {
  position: relative;
  width: 720px;
  flex: none;
  background: var(--bg-soft, #08080a);
  border-right: 1px solid #1d2026;
  font-family: var(--mono);
  font-size: 21px;
  line-height: 1.75;
  overflow: hidden;
  transition: none;
}

.code__tabs {
  display: flex;
  gap: 4px;
  padding: 10px 14px 0;
  font-family: var(--font);
  font-size: 14.5px;
  color: #79818d;
}

.code__tab { padding: 8px 16px; border-radius: 8px 8px 0 0; }
.code__tab--on { background: #15171c; color: var(--light); }

.code__body { display: flex; padding: 14px 0 0; }

.code__lns {
  width: 56px;
  flex: none;
  text-align: right;
  padding-right: 16px;
  color: #3a3f48;
  user-select: none;
  white-space: pre;
}

.code__txt { white-space: pre; color: #c6ccd6; }

.code__caret {
  display: inline-block;
  width: 2.5px; height: 24px;
  vertical-align: -4px;
  background: var(--accent);
}

.tk-tag { color: var(--blue); }
.tk-attr { color: #8fd0ff; }
.tk-str { color: #d2b56a; }
.tk-txt { color: #c6ccd6; }
.tk-sel { color: var(--accent); }
.tk-prop { color: #8fd0ff; }
.tk-val { color: #d2b56a; }
.tk-pun { color: #5b6470; }
.tk-fix { color: var(--accent); font-weight: 700; }

/* preview area (single, then five-up) */
.view { position: relative; flex: 1; background: #050507; overflow: hidden; }

.dev {
  position: absolute;
  border-radius: 14px;
  background: #111;
  box-shadow: 0 0 0 1.5px #272b33, 0 24px 60px rgba(0,0,0,.75);
}

.dev__label {
  position: absolute;
  left: 50%;
  bottom: -38px;
  transform: translateX(-50%);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #79818d;
  white-space: nowrap;
}

.dev__screen { position: absolute; inset: 0; overflow: hidden; border-radius: 14px; }
.dev__inner { position: absolute; left: 0; top: 0; width: 100%; }

/* the little site being built — Hoff's Bar */
.msite {
  --tagc: #666;
  background: #111;
  color: #f4f4f4;
  font-family: var(--font);
  text-align: center;
  min-height: 100%;
}

.msite__hero { padding: 64px 28px 56px; }
.msite__h1 { font-size: 52px; font-weight: 800; letter-spacing: -0.02em; color: var(--accent); }
.msite__tag { margin-top: 12px; font-size: 21px; color: var(--tagc); }
.msite__btn {
  display: inline-block;
  margin-top: 26px;
  padding: 13px 30px;
  border-radius: 100px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 18px;
}
.msite__menu { padding: 8px 28px 48px; }
.msite__item {
  display: flex;
  justify-content: space-between;
  padding: 16px 4px;
  border-bottom: 1px solid #262626;
  font-size: 18px;
  color: #cfcfcf;
}

/* sync click ripple */
.ripple {
  position: absolute;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* vision chip */
.vision {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  border-radius: 100px;
  background: #15171c;
  border: 1px solid #2a2d34;
  font-size: 16px;
  font-weight: 600;
  color: var(--light);
  z-index: 20;
}

.vision b { color: var(--accent); }

/* audit panel */
.audit {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 470px;
  background: var(--surface);
  border-left: 1px solid #1d2026;
  padding: 26px 28px;
  z-index: 15;
}

.audit__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 19px;
  font-weight: 700;
  color: var(--light);
}

.audit__badge {
  font-size: 14px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 100px;
  background: #15171c;
  color: #79818d;
}

.audit__badge--fail { background: rgba(255, 68, 85, .14); color: var(--danger); }
.audit__badge--pass { background: rgba(255, 211, 0, .16); color: var(--accent); }

.audit__scan {
  margin-top: 18px;
  height: 4px;
  border-radius: 2px;
  background: #1c1e23;
  overflow: hidden;
}

.audit__scan-fill { height: 100%; width: 0%; background: var(--accent); }

.audit__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 2px;
  border-bottom: 1px solid #1d2026;
  font-size: 17px;
  color: #aeb6c2;
}

.audit__tick { width: 22px; flex: none; text-align: center; color: #79818d; }
.audit__item--ok .audit__tick { color: var(--accent); }

.audit__flag {
  margin-top: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 68, 85, .4);
  background: rgba(255, 68, 85, .08);
  padding: 18px;
}

.audit__flag--fixed { border-color: rgba(255, 211, 0, .45); background: rgba(255, 211, 0, .07); }

.audit__flag-title { font-size: 17px; font-weight: 700; color: var(--danger); }
.audit__flag--fixed .audit__flag-title { color: var(--accent); }

.audit__flag-meta { margin-top: 6px; font-size: 15.5px; color: #9aa1ad; font-family: var(--mono); }

.audit__fix {
  margin-top: 14px;
  display: inline-block;
  padding: 10px 22px;
  border-radius: 100px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 15.5px;
  font-weight: 700;
}

/* ship */
.ship__menu {
  position: absolute;
  top: 64px; right: 24px;
  width: 320px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid #2a2d34;
  box-shadow: 0 20px 60px #000;
  padding: 10px;
  z-index: 25;
}

.ship__opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 9px;
  font-size: 17px;
  font-weight: 600;
  color: var(--light);
}

.ship__opt--on { background: var(--accent); color: var(--on-accent); }
.ship__opt span:last-child { margin-left: auto; font-size: 14px; font-weight: 500; opacity: .65; }

.ship__log {
  position: absolute;
  right: 24px; top: 240px;
  width: 320px;
  border-radius: 12px;
  background: #0a0b0e;
  border: 1px solid #23262d;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 14.5px;
  line-height: 1.8;
  color: #8a93a1;
  z-index: 25;
}

.ship__log .ok { color: var(--accent); }

.url {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 44px;
  border-radius: 100px;
  background: var(--surface);
  border: 2px solid var(--accent);
  box-shadow: 0 0 90px rgba(255, 211, 0, .25), 0 40px 100px #000;
  font-family: var(--mono);
  font-size: 36px;
  color: var(--white);
  z-index: 40;
  white-space: nowrap;
}

.url__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); flex: none; }
.url__live { font-family: var(--font); font-size: 19px; font-weight: 700; letter-spacing: .12em; color: var(--accent); }

.ship__copy {
  top: 850px;
  font-size: 48px;
  font-weight: 700;
  color: #cfd4dc;
  z-index: 40;
}

/* flash on the crash */
.flash {
  position: absolute;
  inset: 0;
  background: var(--accent);
  pointer-events: none;
  z-index: 45;
}

/* fake cursor */
.fcur {
  position: absolute;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255, 211, 0, .9);
  box-shadow: 0 0 0 5px rgba(255, 211, 0, .22);
  transform: translate(-50%, -50%);
  z-index: 60;
}

/* ---------- CLOSE ---------- */
.close__logo {
  top: 420px;
  font-size: 170px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.close__logo i { font-style: normal; color: var(--accent); }

.close__tagline {
  top: 640px;
  font-size: 46px;
  font-weight: 600;
  color: #cfd4dc;
  letter-spacing: -0.01em;
}

.close__cta {
  position: absolute;
  top: 740px;
  left: 50%;
  transform: translateX(-50%);
  padding: 18px 40px;
  border-radius: 100px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 26px;
  font-weight: 800;
}
