:root {
  --bg: #0d1117;
  --bg-panel: #161b22;
  --bg-elevated: #1c2128;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --accent-soft: #388bfd33;
  --success: #3fb950;
  --border: #30363d;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.bg-pattern {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(139, 148, 158, 0.12) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
  animation: fade-in 0.8s ease-out;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-link {
  display: block;
  margin-bottom: 2rem;
}

.logo {
  width: 64px;
  height: 64px;
  opacity: 0.95;
  transition: opacity 0.2s;
}

.logo-link:hover .logo {
  opacity: 1;
}

.terminal {
  width: min(480px, 100%);
  margin-bottom: 2.25rem;
  text-align: left;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.65rem 1rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.terminal-title {
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 1.1rem 1.25rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
}

.terminal-body p {
  margin: 0;
}

.prompt {
  color: var(--success);
  user-select: none;
}

.output {
  color: var(--text-muted);
  padding-left: 1.25rem;
  margin-bottom: 0.35rem !important;
}

.cursor-line {
  color: var(--text);
}

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

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

.title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.subtitle {
  min-height: 1.6em;
  max-width: 36ch;
  margin: 0 auto 2rem;
  font-size: clamp(0.88rem, 2.5vw, 0.95rem);
  color: var(--text-muted);
  line-height: 1.55;
}

.subtitle::after {
  content: "▋";
  color: var(--accent);
  animation: cursor-blink 0.9s step-end infinite;
  margin-left: 1px;
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.load-panel {
  width: min(420px, 100%);
  padding: 1.25rem 1.35rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: left;
}

.load-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.load-bar {
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
}

.load-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.25s ease-out;
}

.load-hint {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.stack li {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  padding: 0.35rem 0.65rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.social {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: background 0.2s, border-color 0.2s;
}

.social a:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.footer {
  margin-top: 2.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.8;
}

.footer p {
  margin: 0;
}

@media (max-width: 480px) {
  .terminal-body {
    font-size: 0.75rem;
  }

  .stack li {
    font-size: 0.62rem;
  }
}
