/* skep site — shared tokens + components. No build step; plain CSS. */

:root {
  --bg: #07080A;
  --bg-alt: #090B0C;
  --bg-card: #0D1012;
  --bg-card-2: #0C0F11;
  --bg-panel: #0B0E10;
  --bg-inset: #0E1113;
  --bg-chip: #101416;
  --bg-hover: #14181A;
  --line-hair: #14181A;
  --line-header: #191D1F;
  --line-inner: #1A1E20;
  --line-card: #1D2225;
  --line-strong: #23282A;
  --line-hover: #3A4245;
  --text-bright: #F6F8F7;
  --text-hi: #F4F6F5;
  --text: #ECEEED;
  --text-soft: #E4E8E6;
  --text-mid: #C3CAC7;
  --text-muted: #98A19D;
  --text-dim: #8A938F;
  --text-faint: #7C8783;
  --text-ghost: #6F7A76;
  --text-void: #626C69;
  --orange: #FF6B1F;
  --orange-hover: #FF8038;
  --orange-soft: #FF9B62;
  --on-orange: #140803;
  --green: #7BE08C;
  --green-dim: #4FA463;
  --red: #F0605B;
  --yellow: #F2B35E;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: Geist, ui-sans-serif, system-ui, -apple-system, sans-serif;
  --pad-x: clamp(16px, 3.5vw, 44px);
  --pad-y: clamp(52px, 6vw, 88px);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
::selection { background: rgba(255, 107, 31, 0.28); }
[data-lucide] { display: block; }
pre { margin: 0; font-family: var(--mono); }
h1, h2, h3, h4, p { margin: 0; text-wrap: pretty; }

@keyframes skepPulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* ---- layout ---- */
.wrap { max-width: 1400px; margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section { padding-top: var(--pad-y); padding-bottom: var(--pad-y); }
.band { border-top: 1px solid var(--line-hair); border-bottom: 1px solid var(--line-hair); background: var(--bg-alt); }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---- type ---- */
.eyebrow {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}
.eyebrow.green { color: var(--green); }
.eyebrow.red { color: var(--red); }
.h1 { font-size: clamp(46px, 5.6vw, 82px); font-weight: 700; line-height: 0.96; letter-spacing: -0.035em; color: var(--text-bright); }
.h2 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 700; line-height: 1.06; letter-spacing: -0.03em; color: var(--text-bright); }
.lead { font-size: 16px; line-height: 1.62; color: var(--text-dim); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding: 0 24px; border-radius: 10px;
  font-size: 15.5px; font-weight: 600; cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}
.btn-primary { background: var(--orange); color: var(--on-orange); font-weight: 650; }
.btn-primary:hover { background: var(--orange-hover); color: var(--on-orange); }
.btn-ghost { border: 1px solid var(--line-strong); background: var(--bg-inset); color: var(--text-soft); }
.btn-ghost:hover { border-color: var(--line-hover); color: var(--text-soft); }
.btn-sm { height: 44px; padding: 0 18px; border-radius: 9px; font-size: 14.5px; }
.btn i, .btn svg { width: 17px; height: 17px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--green); white-space: nowrap; }
.link-arrow i { width: 15px; height: 15px; }
.link-arrow.muted { color: var(--text-muted); }
.link-arrow.muted:hover { color: var(--green); }

/* ---- cards ---- */
.card { padding: 24px; border: 1px solid var(--line-card); border-radius: 12px; background: var(--bg-card); }
.card.alt { background: var(--bg-card-2); }
.card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 650; color: var(--text-bright); }
.card p { font-size: 14.5px; line-height: 1.62; color: var(--text-faint); }
.card-icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-bottom: 15px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--bg-chip); color: var(--orange);
}
.card-icon i { width: 18px; height: 18px; }
.card-icon.green { color: var(--green); }

.kicker {
  margin-bottom: 16px; font-family: var(--mono);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--green);
}

