/* ==================== SELF-HOSTED FONTS ==================== */

/* VT323 - 400 */
@font-face {
  font-family: 'VT323';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/vt323-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'VT323';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/vt323-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Fira Code - 400..700 (variable) */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/firacode-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/firacode-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* IBM Plex Mono - 400 */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibmplexmono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibmplexmono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* IBM Plex Mono - 500 */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibmplexmono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibmplexmono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* IBM Plex Mono - 600 */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ibmplexmono-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ibmplexmono-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* IBM Plex Mono - 700 */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/ibmplexmono-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/ibmplexmono-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* JetBrains Mono - 300..800 (variable) */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/fonts/jetbrainsmono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/fonts/jetbrainsmono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==================== CUSTOM PROPERTIES ==================== */

:root {

  /* Der Akzent, herausgelöst statt fest verdrahtet.
     Die Werte sind die bisherigen - ein Theme wie `rescue.css` setzt sie
     neu, ohne eine einzige Regel zu überschreiben. */
  --accent: #39ff14;
  --accent-rgb: 57, 255, 20;
  --accent-dim: #1a8a0a;
  --accent-900: #0e4a0e;
  --accent-800: #1a5c1a;
  --accent-700: #1a7a1a;
  --accent-600: #2d8a2d;
  --accent-500: #2da02d;

  --terminal-green: var(--accent);
  --terminal-green-dim: var(--accent-dim);
  --terminal-amber: #ffb000;
  --terminal-cyan: #00e5ff;
  --terminal-magenta: #ff6ec7;
  --terminal-red: #ff3333;
  --bg-deep: #0a0a0f;
  --bg-panel: #0d1117;
  --bg-card: #131920;
  --border-dim: #1e2a3a;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-dim: #484f58;
  --accent-blue: #58a6ff;
  --crt-glow: 0 0 10px rgba(var(--accent-rgb), 0.3), 0 0 40px rgba(var(--accent-rgb), 0.1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'IBM Plex Mono', monospace;
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* CRT Scanline Overlay */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* Noise texture */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
}

/* ==================== NAVIGATION ==================== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'VT323', monospace;
  font-size: 1.6rem;
  color: var(--terminal-green);
  text-shadow: var(--crt-glow);
  letter-spacing: 2px;
  text-decoration: none;
}

.nav-logo span { color: var(--terminal-amber); }

.nav-links { display: flex; gap: 2rem; align-items: center; }

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s, text-shadow 0.3s;
}

.nav-links a:hover {
  color: var(--terminal-green);
  text-shadow: 0 0 8px rgba(var(--accent-rgb), 0.4);
}

.btn-wishlist {
  background: linear-gradient(135deg, var(--accent-800), var(--accent-600));
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 0.8rem;
  border: 1px solid var(--terminal-green-dim);
  transition: all 0.3s;
  text-shadow: none !important;
}

.btn-wishlist:hover {
  background: linear-gradient(135deg, var(--accent-600), var(--accent));
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.3);
  color: #000 !important;
}

.lang-toggle {
  background: transparent;
  border: 1px solid var(--border-dim);
  color: var(--text-secondary);
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.3s;
  white-space: nowrap;
}

.lang-toggle:hover {
  border-color: var(--terminal-green-dim);
  color: var(--terminal-green);
}

.lang-toggle .active-lang {
  color: var(--terminal-green);
  font-weight: 700;
}

/* ==================== HERO ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-code {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  opacity: 0.06;
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  line-height: 1.8;
  color: var(--terminal-green);
  padding: 2rem;
  white-space: pre;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.08) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-glow-amber {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 176, 0, 0.06) 0%, transparent 70%);
  top: 30%; left: 70%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-30px); }
}

.hero-terminal {
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
}

.terminal-prompt {
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  color: var(--terminal-green);
  text-shadow: var(--crt-glow);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeIn 0.5s 0.5s forwards;
}

.terminal-prompt .cursor {
  display: inline-block;
  width: 10px;
  height: 1.2rem;
  background: var(--terminal-green);
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-title {
  font-family: 'VT323', monospace;
  font-size: clamp(3.5rem, 10vw, 8rem);
  letter-spacing: 6px;
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: glitchIn 0.8s 0.8s forwards;
}

.hero-title .code { color: var(--terminal-cyan); text-shadow: 0 0 20px rgba(0, 229, 255, 0.4); }
.hero-title .tycoon { color: var(--terminal-amber); text-shadow: 0 0 20px rgba(255, 176, 0, 0.4); }

@keyframes glitchIn {
  0% { opacity: 0; transform: translateY(20px); filter: blur(10px); }
  30% { opacity: 0.8; transform: translateY(-3px) skewX(-2deg); }
  50% { transform: translateY(1px) skewX(1deg); }
  100% { opacity: 1; transform: translateY(0) skewX(0); filter: blur(0); }
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 1.5rem auto 0;
  opacity: 0;
  animation: fadeIn 0.6s 1.4s forwards;
}

.hero-tagline em {
  color: var(--terminal-green);
  font-style: normal;
  text-shadow: 0 0 8px rgba(var(--accent-rgb), 0.3);
}

.hero-era {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
  opacity: 0;
  animation: fadeIn 0.6s 1.8s forwards;
  flex-wrap: wrap;
}

.era-tag {
  font-family: 'Fira Code', monospace;
  font-size: 0.7rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border-dim);
  border-radius: 3px;
  color: var(--text-dim);
  background: rgba(255,255,255,0.02);
  transition: all 0.3s;
}

.era-tag:hover {
  border-color: var(--terminal-green-dim);
  color: var(--terminal-green);
  background: rgba(var(--accent-rgb), 0.05);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  opacity: 0;
  animation: fadeIn 0.6s 2.2s forwards;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, var(--accent-900), var(--accent-700));
  color: var(--terminal-green);
  border: 1px solid var(--terminal-green-dim);
  border-radius: 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-700), var(--accent-500));
  box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.25), inset 0 0 30px rgba(var(--accent-rgb), 0.05);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--text-dim);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.steam-icon { width: 20px; height: 20px; filter: brightness(0) invert(0.7); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== SECTION STYLING ==================== */
section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--terminal-green);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 8px rgba(var(--accent-rgb), 0.3);
}

