/* BadTerm's website: dark like a powered-off CRT, lit in phosphor green. */

:root {
  --bg: #07090a;
  --panel: #0e1412;
  --line: #1d2a24;
  --text: #cfe0d6;
  --dim: #8ea597;
  --green: #33ff66;
  --green-dim: #1f9e44;
  --amber: #ffb000;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
}

a {
  color: var(--green);
}

a:hover {
  color: #8dffae;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--green);
}

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

h1,
h2,
h3 {
  font-family: var(--mono);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 4rem);
  margin: 0.2em 0 0.1em;
  color: var(--green);
  text-shadow: 0 0 18px rgba(51, 255, 102, 0.45);
  letter-spacing: 0.02em;
}

h2 {
  font-size: 1.7rem;
  margin: 2.6em 0 0.8em;
  color: #e9f7ee;
}

h2::before {
  content: "> ";
  color: var(--green);
}

h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4em;
  color: var(--green);
}

/* Hero */

.hero {
  padding: 48px 0 24px;
  background: radial-gradient(ellipse at 70% 30%, rgba(51, 255, 102, 0.08), transparent 60%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 40px;
  align-items: center;
}

.logo {
  width: 96px;
  height: 96px;
}

.tagline {
  font-size: 1.35rem;
  color: #e9f7ee;
  margin: 0.2em 0 0.6em;
}

.lede,
.section-lede {
  color: var(--dim);
}

.status {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--amber);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1.4em 0 1em;
}

.button {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--green-dim);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--green);
}

.button:hover {
  border-color: var(--green);
  box-shadow: 0 0 14px rgba(51, 255, 102, 0.25);
}

.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #031207;
  font-weight: 600;
}

.button.primary:hover {
  color: #031207;
  background: #6bff92;
}

.screen,
.gallery figure {
  margin: 0;
}

.screen img,
.gallery img {
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(51, 255, 102, 0.06);
}

figcaption {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--dim);
  margin-top: 8px;
}

/* Sections */

.features,
.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.features article,
.downloads article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
}

.features p,
.downloads p {
  margin: 0;
  color: var(--dim);
  font-size: 0.95rem;
}

.downloads article {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.downloads .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.wide {
  margin: 0;
  max-width: 860px;
}

.wide img {
  border-radius: 10px;
}

/* Text-mode screenshots: keep the pixels square and sharp. */
.pixels {
  image-rendering: pixelated;
}

.note {
  color: var(--dim);
  font-size: 0.95rem;
}

.vortex {
  text-align: center;
}

.vortex h2::before {
  content: "";
}

.address {
  font-family: var(--mono);
  font-size: clamp(1.2rem, 4vw, 1.8rem);
}

.address a {
  text-decoration: none;
  text-shadow: 0 0 14px rgba(51, 255, 102, 0.5);
}

footer {
  margin-top: 72px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.9rem;
}

footer p {
  margin: 0.3em 0;
}

footer .copyright {
  margin-top: 1.2em;
  color: var(--text);
}

@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 28px;
  }
}
