/* Pixel / hacker theme — layered over style.css */
:root, [data-theme="dark"] {
  --bg: #0a0e0a;
  --bg-soft: #101810;
  --card: #0c130c;
  --card-hover: #122012;
  --line: #1d3a22;
  --line-strong: #2e5c35;
  --text: #c9ffd2;
  --text-2: #7fc48c;
  --text-3: #4c7d56;
  --accent: #3dff7a;
  --accent-2: #ffb000;
  --btn-bg: #3dff7a;
  --btn-text: #041206;
  --btn-outline: #2e5c35;
  --header-bg: rgba(10, 14, 10, 0.9);
  --code-bg: #050905;
  --tok-key: #ffb000;
  --tok-str: #3dff7a;
  --tok-com: #3f6b48;
  --shadow: #000;
  --scan: rgba(0, 0, 0, 0.28);
  color-scheme: dark;

  --font-sans: "JetBrains Mono", ui-monospace, monospace;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-pixel: "Press Start 2P", monospace;
  --font-pix2: "Pixelify Sans", "JetBrains Mono", monospace;
  --radius: 0;
  --radius-sm: 0;
}

[data-theme="light"] {
  --bg: #dcecb8;
  --bg-soft: #cbe0a0;
  --card: #e6f2c8;
  --card-hover: #eef7d8;
  --line: #8fb36a;
  --line-strong: #4f7a3c;
  --text: #0f2a12;
  --text-2: #2f5a2f;
  --text-3: #557a45;
  --accent: #1f6b2a;
  --accent-2: #a35a00;
  --btn-bg: #0f2a12;
  --btn-text: #dcecb8;
  --btn-outline: #4f7a3c;
  --header-bg: rgba(220, 236, 184, 0.92);
  --code-bg: #d3e6aa;
  --tok-key: #8a4b00;
  --tok-str: #1f6b2a;
  --tok-com: #6f8f5a;
  --shadow: #4f7a3c;
  --scan: rgba(15, 42, 18, 0.07);
  color-scheme: light;
}

*, *::before, *::after { border-radius: 0 !important; }

body { font-size: 15px; letter-spacing: 0; }
body::after {
  content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, var(--scan) 2px 3px);
}
::selection { background: var(--accent); color: var(--btn-text); }
:focus-visible { outline: 2px dashed var(--accent); outline-offset: 3px; }

h1, h2, .cta h2, .page-head h1, .placeholder h1 {
  font-family: var(--font-pixel) !important; font-weight: 400 !important;
  letter-spacing: 0 !important; line-height: 1.35 !important; text-transform: none;
}
h3, .m-title, .client strong, .top-models-head > span:first-child { font-family: var(--font-mono); font-weight: 600; letter-spacing: 0; }
.eyebrow, .badge, .tag, .footer h4, .row-head, .filter-group h4 { font-family: var(--font-pixel) !important; font-size: 9px !important; letter-spacing: 0.04em; line-height: 1.6; }

/* Header */
.header { border-bottom: 2px solid var(--line-strong); backdrop-filter: none; -webkit-backdrop-filter: none; }
.logo { font-family: var(--font-pixel); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.logo-mark { width: 20px; height: 20px; background: none !important; image-rendering: pixelated; }
.logo-mark::after { display: none; }
.logo-mark svg { width: 20px; height: 20px; display: block; }
.nav a { font-family: var(--font-mono); font-size: 13.5px; padding: 6px 10px; white-space: nowrap; }
.nav a:hover { background: var(--accent); color: var(--btn-text); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"]::before { content: "> "; }
.icon-btn:hover { background: var(--accent); color: var(--btn-text); }
/* Buttons: chunky pixel with hard shadow */
.btn {
  font-family: var(--font-pixel); font-weight: 400; font-size: 10px; letter-spacing: 0;
  border: 2px solid var(--text); box-shadow: 4px 4px 0 var(--shadow);
  transition: transform 0.08s steps(2), box-shadow 0.08s steps(2), background-color 0.15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow); opacity: 1; }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--shadow); }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }
.btn-outline { background: var(--bg); color: var(--text); border-color: var(--btn-outline); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { box-shadow: 3px 3px 0 var(--shadow); font-size: 9px; }
.btn-lg { font-size: 11px; }
.badge { font-size: 9px !important; }

/* Hero */
.hero-glow { display: none; }
.hero-grid { opacity: 0.35; background-size: 16px 16px; mask-image: none; -webkit-mask-image: none;
  background-image: radial-gradient(var(--line) 1px, transparent 1px); }
.badge { border: 2px dashed var(--line-strong); background: var(--bg); color: var(--accent); font-size: 13px; text-transform: none; }
.dot { background: var(--accent); box-shadow: none; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero h1 { font-size: clamp(22px, 2.6vw, 34px) !important; margin-top: 22px; }
.hero h1 .grad { background: none; color: var(--accent); animation: none; -webkit-text-fill-color: currentColor; }
.hero h1 .cursor { display: inline-block; width: 0.6em; height: 1em; background: var(--accent); vertical-align: -0.12em; margin-left: 6px; animation: blink 1s steps(1) infinite; }
.hero-sub { font-size: 14.5px; color: var(--text-2); }
.hero-sub code, .faq .answer code { background: var(--bg-soft); border: 1px solid var(--line-strong); color: var(--accent); }
.hero-note::before { content: "// "; }
.glitch { position: relative; display: inline-block; }
.glitch.on::before, .glitch.on::after {
  content: attr(data-text); position: absolute; inset: 0; overflow: hidden;
}
.glitch.on::before { color: #ff3df0; transform: translate(-3px, 0); clip-path: inset(10% 0 55% 0); }
.glitch.on::after { color: #3dd8ff; transform: translate(3px, 0); clip-path: inset(55% 0 8% 0); }

/* Cards */
.top-models, .feature, .client, .step, .faq, .cta, .table, .search, .select {
  border: 2px solid var(--line-strong) !important; box-shadow: 6px 6px 0 var(--shadow);
}
.feature:hover, .client:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--accent); border-color: var(--accent) !important; }
.top-models-head { background: var(--line-strong); color: var(--bg); border-bottom: 0; }
.top-models-head .mono { color: var(--bg); opacity: 0.8; }
.top-models-head > span:first-child::before { content: "▶ "; }
.top-row { border-bottom: 1px dashed var(--line); }
.top-row:hover { background: var(--accent); color: var(--btn-text); }
.top-row:hover .mono { color: var(--btn-text); }
.top-models-foot:hover { background: var(--bg-soft); color: var(--accent); }
.feature-icon, .step-num { border: 2px solid var(--line-strong); background: var(--bg); color: var(--accent); }
.feature-icon svg { shape-rendering: crispEdges; }
.feature-icon .px { width: 20px; height: 20px; image-rendering: pixelated; }
.tag { border: 1px solid var(--line-strong); color: var(--accent-2); }
.code { border: 2px solid var(--line); }
.code pre { color: var(--text-2); }
.copy { border: 1px solid var(--line-strong); }

/* Sections */
.section-head h2 { font-size: clamp(18px, 2.2vw, 26px) !important; }
.section-head h2::before { content: "# "; color: var(--accent); }
.section-head.center h2::before { content: ""; }
.section-head p { font-size: 14.5px; }
.faq summary { font-family: var(--font-mono); font-weight: 600; font-size: 15px; }
.faq summary::before { content: "?"; color: var(--accent-2); margin-right: 12px; font-family: var(--font-pixel); font-size: 11px; }
.faq summary { justify-content: flex-start; }
.faq .plus { margin-left: auto; }
.faq .plus::before, .faq .plus::after { background: var(--accent); height: 2px; }
.cta { background: var(--card); }
.cta h2 { font-size: clamp(18px, 2.2vw, 26px) !important; }

/* Catalog */
.page-head h1 { font-size: clamp(24px, 3.4vw, 40px) !important; }
.row-head { background: var(--line-strong); color: var(--bg); }
.row { border-top: 1px dashed var(--line); }
.pill, .creator { font-family: var(--font-mono); }
.pill { border: 2px solid var(--line-strong); }
.pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--btn-text); }
.creator[aria-pressed="true"] { background: var(--accent); color: var(--btn-text); }
.creator[aria-pressed="true"] .count { color: var(--btn-text); }
.vendor { font-family: var(--font-pixel); font-size: 9px !important; font-weight: 400; image-rendering: pixelated; }
.m-name .vendor { font-size: 11px !important; }
.mod { border: 1px solid var(--line-strong); }
.price-cell { color: var(--accent); }

/* Placeholder */
.placeholder .orb { display: none; }
.placeholder .px-art { margin: 0 auto 32px; }