.section-title {
  font-family: 'VT323', monospace;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--text-primary);
  letter-spacing: 2px;
}

/* ==================== FEATURES ==================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--terminal-green-dim), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover {
  border-color: var(--terminal-green-dim);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-name {
  font-family: 'Fira Code', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==================== TIMELINE ==================== */
.timeline-section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--terminal-green-dim), var(--terminal-amber), var(--terminal-cyan), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 2rem);
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 2rem);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 1rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--terminal-green);
  border: 3px solid var(--bg-deep);
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.4);
  z-index: 2;
}

.timeline-item:nth-child(2) .timeline-dot { background: var(--terminal-amber); box-shadow: 0 0 10px rgba(255, 176, 0, 0.4); }
.timeline-item:nth-child(3) .timeline-dot { background: var(--terminal-cyan); box-shadow: 0 0 10px rgba(0, 229, 255, 0.4); }
.timeline-item:nth-child(4) .timeline-dot { background: var(--terminal-magenta); box-shadow: 0 0 10px rgba(255, 110, 199, 0.4); }
.timeline-item:nth-child(5) .timeline-dot { background: var(--accent-blue); box-shadow: 0 0 10px rgba(88, 166, 255, 0.4); }

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 1.5rem;
  max-width: 420px;
  transition: transform 0.3s, border-color 0.3s;
}

.timeline-content:hover {
  transform: translateY(-2px);
  border-color: var(--terminal-green-dim);
}

.timeline-year {
  font-family: 'VT323', monospace;
  font-size: 1.6rem;
  color: var(--terminal-green);
  text-shadow: 0 0 8px rgba(var(--accent-rgb), 0.3);
}

