@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root{
  --bg: #0b1220;
  --bg-2: #121a2b;
  --ink: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #f97316;
  --card: #0f172a;
  --card-soft: rgba(15,23,42,0.9);
  --ring: rgba(56,189,248,0.2);
  --shadow: 0 24px 60px rgba(2,6,23,0.6);
  --radius: 18px;
  --max-width: 1120px;
}

*{box-sizing:border-box}
html, body{height:100%;margin:0}
body{
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, rgba(56,189,248,0.18) 0%, transparent 45%),
              radial-gradient(circle at 80% 20%, rgba(15,23,42,0.9) 0%, transparent 55%),
              linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  min-height:100vh;
  padding:32px 16px 24px;
}

body::before{
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(transparent 0, transparent 23px, rgba(148,163,184,0.08) 24px),
                    linear-gradient(90deg, transparent 0, transparent 23px, rgba(148,163,184,0.08) 24px);
  background-size: 24px 24px;
  opacity: 0.25;
  pointer-events: none;
  z-index: -1;
}

h1, h2, h3, h4{
  font-family: "Playfair Display", serif;
  letter-spacing: -0.02em;
  margin: 0 0 12px 0;
}

p{margin:0 0 12px 0; line-height:1.6}

.container{width:100%;max-width:var(--max-width);margin:0 auto;position:relative}
.main-content{width:100%;display:block}

.site-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:28px;
}

.site-brand{display:flex;align-items:center;gap:12px}
.site-brand-link{text-decoration:none;color:inherit;display:flex;align-items:center;gap:12px}
.logo-mark{
  width:52px;
  height:52px;
  border-radius:16px;
  background: linear-gradient(135deg, var(--accent), #38bdf8);
  color:#04131f;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-family: "Playfair Display", serif;
  box-shadow: 0 10px 20px rgba(56,189,248,0.25);
}
.brand-text{display:flex;flex-direction:column}
.brand-text .name{font-size:1.15rem;font-weight:600}
.brand-text .role{font-size:0.95rem;color:var(--muted)}

.site-nav{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.nav-link{
  text-decoration:none;
  color:var(--muted);
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,0.12);
  background:rgba(15,23,42,0.6);
  transition:all 0.2s ease;
}
.nav-link:hover{color:var(--ink);border-color:var(--accent);box-shadow:0 6px 18px rgba(56,189,248,0.18)}

.hero{
  gap:24px;
  align-items:stretch;
  margin-bottom:28px;
}

.hero-copy h1{font-size:clamp(2.4rem, 3.6vw, 3.3rem)}
.lead{color:var(--muted);font-size:1.05rem}
.eyebrow{
  text-transform:uppercase;
  letter-spacing:0.2em;
  font-size:0.72rem;
  color:var(--accent);
  margin-bottom:12px;
}

.cta-group{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:10px 18px;
  border-radius:999px;
  border:1px solid transparent;
  text-decoration:none;
  font-weight:600;
  cursor:pointer;
  transition:transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary{background:linear-gradient(90deg, var(--accent), #22d3ee);color:#04131f;box-shadow:0 10px 20px rgba(56,189,248,0.25)}
.btn-primary:hover{transform:translateY(-2px)}
.btn-ghost{border-color:rgba(148,163,184,0.2);color:var(--ink);background:rgba(15,23,42,0.6)}
.btn-ghost:hover{transform:translateY(-2px)}

.hero-card{
  background:var(--card);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:var(--shadow);
  border:1px solid rgba(148,163,184,0.12);
}
.hero-row{display:flex;flex-direction:column;gap:4px;padding:12px 0;border-bottom:1px solid rgba(15,23,42,0.06)}
.hero-row:last-child{border-bottom:none}
.hero-row .label{font-size:0.75rem;text-transform:uppercase;letter-spacing:0.2em;color:var(--muted)}
.hero-row .value{font-size:1rem}

.section-grid{display:grid;grid-template-columns:repeat(2, minmax(0,1fr));gap:20px;margin-bottom:28px}
.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}

.card{
  background:var(--card);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:var(--shadow);
  border:1px solid rgba(148,163,184,0.12);
}
.card-spaced{margin-bottom:18px}

.richtext h2{margin-top:0}
.richtext ul{padding-left:18px}
.richtext li{margin-bottom:8px}

.note-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}
.note-list li{padding-bottom:14px;border-bottom:1px solid rgba(148,163,184,0.12)}
.note-list li:last-child{border-bottom:none}
.note-list a{font-weight:600;text-decoration:none;color:var(--ink)}
.note-list a:hover{color:var(--accent)}
.note-meta{display:block;font-size:0.85rem;color:var(--muted);margin-top:4px}
.note-summary{color:var(--muted);margin-top:6px}
.muted{color:var(--muted)}
.cta-inline{margin-top:16px}

.cta-banner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:22px 24px;
  border-radius:var(--radius);
  background:linear-gradient(120deg, rgba(56,189,248,0.16), rgba(249,115,22,0.12));
  border:1px solid rgba(148,163,184,0.12);
}

.text-link{
  color:var(--accent);
  text-decoration:none;
  font-weight:600;
}
.text-link:hover{text-decoration:underline}

.note-body{line-height:1.7;color:var(--ink)}
.note-body pre{
  background:#0b1220;
  color:#f8fafc;
  padding:14px;
  border-radius:12px;
  overflow-x:auto;
  line-height:1.6;
  border:1px solid rgba(148,163,184,0.18);
}
.note-body pre code{
  display:block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size:0.95rem;
}
.note-body :not(pre) > code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  background:rgba(148,163,184,0.18);
  border:1px solid rgba(148,163,184,0.2);
  padding:2px 6px;
  border-radius:6px;
}
.note-body .codehilite{margin:12px 0;border-radius:12px}
.note-body .codehilite pre{margin:0;border-radius:12px;background:transparent}
.note-body h2{margin-top:24px}

.bulleted{padding-left:18px}
.bulleted li{margin-bottom:10px}

.site-footer{display:block;max-width:var(--max-width);margin:18px auto 36px auto;padding:0 20px;color:var(--muted);text-align:center}

a{
  color:#7dd3fc;
  text-decoration:underline;
  text-underline-offset:3px;
}

a:hover{
  color:#bae6fd;
}

a:visited{
  color:#a5b4fc;
}

.reveal{
  opacity:0;
  transform:translateY(12px);
  animation:fadeUp 0.8s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeUp{
  to{opacity:1;transform:translateY(0)}
}

@media (prefers-reduced-motion: reduce){
  .reveal{animation:none;opacity:1;transform:none}
}

@media (max-width:960px){
  .hero{grid-template-columns:1fr}
  .section-grid{grid-template-columns:1fr}
  .site-header{flex-direction:column;align-items:flex-start}
}

@media (max-width:640px){
  body{padding:24px 12px 20px}
  .cta-banner{flex-direction:column;align-items:flex-start}
  .brand-text .role{font-size:0.85rem}
  .logo-mark{width:46px;height:46px}
}
