/* StartupStage — static site styles */
:root {
  --purple: #8f5af3;
  --purple-dark: #4511a6;
  --purple-light: #c084fc;
  --pink: #ffa8c5;
  --bg: #0a0a0a;
  --bg-2: #121016;
  --bg-3: #17141d;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f2f0f5;
  --muted: #a8a2b4;
  --muted-2: #7d7689;
  --max: 1120px;
  --radius: 14px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-light); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand {
  font-weight: 700; letter-spacing: -0.02em; font-size: 19px;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.brand span { color: var(--purple); }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

.btn {
  display: inline-block; padding: 11px 20px; border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #fff !important; font-weight: 600; font-size: 15px;
  text-decoration: none !important; border: 0; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(143, 90, 243, 0.36); }
.btn-ghost {
  background: transparent; border: 1px solid var(--line-2);
  color: var(--text) !important; box-shadow: none;
}
.btn-ghost:hover { border-color: var(--purple); box-shadow: none; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.025em; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(34px, 5.2vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: clamp(19px, 2.1vw, 23px); }
p { margin: 0 0 1.1em; }
.lede { font-size: clamp(18px, 2.1vw, 21px); color: var(--muted); }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px;
  font-weight: 700; color: var(--purple-light); margin-bottom: 14px;
}
.muted { color: var(--muted); }

/* ---------- sections ---------- */
section { padding: 76px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
.hero { padding: 96px 0 84px; background:
  radial-gradient(900px 420px at 15% -10%, rgba(143, 90, 243, 0.20), transparent 60%),
  radial-gradient(700px 380px at 90% 0%, rgba(255, 168, 197, 0.10), transparent 60%); }
.hero h1 { max-width: 20ch; }
.hero .lede { max-width: 60ch; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.fineprint { font-size: 14px; color: var(--muted-2); margin-top: 18px; }

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

.card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card-bad { border-color: rgba(255, 120, 120, 0.28); }
.card-good { border-color: rgba(143, 90, 243, 0.45); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { padding-left: 30px; position: relative; color: var(--muted); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--purple-light); font-weight: 700;
}
.checklist strong { color: var(--text); display: block; }

blockquote.pull {
  margin: 0; padding: 28px 30px; background: var(--bg-2);
  border-left: 3px solid var(--purple); border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted); font-size: 17px;
}

/* ---------- blog ---------- */
.post-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.post-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.post-card:hover { border-color: var(--purple); transform: translateY(-2px); }
.post-card img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--bg-3); }
.post-card .body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { font-size: 18px; margin: 0; }
.post-card h3 a { color: var(--text); text-decoration: none; }
.post-card p { font-size: 14.5px; color: var(--muted); margin: 0; }
.post-meta { font-size: 12.5px; color: var(--muted-2); margin-top: auto; padding-top: 10px; }
.tag {
  display: inline-block; font-size: 11.5px; text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 700; color: var(--purple-light);
}

.filters { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 34px; align-items: center; }
.filters input, .filters select {
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text);
  padding: 11px 14px; border-radius: 10px; font-size: 15px; font-family: inherit;
}
.filters input { flex: 1; min-width: 220px; }
.filters input::placeholder { color: var(--muted-2); }
#count { color: var(--muted-2); font-size: 14px; }

/* ---------- article ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 56px 0 84px; }
.article-head { max-width: 760px; margin: 0 auto; padding: 48px 0 0; }
.article-head h1 { font-size: clamp(30px, 4.4vw, 45px); }
.article-hero { border-radius: var(--radius); overflow: hidden; margin: 28px 0 8px; border: 1px solid var(--line); }
.byline { color: var(--muted-2); font-size: 14.5px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.byline .dot { opacity: 0.5; }

.rich { font-size: 17.5px; }
.rich h2 { margin-top: 1.9em; font-size: clamp(24px, 3vw, 31px); }
.rich h3 { margin-top: 1.6em; font-size: clamp(19px, 2.2vw, 23px); }
.rich h4 { margin-top: 1.4em; font-size: 18px; }
.rich p { margin: 0 0 1.25em; }
.rich ul, .rich ol { margin: 0 0 1.3em; padding-left: 1.35em; }
.rich li { margin-bottom: 0.5em; }
.rich a { color: var(--purple-light); text-decoration: underline; text-underline-offset: 2px; }
.rich strong { color: #fff; }
.rich img { border-radius: 10px; margin: 1.6em 0; border: 1px solid var(--line); }
.rich figure { margin: 1.8em 0; }
.rich figcaption { font-size: 14px; color: var(--muted-2); text-align: center; margin-top: 8px; }
.rich blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--purple); color: var(--muted); font-style: italic;
}
.rich table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15px; display: block; overflow-x: auto; }
.rich th, .rich td { border: 1px solid var(--line-2); padding: 10px 13px; text-align: left; vertical-align: top; }
.rich th { background: var(--bg-3); color: #fff; font-weight: 600; }
.rich code {
  background: var(--bg-3); padding: 2px 6px; border-radius: 5px;
  font-size: 0.9em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.rich pre { background: var(--bg-3); padding: 18px; border-radius: 10px; overflow-x: auto; border: 1px solid var(--line); }
.rich hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }

.article-cta {
  margin-top: 56px; padding: 32px; background: var(--bg-2);
  border: 1px solid rgba(143, 90, 243, 0.4); border-radius: var(--radius); text-align: center;
}
.article-cta h3 { margin-top: 0; }

.related { max-width: 760px; margin: 0 auto 80px; }
.related h2 { font-size: 22px; }
.related ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.related a { color: var(--text); }

/* ---------- faq ---------- */
details.qa {
  border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
  background: var(--bg-2); margin-bottom: 12px;
}
details.qa summary {
  cursor: pointer; font-weight: 600; color: var(--text); list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; color: var(--purple-light); font-size: 22px; line-height: 1; }
details.qa[open] summary::after { content: "–"; }
details.qa .a { padding-top: 14px; color: var(--muted); }

/* ---------- legal ---------- */
.legal { max-width: 800px; margin: 0 auto; padding: 56px 0 90px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); }
.legal-body { white-space: pre-wrap; color: var(--muted); font-size: 15.5px; line-height: 1.75; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 52px 0 40px; color: var(--muted-2); font-size: 14.5px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 36px; }
.footer-grid h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-grid a { color: var(--muted-2); text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- 404 ---------- */
.center-page { text-align: center; padding: 110px 0; }

@media (max-width: 720px) {
  .nav { height: auto; padding: 12px 0; flex-wrap: wrap; gap: 12px; }
  .nav-links { gap: 16px; margin-left: 0; width: 100%; }
  section { padding: 56px 0; }
  .hero { padding: 64px 0 56px; }
}
