/* Theme: 90s Saturday-morning action cartoon. Night city, searchlights, a jet, radar and hazard stripes. */
html { color-scheme: dark; }

body.jet {
  --night: #0b1028;
  --deep: #111936;
  --steel: #1d2a52;
  --steel-2: #26356a;
  --plum: #3b2260;
  --orange: #ff7a1f;
  --yellow: #ffd23f;
  --cyan: #4fd6ff;
  --cream: #f3ecdc;
  --ink: #05070f;
  --muted: #a7b1d0;

  --bg: var(--deep);
  --surface: var(--steel);
  --line: rgb(79 214 255 / 0.18);
  --line-strong: var(--ink);
  --accent: var(--orange);
  --on-accent: var(--ink);
  --focus: 0 0 0 3px var(--ink), 0 0 0 6px var(--yellow);
  --font-display: "Bungee", Impact, sans-serif;
  --font-body: "Chakra Petch", ui-sans-serif, system-ui, sans-serif;
  --hazard: repeating-linear-gradient(-45deg, var(--yellow) 0 12px, var(--ink) 12px 24px);

  background:
    linear-gradient(rgb(79 214 255 / 0.05) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgb(79 214 255 / 0.05) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--deep);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.06rem;
  overflow-x: hidden;
}

/* Animation-cel scanlines, very faint. */
body.jet::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgb(0 0 0 / 0.08) 0 1px, transparent 1px 3px);
}

/* Opening: a "Scramble!" panel that streaks off-screen. */
.scramble {
  position: fixed; inset: 0 -20vw 0 -10vw; z-index: 100; pointer-events: none;
  display: grid; place-items: center;
  background: var(--ink);
  border-right: 28px solid transparent;
  border-image: var(--hazard) 1;
  animation: scramble 1.1s cubic-bezier(0.7, 0, 0.3, 1) 0.55s both;
}
.scramble span {
  font: clamp(3rem, 12vw, 9rem)/1 var(--font-display);
  color: var(--yellow);
  transform: skewX(-12deg);
  text-shadow: 6px 6px 0 var(--orange);
  animation: flash 0.18s steps(2) 3;
}
@keyframes scramble { to { transform: translateX(130vw) skewX(-14deg); visibility: hidden; } }
@keyframes flash { 50% { opacity: 0.2; } }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 110;
  padding: 8px 14px; border: 3px solid var(--ink);
  background: var(--yellow); color: var(--ink); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 10px; }

/* ---- header ---- */
.hangar-bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: clamp(12px, 3vw, 28px);
  padding: 12px clamp(16px, 4vw, 40px) 22px;
  background: var(--night); border-bottom: 4px solid var(--ink);
}
.hangar-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9px; background: var(--hazard); }
.logo {
  font: 1.45rem/1 var(--font-display); color: var(--orange); text-decoration: none;
  display: inline-block; transform: skewX(-10deg);
  -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--ink);
}
.hangar-bar nav { flex: 1; display: flex; gap: 4px; }
.hangar-bar nav a { padding: 6px 12px; color: var(--cream); font-weight: 600; text-decoration: none; }
.hangar-bar nav a:hover { color: var(--yellow); background: rgb(79 214 255 / 0.1); }

