/* Copyright (c) 2026 kosa8. All rights reserved. Proprietary; see LICENSE.
 *
 * The homepage only (generated by scripts/build-home.py), told in pixel art.
 * Scenes are <canvas> drawn by home.js at low resolution and scaled up
 * pixelated. Ink and kosa8 green, square corners, mono captions. Under
 * reduced motion the scenes hold still and nothing else moves.
 */
.home { --pk0: #050c08; --pk1: #08140e; --pk2: #0c2016; --pk3: #123221; --pg: #2f9a4f; --pg2: #4cc35a; --pg3: #9be3a5; --pg4: #e8f8ea; }
.home footer::after { display: none; }
.home .hud, .home .lifebox, .home .lifeband--wrap { display: none !important; }
.home main code { font: 500 .92em/1.4 var(--mono); background: none; border: 0; padding: 0; color: inherit; }
.home .btn { border-radius: 0; min-height: 46px; padding: 0 22px; font-size: 15px; }
.pxc { display: block; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }

/* nav: on the homepage it sits on the night sky */
.home .nav { background: var(--pk0); border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.home .nav .lockup, .home .nav__links a { color: #e8f8ea; }
.home .nav__links a:hover { color: #fff; }
.home .nav__links a.nav__signin { color: #fff; font-weight: 500; }
/* The hero carries Start free, so the bar does not repeat it on this page. */
.home .nav__links a.nav__cta { display: none; }
.home .nav__links a.nav__dl { color: #e8f8ea; background: transparent; border: 1px solid rgba(232, 248, 234, .3); border-radius: 0; }
.home .nav__links a.nav__dl:hover { border-color: #e8f8ea; }

/* type */
.x-h2 { margin: 0; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -.035em; font-weight: 550; max-width: 20em; text-wrap: balance; }
.x-lead { margin: 12px 0 0; max-width: 36em; font-size: 17px; line-height: 1.55; color: var(--text-2); }
.x-muted { margin: 26px 0 0; font-size: 14px; color: var(--text-2); }

/* hero: text over the pixel night */
/* Short enough that the demo under it starts on a 1440x900 first screen:
 * the copy, then a 176 px band of sea (home.js keeps the horizon there). */
.hero8 { position: relative; overflow: hidden; background: var(--pk0); color: #fff; padding: 56px 0 200px; }
.pxc--hero { position: absolute; top: 0; left: 0; z-index: 0; } /* sized by home.js to a whole number of art pixels */
.hero8__in { position: relative; z-index: 1; }
.hero8__h { margin: 0; max-width: 12.5em; font-size: clamp(38px, 5.2vw, 66px); line-height: 1.04; letter-spacing: -.04em; font-weight: 550; color: #fff; text-wrap: balance; }
.hero8__sub { margin: 20px 0 0; max-width: 33em; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.55; color: #cfe9d4; }
.hero8 .inst { margin-top: 30px; max-width: 560px; }
.hero8 .inst__tabs { background: transparent; border: 0; border-radius: 0; padding: 0; }
.hero8 .inst__tab { border-radius: 0; color: #9be3a5; background: transparent; border-color: transparent; }
.hero8 .inst__tab:hover { color: #fff; }
.hero8 .inst__tab[aria-selected="true"] { background: #123221; color: #fff; border-color: #123221; }
.hero8 .cmd { border-radius: 0; background: rgba(18, 50, 33, .78); color: #fff; border-color: #18472d; }
.hero8 .cmd .t::before { color: #4cc35a; }
.hero8 .cmd .ico { color: #9be3a5; border-color: #2f9a4f; border-radius: 0; }
.hero8 .inst__next { color: #9be3a5; }
.hero8 .inst__next code { color: #fff; }
.hero8__go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 26px; }
.hero8 .btn--primary { background: #e8f8ea; color: var(--pk0); border-color: #e8f8ea; }
.hero8 .btn--primary:hover { background: #fff; }
.hero8__ent { color: #9be3a5; font-size: 15px; text-decoration: none; border-bottom: 1px solid rgba(155, 227, 165, .35); }
.hero8__ent:hover { color: #fff; border-color: #fff; text-decoration: none; }

/* pixel screens with captions */
.x-sec { padding: 104px 0; }
.x-sec--tint { background: color-mix(in srgb, var(--ok-2) 45%, var(--paper)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.px-cap { margin: 0 0 8px; font: 500 12.5px/1.3 var(--mono); color: var(--text-3); }
.px-cap--b { margin: 8px 0 0; }
.px-screen { aspect-ratio: 16 / 9; border: 1px solid color-mix(in srgb, var(--pg) 55%, var(--line)); background: var(--pk1); overflow: hidden; }
.px-screen--tall { aspect-ratio: 2 / 1; }
.x-screens { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.x-screens a { display: block; color: var(--text); text-decoration: none; }
.x-screens a:hover { text-decoration: none; }
.x-screens a:hover .px-screen { border-color: var(--pg2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pg2) 25%, transparent); }
.px-screen { transition: border-color .2s, box-shadow .2s; }
.x-screens h3 { margin: 22px 0 0; font-size: 21px; font-weight: 550; letter-spacing: -.025em; }
.x-screens h3 + p { margin: 8px 0 0; font-size: 16px; line-height: 1.55; color: var(--text-2); }

/* use cases: a wall of small pixel scenes, a name under each */
/* The slogan above the use cases: big, the page's loudest line after the hero. */
.x-imagine { margin: 0 0 18px; font-size: clamp(40px, 6.4vw, 92px); line-height: 1.02; letter-spacing: -.045em; font-weight: 650; max-width: 15em; text-wrap: balance; color: var(--ink); }
.x-imagine__lead { color: color-mix(in srgb, var(--ok) 70%, var(--ink)); }
.x-imagine em { font-style: normal; }
.x-imagine__sub { margin: 0 0 56px; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.4; color: var(--text-2); max-width: 40em; }
@media (max-width: 640px) { .x-imagine { font-size: clamp(34px, 10vw, 48px); } .x-imagine__sub { margin-bottom: 36px; } }
.uc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.uc a { display: block; color: var(--text); text-decoration: none; }
.uc a:hover { text-decoration: none; }
.uc__px { aspect-ratio: 8 / 5; border: 1px solid color-mix(in srgb, var(--pg) 45%, var(--line)); background: var(--pk1); overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .25s cubic-bezier(.2, .7, .2, 1); }
.uc a:hover .uc__px { border-color: var(--pg2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pg2) 25%, transparent); transform: translateY(-3px); }
.uc span { display: block; margin-top: 10px; font: 500 13.5px/1.3 var(--mono); color: var(--text-2); }
.uc a:hover span { color: var(--text); }

/* buttons on the dark closing call */
.x-btn-inv { background: #e8f8ea; color: var(--pk0); border-color: #e8f8ea; }
.x-btn-line { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 35%, transparent); }
.x-btn-line:hover { border-color: currentColor; }

/* closing: a strip of the sea under the call */
.x-end { position: relative; overflow: hidden; background: var(--pk0); color: #fff; padding: 112px 0 220px; text-align: center; }
.pxc--end { position: absolute; top: 0; left: 0; z-index: 0; }
.x-end__in { position: relative; z-index: 1; }
.x-end .x-h2 { margin: 0 auto; color: #fff; }
.x-end__cmd { margin: 30px auto 0; width: max-content; max-width: 100%; border-radius: 0; background: rgba(18, 50, 33, .78); color: #fff; border-color: #18472d; }
.x-end__cmd .t::before { color: #4cc35a; }
.x-end__cmd .ico { color: #9be3a5; border-color: #2f9a4f; border-radius: 0; }
.x-end .hero8__go { justify-content: center; }
.x-end .btn--primary { background: #e8f8ea; color: var(--pk0); border-color: #e8f8ea; }
.x-end .x-muted { color: #9bb8a2; }
.x-end .x-muted a { color: #e8f8ea; }

@media (max-width: 960px) {
  .x-screens { grid-template-columns: minmax(0, 1fr); gap: 48px; max-width: 560px; }
  .uc { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .x-sec { padding: 80px 0; }
}
@media (max-width: 640px) {
  .hero8 { padding: 48px 0 300px; min-height: 0; }
  .x-sec { padding: 64px 0; }
  .x-end { padding: 80px 0 160px; }
  .uc { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
/* the one-minute demo under the hero: a terminal replayed by demo.js.
 * Without JS or under reduced motion each scene shows its finished state. */
.x-demo { padding: 48px 0 104px; border-bottom: 1px solid var(--line); }
.x-demo__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.x-demo__kick { margin: 0 0 14px; font: 500 12.5px/1.3 var(--mono); color: var(--ok-t); text-transform: uppercase; letter-spacing: .08em; }
.x-demo .x-h2 { font-size: clamp(30px, 3.4vw, 44px); }
.x-demo .x-lead code { font-weight: 600; color: var(--text); }
.x-demo .hero8__go { margin-top: 28px; }
.x-demo__fine { margin: 22px 0 0; max-width: 32em; font-size: 13.5px; line-height: 1.5; color: var(--text-3); }
.demo { margin: 0; min-width: 0; }
.demo__bar { display: flex; align-items: center; gap: 12px; padding: 8px 10px; background: var(--pk2); border: 1px solid color-mix(in srgb, var(--pg) 55%, var(--line)); border-bottom: 0; }
.demo__dots { display: inline-flex; gap: 5px; flex: none; }
.demo__dots i { width: 9px; height: 9px; background: var(--pk3); }
.demo__dots i:first-child { background: var(--pg); }
.demo__steps { display: flex; gap: 4px; flex: 1; min-width: 0; flex-wrap: wrap; }
.demo__step, .demo__pp { font: 500 12.5px/1 var(--mono); color: var(--pg3); background: transparent; border: 1px solid transparent; padding: 6px 9px; cursor: pointer; border-radius: 0; }
.demo__step span { color: var(--pg2); }
.demo__step:hover, .demo__pp:hover { color: #fff; }
.demo__step[aria-pressed="true"] { background: var(--pk3); color: #fff; border-color: var(--pk3); }
.demo__pp { flex: none; border-color: var(--pg); min-width: 64px; }
.demo__step:focus-visible, .demo__pp:focus-visible { outline: 2px solid var(--pg3); outline-offset: 1px; }
.demo__term { background: var(--pk1); color: #e8f8ea; border: 1px solid color-mix(in srgb, var(--pg) 55%, var(--line)); padding: 18px 20px; font: 400 13.5px/1.6 var(--mono); min-height: 25.5em; }
.demo__scene { display: flex; flex-direction: column; }
.demo__scene[hidden] { display: none; }
.tl { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 1.6em; }
.tl__p { color: var(--pg2); }
.tl__p--agent { color: #eba14a; }
.tl__c { color: #fff; }
.tl__ok, .tl--okt { color: var(--pg2); }
.tl__dim, .tl--dim { color: #8fb79a; }
.tl--note { color: #6f9a7b; font-style: italic; }
.tl--err { color: #ff8a8a; }
.tl__n { color: #fff; font-weight: 600; }
.tl__cells { display: grid; grid-template-columns: repeat(25, minmax(0, 1fr)); gap: 3px; margin: 8px 0 6px; max-width: 420px; }
.tl__cells i { aspect-ratio: 1; background: var(--pg2); }
.demo__cap { margin: 12px 0 0; min-height: 3em; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
/* while demo.js plays: lines not yet printed are hidden, the cursor blinks */
.demo--live .tl[data-wait] { visibility: hidden; }
.demo--live .tl__cells i { background: var(--pk3); }
.demo--live .tl__cells i.on { background: var(--pg2); }
.demo__cur { display: inline-block; width: .6em; height: 1.15em; vertical-align: -.2em; background: var(--pg2); margin-left: 1px; animation: demo-blink 1s steps(1) infinite; }
@keyframes demo-blink { 50% { opacity: 0; } }
@media (max-width: 960px) {
  .x-demo__in { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .x-demo { padding: 72px 0 80px; }
}
@media (max-width: 640px) {
  .x-demo { padding: 56px 0 64px; }
  .demo__term { padding: 14px 12px; font-size: 12px; min-height: 27em; }
  .demo__bar { gap: 8px; padding: 6px; }
  .demo__dots { display: none; }
  .demo__step, .demo__pp { padding: 6px 7px; font-size: 12px; }
  .tl__cells { gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .home *, .home *::before, .home *::after { animation: none !important; transition: none !important; }
}
