:root {
  /* Terminal phosphor palette — green on black, zero radius, hard borders */
  --bg: #080808;
  --surface: #0e0e0e;
  --border: #1a1a1a;
  --border-light: #131313;
  --text: #00e050;
  --text-dim: #00b840;
  --text-muted: #006a28;
  --label: #00cc44;
  --accent: #00ff44;
  --accent-muted: rgba(0, 255, 60, 0.04);
  --radius: 0px;
  --radius-lg: 0px;
  --shadow-card: inset 0 0 0 1px rgba(0, 255, 60, 0.06);
  --shadow-card-hover: inset 0 0 0 1px rgba(0, 255, 60, 0.18);
  --shadow-card-lg: none;
  --shadow-cta: none;
  --font-heading: "JetBrains Mono", "Fira Code", "SF Mono", "Cascadia Code", "Consolas", "Courier New", "PingFang SC", "Noto Sans SC", monospace;
  --font-body: "JetBrains Mono", "Fira Code", "SF Mono", "Cascadia Code", "Consolas", "Courier New", "PingFang SC", "Noto Sans SC", monospace;
  --font-mono: "JetBrains Mono", "Fira Code", "SF Mono", "Cascadia Code", "Consolas", monospace;
  --max-width: 880px;
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-lg: 1.0625rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.75rem;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--text);
  line-height: 1.7;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
  background-color: var(--bg);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.22) 2px,
      rgba(0, 0, 0, 0.22) 4px
    );
  background-size: 100% 4px;
  background-attachment: fixed;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.site-header {
  text-align: left;
  margin-bottom: 48px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 24px;
}
.site-title {
  font-size: var(--text-3xl);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 4px;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(0, 255, 60, 0.3);
}
.site-title::before { content: "> "; }
.site-tagline {
  color: var(--text-muted);
  margin: 0;
  font-size: var(--text-sm);
  font-family: var(--font-mono);
}

.site-footer {
  text-align: left;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 2px solid var(--border);
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
}
.site-footer__contact { margin-top: 4px; opacity: 0.6; }
.site-footer__contact a { color: var(--text-muted); }
.site-footer__contact a:hover { color: var(--text); }

/* Cards */
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.08s ease;
}
.card:hover { box-shadow: var(--shadow-card-hover); }

