:root {
  --bg: #111111;
  --panel: rgba(18, 18, 18, 0.92);
  --panel-2: rgba(28, 28, 28, 0.9);
  --text: #f5f5f5;
  --muted: #a5a5a5;
  --accent: #74f7a8;
  --accent-2: #58c7ff;
  --border: rgba(255, 255, 255, 0.12);
  --glow: rgba(116, 247, 168, 0.15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(88, 199, 255, 0.12), transparent 30%),
    radial-gradient(circle at 20% 20%, rgba(116, 247, 168, 0.08), transparent 18%),
    linear-gradient(180deg, #0a0a0a 0%, #111111 100%);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.6;
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.03),
    rgba(255,255,255,0.03) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.25;
}

.terminal-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 24px auto 48px;
}

.topbar, .panel {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 18px;
  margin-bottom: 18px;
}

.status, nav, .hero-actions, .terminal-header, .contact-box { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
nav a, .button { text-decoration: none; color: var(--text); }
nav a { color: var(--muted); }
nav a:hover { color: var(--accent); }

.panel {
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 18px;
}

.hero h1, h2, h3, .prompt, .section-label, .key { margin: 0; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5.25rem); line-height: 0.95; margin-top: 14px; }
.lede { max-width: 60ch; color: var(--muted); font-size: 1.05rem; }

.prompt, .section-label, .tag, .window-title, .key, nav a { font-size: 0.84rem; letter-spacing: 0.08em; text-transform: uppercase; }
.section-label { color: var(--accent-2); margin-bottom: 14px; }

.terminal-card {
  margin-top: 22px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #090909;
}
.terminal-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}
.pill { width: 12px; height: 12px; border-radius: 999px; display: inline-block; }
.red { background: #ff5f57; } .yellow { background: #febc2e; } .green { background: #28c840; }
.window-title { color: var(--muted); margin-left: auto; }
pre {
  margin: 0;
  padding: 18px;
  min-height: 220px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--accent);
  font-size: 0.96rem;
}
.hero-actions { margin-top: 20px; }
.button {
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.button.primary { background: rgba(116, 247, 168, 0.1); color: var(--accent); }
.button.ghost { background: rgba(255,255,255,0.02); }
.button:hover { transform: translateY(-1px); border-color: rgba(116,247,168,0.4); }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.grid.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
article, .item, .contact-box { border: 1px solid var(--border); border-radius: 18px; background: rgba(255,255,255,0.02); padding: 18px; }
article p, .item p, .split p, .contact-box p { color: var(--muted); }
.timeline { display: grid; gap: 14px; margin-top: 16px; }
.item strong, article h3, h2 { display: block; margin-bottom: 8px; }
.tag { color: var(--accent-2); display: inline-block; margin-bottom: 8px; }
.contact { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.key { color: var(--accent); margin-right: 10px; }
.muted { color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.live { background: var(--accent); box-shadow: 0 0 0 6px var(--glow); }

@media (max-width: 900px) {
  .split, .grid.three, .contact { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; }
}

@media (max-width: 640px) {
  .terminal-shell { width: min(100% - 20px, 1120px); margin-top: 10px; }
  .panel { padding: 20px; border-radius: 18px; }
  .hero h1 { font-size: 2.8rem; }
}
