* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #0b120d; color: #eff8ee; font-family: "Geist", Arial, sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-shell {
  --font-geist-sans: "Geist", Arial, sans-serif;
  --font-geist-mono: "Geist Mono", ui-monospace, monospace;
  --bg: #0b120d;
  --surface: #111c14;
  --surface-2: #17231a;
  --paper: #f4f0e4;
  --text: #eff8ee;
  --muted: #8da092;
  --line: #2a3a2d;
  --green: #00e83f;
  --green-deep: #004b1d;
  --amber: #ff9c00;
  --yellow: #ffd82e;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-geist-sans), Arial, sans-serif;
  transition: background .2s ease, color .2s ease;
}
.site-shell[data-theme="light"] {
  --bg: #f4f0e4;
  --surface: #fffbf0;
  --surface-2: #e8e2d3;
  --paper: #101912;
  --text: #111812;
  --muted: #667066;
  --line: #c8c1b3;
  --green: #00a936;
  --green-deep: #d4f5dd;
  --amber: #df7900;
  --yellow: #e3b600;
}

.topbar { height: 82px; max-width: 1440px; margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 790; letter-spacing: -.04em; font-size: 18px; }
.brand em { color: var(--green); font-style: normal; font-family: var(--font-geist-mono); font-weight: 500; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; background: var(--green); color: #061008; clip-path: polygon(0 0, 75% 0, 100% 25%, 100% 100%, 0 100%); font-family: var(--font-geist-mono); }
.topbar nav { display: flex; gap: 28px; }
.topbar nav a { color: var(--muted); font-size: 13px; text-decoration: none; transition: color .15s ease; }
.topbar nav a:hover { color: var(--green); }
.theme-button { justify-self: end; display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 999px; padding: 9px 13px; font-size: 12px; cursor: pointer; }
.theme-button span { color: var(--amber); font-size: 15px; }

.hero-carousel { border-bottom: 0; }
.hero-viewport { position: relative; }
.hero { max-width: 1440px; min-height: 650px; margin: 0 auto; padding: 92px 28px 58px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 92px; align-items: center; }
.hero-slide:not(.is-active) { display: none; }
.hero-slide.is-active { animation: hero-slide-in .55s cubic-bezier(.22,.7,.25,1) both; }
@keyframes hero-slide-in {
  from { opacity: 0; transform: translateX(22px); }
  to { opacity: 1; transform: translateX(0); }
}
.eyebrow { margin: 0 0 22px; color: var(--green); font: 650 11px/1 var(--font-geist-mono); letter-spacing: .16em; }
.eyebrow span { display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); }
.hero h1 { max-width: 850px; margin: 0; font-size: clamp(54px, 6.2vw, 102px); line-height: .91; letter-spacing: -.075em; font-weight: 760; }
.hero h1 i { color: var(--amber); font-style: normal; font-weight: 520; }
.hero-description { max-width: 620px; margin: 35px 0 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.primary-action, .secondary-action { min-height: 49px; display: inline-flex; align-items: center; justify-content: center; gap: 28px; padding: 0 18px; border: 1px solid var(--green); font-weight: 700; font-size: 13px; text-decoration: none; cursor: pointer; }
.primary-action { background: var(--green); color: #071109; }
.secondary-action { color: var(--text); background: transparent; border-color: var(--line); }
.primary-action span, .secondary-action span { font-size: 17px; }

.progress-card { position: relative; padding: 28px; border: 1px solid var(--line); background: var(--surface); box-shadow: 18px 18px 0 color-mix(in srgb, var(--green) 12%, transparent); overflow: hidden; }
.progress-card::after { content: ""; position: absolute; inset: 0; opacity: .045; pointer-events: none; background: repeating-linear-gradient(to bottom, transparent 0 3px, var(--text) 3px 4px); }
.progress-top, .progress-meta { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font: 600 10px var(--font-geist-mono); letter-spacing: .1em; }
.live { color: var(--green); }
.live b { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.progress-number { display: flex; align-items: baseline; gap: 10px; margin: 43px 0 25px; font-family: var(--font-geist-mono); }
.progress-number strong { color: var(--green); font-size: clamp(66px, 7vw, 108px); line-height: .8; letter-spacing: -.08em; text-shadow: 0 0 28px color-mix(in srgb, var(--green) 34%, transparent); }
.progress-number span { color: var(--muted); font-size: 22px; }
.progress-track { height: 5px; margin-bottom: 14px; background: var(--line); }
.progress-track span { display: block; width: 2.5%; height: 100%; min-width: 18px; background: var(--green); box-shadow: 0 0 10px var(--green); }
.progress-meta b { color: var(--text); }
.mini-grid { margin-top: 34px; display: grid; grid-template-columns: repeat(20, 1fr); gap: 4px; }
.mini-grid i { aspect-ratio: 1; background: var(--surface-2); }
.mini-grid i.on { background: var(--green); box-shadow: 0 0 8px color-mix(in srgb, var(--green) 50%, transparent); }
.mini-grid i.hot { background: var(--amber); }
.project-showcase { min-height: 410px; display: flex; flex-direction: column; justify-content: space-between; padding: 34px; border: 1px solid var(--line); background: var(--surface); box-shadow: 18px 18px 0 color-mix(in srgb, var(--green) 12%, transparent); }
.showcase-top, .showcase-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); font: 600 10px var(--font-geist-mono); letter-spacing: .1em; text-transform: uppercase; }
.showcase-top span:last-child { color: var(--green); }
.showcase-number { margin: auto 0; color: var(--green); font: 500 clamp(72px, 8vw, 128px)/.8 var(--font-geist-mono); letter-spacing: -.08em; text-shadow: 0 0 28px color-mix(in srgb, var(--green) 34%, transparent); }
.showcase-bottom { padding-top: 18px; border-top: 1px solid var(--line); }
.showcase-bottom span:last-child { color: var(--text); font-size: 18px; }
.carousel-controls { max-width: 1384px; margin: 0 auto; padding: 0 0 28px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.carousel-position { min-width: 180px; display: flex; align-items: center; gap: 12px; color: var(--muted); font: 10px var(--font-geist-mono); }
.carousel-position span:first-child { color: var(--green); }
.carousel-position i { position: relative; width: 110px; height: 1px; overflow: hidden; background: var(--line); }
.carousel-position i::after { content: ""; position: absolute; inset: 0; background: var(--green); transform-origin: left; animation: carousel-timer 7s linear infinite; }
.hero-carousel.is-paused .carousel-position i::after { animation-play-state: paused; }
.hero-carousel.reset-timer .carousel-position i::after { animation: none; }
@keyframes carousel-timer { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.carousel-buttons { display: flex; gap: 8px; }
.carousel-buttons button { width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; font-size: 18px; transition: color .15s ease, border-color .15s ease, background .15s ease; }
.carousel-buttons button:hover, .carousel-buttons button:focus-visible { color: #071109; background: var(--green); border-color: var(--green); outline: none; }

.featured-section, .inventory-section { max-width: 1440px; margin: 0 auto; padding: 88px 28px; }
.featured-section { border-top: 1px solid var(--line); }
.section-heading, .inventory-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 32px; }
.section-heading h2, .inventory-heading h2 { margin: 0; font-size: clamp(38px, 4vw, 64px); letter-spacing: -.06em; line-height: 1; }
.section-heading > p { max-width: 330px; margin: 0; color: var(--muted); font-size: 14px; }
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.featured-card { min-height: 330px; padding: 23px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; color: var(--text); background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: transform .15s ease, border-color .15s ease; }
.featured-card:hover { transform: translateY(-4px); border-color: var(--green); }
.card-index { color: var(--muted); font: 12px var(--font-geist-mono); }
.card-category { margin: 61px 0 14px; color: var(--amber); font: 650 10px var(--font-geist-mono); letter-spacing: .13em; text-transform: uppercase; }
.featured-card strong { font-size: 25px; letter-spacing: -.04em; }
.card-description { max-width: 330px; margin-top: 12px; color: var(--muted); line-height: 1.55; font-size: 13px; }
.card-footer { width: 100%; margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--green); font: 10px var(--font-geist-mono); letter-spacing: .13em; }
.card-footer i { color: var(--text); font-style: normal; font-size: 18px; }

.inventory-section { max-width: none; padding-left: max(28px, calc((100vw - 1384px) / 2)); padding-right: max(28px, calc((100vw - 1384px) / 2)); background: var(--surface); border-top: 1px solid var(--line); }
.inventory-heading h2 span { color: var(--green); font: 400 .34em var(--font-geist-mono); letter-spacing: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font: 10px var(--font-geist-mono); text-transform: uppercase; letter-spacing: .08em; }
.legend span { display: flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--line); }
.dot.active { background: var(--green); border-color: var(--green); }
.dot.featured { background: var(--amber); border-color: var(--amber); }
.dot.available { background: transparent; }
.control-panel { padding: 14px; border: 1px solid var(--line); background: var(--bg); }
.search-field { height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 15px; border-bottom: 1px solid var(--line); }
.search-field > span { color: var(--green); font-size: 24px; }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 15px; }
.search-field input::placeholder { color: var(--muted); }
kbd { padding: 5px 8px; border: 1px solid var(--line); color: var(--muted); background: var(--surface); font: 10px var(--font-geist-mono); }
.filters { display: flex; gap: 7px; padding-top: 14px; overflow-x: auto; scrollbar-width: thin; }
.filters button { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 600 10px var(--font-geist-mono); text-transform: uppercase; letter-spacing: .05em; cursor: pointer; }
.filters button.selected { color: #071109; background: var(--green); border-color: var(--green); }
.inventory-status { min-height: 54px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font: 10px var(--font-geist-mono); letter-spacing: .09em; }
.inventory-status b { color: var(--text); }
.inventory-status button { border: 0; background: transparent; color: var(--amber); cursor: pointer; font-size: 11px; }
.inspector { min-height: 126px; margin-bottom: 12px; padding: 20px; display: grid; grid-template-columns: 105px 1fr auto; align-items: center; gap: 24px; border: 1px solid var(--line); background: var(--bg); }
.inspector-index { color: var(--green); font: 32px var(--font-geist-mono); }
.inspector-status { color: var(--green); font: 650 9px var(--font-geist-mono); letter-spacing: .12em; }
.inspector-status.open { color: var(--muted); }
.inspector h3 { margin: 6px 0 4px; font-size: 20px; }
.inspector p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.inspector-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; color: var(--green); font: 650 10px var(--font-geist-mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.inspector-link:hover { text-decoration: underline; }
.inspector-signal { color: var(--green); font: 12px var(--font-geist-mono); letter-spacing: 5px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 5px; }
.project-slot { position: relative; aspect-ratio: 1; min-width: 0; padding: 7px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; border: 1px solid var(--line); color: var(--muted); background: color-mix(in srgb, var(--surface-2) 55%, transparent); cursor: pointer; transition: transform .12s ease, border-color .12s ease, color .12s ease, background .12s ease; }
.project-slot span { font: 600 13px/1.1 var(--font-geist-mono); }
.project-slot i { width: 5px; height: 5px; border-radius: 50%; border: 1px solid var(--line); }
.project-slot.published { color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, var(--line)); background: color-mix(in srgb, var(--green) 7%, var(--bg)); }
.project-slot.published i { background: var(--green); border-color: var(--green); box-shadow: 0 0 8px var(--green); }
.project-slot.featured { color: var(--amber); border-color: var(--amber); background: color-mix(in srgb, var(--amber) 8%, var(--bg)); }
.project-slot.featured i { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 8px var(--amber); }
.project-slot:hover, .project-slot:focus-visible { z-index: 1; transform: scale(1.08); border-color: var(--green); color: var(--text); outline: none; }
.project-slot.current { box-shadow: inset 0 0 0 2px var(--text); }
.project-slot.hidden-slot { display: none; }
.project-preview { position: fixed; z-index: 20; width: min(340px, calc(100vw - 24px)); padding: 17px 18px; border: 1px solid var(--green); background: var(--bg); color: var(--text); box-shadow: 10px 10px 0 color-mix(in srgb, var(--green) 18%, transparent); pointer-events: none; }
.project-preview[hidden] { display: none; }
.preview-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--green); font: 650 9px var(--font-geist-mono); letter-spacing: .1em; text-transform: uppercase; }
.project-preview h4 { margin: 11px 0 6px; font-size: 17px; line-height: 1.2; }
.project-preview p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.preview-hint { display: block; margin-top: 13px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--green); font: 650 9px var(--font-geist-mono); letter-spacing: .08em; text-transform: uppercase; }
.project-grid[hidden], .empty-state[hidden] { display: none; }
.empty-state { min-height: 320px; display: grid; place-content: center; text-align: center; border: 1px dashed var(--line); }
.empty-state span { color: var(--line); font: 64px var(--font-geist-mono); }
.empty-state h3 { margin: 8px 0; }
.empty-state p { margin: 0; color: var(--muted); }

