@font-face {
  font-family: 'Outfit'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('/fonts/outfit-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('/fonts/outfit-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --bg: #050805; --ink: #ECFDF0; --muted: #94A89A; --dim: #5F7366;
  --acc: #A3E635; --acc2: #22D3EE; --line: rgba(163, 230, 53, .16);
  --card: rgba(10, 20, 12, .72); --grid: rgba(163, 230, 53, .22);
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', 'JetBrains Mono', Menlo, Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #F4F8F1; --ink: #0B1A10; --muted: #4A5E50; --dim: #7A8C7F;
    --acc: #4D7C0F; --acc2: #0E7490; --line: rgba(77, 124, 15, .2);
    --card: rgba(255, 255, 255, .8); --grid: rgba(77, 124, 15, .2);
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; background: var(--bg); color: var(--ink); font-family: 'Outfit', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Moving perspective grid */
.grid { position: fixed; inset: 0; z-index: -2; perspective: 420px; overflow: hidden; pointer-events: none; }
.floor { position: absolute; left: -50%; right: -50%; bottom: -10%; height: 70%; transform: rotateX(62deg); transform-origin: bottom;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px; animation: run 3s linear infinite;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%); mask-image: linear-gradient(to top, #000 10%, transparent 85%); }
@keyframes run { to { background-position: 0 56px; } }
.glow { position: fixed; z-index: -1; left: 50%; top: 38%; width: 70vmax; height: 40vmax; transform: translate(-50%, -50%); background: radial-gradient(ellipse, rgba(163, 230, 53, .14), transparent 60%); filter: blur(30px); pointer-events: none; animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; transform: translate(-50%, -50%) scale(1.08); } }

.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px clamp(16px, 4vw, 40px); font-family: var(--mono); font-size: 15px; }
.brand { display: inline-flex; align-items: center; gap: 0; text-decoration: none; font-weight: 700; }
.mark { color: var(--acc); font-size: 20px; margin-right: 8px; }
.dim { color: var(--dim); font-weight: 500; }
.block { margin-left: 6px; width: 9px; height: 17px; background: var(--acc); animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.back { text-decoration: none; color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }
.back:hover { color: var(--ink); }

.stage { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: 32px 20px 24px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.status { margin: 0; display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(163, 230, 53, .6); } 100% { box-shadow: 0 0 0 12px rgba(163, 230, 53, 0); } }
.title { margin: 0; font-weight: 800; font-size: clamp(2.6rem, 8vw, 5.6rem); line-height: .95; letter-spacing: -0.045em; animation: up .9s cubic-bezier(.2, .8, .2, 1) both; }
.hl { background: linear-gradient(90deg, var(--acc), var(--acc2), var(--acc)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 6s linear infinite; }
@keyframes sheen { to { background-position: 200% 0; } }
@keyframes up { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.lead { margin: 0; max-width: 560px; font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.55; color: var(--muted); animation: up .9s .15s cubic-bezier(.2, .8, .2, 1) both; }

.term { width: 100%; max-width: 620px; margin-top: 8px; text-align: left; border-radius: 18px; border: 1px solid var(--line); background: var(--card); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); animation: up .9s .3s cubic-bezier(.2, .8, .2, 1) both; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--dim); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.term-bar i:nth-child(1) { background: #F87171; } .term-bar i:nth-child(2) { background: #FBBF24; } .term-bar i:nth-child(3) { background: #4ADE80; }
.term-bar span { margin-left: 8px; }
#log { margin: 0; padding: 16px 18px 20px; min-height: 178px; font-family: var(--mono); font-size: 14px; line-height: 1.75; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
#log .ok { color: var(--acc); } #log .pct { color: var(--acc2); } #log .cmd { color: var(--muted); }
#log .cur { display: inline-block; width: 8px; height: 1.05em; vertical-align: -0.15em; background: var(--acc); animation: blink 1.05s steps(1) infinite; }

.exps { width: 100%; margin-top: 12px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); animation: up .9s .45s cubic-bezier(.2, .8, .2, 1) both; }
.exp { padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); text-align: left; display: flex; flex-direction: column; gap: 14px; transition: transform .2s ease, border-color .2s ease; }
.exp:hover { transform: translateY(-3px); border-color: var(--acc); }
.exp header { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 12px; }
.tag { font-weight: 700; color: var(--ink); letter-spacing: .06em; }
.state { color: var(--acc); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); }
.sealed .state { color: var(--dim); }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bars i { display: block; height: 9px; border-radius: 6px; background: linear-gradient(90deg, var(--line) 0%, rgba(163, 230, 53, .35) 50%, var(--line) 100%); background-size: 200% 100%; animation: shimmer 2.2s ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: .2s; } .bars i:nth-child(3) { animation-delay: .4s; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.meter { height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; width: calc(var(--p) * 100%); background: linear-gradient(90deg, var(--acc), var(--acc2)); border-radius: 99px; animation: fill 2s cubic-bezier(.2, .8, .2, 1) both .8s; transform-origin: left; }
@keyframes fill { from { transform: scaleX(0); } }

.foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; padding: 20px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.foot a { text-decoration: none; } .foot a:hover { color: var(--ink); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .floor, .glow, .block, .dot, .hl, .title, .lead, .term, .exps, .bars i, .meter span, #log .cur { animation: none !important; }
}
