:root {
  --bg: #050505;
  --panel: #0a0a0a;
  --text: #cccccc;
  --muted: #9a9a9a;
  --green: #00ff00;
  --orange: #ff8c00;
  --border: #222222;
  --glow-green: 0 0 10px rgba(0, 255, 0, 0.28);
  --glow-orange: 0 0 10px rgba(255, 140, 0, 0.26);
  --font-main: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Fira Code", "Courier New", Courier, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.6;
}

.page-shell {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 26px 16px 28px;
}

.hero {
  text-align: center;
  margin-bottom: 20px;
}

.stiffer-logo {
  width: min(210px, 52vw);
  margin: 0 auto 8px;
  animation: logo-pulse 2.6s ease-in-out infinite;
}

.stiffer-logo-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 2px rgba(0, 255, 0, 0.85))
    drop-shadow(0 0 10px rgba(0, 255, 0, 0.35))
    drop-shadow(0 0 6px rgba(255, 140, 0, 0.3));
}

h1 {
  margin: 0;
  color: var(--green);
  font-size: clamp(2rem, 7vw, 3rem);
  letter-spacing: 0.02em;
  text-shadow: var(--glow-green);
}

.subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.6vw, 1.35rem);
}

.main-grid {
  display: grid;
  gap: 14px;
}

.module-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #070707;
  padding: 14px 12px;
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.module-card:hover {
  border-color: rgba(0, 255, 0, 0.45);
  box-shadow: var(--glow-green);
}

.module-card h2 {
  margin: 0 0 8px;
  color: var(--green);
  font-size: clamp(1.1rem, 2.8vw, 1.9rem);
  letter-spacing: 0.05em;
}

.module-card p {
  margin: 0;
  color: #d8d8d8;
  line-height: 1.5;
}

.terminal-window {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.terminal-head {
  background: rgba(0, 255, 0, 0.35);
  color: #e5e5e5;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(0, 255, 0, 0.35);
}

.log-container {
  min-height: 250px;
  max-height: 320px;
  overflow-y: auto;
  padding: 10px 12px 14px;
  color: var(--green);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.35;
}

.log-line {
  margin: 0 0 2px;
  white-space: pre-wrap;
}

.log-line.warn {
  color: #ffbc63;
}

.log-line.info {
  color: var(--green);
}

.log-line.is-active::after {
  content: "_";
  margin-left: 3px;
  color: var(--green);
  animation: terminal-cursor-blink 0.9s steps(1, end) infinite;
}

@keyframes terminal-cursor-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.nav-grid {
  display: flex;
  justify-content: center;
}

.btn-stiff {
  display: block;
  width: min(360px, 100%);
  font-family: var(--font-mono);
  font-weight: 500;
  border: 1px solid var(--green);
  border-radius: 2px;
  color: var(--green);
  text-decoration: none;
  text-align: center;
  background: transparent;
  padding: 14px 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.btn-stiff:hover {
  color: var(--orange);
  border-color: var(--orange);
  box-shadow: var(--glow-orange);
}

.footer {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--green);
}

.sep {
  margin: 0 6px;
}

@keyframes logo-pulse {
  0%,
  100% {
    opacity: 0.86;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

@media (max-width: 700px) {
  .nav-grid {
    justify-content: center;
  }

  .log-container {
    min-height: 210px;
  }
}
