@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-alt: #0d0d0d;
  --surface: #0f0f0f;
  --surface-strong: #141414;
  --border: #1f1f1f;
  --text: #f5f5f5;
  --muted: #cfcfcf;
  --accent: #5cf46b;
  --accent-soft: #9ef7a8;
  --warning: #f2cf6f;
  --glow: rgba(92, 244, 107, 0.2);
}

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

body {
  font-family: "JetBrains Mono", monospace;
  background: radial-gradient(circle at top, rgba(92, 244, 107, 0.08), transparent 50%), var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  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 3px
    );
  mix-blend-mode: soft-light;
  opacity: 0.3;
  z-index: 0;
}

img {
  max-width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-soft);
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.navbar {
  border-bottom: 1px solid var(--border);
  background: rgba(7, 12, 8, 0.9);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.brand span {
  color: var(--muted);
  font-size: 0.85rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.95rem;
}

.palette-button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent-soft);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.palette-button:hover {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--glow);
}

.nav-links a {
  color: var(--muted);
}

.nav-links a.active {
  color: var(--accent-soft);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.2rem;
}

.hero {
  padding: 5rem 0 3.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.boot-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 3, 0.99);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 200;
}

.boot-overlay.active {
  display: flex;
}

.boot-panel {
  width: min(720px, 90vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.boot-screen {
  display: none;
  color: var(--muted);
}

.boot-screen.active {
  display: block;
}

.boot-screen p {
  color: var(--accent-soft);
  margin-bottom: 1rem;
}

.boot-progress {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.boot-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  box-shadow: 0 0 12px var(--glow);
  transition: width 0.4s ease;
}

.boot-steps li {
  color: var(--text);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.boot-steps li.active {
  opacity: 1;
  transform: translateY(0);
}

.boot-sub {
  color: var(--muted);
  font-size: 0.85rem;
}

.terminal-card {
  background: linear-gradient(180deg, rgba(17, 26, 19, 0.96), rgba(12, 18, 13, 0.95));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.terminal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.45rem 0.85rem;
  margin-bottom: 1.1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.terminal-dots {
  display: flex;
  gap: 0.4rem;
}

.terminal-dots span {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  display: inline-block;
  background: var(--border);
  box-shadow: 0 0 10px var(--glow);
}

.terminal-dots span:nth-child(2) {
  background: var(--warning);
}

.terminal-dots span:nth-child(3) {
  background: var(--accent);
}

.prompt {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.prompt span {
  color: var(--muted);
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin-bottom: 0.8rem;
  text-shadow: 0 0 18px var(--glow);
}

.hero p {
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.cta {
  border: 1px solid var(--accent);
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  color: var(--accent-soft);
  transition: 0.2s ease;
}

.cta.secondary {
  border-color: var(--border);
  color: var(--muted);
}

.cta:hover {
  background: rgba(110, 234, 110, 0.15);
}

.ascii-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.45);
}

.ascii-art {
  font-size: 0.7rem;
  line-height: 1.2;
  color: var(--accent-soft);
  white-space: pre;
  overflow-x: auto;
}

.boot-ascii {
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--text);
}

.ascii-caption {
  color: var(--muted);
  margin-top: 0.6rem;
  font-size: 0.85rem;
}


.section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin-bottom: 1.4rem;
}

.section p {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.25rem;
  border-radius: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.card h3 {
  margin-bottom: 0.6rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--warning);
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}

.list {
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.list li {
  padding-left: 1.2rem;
  position: relative;
  color: var(--muted);
}

.list li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.palette {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.palette.open {
  display: flex;
}

.palette-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 3, 0.75);
}

.palette-panel {
  position: relative;
  width: min(520px, 92vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  padding: 1.4rem;
}

.palette-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.8rem;
  margin-bottom: 0.9rem;
}

.palette-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
  font-family: inherit;
  margin-bottom: 0.7rem;
}

.palette-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--glow);
}

.palette-help {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

.palette-hint {
  color: var(--accent-soft);
}

.palette-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.palette-list a {
  color: var(--text);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  display: block;
}

.palette-list a:hover {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--glow);
}

.footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.tagline {
  color: var(--accent-soft);
  font-weight: 500;
}

@media (max-width: 720px) {
  .navbar .container {
    flex-direction: column;
    align-items: flex-start;
  }
}
