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

:root {
  --bg: #0c0d11;
  --bg-light: #11131a;
  --bg-lighter: #161922;
  --text: #d8d8d8;
  --text-dim: #8b8b8b;
  --text-accent: #c2ff99;
  --highlight: #c2ff99;
}

body {
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.05), transparent 34%),
    radial-gradient(circle at 80% 12%, rgba(255,255,255,0.04), transparent 32%),
    linear-gradient(140deg, #0b0c10 0%, #0f1116 45%, #0b0b10 100%);
  color: var(--text);
  font-family: 'Commit Mono', 'SF Mono', 'Monaco', monospace;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  display: grid;
  place-items: center;
  min-height: 100vh;
  overflow: hidden;
}

.container {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.window {
  display: flex;
  flex-direction: column;
  height: 76vh;
  width: 78vw;
  max-width: 1080px;
  background: linear-gradient(160deg, #11131a 0%, #0f1016 100%);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55);
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.045);
}

@media (max-width: 1024px) {
  .window { height: 100vh; width: 100vw; border-radius: 0; }
}

.window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: #1b1e26;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: grab;
  user-select: none;
}

.window-controls { display: none; gap: 8px; }
@media (min-width: 1024px) { .window-controls { display: flex; } }

.control {
  width: 12px; height: 12px; border-radius: 50%; border: none;
  background: #6a6a6a; cursor: pointer; transition: background 0.2s, transform 0.1s;
}
.control:hover { transform: translateY(-1px); }
.control:first-child:hover { background: #ff6157; }
.control:nth-child(2):hover { background: #febc2e; }
.control:nth-child(3):hover { background: #28c940; }

.window-title { font-size: 12px; font-weight: 500; flex: 1; text-align: center; }
.spacer { width: 52px; }

.content-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 46px 20px 16px;
  flex: 0 0 auto;
}

.ascii-art {
  font-size: 9px;
  line-height: 0.9;
  letter-spacing: -0.06em;
  white-space: pre;
  color: var(--text);
  text-align: center;
  opacity: 0.92;
}

.intro-text { text-align: center; }
.intro-text p { margin: 4px 0; font-size: 13px; line-height: 1.5; }

.nav-section {
  padding: 12px 16px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  padding: 3px 7px;
  border-radius: 4px;
  transition: background 0.18s, color 0.18s;
}

.nav-links a:hover { background: rgba(194,255,153,0.12); color: var(--highlight); }
.shortcut { color: var(--text-dim); }

.panel {
  padding: 14px 20px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.035);
  background: rgba(255, 255, 255, 0.014);
}

.panel h3 { color: var(--text-accent); font-weight: 600; margin-bottom: 10px; letter-spacing: -0.02em; }
.panel ul { list-style: none; display: grid; gap: 8px; }
.panel p { margin: 4px 0; color: var(--text); }

.caret { color: var(--text-accent); margin-right: 6px; }
.tag { color: var(--text-dim); font-size: 11px; margin-left: 6px; }

.links { display: flex; gap: 14px; flex-wrap: wrap; }
.links a { color: var(--text); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s, color 0.2s; }
.links a:hover { color: var(--text-accent); border-color: var(--text-accent); }

.grid-pattern {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}

.grain-noise {
  position: fixed; inset: -40%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.75" numOctaves="3" /></filter><rect width="400" height="400" fill="gray" filter="url(%23n)" opacity="0.022"/></svg>');
  pointer-events: none;
  z-index: 1;
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  font-size: 11px;
  color: var(--text-dim);
  border-top: 1px solid rgba(255,255,255,0.045);
  background: rgba(0,0,0,0.22);
}

.status-left { display: flex; gap: 8px; align-items: center; letter-spacing: -0.01em; }
.status-right { opacity: 0.9; }
