:root {
  --bg: #0b0a12;
  --panel: #14111f;
  --line: rgba(255, 255, 255, 0.09);
  --violet: #7c5cff;
  --violet-soft: #b9a8ff;
  --crimson: #e8415f;
  --text: #f1edf9;
  --text-muted: #978fac;
  --font-display: "Cinzel", serif;
  --font-body: "Manrope", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  background: rgba(124, 92, 255, 0.14);
  color: var(--violet-soft);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 10, 18, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  gap: 28px;
  margin-right: auto;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--violet-soft);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--violet);
  color: #fff;
}

.btn-primary:hover { background: #8e6dff; transform: translateY(-1px); }

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

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

.btn-text {
  color: var(--text-muted);
  padding: 12px 8px;
}

.btn-text:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.kicker {
  color: var(--violet-soft);
  font-size: 0.95rem;
  margin: 0 0 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.18;
  margin: 0 0 22px;
  font-weight: 600;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 46ch;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-emblem {
  display: flex;
  justify-content: center;
  animation: rise 1s ease both;
}

.emblem-svg { width: 100%; max-width: 380px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Features ---------- */
.features { padding: 64px 0; border-top: 1px solid var(--line); }

.features h2,
.commands h2,
.setup h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  margin: 0 0 36px;
  max-width: 24ch;
}

.feature-list { list-style: none; margin: 0; padding: 0; }

.feature-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  position: relative;
}

.feature-row:last-child { border-bottom: 1px solid var(--line); }

.feature-row::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: transparent;
  transition: background 0.2s ease;
}

.feature-row:hover::before { background: var(--violet); }

.feature-row h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.feature-row p {
  margin: 0;
  color: var(--text-muted);
  max-width: 58ch;
}

/* ---------- Commands ---------- */
.commands { padding: 64px 0; border-top: 1px solid var(--line); }

.commands-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.commands-copy p { color: var(--text-muted); max-width: 40ch; }

.terminal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.terminal-body {
  margin: 0;
  padding: 20px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92rem;
  color: var(--text);
  overflow-x: auto;
}

.terminal-body .line { display: block; padding: 4px 0; }

.terminal-body .prompt { color: var(--violet-soft); margin-right: 8px; }

/* ---------- Setup ---------- */
.setup { padding: 64px 0 96px; border-top: 1px solid var(--line); }

.setup-steps {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.setup-steps li { display: flex; flex-direction: column; gap: 14px; }

.step-num {
  font-family: var(--font-display);
  color: var(--violet-soft);
  font-size: 1.3rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.setup-steps h3 { margin: 0 0 6px; font-size: 1.02rem; }

.setup-steps p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; }

.footer-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid,
  .commands-grid { grid-template-columns: 1fr; }

  .hero-emblem { order: -1; max-width: 260px; margin: 0 auto 8px; }

  .feature-row { grid-template-columns: 1fr; gap: 10px; }

  .setup-steps { grid-template-columns: repeat(2, 1fr); }

  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }

  .main-nav.open { display: flex; }

  .main-nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }

  .main-nav a:last-child { border-bottom: none; }

  .nav-toggle { display: flex; }

  .header-row .btn-ghost { display: none; }
}

@media (max-width: 560px) {
  .setup-steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-emblem { animation: none; }
  html { scroll-behavior: auto; }
}
