:root {
  --bg: #000000;
  --surface: #111111;
  --surface-strong: #222222;
  --text: #ffffff;
  --muted: #bbbbbb;
  --accent: #d95d39;
  --accent-dark: #a84021;
  --line: #333333;
  --shadow: none;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* Prevent scrolling while boot screen is active */
body.booting {
  overflow: hidden;
  height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 60px;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  padding: 20px 40px;
  background: transparent;
  border: none;
  backdrop-filter: none;
  box-shadow: none;
}

.brand {
  display: none; /* Hide brand for now as per sketch */
}

.topbar nav {
  display: flex;
  gap: 30px;
}

.topbar nav a {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 500;
  text-decoration: none;
}

.topbar nav a:hover {
  text-decoration: underline;
}

.minimal-start {
  padding: 60px 0;
}

.showcase-card {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px 12px 12px;
  border: 1px solid #ffffff;
  border-radius: 16px;
  background: transparent;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, background 0.2s ease;
}

.showcase-card:hover {
  background: #111;
  transform: translateY(-2px);
}

.showcase-icon {
  width: 48px;
  height: 48px;
  background: #89CFF0; /* Light blue color from sketch */
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
}

.showcase-icon svg {
  width: 24px;
  height: 24px;
}

.showcase-title {
  font-size: 1.5rem;
  font-weight: 500;
}

/* Boot Screen & Terminal */
#boot-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0d0d0d;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #e0e0e0;
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  padding: 20px;
  cursor: default;
}

.terminal-content {
  max-width: 680px;
  width: 100%;
  font-size: 1.1rem;
  line-height: 1.5;
}

.terminal-line {
  display: flex;
  margin-bottom: 4px;
  min-height: 1.5em; /* Prevent layout shift */
}

/* Blinking cursor effect */
.cursor::after {
  content: "█";
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  color: #e0e0e0;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.fade-out {
  opacity: 0;
  transition: opacity 0.8s ease-out;
  pointer-events: none;
}

@media (max-width: 640px) {
  .page-shell {
    padding-top: 18px;
  }
}