:root {
  --bg: #201d1d;
  --bg-elevated: #302c2c;
  --border: rgba(15, 0, 0, 0.12);
  --border-strong: #646262;
  --text-1: #fdfcfc;
  --text-2: #9a9898;
  --text-3: #84848a;
  --accent: #00e063;
  --ok: #30d158;
  --err: #ff3b10;
  --warn: #ff9f0a;
  --mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--mono);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-1);
  text-decoration: none;
  transition: color 120ms ease;
}

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

code {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--accent);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.logo-dot {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-2);
}

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

.badge {
  font-size: 12px;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--text-2);
}

.badge:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero */
.hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 88px 24px 40px;
  text-align: center;
}

.hero-title {
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin-bottom: 20px;
}

.accent {
  color: var(--accent);
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 32px;
  color: var(--text-2);
  font-size: 15px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 14px;
  transition: opacity 120ms ease;
}

.btn:hover {
  opacity: 0.85;
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Terminal */
.terminal {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  text-align: left;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--err);
}

.dot:nth-child(2) {
  background: var(--warn);
}

.dot:nth-child(3) {
  background: var(--ok);
}

.terminal-title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-3);
}

.terminal-body {
  padding: 18px 20px;
  font-size: 13px;
  color: var(--text-1);
  min-height: 160px;
  white-space: pre-wrap;
  word-break: break-word;
}

.t-prompt {
  color: var(--accent);
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}

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

/* Sections */
.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px;
}

.section h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

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

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 22px;
}

.card h3 {
  font-size: 14px;
  margin-bottom: 10px;
}

.card p {
  font-size: 13px;
  color: var(--text-2);
}

.code-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.7;
}

.c {
  color: var(--text-3);
}

.c-mode {
  color: var(--ok);
}

.c-err {
  color: var(--err);
}

/* Footer */
.footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 12px;
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .hero {
    padding-top: 56px;
  }
}