footer { max-width: 1440px; margin: 0 auto; padding: 84px 28px 34px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 30px; align-items: start; }
.footer-brand { font-weight: 800; font-size: 28px; letter-spacing: -.05em; }
.footer-brand span { color: var(--green); font-family: var(--font-geist-mono); font-weight: 500; }
footer p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
footer a { color: var(--amber); font: 11px var(--font-geist-mono); text-decoration: none; }
footer small { grid-column: 1 / -1; margin-top: 75px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font: 9px var(--font-geist-mono); letter-spacing: .12em; }

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topbar nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 62px; padding-top: 70px; }
  .progress-card { max-width: 620px; }
  .project-showcase { max-width: 620px; min-height: 330px; }
  .carousel-controls { margin: 0 28px; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-card { min-height: 250px; }
  .card-category { margin-top: 35px; }
  .inspector { grid-template-columns: 90px 1fr; }
  .inspector-signal { display: none; }
}
@media (max-width: 600px) {
  .topbar { height: 70px; padding: 0 18px; }
  .brand { font-size: 15px; }
  .brand-mark { width: 27px; height: 27px; }
  .theme-button { width: 38px; height: 38px; padding: 0; justify-content: center; }
  .theme-button:not(span) { font-size: 0; }
  .theme-button span { font-size: 16px; }
  .hero { min-height: auto; padding: 62px 18px 68px; }
  .hero h1 { font-size: 50px; }
  .hero-description { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .primary-action, .secondary-action { width: 100%; }
  .progress-card { padding: 20px; box-shadow: 9px 9px 0 color-mix(in srgb, var(--green) 12%, transparent); }
  .progress-number { margin-top: 34px; }
  .progress-number strong { font-size: 66px; }
  .project-showcase { min-height: 280px; padding: 24px; box-shadow: 9px 9px 0 color-mix(in srgb, var(--green) 12%, transparent); }
  .showcase-number { font-size: 76px; }
  .carousel-controls { margin: 0 18px; padding-bottom: 20px; }
  .carousel-position { min-width: 145px; }
  .carousel-position i { width: 76px; }
  .progress-meta { align-items: flex-start; gap: 10px; }
  .progress-meta span:last-child { text-align: right; }
  .featured-section, .inventory-section { padding: 68px 18px; }
  .section-heading, .inventory-heading { align-items: flex-start; flex-direction: column; }
  .section-heading h2, .inventory-heading h2 { font-size: 43px; }
  .featured-card { min-height: 275px; }
  .legend { gap: 11px; }
  kbd { display: none; }
  .control-panel { padding: 10px; }
  .inspector { grid-template-columns: 1fr; gap: 10px; padding: 17px; }
  .inspector-index { font-size: 21px; }
  .project-grid { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .project-slot { padding: 5px; }
  .project-slot span { font-size: 10px; }
  footer { padding: 65px 18px 28px; grid-template-columns: 1fr; }
  footer small { margin-top: 35px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .carousel-position i::after { display: none; }
}

.footer-social { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 18px; }