/* ---- code ---- */
code, .mono { font-family: var(--mono); }
.codebox { border: 1px solid var(--line-card); border-radius: 12px; background: var(--bg-card); overflow: hidden; }
.codebox-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; border-bottom: 1px solid var(--line-inner);
}
.codebox-title { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--text-bright); }
.codebox pre { padding: 16px; font-size: 13px; line-height: 1.8; color: var(--text-mid); overflow-x: auto; }
.step-no {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(123, 224, 140, 0.12);
  font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--green);
}
.copy-btn {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; flex: 0 0 auto;
  border: 0; border-radius: 6px; background: transparent;
  color: var(--text-ghost); cursor: pointer;
}
.copy-btn:hover { background: var(--bg-hover); color: var(--text-soft); }
.copy-btn i { width: 14px; height: 14px; }

.term { border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg-panel); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-inner); }
.term-bar span { width: 11px; height: 11px; border-radius: 50%; }
.term-bar .r { background: #E1554F; } .term-bar .y { background: #E3B341; } .term-bar .g { background: #4FA463; }
.term pre { padding: 20px; font-size: 13px; line-height: 1.85; color: var(--text-mid); overflow-x: auto; }
.c-green { color: var(--green); } .c-red { color: var(--red); } .c-yellow { color: var(--yellow); }
.c-orange { color: var(--orange-soft); } .c-dim { color: var(--text-ghost); } .c-mut { color: var(--text-muted); }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  height: 68px; padding: 0 var(--pad-x);
  background: rgba(7, 8, 10, 0.86);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-header);
}
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand span { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-hi); }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); font-size: 14.5px; font-weight: 500; color: var(--text-muted); }
.site-nav a { padding: 24px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--text-hi); }
.site-nav a.active { color: var(--orange); border-bottom-color: var(--orange); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.gh-btn {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 13px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg-inset);
  font-size: 13.5px; font-weight: 600; color: var(--text-mid);
}
.gh-btn:hover { border-color: var(--line-hover); color: var(--text-hi); }
.gh-btn i { width: 15px; height: 15px; }
.gh-btn .gh-meta { padding-left: 9px; margin-left: 2px; border-left: 1px solid var(--line-strong); font-family: var(--mono); font-size: 12px; color: var(--text-ghost); }
.install-btn {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px;
  border-radius: 8px; background: var(--orange);
  font-size: 13.5px; font-weight: 650; color: var(--on-orange);
}
.install-btn:hover { background: var(--orange-hover); color: var(--on-orange); }
.install-btn i { width: 15px; height: 15px; }
.menu-btn {
  display: none; align-items: center; justify-content: center; width: 38px; height: 38px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg-inset);
  color: var(--text-mid); cursor: pointer;
}
.menu-btn i { width: 17px; height: 17px; }
.mobile-nav {
  position: sticky; top: 68px; z-index: 55; display: none;
  gap: 2px; padding: 10px var(--pad-x) 18px;
  background: rgba(7, 8, 10, 0.96);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-header);
  font-size: 15px; color: var(--text-mid);
}
.mobile-nav a { padding: 11px 0; border-bottom: 1px solid var(--line-hair); }
.mobile-nav a:last-child { border-bottom: 0; }
@media (max-width: 1039px) {
  .site-nav, .gh-btn { display: none; }
  .menu-btn { display: flex; }
  .mobile-nav.open { display: grid; }
}

/* ---- footer ---- */
.site-footer { padding: clamp(40px, 5vw, 60px) var(--pad-x) 0; border-top: 1px solid var(--line-header); background: #08090B; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(28px, 4vw, 56px); max-width: 1280px; margin: 0 auto; padding-bottom: 44px;
}
.footer-col-title { margin-bottom: 15px; font-size: 13px; font-weight: 650; color: var(--text-hi); }
.footer-links { display: grid; gap: 11px; font-size: 14px; color: var(--text-faint); }
.footer-social { display: flex; align-items: center; gap: 8px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border: 1px solid var(--line-card); border-radius: 8px; color: var(--text-dim);
}
.footer-social a:hover { border-color: var(--line-hover); color: var(--text-hi); }
.footer-social i { width: 16px; height: 16px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  max-width: 1280px; margin: 0 auto; padding: 20px 0 26px;
  border-top: 1px solid var(--line-hair); font-size: 13px; color: var(--text-void);
}

/* ---- reveal ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 620ms cubic-bezier(0.22, 0.7, 0.2, 1), transform 620ms cubic-bezier(0.22, 0.7, 0.2, 1); }
.reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