/* Toast */
.toast { font-family: var(--font-mono); border: 2px solid var(--text); box-shadow: 4px 4px 0 var(--shadow); }
/* Footer playground */
.footer { border-top: 2px solid var(--line-strong); }
.pen {
  position: relative; height: 112px; margin: 0 0 40px; border-bottom: 2px solid var(--line-strong); overflow: hidden;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: 8px 100%;
  background-position: bottom; background-repeat: repeat-x; background-size: 8px 4px;
}
.pen-label { position: absolute; left: 0; top: 0; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.pen-word {
  position: absolute; left: 0; bottom: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--text-2);
  padding: 2px 8px; border: 1px solid var(--line-strong); background: var(--bg); cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.3, 1.4, 0.5, 1), bottom 0.15s steps(2), color 0.2s;
}
.pen-word:hover { color: var(--accent); border-color: var(--accent); }
.pen-word.carried { bottom: 50px; transition: bottom 0.15s steps(2); color: var(--accent); border-color: var(--accent); z-index: 3; }
.clawd { position: absolute; left: 0; bottom: 4px; z-index: 2; cursor: pointer; will-change: transform; }
.clawd-body { line-height: 0; transform-origin: center; }
.clawd-body svg { display: block; }
.clawd.lift .clawd-body { transform-origin: center; }
.clawd.hop .clawd-body svg { animation: hop 0.45s steps(6); }
@keyframes hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
.bubble {
  position: absolute; bottom: calc(100% + 34px); left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-family: var(--font-mono); font-size: 12px; color: var(--text); background: var(--bg);
  border: 2px solid var(--text); padding: 4px 8px; box-shadow: 3px 3px 0 var(--shadow);
}
.bubble::after { content: ""; position: absolute; left: 50%; top: 100%; width: 6px; height: 6px; background: var(--text); transform: translateX(-50%); }

.visitor { position: absolute; bottom: 6px; line-height: 0; z-index: 1; pointer-events: auto; cursor: help; }
.v-whale { bottom: 30px; animation: swim 11s linear forwards; }
.v-bot { animation: stroll 9s steps(90) forwards; }
.v-sparkle { bottom: 54px; animation: twinkle 7s linear forwards; }
@keyframes swim { from { left: 105%; } 50% { transform: translateY(-10px); } to { left: -10%; } }
@keyframes stroll { from { left: -8%; } to { left: 108%; } }
@keyframes twinkle {
  0% { left: 10%; opacity: 0; transform: rotate(0); } 10% { opacity: 1; }
  90% { opacity: 1; } 100% { left: 90%; opacity: 0; transform: rotate(360deg); }
}

/* UFO */
.ufo { position: fixed; left: -80px; z-index: 60; line-height: 0; cursor: crosshair; animation: ufo 14s linear forwards; }
.ufo .beam { position: absolute; left: 50%; top: 100%; width: 20px; height: 0; transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(127, 255, 212, 0.5), transparent); animation: beam 14s steps(1) forwards; }
.ufo.zap { animation: zap 0.6s steps(6) forwards; }
@keyframes ufo { 0% { left: -80px; } 45% { left: 46vw; } 55% { left: 46vw; } 100% { left: 110vw; } }
@keyframes beam { 0%, 45% { height: 0; } 46%, 54% { height: 80px; } 55%, 100% { height: 0; } }
@keyframes zap { to { transform: translateY(-200px) rotate(40deg); opacity: 0; } }

/* Rain, matrix, party */
.rain { position: fixed; top: -60px; z-index: 150; pointer-events: none; line-height: 0; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(calc(100vh + 80px)) rotate(20deg); } }
.matrix { position: fixed; inset: 0; z-index: 140; pointer-events: none; opacity: 0.85; transition: opacity 0.6s; }
.matrix.out { opacity: 0; }
.party body { animation: hue 3s steps(12) infinite; }
@keyframes hue { to { filter: hue-rotate(360deg); } }

/* Pixel decorations */
.hero-art { position: absolute; right: 24px; bottom: -6px; line-height: 0; pointer-events: none; opacity: 0.9; }
.sect-sprite { display: inline-block; vertical-align: middle; margin-left: 12px; line-height: 0; }
.peek { position: absolute; top: -27px; right: 28px; line-height: 0; z-index: 2; transition: transform 0.3s steps(3); }
.top-models { position: relative; overflow: visible; }
.top-models:hover .peek { transform: translateY(-6px); }
.top-models-head { overflow: hidden; }
.divider-px { height: 12px; margin: 0; background:
  linear-gradient(90deg, var(--line-strong) 50%, transparent 50%) 0 0 / 12px 4px repeat-x,
  linear-gradient(90deg, transparent 50%, var(--line-strong) 50%) 0 8px / 12px 4px repeat-x; opacity: 0.6; }

@media (max-width: 760px) {
  .pen { height: 100px; }
  .hero h1 { font-size: 20px !important; }
  .peek { right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  body::after { display: none; }
}