.timeline-item:nth-child(2) .timeline-year { color: var(--terminal-amber); text-shadow: 0 0 8px rgba(255, 176, 0, 0.3); }
.timeline-item:nth-child(3) .timeline-year { color: var(--terminal-cyan); text-shadow: 0 0 8px rgba(0, 229, 255, 0.3); }
.timeline-item:nth-child(4) .timeline-year { color: var(--terminal-magenta); text-shadow: 0 0 8px rgba(255, 110, 199, 0.3); }
.timeline-item:nth-child(5) .timeline-year { color: var(--accent-blue); text-shadow: 0 0 8px rgba(88, 166, 255, 0.3); }

.timeline-langs {
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 0.3rem 0 0.8rem;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==================== CODE PREVIEW ==================== */
.code-preview-section {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.code-window {
  background: #1a1b26;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-dim);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.code-window-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  background: #13141c;
  border-bottom: 1px solid var(--border-dim);
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.code-window-title {
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-left: 0.8rem;
}

.code-body {
  padding: 1.5rem;
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  line-height: 2;
  overflow-x: auto;
  white-space: pre;
}

.code-body .kw { color: #bb9af7; }
.code-body .fn { color: #7aa2f7; }
.code-body .str { color: #9ece6a; }
.code-body .num { color: #ff9e64; }
.code-body .cm { color: #565f89; font-style: italic; }
.code-body .var { color: #c0caf5; }
.code-body .op { color: #89ddff; }
.code-body .type { color: #2ac3de; }

/* ==================== SCREENSHOTS MARQUEE ==================== */
.screenshots-section {
  padding: 4rem 0;
  overflow: hidden;
}

.screenshots-track {
  display: flex;
  gap: 1.5rem;
  animation: scrollMarquee 30s linear infinite;
  width: max-content;
}

.screenshot-card {
  width: 480px;
  height: 300px;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.screenshot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.screenshot-card:hover img {
  transform: scale(1.08);
}

.screenshots-track:hover {
  animation-play-state: paused;
}

.screenshot-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 1rem;
  background: linear-gradient(transparent, rgba(10, 10, 15, 0.9));
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  color: var(--text-primary);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==================== PRICING ==================== */
.pricing-section { text-align: center; }

.price-card {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  padding: 3rem 4rem;
  position: relative;
  overflow: hidden;
}

.price-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--terminal-green), var(--terminal-amber), var(--terminal-cyan));
}

.price-badge {
  font-family: 'Fira Code', monospace;
  font-size: 0.7rem;
  color: var(--terminal-green);
  border: 1px solid var(--terminal-green-dim);
  padding: 0.2rem 0.8rem;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.price-original {
  font-family: 'VT323', monospace;
  font-size: 1.4rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.price-current {
  font-family: 'VT323', monospace;
  font-size: 3.5rem;
  color: var(--terminal-green);
  text-shadow: 0 0 20px rgba(var(--accent-rgb), 0.3);
  line-height: 1.2;
}

.price-discount {
  display: inline-block;
  background: var(--terminal-green-dim);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-left: 0.5rem;
  vertical-align: super;
}

.price-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

/* ==================== FOOTER ==================== */
footer {
  border-top: 1px solid var(--border-dim);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-brand {
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  color: var(--text-dim);
  margin-bottom: 0.8rem;
}

.footer-brand span { color: var(--terminal-green-dim); }

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.3s;
}

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

.footer-copy {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  nav { padding: 0.8rem 1rem; }
  .nav-links { gap: 1rem; }
  .nav-links a:not(.btn-wishlist) { display: none; }
  
  .timeline::before { left: 1rem; }
  .timeline-item,
  .timeline-item:nth-child(even) {
    padding-left: 3rem;
    padding-right: 0;
    justify-content: flex-start;
  }
  .timeline-dot { left: 1rem; }
  .timeline-content { max-width: 100%; }
  
  .price-card { padding: 2rem; }
  
  .features-grid { grid-template-columns: 1fr; }
}

/* ==================== LEGAL PAGES ==================== */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
}

.legal-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.legal-back {
  display: inline-block;
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  color: var(--terminal-green);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.3s, text-shadow 0.3s;
  margin-bottom: 2rem;
}

.legal-back:hover {
  text-shadow: 0 0 8px rgba(var(--accent-rgb), 0.4);
}

.legal-back--bottom {
  margin-top: 3rem;
  margin-bottom: 0;
}

.legal-content h1 {
  font-family: 'VT323', monospace;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--terminal-green);
  text-shadow: var(--crt-glow);
  letter-spacing: 2px;
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-family: 'VT323', monospace;
  font-size: 1.6rem;
  color: var(--terminal-amber);
  letter-spacing: 1px;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-dim);
}

.legal-content h3 {
  font-family: 'Fira Code', monospace;
  font-size: 1rem;
  color: var(--terminal-cyan);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-content ul, .legal-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-content li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.3rem;
}

.legal-content a {
  color: var(--terminal-green);
  text-decoration: none;
  transition: text-shadow 0.3s;
}

.legal-content a:hover {
  text-shadow: 0 0 8px rgba(var(--accent-rgb), 0.4);
}

.legal-content strong {
  color: var(--text-primary);
}

.legal-divider {
  border: none;
  border-top: 1px solid var(--border-dim);
  margin: 2rem 0;
}

.legal-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-dim);
}

/* Coming-soon badge (modding guide title) */
.coming-soon-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.75rem;
  padding: 0.25em 0.7em;
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terminal-amber);
  border: 1px solid var(--terminal-amber);
  border-radius: 4px;
  animation: coming-soon-pulse 2.4s ease-in-out infinite;
}

@keyframes coming-soon-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(255, 179, 0, 0.25); }
  50% { opacity: 0.65; box-shadow: 0 0 2px rgba(255, 179, 0, 0.05); }
}

/* Pricing: secondary demo link under the buy button */
.price-demo-link {
  display: inline-block;
  margin-top: 1rem;
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  color: var(--terminal-cyan);
  text-decoration: none;
}

.price-demo-link:hover {
  text-decoration: underline;
}

/* Modding teaser section on the landing page */
.modding-section {
  padding: 5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.modding-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-left: 3px solid var(--terminal-green);
  border-radius: 8px;
  padding: 2rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Docs extras (modding guide): code blocks + tables in legal/doc pages */
.legal-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-left: 3px solid var(--terminal-green);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1rem 0 1.5rem;
  overflow-x: auto;
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.legal-content code {
  font-family: 'Fira Code', monospace;
  font-size: 0.85em;
  color: var(--terminal-green);
  background: var(--bg-card);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.legal-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.85rem;
  display: block;
  overflow-x: auto;
}

.legal-content th {
  text-align: left;
  color: var(--terminal-green);
  font-family: 'Fira Code', monospace;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--terminal-green);
  white-space: nowrap;
}

.legal-content td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border-dim);
  color: var(--text-secondary);
  vertical-align: top;
}

.legal-content td:first-child {
  color: var(--text-primary);
  font-family: 'Fira Code', monospace;
  white-space: nowrap;
}

.docs-info {
  background: var(--bg-card);
  border: 1px solid var(--terminal-cyan);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.docs-info strong {
  color: var(--terminal-cyan);
}

@media (max-width: 768px) {
  .legal-page { padding: 6rem 1rem 3rem; }
}

/* ==================== SCROLL ANIMATIONS ==================== */
/* Reveal animations only activate when JS adds .js-ready to <html> */
html.js-ready .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

html.js-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Typing animation for code */
.type-line {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--terminal-green);
  animation: typing 2s steps(40) forwards, blinkCaret 0.75s step-end infinite;
  width: 0;
}

@keyframes typing {
  to { width: 100%; }
}

@keyframes blinkCaret {
  50% { border-color: transparent; }
}

/* Ambient particle effect */
.particles {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: -1;
}
