:root {
  --bg: #0a0e13;
  --panel: #11171f;
  --panel-2: #151c26;
  --border: #222c39;
  --border-soft: #1b232e;
  --text: #e9edf2;
  --muted: #9aa7b4;
  --faint: #6b7887;
  --accent: #22d3ee;
  --accent-ink: #06181d;
  --green: #4ade80;
  --amber: #fbbf24;
  --red: #f87171;
  --radius: 14px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; }
code, pre, .mono { font-family: var(--mono); }
code {
  background: var(--panel-2);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.88em;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(10, 14, 19, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 26px; font-size: 14.5px; }
.nav-links a { color: var(--muted); text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent); color: var(--accent-ink);
  padding: 8px 15px; border-radius: 8px; font-weight: 650; font-size: 14px;
  text-decoration: none; white-space: nowrap;
}
.nav-cta:hover { filter: brightness(1.08); }
@media (max-width: 780px) { .nav-links { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1px solid transparent; transition: transform .12s, filter .15s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--panel); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--panel-2); }

/* ---------- hero ---------- */
.hero { border-bottom: 1px solid var(--border-soft); background:
  radial-gradient(900px 500px at 82% -10%, rgba(34, 211, 238, 0.10), transparent 70%); }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px;
  align-items: center; padding: 84px 24px 92px;
}
.hero h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; margin: 16px 0 0; }
.hero h1 span { color: var(--accent); }
.lead { color: var(--muted); font-size: 18px; margin: 20px 0 28px; max-width: 40ch; }
.lead strong { color: var(--text); font-weight: 700; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin-top: 22px; font-size: 13.5px; color: var(--faint); }
.hero-meta .mono { color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 56px 24px 64px; }
  .lead { max-width: none; }
}

/* ---------- terminal frame ---------- */
.term {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(34, 211, 238, 0.04);
}
.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border-soft);
}
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #35404d; }
.term-bar i:nth-child(1) { background: #f87171; }
.term-bar i:nth-child(2) { background: #fbbf24; }
.term-bar i:nth-child(3) { background: #4ade80; }
.term-bar em {
  margin-left: 10px; font-style: normal; font-family: var(--mono);
  font-size: 12px; color: var(--faint); letter-spacing: 0.02em;
}
.term pre {
  margin: 0; padding: 18px 20px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.62;
  color: #cdd6df; overflow-x: auto; white-space: pre;
  tab-size: 2;
}
.term pre b { font-weight: 700; color: var(--text); }
.term pre .bar { color: rgba(34, 211, 238, 0.55); letter-spacing: -0.5px; }
.term pre .acc { color: var(--accent); letter-spacing: -0.5px; }
.term pre .dim { color: #3b4653; }
.term pre .p { color: var(--accent); }
.term pre .c { color: var(--faint); font-style: italic; }
.g-s, .g-a { color: var(--green); }
.g-b { color: var(--accent); }
.g-c { color: var(--amber); }
.g-d, .g-f { color: var(--red); }

.term-hero pre { font-size: 12px; }
@media (max-width: 480px) { .term pre { font-size: 11px; } }

/* ---------- sections ---------- */
section { padding: 84px 0; border-bottom: 1px solid var(--border-soft); }
section.alt { background: var(--panel); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 750; margin: 12px 0 10px; }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .15s, transform .15s;
}
section.alt .card { background: var(--panel-2); }
.card:hover { border-color: var(--border); transform: translateY(-2px); }
.card-ico {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(34, 211, 238, 0.10);
  color: var(--accent);
  margin-bottom: 16px;
}
.card-ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 17.5px; font-weight: 700; margin: 0 0 8px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.card p b { color: var(--text); }
.card em { color: var(--text); font-style: italic; }
@media (max-width: 720px) { .cards { grid-template-columns: 1fr; } }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: start; }
.gallery-col { display: grid; gap: 22px; }
@media (max-width: 880px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- examples ---------- */
.term-wide { max-width: 820px; }
.term-wide pre { font-size: 13px; }
.muted-note { color: var(--muted); font-size: 14.5px; margin-top: 20px; max-width: 70ch; }

/* ---------- install ---------- */
.install-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.install-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column;
}
.install-card h3 { font-size: 17px; margin: 0 0 8px; }
.install-card p { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.install-card pre {
  background: var(--panel); border: 1px solid var(--border-soft); border-radius: 8px;
  padding: 12px 14px; font-size: 12px; color: #cdd6df; overflow-x: auto; margin: 0 0 16px;
}
.install-card .btn { margin-top: auto; align-self: flex-start; }
.install-note { color: var(--muted); font-size: 14px; margin-top: 22px; max-width: 78ch; }
.install-note a, .muted-note a, .section-head a { color: var(--accent); text-decoration: none; }
.install-note a:hover, .muted-note a:hover { text-decoration: underline; }
@media (max-width: 860px) { .install-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
footer { padding: 34px 0; border-bottom: none; }
footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; color: var(--faint); font-size: 13.5px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