.card--small {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card--small .card__icon img { width: 48px; height: 48px; border-radius: 0; }
.card--small .card__name { font-size: var(--text-base); font-weight: 700; font-family: var(--font-mono); }
.card--small .card__category { font-size: var(--text-xs); color: var(--text-muted); font-family: var(--font-mono); }
.card--small .card__tagline { font-size: var(--text-sm); color: var(--text-dim); line-height: 1.5; font-family: var(--font-mono); }

/* Detail page */
.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-family: var(--font-mono);
  transition: color 0.08s ease;
}
.back-link:hover { color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 24px;
  align-items: center;
  padding: 36px 28px;
  background:
    linear-gradient(135deg, var(--c1, #002211) 0%, var(--c2, #001a0d) 100%);
  color: #fff;
  border: 1px solid var(--border);
}
.hero__icon img {
  width: 112px; height: 112px;
  border-radius: 0;
  box-shadow: 0 0 0 2px rgba(0, 255, 60, 0.15);
}
.hero__name {
  font-size: 32px;
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  opacity: 0.65;
  margin: 6px 0 14px;
}
.hero__tagline {
  font-size: var(--text-base);
  font-family: var(--font-mono);
  margin: 0 0 18px;
  opacity: 0.85; line-height: 1.5;
}

.cta {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid;
  font-weight: 700;
  font-size: var(--text-sm);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.06s ease, color 0.06s ease;
}
.cta--primary {
  background: var(--accent);
  color: #080808;
  border-color: var(--accent);
}
.cta--primary:hover { background: #080808; color: var(--accent); }
.cta--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.cta--secondary:hover { border-color: var(--accent); color: var(--accent); }

.block {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.block__label {
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--label);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 4px;
}
.block__label::before { content: "> "; }

.highlights {
  list-style: none; padding: 0; margin: 14px 0 0;
}
.highlights li {
  display: flex; gap: 10px; padding: 8px 0;
  font-size: var(--text-sm);
  font-family: var(--font-mono);
}
.highlights li::before {
  content: "$";
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.prose {
  margin-top: 14px;
  font-size: var(--text-sm);
  color: var(--text-dim);
  line-height: 1.7;
  font-family: var(--font-mono);
}
.prose p { margin: 0 0 14px; }
.prose h2 {
  font-size: var(--text-base);
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--accent);
}
.prose h2::before { content: "## "; }

/* Screenshot carousel */
.carousel {
  display: flex; gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin-top: 14px; padding: 4px;
}
.carousel::-webkit-scrollbar { height: 6px; }
.carousel::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 0;
}
.carousel__item {
  flex: 0 0 auto; width: 140px; height: 240px;
  background: transparent; border: 1px solid var(--border); padding: 0;
  cursor: zoom-in;
  scroll-snap-align: start; overflow: hidden;
  transition: border-color 0.06s ease;
}
.carousel__item:hover { border-color: var(--accent); }
.carousel__item img { width: 100%; height: 100%; object-fit: cover; }
.carousel__hint {
  text-align: left;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-top: 8px;
}

.other-downloads {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px;
}
.platform-icon { display: inline-block; vertical-align: middle; margin-right: 6px; }

/* Lightbox */
#lightbox-dialog {
  border: 0; padding: 0; background: transparent;
  max-width: 92vw; max-height: 92vh;
}
#lightbox-dialog::backdrop { background: rgba(0, 0, 0, 0.95); }
.lightbox-img { max-width: 92vw; max-height: 92vh; border-radius: 0; display: block; }
.lightbox-close {
  position: fixed; top: 16px; right: 20px;
  width: 40px; height: 40px;
  border: 2px solid var(--border);
  background: #0e0e0e; color: var(--accent);
  font-size: 26px; line-height: 1; cursor: pointer;
  font-family: var(--font-mono);
  z-index: 1000;
}

/* Status badges */
.status-badge {
  display: inline-block;
  font-size: 9px; font-weight: 700; letter-spacing: 1px;
  padding: 2px 6px; border-radius: 0;
  color: #080808; vertical-align: middle;
  text-transform: uppercase;
  font-family: var(--font-mono);
  border: 1px solid;
}
.status-badge--beta {
  background: #003311; color: #00e050; border-color: #00e050;
}
.status-badge--in-development {
  background: #001122; color: #3399ff; border-color: #3399ff;
}
.status-badge--archived {
  background: #1a1a1a; color: #666; border-color: #444;
}

/* Coming soon */
.coming-soon { margin-top: 36px; }
.coming-soon__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 14px;
}
.coming-soon__when {
  font-size: var(--text-xs); font-family: var(--font-mono);
  color: var(--text-muted); margin-top: 6px; font-weight: 700;
}

/* Releases (detail page) */
.releases {
  list-style: none; padding: 0; margin: 14px 0 0; counter-reset: release;
}
.releases__item {
  display: grid; grid-template-columns: auto auto 1fr; gap: 12px;
  align-items: baseline; padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
  font-family: var(--font-mono);
}
.releases__item:last-child { border-bottom: 0; }
.releases__v { font-weight: 700; color: var(--accent); }
.releases__d { color: var(--text-muted); font-size: var(--text-xs); }
.releases__n { color: var(--text-dim); opacity: 0.7; }

