/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Brand colour — change this one value to retheme the entire site ── */
  --brand:    #00b8ff;
  --brand-d:  #009fd9;
  --brand-l:  #e6f9ff;
  --brand-b:  #b3ecff;   /* border tint */

  /* kept for benefit-card accent colours (independent of brand) */
  --purple:   var(--brand);
  --purple-d: var(--brand-d);
  --purple-l: var(--brand-l);
  --blue:     #3b82f6;
  --blue-l:   #eff6ff;
  --green:    #22c55e;
  --green-l:  #f0fdf4;
  --orange:   #f97316;
  --orange-l: #fff7ed;
  --indigo:   var(--brand);
  --indigo-l: var(--brand-l);
  --teal:     #14b8a6;
  --teal-l:   #f0fdfa;

  --text:     #0f172a;
  --muted:    #475569;
  --faint:    #94a3b8;
  --border:   #e2e8f0;
  --bg:       #ffffff;
  --bg-alt:   #f8fafc;
  --radius:   12px;

  --font:      'Inter', system-ui, -apple-system, sans-serif;
  --mono:      'Fira Code', ui-monospace, monospace;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: 0.88em; }
pre { font-family: var(--mono); }

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

/* ─── Nav ───────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav-brand {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-brand-name { color: var(--text); }
.nav-brand-name span { color: var(--brand); }

.nav-badge {
  font-size: 11px;
  font-weight: 500;
  background: var(--purple-l);
  color: var(--purple);
  padding: 2px 8px;
  border-radius: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

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

.nav-cta {
  background: var(--purple);
  color: #fff !important;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--purple-d) !important; }

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-d); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,184,255,0.35); }

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: var(--purple); color: var(--purple); }

.btn-outline {
  background: transparent;
  color: var(--purple);
  border: 1.5px solid var(--purple);
}
.btn-outline:hover { background: var(--purple-l); }

.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover { background: rgba(255,255,255,0.25); }

.btn-lg { padding: 13px 26px; font-size: 15px; border-radius: 10px; }

/* ─── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  padding: 96px 0 80px;
  background: linear-gradient(160deg, #fafafa 0%, #e6f9ff 50%, #fafafa 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.hero-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--purple);
  background: var(--purple-l);
  border: 1px solid var(--brand-b);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 28px;
}

.hero-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.stack-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
}
.stack-item img { border-radius: 3px; }

.stack-sep {
  font-size: 13px;
  color: var(--faint);
  font-weight: 500;
}

.hero-title {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

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

.hero-code {
  max-width: 520px;
  margin: 0 auto;
  background: #0f172a;
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 20px 60px rgba(15,23,42,0.18);
}

/* ─── Code blocks ───────────────────────────────────────────────────────────── */
.code-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #1e293b;
}
.code-dot { width: 11px; height: 11px; border-radius: 50%; }
.code-dot.red    { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green  { background: #28c840; }
.code-filename {
  margin-left: 8px;
  font-size: 11px;
  font-family: var(--mono);
  color: #64748b;
}

.hero-code pre,
.install-code-block pre,
.mode-code pre {
  padding: 20px;
  font-size: 13px;
  line-height: 1.75;
  color: #e2e8f0;
  overflow-x: auto;
}

/* syntax colours */
.tok-comment { color: #64748b; }
.tok-kw      { color: #c084fc; }
.tok-str     { color: #86efac; }
.tok-num     { color: #fb923c; }
.tok-tag     { color: #67e8f9; }
.tok-attr    { color: #a5f3fc; }

/* ─── Sections ──────────────────────────────────────────────────────────────── */
.section      { padding: 88px 0; }
.section-alt  { background: var(--bg-alt); }

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 48px;
}

/* ─── Benefits grid ─────────────────────────────────────────────────────────── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
}

.benefit-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.benefit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
}

.benefit-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.benefit-icon.purple { background: var(--purple-l); color: var(--purple); }
.benefit-icon.blue   { background: var(--blue-l);   color: var(--blue); }
.benefit-icon.green  { background: var(--green-l);  color: var(--green); }
.benefit-icon.orange { background: var(--orange-l); color: var(--orange); }
.benefit-icon.indigo { background: var(--indigo-l); color: var(--indigo); }
.benefit-icon.teal   { background: var(--teal-l);   color: var(--teal); }

.benefit-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.benefit-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}
.benefit-card code {
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
}

/* ─── Modes grid ─────────────────────────────────────────────────────────────── */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
}

.mode-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.mode-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--purple);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 50%;
  margin: 24px 24px 12px;
}

.mode-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 24px 10px;
}

.mode-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 24px 20px;
  line-height: 1.65;
}
.mode-card p code {
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
}

.mode-code {
  background: #0f172a;
  border-top: 1px solid #1e293b;
}
.mode-code pre {
  font-size: 12.5px;
  padding: 16px 20px;
  line-height: 1.7;
  color: #e2e8f0;
  overflow-x: auto;
}

/* ─── Components ─────────────────────────────────────────────────────────────── */
.components-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 36px;
}

.comp-group { min-width: 140px; }

.comp-group-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}

.comp-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 4px 10px;
  border-radius: 6px;
  margin: 0 4px 6px 0;
}

.comp-tag-new {
  background: var(--purple-l);
  border-color: #c7d2fe;
  color: var(--purple);
}
.comp-tag-new sup {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-left: 3px;
}

.comp-cta { margin-top: 8px; }

/* ─── Install ────────────────────────────────────────────────────────────────── */
.install-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 720px) {
  .install-grid { grid-template-columns: 1fr; }
}

.install-info p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 20px;
}
.install-info p code {
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 4px;
}

.install-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.install-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}
.install-list svg { flex-shrink: 0; margin-top: 2px; }

.npm-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #cb3837;
  border: 1.5px solid #cb3837;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.15s;
}
.npm-link:hover { background: #fff2f2; }

.install-code-block {
  background: #0f172a;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(15,23,42,0.15);
}

/* ─── CTA section ────────────────────────────────────────────────────────────── */
.section-cta {
  background: linear-gradient(135deg, var(--brand-d) 0%, var(--brand) 100%);
  padding: 96px 0;
  text-align: center;
}

.cta-inner { max-width: 640px; }

.cta-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 14px;
}

.cta-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
.footer {
  background: #0f172a;
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand .nav-brand-name { color: #fff; }
.footer-brand .nav-brand-name span { color: var(--brand); }
.footer-by { font-size: 13px; font-weight: 400; color: #475569; }
.footer-by a { color: var(--brand); }
.footer-by a:hover { color: var(--brand-b); }

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: #64748b;
}
.footer-links a:hover { color: #fff; }

.footer-copy {
  font-size: 12px;
  color: #334155;
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 64px 0 56px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .modes-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
