:root {
  --bg: #0a0a0b;
  --text: #e6e6ea;
  --muted: #8a8a93;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #ff2d3d;
}

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

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Subtle grid background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* Slow scanning line */
body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(255, 45, 61, 0.05), transparent);
  animation: scan 7s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes scan {
  from { top: -120px; }
  to { top: 100%; }
}

header, main, footer { position: relative; z-index: 1; }

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px clamp(20px, 5vw, 64px);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--muted);
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

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

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.wordmark {
  font-weight: 700;
  font-size: clamp(64px, 17vw, 200px);
  letter-spacing: 0.06em;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, #b9b9c0 55%, #77777f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

.wordmark .first {
  background: none;
  -webkit-text-fill-color: var(--accent);
  color: var(--accent);
  text-shadow: 0 0 40px rgba(255, 45, 61, 0.35);
}

.name {
  margin-top: 18px;
  font-size: clamp(16px, 2.4vw, 20px);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.role {
  margin-top: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(12px, 1.8vw, 14px);
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terminal {
  margin-top: 48px;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(13px, 2vw, 15px);
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 14px 20px;
  border-radius: 8px;
  min-width: min(420px, 90vw);
  text-align: left;
}

.terminal .prompt { color: var(--accent); }
.terminal .out { color: var(--text); }

.cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: var(--text);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

footer {
  padding: 24px clamp(20px, 5vw, 64px);
  display: flex;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (prefers-reduced-motion: reduce) {
  body::after, .dot, .cursor { animation: none; }
}