/* Featured carousel */
.carousel-hero {
  position: relative;
  outline: none;
  margin-bottom: 36px;
  border: 1px solid var(--border);
}
.carousel-hero:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.carousel-hero__track {
  display: flex; overflow: hidden;
  transition: transform 200ms ease, opacity 200ms ease;
}
.carousel-hero__slide {
  min-width: 100%; box-sizing: border-box;
  display: grid; grid-template-columns: 1fr 40%; gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, var(--c1, #002211) 0%, var(--c2, #001a0d) 100%);
  padding: 32px;
  color: #fff; min-height: 240px;
}
.carousel-hero__body { display: flex; align-items: center; gap: 16px; min-width: 0; }
.carousel-hero__icon img {
  width: 64px; height: 64px;
  border-radius: 0;
  box-shadow: 0 0 0 2px rgba(0, 255, 60, 0.15);
  flex: 0 0 64px;
}
.carousel-hero__meta { min-width: 0; flex: 1; }
.carousel-hero__cat {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.4); text-transform: uppercase;
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.carousel-hero__name {
  font-size: var(--text-2xl); font-family: var(--font-heading); font-weight: 700;
  margin: 4px 0; line-height: 1.15;
  color: #fff;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.carousel-hero__tagline {
  font-size: var(--text-sm); font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.65); margin: 0 0 10px; line-height: 1.4;
}
.carousel-hero__expected {
  display: inline-block; font-size: var(--text-xs); font-weight: 700;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.8); background: rgba(0, 0, 0, 0.3);
  padding: 2px 8px; border-radius: 0; margin-bottom: 10px;
}
.carousel-hero__media {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 9 / 19.5; max-height: 240px;
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.carousel-hero__media img { width: 92%; height: 92%; object-fit: cover; border-radius: 0; }
.carousel-hero__media img.carousel-hero__icon-fallback {
  width: 50%; height: auto; object-fit: contain;
  box-shadow: 0 0 0 2px rgba(0, 255, 60, 0.15);
}
.carousel-hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px;
  border: 2px solid var(--border);
  background: #0e0e0e; color: var(--accent);
  font-size: 22px; line-height: 1; cursor: pointer;
  font-family: var(--font-mono);
  transition: border-color 0.06s ease, color 0.06s ease;
}
.carousel-hero__arrow:hover { border-color: var(--accent); color: #fff; }
.carousel-hero__arrow--prev { left: 8px; }
.carousel-hero__arrow--next { right: 8px; }
.carousel-hero__dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.carousel-hero__dot {
  width: 8px; height: 8px; border-radius: 0;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0; cursor: pointer;
  transition: background 0.06s ease;
}
.carousel-hero__dot--active { background: var(--accent); border-color: var(--accent); }

/* Recent updates */
.recent-updates { margin-top: 36px; }
.recent-updates__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px;
}
.release-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 14px 16px; color: var(--text); text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.08s ease;
}
.release-card:hover { box-shadow: var(--shadow-card-hover); }
.release-card__head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.release-card__icon {
  width: 24px; height: 24px;
  background: linear-gradient(135deg, var(--c1, #002211) 0%, var(--c2, #001a0d) 100%);
  border: 1px solid var(--border);
  flex: 0 0 24px;
}
.release-card__name {
  font-weight: 700; font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--text);
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.release-card__version { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent); }
.release-card__notes {
  font-size: var(--text-xs); font-family: var(--font-mono);
  color: var(--text-dim); margin: 2px 0 4px 32px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0.6;
}
.release-card__date { font-size: var(--text-xs); font-family: var(--font-mono); color: var(--text-muted); margin-left: 32px; }

/* Page-in animation — snappy, no ease */
@keyframes pageIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page > * { animation: pageIn 0.2s step-end both; }
.page > :nth-child(2)  { animation-delay: 0.02s; }
.page > :nth-child(3)  { animation-delay: 0.04s; }
.page > :nth-child(4)  { animation-delay: 0.06s; }
.page > :nth-child(5)  { animation-delay: 0.08s; }
.page > :nth-child(6)  { animation-delay: 0.10s; }
.page > :nth-child(7)  { animation-delay: 0.12s; }
.page > :nth-child(8)  { animation-delay: 0.14s; }

/* Blinking cursor after site title (pure CSS) */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.site-title::after {
  content: "_";
  animation: blink 1s step-end infinite;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(0, 255, 60, 0.3);
}

/* Responsive */
@media (max-width: 640px) {
  .page { padding: 24px 16px 48px; }
  .hero { grid-template-columns: 72px 1fr; padding: 22px 18px; }
  .hero__icon img { width: 72px; height: 72px; }
  .hero__name { font-size: 24px; }
  .cta { width: 100%; text-align: center; }
  .block { padding: 18px; }
  .coming-soon__grid { grid-template-columns: 1fr; }
  .carousel-hero__slide { grid-template-columns: 1fr; padding: 20px; min-height: 0; }
  .carousel-hero__media { order: -1; aspect-ratio: 16 / 9; max-height: 140px; }
  .carousel-hero__arrow { display: none; }
  .recent-updates__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .page > * { animation: none; }
  .site-title::after { animation: none; }
  .carousel-hero__track { transition: none; }
  .carousel-hero__arrow, .carousel-hero__dot { transition: none; }
  .card, .release-card, .cta, .carousel__item { transition: none; }
}
