:root {
  --bg: #0b0f17;
  --bg-2: #111725;
  --text: #e7ebf3;
  --muted: #9aa4b8;
  --line: #1f2838;
  --accent: #5b8cff;
  --accent-2: #36d1c4;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

/* Header */
header { padding: 28px 0; }
header .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.mark { width: 28px; height: 28px; }
.nav-link { color: var(--muted); font-size: 0.95rem; }
.nav-link:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { position: relative; flex: 1; display: flex; align-items: center; padding: 72px 0 96px; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(91,140,255,0.22), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -30% -10%;
  width: 620px; height: 620px;
  background: radial-gradient(closest-side, rgba(54,209,196,0.12), transparent 70%);
  pointer-events: none;
}
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 40%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, black 10%, transparent 70%);
  opacity: 0.55;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(17,23,37,0.7);
  color: var(--muted);
  font-size: 0.85rem;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }

h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 14ch;
}
.grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lede { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.2rem); max-width: 54ch; margin: 0 0 34px; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600; font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #4a7cf2; }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(17,23,37,0.6); }
.btn-ghost:hover { border-color: #33405a; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 72px; }
.pillar {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17,23,37,0.65);
  backdrop-filter: blur(4px);
}
.pillar h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 600; }
.pillar p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.pillar .ico { width: 22px; height: 22px; color: var(--accent-2); margin-bottom: 12px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 0.88rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
.legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* Prose pages */
.prose { flex: 1; padding: 40px 0 80px; }
.prose .wrap { max-width: 760px; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.6rem); max-width: none; margin-top: 0; }
.prose h2 { font-size: 1.2rem; margin: 36px 0 8px; }
.prose p, .prose li { color: #c8cfdc; }
.prose ul { padding-left: 20px; }
.updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 28px; }
.placeholder { background: rgba(255,196,0,0.15); color: #ffd666; padding: 0 4px; border-radius: 4px; }

@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; margin-top: 48px; }
  .hero { padding: 40px 0 64px; }
  .wrap { padding: 0 16px; }
  footer .wrap { flex-direction: column; }
}
