/* skillscript — dark, minimal, developer-facing. Single accent, generous whitespace. */

:root {
  --bg:        #000000;
  --surface:   #0c0e0f;
  --surface-2: #131617;
  --border:    #1f2628;
  --text:      #e9ecec;
  --muted:     #93a1a3;
  --accent:    #147E86;
  --accent-bright: #1aa6b0;
  --accent-ink:#ffffff;
  --radius:    12px;
  --container: 1080px;
  --narrow:    720px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: var(--narrow); }

/* ---- Header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 12, 14, 0.72);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo:hover { text-decoration: none; }
.logo-accent { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--muted); font-size: 0.95rem; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  transition: transform .08s ease, opacity .15s ease;
}
.btn:hover { opacity: 0.9; text-decoration: none; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--muted); opacity: 1; }
.btn-sm { padding: 7px 14px; font-size: 0.9rem; }

/* ---- Hero ---- */
.hero { padding: 112px 0 88px; }
.hero-tag {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 750;
  margin: 0 0 24px;
  max-width: 16ch;
}
.hero-title .accent { color: var(--accent); }
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 36px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---- Sections ---- */
.section-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 40px;
}
.features { padding: 72px 0; border-top: 1px solid var(--border); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color .15s ease, transform .1s ease;
}
.feature-card:hover { border-color: #343a42; transform: translateY(-2px); }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-bottom: 10px;
  border-radius: 6px;
  background: rgba(26, 166, 176, 0.10);
  border: 1px solid rgba(26, 166, 176, 0.22);
  color: var(--accent-bright);
}
.feature-icon svg { width: 12px; height: 12px; display: block; }
.feature-card:hover .feature-icon { background: rgba(26, 166, 176, 0.16); }
.feature-card h3 { margin: 0 0 10px; font-size: 1.1rem; letter-spacing: -0.01em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---- Prose ---- */
.prose { padding: 72px 0; border-top: 1px solid var(--border); }
.prose p { color: var(--muted); margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }

/* ---- Footer ---- */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer .sep { margin: 0 10px; opacity: 0.5; }
.footer-meta { margin-top: 10px; font-family: var(--mono); font-size: 0.8rem; opacity: 0.6; }

/* ---- Logo image ---- */
.logo-img { height: 48px; width: auto; display: block; }

/* Offset anchored sections so they clear the sticky header */
section[id] { scroll-margin-top: 104px; }

/* ---- Quick start / code ---- */
.quickstart { padding: 72px 0; border-top: 1px solid var(--border); }
.quickstart-intro { color: var(--muted); margin: 0 0 24px; max-width: 60ch; }
pre.code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  overflow-x: auto;
  margin: 0 -30px; /* break out ~60px wider than the narrow container so code scrolls less */
}
@media (max-width: 820px) {
  pre.code { margin: 0; } /* drop the breakout before it would overflow the viewport */
}
pre.code code {
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text);
  white-space: pre;
}

/* ---- Examples page ---- */
.examples { padding: 72px 0; }
.examples-intro { color: var(--muted); margin: 0 0 8px; max-width: 64ch; }
.example-tier {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 56px 0 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.example-item { margin: 36px 0 0; }
.example-title {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--accent-bright);
  margin: 0 0 8px;
}
.example-desc { color: var(--muted); margin: 0 0 16px; max-width: 64ch; }
.example-codelabel {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 18px 0 8px;
  font-family: var(--mono);
}
.examples-back { margin-top: 56px; }

/* ---- FAQ ---- */
.faq { padding: 72px 0; border-top: 1px solid var(--border); }
.faq-list { display: grid; gap: 22px; }
.faq-q { margin: 0 0 8px; font-size: 1.05rem; letter-spacing: -0.01em; }
.faq-a { margin: 0; color: var(--muted); }

@media (max-width: 700px) {
  .nav a:not(.btn) { display: none; }
}

@media (max-width: 600px) {
  .hero { padding: 72px 0 56px; }
  .nav { gap: 14px; }
}
