/* Hollow Labs' front page (/dev). */
@font-face { font-family: HollowPixel; src: url('/fonts/hollow-pixel.ttf') format('truetype'); font-display: swap; }

:root {
    color-scheme: dark;
    --ink: #080b0a;
    --ink-2: #0e1312;
    --card: #111816;
    --line: rgba(238, 232, 211, 0.1);
    --line-2: rgba(238, 232, 211, 0.18);
    --paper: #eee8d3;
    --text: #cfd2c4;
    --muted: #8f9a8e;
    --gold: #e7c47c;
    --gold-2: #f3d79c;
    --red: #e05a46;
    --sky: #8fc2e8;
    --leaf: #9fcf7f;
    --flesh: #d99a7b;
    --pixel: HollowPixel, ui-monospace, monospace;
    --wrap: min(1180px, calc(100vw - 40px));
}
* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body { margin: 0; color: var(--text); font: 15px/1.6 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
kbd { font: 12px ui-monospace, Menlo, monospace; color: var(--paper); padding: 2px 7px; border-radius: 5px; border: 1px solid var(--line-2); background: rgba(238, 232, 211, 0.05); }

.eyebrow { margin: 0; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }

/* ---------------------------------------------------------------- nav */
.nav {
    position: fixed; z-index: 10; top: 0; left: 0; right: 0; height: 64px; padding: 0 max(20px, env(safe-area-inset-left));
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(8, 11, 10, 0.62); border-bottom: 1px solid rgba(238, 232, 211, 0.06);
    -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.nav-brand { display: flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; }
.nav-brand b { font: 17px var(--pixel); letter-spacing: 0.06em; }
.mark {
    width: 22px; height: 22px;
    background:
        linear-gradient(var(--gold), var(--gold)) 9px 2px / 4px 4px no-repeat,
        linear-gradient(var(--gold), var(--gold)) 5px 6px / 12px 4px no-repeat,
        linear-gradient(var(--gold), var(--gold)) 3px 10px / 16px 4px no-repeat,
        linear-gradient(var(--red), var(--red)) 7px 14px / 8px 6px no-repeat;
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 13.5px; }
.nav-links a:hover { color: var(--paper); }
.nav-links .nav-play { padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--paper); }
.nav-links .nav-play:hover { border-color: var(--gold); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: min(100svh, 860px); display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; transform: scale(1.04); animation: drift 30s ease-in-out infinite alternate; background: #1c2a2a; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 11, 10, 0.25) 0%, rgba(8, 11, 10, 0) 30%, rgba(8, 11, 10, 0.55) 62%, var(--ink) 100%), linear-gradient(90deg, rgba(8, 11, 10, 0.7), rgba(8, 11, 10, 0) 60%); }
@keyframes drift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } }
.hero-copy { width: var(--wrap); margin: 0 auto; padding: 140px 0 72px; }
.hero h1 { margin: 10px 0 0; font: clamp(56px, 10vw, 128px)/0.9 var(--pixel); color: var(--paper); letter-spacing: 0.01em; text-shadow: 3px 4px 0 #050807; }
.hero h1 span { color: var(--gold); }
.lede { max-width: 600px; margin: 22px 0 0; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; color: #e2dfd0; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.fine { margin: 16px 0 0; font-size: 12.5px; color: var(--muted); }

.btn {
    display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 10px; text-decoration: none;
    font-weight: 600; font-size: 14.5px; color: var(--paper); border: 1px solid var(--line-2); background: rgba(238, 232, 211, 0.04);
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { border-color: rgba(238, 232, 211, 0.35); background: rgba(238, 232, 211, 0.08); }
.btn.primary { color: #2a1f0b; background: var(--gold); border-color: var(--gold-2); box-shadow: 0 8px 30px rgba(231, 196, 124, 0.18); }
.btn.primary:hover { background: var(--gold-2); transform: translateY(-1px); }
.btn.ghost { background: rgba(8, 11, 10, 0.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* ---------------------------------------------------------------- sections */
section { scroll-margin-top: 70px; }
.section-head { width: var(--wrap); margin: 0 auto 30px; }
.section-head h2 { margin: 8px 0 0; font: clamp(30px, 4vw, 44px)/1.05 var(--pixel); color: var(--paper); }
.section-sub { max-width: 640px; margin: 12px 0 0; color: var(--muted); }

.tools { padding: 40px 0 70px; }
.tool-grid { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool {
    display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: 16px; background: var(--card); border: 1px solid var(--line);
    transition: border-color 0.2s, transform 0.2s;
}
.tool:hover { border-color: var(--line-2); transform: translateY(-2px); }
.tool.sky { --accent: var(--sky); }
.tool.flora { --accent: var(--leaf); }
.tool.entities { --accent: var(--flesh); }
.tool-art { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #18221f; }
.tool-art img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; transition: transform 0.6s; }
.tool:hover .tool-art img { transform: scale(1.04); }
.tool-art::after { content: ''; position: absolute; inset: auto 0 0; height: 3px; background: var(--accent); }
.tool-body { display: flex; flex-direction: column; padding: 22px 22px 24px; }
.tool-tag { margin: 0; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.tool h3 { margin: 6px 0 10px; font: 26px/1.1 var(--pixel); color: var(--paper); }
.tool p { margin: 0; color: var(--text); font-size: 14px; }
.tool ul { margin: 14px 0 22px; padding: 0; list-style: none; display: grid; gap: 7px; }
.tool li { position: relative; padding-left: 16px; font-size: 13px; color: var(--muted); }
.tool li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; background: var(--accent); }
.tool .btn { margin-top: auto; align-self: flex-start; height: 40px; font-size: 13.5px; }

.scenes { padding: 30px 0 70px; }
.scene-strip { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.scene { position: relative; display: block; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; aspect-ratio: 3 / 4; background: #18221f; }
.scene img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; transition: transform 0.5s; }
.scene:hover img { transform: scale(1.06); }
.scene:hover { border-color: var(--gold); }
.scene span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 12px 12px; display: grid; background: linear-gradient(transparent, rgba(6, 9, 8, 0.9)); }
.scene b { color: var(--paper); font-size: 14px; }
.scene small { color: var(--muted); font-size: 12px; }

.engine { padding: 50px 0 60px; border-top: 1px solid var(--line); background: radial-gradient(ellipse at 20% 0%, rgba(231, 196, 124, 0.05), transparent 50%), var(--ink-2); }
.stats { width: var(--wrap); margin: 10px auto 40px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; padding: 0; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.stats div { padding: 22px 18px; background: var(--ink-2); }
.stats dt { font: 42px/1 var(--pixel); color: var(--gold); }
.stats dd { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.how { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.how h3 { margin: 0 0 8px; font-size: 16px; color: var(--paper); }
.how p { margin: 0; color: var(--muted); font-size: 14px; }

.controls { width: var(--wrap); margin: 0 auto; padding: 60px 0 70px; display: grid; justify-items: start; gap: 18px; }
.controls h2 { margin: 0; font: 30px var(--pixel); color: var(--paper); }
.keys { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 14px; }

.foot { border-top: 1px solid var(--line); padding: 26px max(20px, env(safe-area-inset-left)) max(30px, env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-size: 13px; }
.foot p { margin: 4px 0; }

@media (max-width: 1000px) {
    .tool-grid { grid-template-columns: 1fr; max-width: 640px; }
    .scene-strip { grid-template-columns: repeat(3, 1fr); }
    .stats { grid-template-columns: repeat(3, 1fr); }
    .how { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 640px) {
    :root { --wrap: calc(100vw - 32px); }
    .nav-links a:not(.nav-play) { display: none; }
    .hero-copy { padding: 110px 0 48px; }
    .scene-strip { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stats dt { font-size: 34px; }
}