.tray {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 34px; padding: 4px 12px;
  border: 2px solid var(--cyan); color: var(--cyan);
  background: rgb(79 214 255 / 0.1); font-weight: 700;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.tray.bump { animation: tray-bump 0.45s cubic-bezier(0.3, 1.8, 0.5, 1); }
@keyframes tray-bump { 40% { transform: scale(1.3); background: rgb(79 214 255 / 0.4); } }

/* ---- buttons ---- */
body.jet .btn {
  --tx: 0px; --ty: 0px;
  min-height: 52px; padding: 0 26px;
  border: 3px solid var(--ink); border-radius: 4px;
  font: 700 17px/1 var(--font-body);
  box-shadow: 5px 5px 0 var(--ink);
  transform: translate(var(--tx), var(--ty)) skewX(-8deg);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
body.jet .btn:hover { --tx: -2px; --ty: -2px; box-shadow: 7px 7px 0 var(--ink); }
body.jet .btn:active { --tx: 4px; --ty: 4px; box-shadow: 1px 1px 0 var(--ink); }
body.jet .btn-primary, body.jet .btn-primary:hover { background: var(--orange); color: var(--ink); }
body.jet .btn-quiet, body.jet .btn-quiet:hover { background: var(--yellow); color: var(--ink); }
body.jet .btn-quiet[aria-disabled="true"] { background: transparent; color: var(--muted); border: 2px dashed var(--muted); box-shadow: none; }

/* ---- hero: dusk over the city ---- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #0b1028 0%, #24194d 40%, #6b2a5c 66%, #e0582a 86%, #ff9a3c 100%);
  border-bottom: 4px solid var(--ink);
}
.sky { position: absolute; inset: 0; z-index: -1; }
.sun {
  position: absolute; left: 62%; bottom: 8%; width: min(46vw, 560px); aspect-ratio: 1;
  transform: translateX(-50%); border-radius: 50%;
  background: repeating-linear-gradient(180deg, #ffb347 0 18px, transparent 18px 26px), radial-gradient(circle, #ffd23f, #ff7a1f 70%);
  -webkit-mask: linear-gradient(#000 40%, transparent 92%); mask: linear-gradient(#000 40%, transparent 92%);
  opacity: 0.85;
}
.beams i {
  position: absolute; bottom: 12%; width: 150px; height: 120%;
  background: linear-gradient(to top, rgb(255 244 200 / 0.42), rgb(255 244 200 / 0));
  clip-path: polygon(46% 100%, 54% 100%, 100% 0, 0 0);
  transform-origin: 50% 100%;
  mix-blend-mode: screen;
  animation: sweep 7s ease-in-out infinite alternate;
}
.beams i:first-child { left: 22%; transform: rotate(-24deg); }
.beams i:last-child { left: 78%; animation-delay: -3.5s; animation-duration: 8.5s; }
@keyframes sweep { from { transform: rotate(-28deg); } to { transform: rotate(26deg); } }

.skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 36%; }
.city-back rect { fill: #2a2156; }
.city-front rect { fill: #0a0d22; stroke: var(--ink); stroke-width: 3; }
.windows rect { opacity: 0.75; }
.antenna { stroke: #0a0d22; stroke-width: 5; }
.beacon { fill: #ff3b3b; }

.hero-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center;
  gap: clamp(16px, 3vw, 40px);
  width: min(1200px, 100% - 32px); margin: 0 auto;
  min-height: min(820px, calc(100svh - 76px));
  padding: clamp(36px, 6vw, 72px) 0 clamp(120px, 16vw, 200px);
}
.hero-copy > * { animation: pop 0.6s cubic-bezier(0.3, 1.5, 0.5, 1) both; }
.hero-copy > :nth-child(1) { animation-delay: 1.45s; }
.hero-copy > :nth-child(2) { animation-delay: 1.55s; }
.hero-copy > :nth-child(3) { animation-delay: 1.75s; }
.hero-copy > :nth-child(4) { animation-delay: 1.85s; }
.hero-copy > :nth-child(5) { animation-delay: 1.95s; }
@keyframes pop { from { opacity: 0; transform: translateX(-40px) skewX(-12deg); } }

.ribbon { display: inline-block; margin: 0 0 18px; filter: drop-shadow(4px 4px 0 var(--ink)); }
.ribbon span {
  display: block; padding: 8px 26px;
  background: var(--yellow); color: var(--ink);
  font-weight: 700; font-size: 15px;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

.hero h1 {
  margin: 0; transform: skewX(-8deg) rotate(-2deg); transform-origin: left center;
  font: clamp(2.3rem, 4.9vw, 4.4rem)/1 var(--font-display);
  -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--orange), 8px 8px 0 var(--ink);
}
.hero h1 span { display: block; color: var(--yellow); }
.hero h1 span + span { color: var(--cream); }

.lede { max-width: 42ch; margin: 26px 0 28px; font-size: 1.2rem; line-height: 1.55; color: #e7dccb; text-shadow: 0 2px 8px rgb(0 0 0 / 0.5); }

.cast { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 34px; }
.cast:has(.dock:empty) { display: none; }
.cast-label { font: 1.05rem var(--font-display); color: var(--cyan); text-shadow: 2px 2px 0 var(--ink); }
.dock { display: flex; flex-wrap: wrap; gap: 14px; }
.dock-item {
  position: relative; display: block; width: 58px; height: 58px;
  container-type: inline-size; text-decoration: none;
  animation: formation 2.4s ease-in-out calc(var(--i, 0) * -0.4s) infinite;
}
@keyframes formation { 50% { transform: translateY(-7px) rotate(-3deg); } }
.dock-icon { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(3px 3px 0 var(--ink)); }
.dock-label {
  position: absolute; left: 50%; bottom: calc(100% + 12px);
  transform: translate(-50%, 6px);
  padding: 3px 10px; border: 2px solid var(--cyan);
  background: var(--night); color: var(--cyan);
  font-weight: 700; font-size: 13px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.15s ease, transform 0.2s ease;
}
.dock-item:hover .dock-label, .dock-item:focus-visible .dock-label { opacity: 1; transform: translate(-50%, 0); }
.dock-item:focus-visible { box-shadow: none; }
.dock-item:focus-visible .dock-icon { outline: 3px solid var(--yellow); outline-offset: 3px; }

.icon-letter {
  display: grid; place-items: center;
  width: 82%; height: 82%; margin: 9%;
  border: 3px solid var(--ink); border-radius: 22%;
  background: var(--accent); color: #fff;
  font: 42cqi/1 var(--font-display);
  -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill;
  box-shadow: inset 0 -6px 0 rgb(0 0 0 / 0.2);
}

/* ---- the jet ---- */
.stage { position: relative; animation: fly-in 1.4s cubic-bezier(0.15, 0.85, 0.25, 1) 1.15s both; }
@keyframes fly-in { from { transform: translate(-115vw, 60px) rotate(-8deg); } }
.jet-svg { width: 118%; max-width: 760px; height: auto; overflow: visible; margin-left: -6%; }
.jet-body { transform-box: view-box; transform-origin: 300px 150px; animation: cruise 2.6s ease-in-out infinite; }
@keyframes cruise {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1.5deg); }
}
.jet-svg .hull { fill: #2c3d74; stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; }
.jet-svg .fin { fill: #2c3d74; stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; }
.jet-svg .fin-2 { fill: #1d2a52; }
.jet-svg .wing { fill: #34478a; stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; }
.jet-svg .wing-far { fill: #1b2449; stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; }
.jet-svg .wing-tip, .jet-svg .stripe { fill: var(--orange); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.jet-svg .intake { fill: #141c3c; stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.jet-svg .nozzle { fill: #3a3f55; stroke: var(--ink); stroke-width: 4; }
.jet-svg .nose { fill: var(--ink); }
.jet-svg .badge { fill: var(--yellow); stroke: var(--ink); stroke-width: 4; }
.jet-svg .badge-t { fill: var(--ink); }
.jet-svg .canopy { fill: rgb(130 220 255 / 0.32); stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; }
.jet-svg .glint { fill: none; stroke: rgb(255 255 255 / 0.75); stroke-width: 4; stroke-linecap: round; }
.jet-svg .case { fill: #ecdcb6; stroke: var(--ink); stroke-width: 4; }
.jet-svg .screen { fill: var(--cream); stroke: var(--ink); stroke-width: 2.5; }
.jet-svg .strap { stroke: #6b3b1c; stroke-width: 6; }
.jet-svg .goggle { fill: var(--yellow); stroke: var(--ink); stroke-width: 3.5; }
.jet-svg .smile { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; }
.jet-svg .scarf { fill: #e23b2e; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; transform-box: fill-box; transform-origin: right center; animation: flap 0.24s ease-in-out infinite alternate; }
@keyframes flap { from { transform: scaleY(0.8) skewY(-6deg); } to { transform: scaleY(1.15) skewY(5deg); } }

.flame { transform-box: view-box; transform-origin: 46px 148px; animation: afterburner 0.11s steps(2) infinite alternate; }
.flame-o { fill: var(--orange); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.flame-i { fill: var(--yellow); }
@keyframes afterburner { from { transform: scaleX(0.82) scaleY(0.92); } to { transform: scaleX(1.18) scaleY(1.04); } }

.speed path { stroke: rgb(243 236 220 / 0.7); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 34 22; animation: streak 0.45s linear infinite; }
.speed path:nth-child(2) { animation-duration: 0.35s; }
.speed path:nth-child(3) { animation-duration: 0.55s; }
@keyframes streak { to { stroke-dashoffset: 56; } }

/* ---- title cards ---- */
.title-card {
  display: inline-block; margin: 0;
  font: clamp(2rem, 4.8vw, 3.4rem)/1.05 var(--font-display);
  color: var(--yellow);
  -webkit-text-stroke: 2.5px var(--ink); paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--orange), 7px 7px 0 var(--ink);
  transform: skewX(-8deg);
}

/* ---- apps ---- */
.apps, .install { width: min(1100px, 100% - 32px); margin: 0 auto; }
.apps { padding: clamp(48px, 7vw, 88px) 0 24px; }

.app {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 220px 1fr; align-items: center;
  gap: clamp(24px, 4vw, 52px);
  margin: 44px 0; padding: clamp(30px, 4vw, 46px) clamp(22px, 3.5vw, 40px) clamp(22px, 3.5vw, 40px);
  background: linear-gradient(160deg, var(--steel-2), var(--steel) 60%);
  border: 4px solid var(--ink); border-radius: 6px;
  box-shadow: 8px 8px 0 var(--ink);
}
.app::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: var(--hazard); border-bottom: 3px solid var(--ink); }
.app:nth-of-type(even) { grid-template-columns: 1fr 220px; }
.app:nth-of-type(even) .app-art { order: 2; }

/* Each app sits on a live radar scope. */
.app-art {
  position: relative; overflow: hidden;
  display: grid; place-items: center; aspect-ratio: 1;
  container-type: inline-size;
  border: 4px solid var(--ink); border-radius: 50%;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgb(79 214 255 / 0.3) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(transparent calc(50% - 1px), rgb(79 214 255 / 0.3) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    repeating-radial-gradient(circle, transparent 0 21px, rgb(79 214 255 / 0.28) 21px 23px),
    #071526;
  box-shadow: inset 0 0 0 5px rgb(79 214 255 / 0.25), 6px 6px 0 var(--ink);
}
.app-art::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgb(79 214 255 / 0.55), rgb(79 214 255 / 0) 70deg);
  animation: radar 3.2s linear infinite;
}
@keyframes radar { to { transform: rotate(360deg); } }
.app-icon { position: relative; width: 62%; height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(3px 4px 0 var(--ink)); }
.app-icon.icon-letter { width: 54%; height: 54%; margin: 0; font-size: 28cqi; filter: none; box-shadow: 3px 4px 0 var(--ink), inset 0 -6px 0 rgb(0 0 0 / 0.2); }
.app:hover .app-icon { animation: lock-on 0.5s ease; }
@keyframes lock-on {
  30% { transform: scale(1.12); filter: drop-shadow(0 0 14px var(--cyan)) drop-shadow(3px 4px 0 var(--ink)); }
}

.app h3 { margin: 0; font: clamp(1.8rem, 3.6vw, 2.5rem)/1.05 var(--font-display); color: var(--orange); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--ink); }
.tagline { margin: 10px 0 0; font-size: 1.2rem; font-weight: 600; line-height: 1.35; }
.desc { max-width: 60ch; margin-top: 14px; color: var(--muted); }
.desc p { margin: 0 0 0.8em; }

.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.facts div { padding: 6px 13px; background: rgb(79 214 255 / 0.07); border: 2px solid rgb(79 214 255 / 0.4); }
.facts dt { font-size: 12.5px; color: var(--cyan); }
.facts dd { margin: 0; font-weight: 700; font-size: 15px; }
.seal { display: inline-flex; align-items: center; gap: 6px; }
.seal::before {
  content: ""; width: 16px; height: 16px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='7.6' fill='%2332b25a' stroke='%2305070f' stroke-width='1.8'/%3E%3Cpath d='M5.6 9.2 8 11.5l4.4-4.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.checksum { font-size: 14px; color: var(--muted); }
.checksum summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.checksum code { display: block; max-width: 44ch; margin-top: 6px; font: 12px/1.5 var(--font-mono); word-break: break-all; color: var(--cream); }

.empty { margin: 32px 0 0; padding: 40px 24px; text-align: center; font-size: 1.25rem; font-weight: 600; border: 3px dashed var(--cyan); color: var(--cyan); }

/* ---- install demo ---- */
.install { padding: clamp(64px, 9vw, 112px) 0 clamp(56px, 8vw, 96px); }
.install-head p { margin: 16px 0 0; font-size: 1.2rem; color: var(--muted); }

.install-demo {
  --dur: 2000ms;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 72px); align-items: center;
  margin-top: 44px;
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.step {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 52px 1fr; align-items: start;
  width: 100%; padding: 16px 18px 20px;
  border: 3px solid transparent; border-radius: 4px;
  background: none; color: var(--muted);
  font: inherit; text-align: left; cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.3s ease;
}
.step:hover { background: rgb(79 214 255 / 0.06); }
.step-n { font: 1.8rem/1 var(--font-display); color: var(--cyan); opacity: 0.5; transition: color 0.25s ease, transform 0.3s ease, opacity 0.25s; }
.step-text strong { display: block; color: var(--cream); font-weight: 700; font-size: 1.15rem; margin-bottom: 2px; }
.step-text > span { display: block; font-size: 1rem; line-height: 1.5; }
.step::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 7px; height: 5px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left;
}
.install-demo[data-stage="1"] .step[data-go="1"],
.install-demo[data-stage="2"] .step[data-go="2"],
.install-demo[data-stage="3"] .step[data-go="3"] {
  background: var(--steel); border-color: var(--ink); color: var(--cream);
  box-shadow: 6px 6px 0 var(--orange); transform: skewX(-3deg);
}
.install-demo[data-stage="1"] .step[data-go="1"] .step-n,
.install-demo[data-stage="2"] .step[data-go="2"] .step-n,
.install-demo[data-stage="3"] .step[data-go="3"] .step-n { color: var(--orange); opacity: 1; transform: scale(1.2); }
.install-demo.is-playing[data-stage="1"] .step[data-go="1"]::after,
.install-demo.is-playing[data-stage="2"] .step[data-go="2"]::after,
.install-demo.is-playing[data-stage="3"] .step[data-go="3"]::after { animation: step-progress var(--dur) linear forwards; }
@keyframes step-progress { to { transform: scaleX(1); } }

.scene { position: relative; padding-top: 44px; }
.finder {
  border: 4px solid var(--ink); border-radius: 8px; overflow: hidden;
  background: var(--night); box-shadow: 8px 8px 0 var(--ink);
  opacity: 0; transform: translateX(-30px) skewX(-6deg);
  transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.install-demo:not([data-stage="0"]) .finder { opacity: 1; transform: none; }

.titlebar {
  position: relative; display: flex; align-items: center;
  height: 40px; padding: 0 14px;
  background: var(--steel-2); border-bottom: 4px solid var(--ink);
}
.lights { display: flex; gap: 8px; }
.lights i { width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--ink); background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.titlebar .title { position: absolute; left: 50%; transform: translateX(-50%); font-weight: 700; font-size: 15px; }

.finder-body {
  position: relative; height: 250px;
  background:
    linear-gradient(rgb(79 214 255 / 0.08) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgb(79 214 255 / 0.08) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--night);
}
.slot { position: absolute; top: 50%; transform: translate(-50%, -55%); display: grid; justify-items: center; gap: 10px; }
.slot > span:not(.scene-icon) { padding: 1px 9px; background: var(--ink); border: 2px solid var(--cyan); color: var(--cyan); font-size: 14px; font-weight: 700; white-space: nowrap; }
.slot-app { left: 24%; }
.slot-folder { left: 76%; }
.folder { width: 96px; height: 80px; }

.scene .scene-icon { width: 88px; height: 88px; object-fit: contain; filter: drop-shadow(3px 4px 0 var(--ink)); }
.scene .scene-icon.icon-letter { width: 72px; height: 72px; margin: 8px; font-size: 32px; filter: none; }

.drag-hint { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); width: 110px; color: var(--cyan); opacity: 0.7; }
.install-demo[data-stage="2"] .drag-hint path { animation: march 0.6s linear infinite; }
@keyframes march { to { stroke-dashoffset: -26; } }

.ghost {
  position: absolute; left: 24%; top: 50%; width: 88px; height: 88px;
  transform: translate(-50%, -55%); pointer-events: none;
  transition: left 1.2s cubic-bezier(0.55, 0, 0.25, 1) 0.4s, transform 0.35s ease, opacity 0.3s ease;
}
.ghost .scene-icon { opacity: 0; transition: opacity 0.25s ease; }
.cursor { position: absolute; right: -26px; bottom: -24px; width: 42px; height: 46px; opacity: 0; }

.install-demo[data-stage="1"] .cursor { opacity: 1; animation: cursor-in 1.1s cubic-bezier(0.3, 0.8, 0.3, 1) both; }
@keyframes cursor-in { from { transform: translate(100px, 80px) rotate(20deg); opacity: 0; } 40% { opacity: 1; } }
.install-demo[data-stage="2"] .ghost { left: 76%; transform: translate(-50%, -66%) scale(1.08) rotate(-10deg); }
.install-demo[data-stage="2"] .ghost .scene-icon { opacity: 0.92; }
.install-demo[data-stage="2"] .cursor { opacity: 1; }
.install-demo[data-stage="2"] .slot-app .scene-icon { opacity: 0.35; }
.install-demo[data-stage="3"] .ghost { left: 76%; transform: translate(-50%, -50%) scale(0.15) rotate(30deg); opacity: 0; }
.install-demo[data-stage="3"] .folder { animation: gulp 0.6s cubic-bezier(0.3, 1.8, 0.5, 1) 0.15s; }
@keyframes gulp { 35% { transform: scale(1.2, 0.85); } 65% { transform: scale(0.92, 1.1); } }

/* HUD alert */
.notice {
  position: absolute; top: -14px; right: -8px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  width: min(330px, 92%); padding: 12px 16px;
  background: var(--ink); color: var(--cream);
  border: 3px solid var(--cyan);
  box-shadow: 6px 6px 0 var(--orange);
  font-size: 13.5px; line-height: 1.35;
  opacity: 0; transform: translateY(-14px) scale(0.9);
  transition: opacity 0.2s ease, transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.notice strong { display: block; font-size: 15px; color: var(--yellow); }
.notice > span > span { color: var(--muted); }
.notice-icon { flex: none; width: 40px; height: 40px; container-type: inline-size; }
.notice .scene-icon { width: 40px; height: 40px; filter: none; }
.notice .scene-icon.icon-letter { width: 34px; height: 34px; margin: 3px; font-size: 15px; border-width: 2px; }
.install-demo[data-stage="3"] .notice { opacity: 1; transform: none; transition-delay: 0.45s; animation: alert 0.3s steps(2) 0.45s 2; }
@keyframes alert { 50% { border-color: var(--yellow); } }

.install-demo[data-stage="0"] .scene *, .install-demo[data-stage="0"] .finder { transition: none !important; animation: none !important; }

/* ---- verify ---- */
.verify {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: clamp(24px, 5vw, 52px); align-items: center;
  margin-top: clamp(64px, 9vw, 104px); padding: clamp(34px, 4.5vw, 48px) clamp(24px, 4vw, 40px) clamp(24px, 4vw, 40px);
  background: linear-gradient(160deg, var(--plum), #26184a);
  border: 4px solid var(--ink); border-radius: 6px;
  box-shadow: 8px 8px 0 var(--ink);
}
.verify::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: var(--hazard); border-bottom: 3px solid var(--ink); }
.verify h3 {
  margin: 0 0 10px; font: clamp(1.4rem, 2.6vw, 1.9rem)/1.15 var(--font-display);
  color: var(--yellow); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--ink);
}
.verify p { margin: 0 0 22px; color: #e1d6ef; }
.verify q { color: var(--yellow); font-weight: 700; }

.terminal { border: 4px solid var(--ink); border-radius: 8px; overflow: hidden; background: #040611; box-shadow: 6px 6px 0 rgb(0 0 0 / 0.5); }
.terminal .titlebar { height: 34px; background: #1b2140; border-bottom: 3px solid #000; }
.terminal .titlebar .title { color: var(--muted); font-size: 14px; }
.terminal .lights i { width: 12px; height: 12px; border-color: #000; }
.term-body { margin: 0; padding: 16px 18px 20px; min-height: 132px; color: #d8f6ff; font: 13.5px/1.7 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.prompt { color: var(--orange); }
.out b { color: #6dff9e; font-weight: 600; }
.terminal.is-typing .out { visibility: hidden; }
.out.is-shown { animation: out-in 0.35s ease both; }
@keyframes out-in { from { opacity: 0; transform: translateY(4px); } }
.caret { display: inline-block; width: 8px; height: 1.15em; margin-left: 2px; vertical-align: text-bottom; background: #d8f6ff; animation: blink-caret 1.05s steps(1) infinite; }
@keyframes blink-caret { 50% { opacity: 0; } }

/* ---- footer: a fly-past over the city ---- */
.footer { background: var(--night); padding-bottom: 28px; border-top: 4px solid var(--ink); }
.outro {
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  height: clamp(300px, 40vw, 420px);
  background: linear-gradient(180deg, #0b1028 0%, #24194d 55%, #6b2a5c 85%, #e0582a 100%);
}
.outro .skyline { height: 46%; }
.outro-jet { position: absolute; left: 0; top: 26%; width: clamp(80px, 10vw, 120px); transform: translateX(-140px); }
.contrail {
  position: absolute; left: 0; top: calc(26% + clamp(18px, 2.2vw, 26px)); height: 4px; width: 0;
  background: linear-gradient(90deg, rgb(243 236 220 / 0), rgb(243 236 220 / 0.75));
  border-radius: 2px;
}
.js .outro.is-in .outro-jet { animation: fly-past 2.2s cubic-bezier(0.45, 0, 0.3, 1) forwards; }
.js .outro.is-in .contrail { animation: trail 2.2s cubic-bezier(0.45, 0, 0.3, 1) forwards; }
@keyframes fly-past { to { transform: translateX(calc(100vw + 40px)) translateY(-30px); } }
@keyframes trail { to { width: 100%; opacity: 0.4; } }
.farewell {
  position: relative; z-index: 1; margin: 0 0 12%; text-align: center;
  font: clamp(1.8rem, 4.5vw, 3.2rem)/1.05 var(--font-display);
  color: var(--yellow); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--orange), 7px 7px 0 var(--ink);
  transform: skewX(-8deg);
  transition: opacity 0.4s ease 1.2s, transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) 1.2s;
}
.js .outro:not(.is-in) .farewell { opacity: 0; transform: skewX(-8deg) scale(0.6); }
.fineprint { margin: 22px 16px 0; text-align: center; color: var(--muted); font-size: 14px; }

/* ---- download flight ---- */
.flyer { position: fixed; z-index: 95; pointer-events: none; margin: 0; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .stage { order: -1; }
  .jet-svg { width: 100%; margin-left: 0; }
  .app, .app:nth-of-type(even) { grid-template-columns: 1fr; }
  .app:nth-of-type(even) .app-art { order: 0; }
  .app-art { width: 170px; }
  .install-demo, .verify { grid-template-columns: 1fr; }
  .scene { order: -1; }
}
@media (max-width: 560px) {
  .hangar-bar nav { display: none; }
  .hangar-bar { justify-content: space-between; }
  .finder-body { height: 210px; }
  .notice { right: 0; }
}
