/* Extracted custom homepage styles from index.html */
:root {
  --bg: #0b0f17;
  --bg-2: #0e121b;
  --panel: rgba(255,255,255,0.06);
  --panel-2: rgba(255,255,255,0.08);
  --text: #e6e9f0;
  --muted: #9aa3b2;
  --brand: #60a5fa;
  --brand-2: #22d3ee;
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --border: rgba(255,255,255,0.12);
  --glow: 0 0 40px rgba(34, 211, 238, 0.15), 0 0 80px rgba(96,165,250,0.12);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,0.45);
  --code: #cbd5e1;
  --mono: "Fira Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  font: 16px/1.65 "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  overflow-x: hidden;
}
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.bg, .bg2 { position: fixed; inset: -12vmax; filter: blur(0.2px); z-index: -3; animation: pan 60s linear infinite; }
.bg2 { opacity: .6; filter: blur(1.2px) saturate(120%); animation-duration: 120s; z-index: -4; }
@keyframes pan { 0%{transform:translate3d(0,0,0) scale(1.05);} 50%{transform:translate3d(0,-2%,0) scale(1.07);} 100%{transform:translate3d(0,0,0) scale(1.05);} }
.scanline { position: fixed; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%); background-size: 100% 200%; mix-blend-mode: overlay; opacity: 0.25; z-index: -2; animation: scan 18s linear infinite; }
@keyframes scan { 0%{background-position: 0 -200%;} 100%{background-position: 0 200%;} }

@media (prefers-reduced-motion: reduce) { .bg, .bg2, .scanline { animation: none; } html { scroll-behavior: auto; } }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.glass { background: var(--panel); border: 1px solid var(--border); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: var(--radius); box-shadow: var(--shadow); }

.top { position: sticky; top: 0; z-index: 20; background: linear-gradient(to bottom, rgba(11,15,23,0.85), rgba(11,15,23,0)); border-bottom: 1px solid rgba(255,255,255,0.04); backdrop-filter: blur(10px); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #0b0f17; background: linear-gradient(135deg, var(--brand-2), var(--brand)); box-shadow: var(--glow); }
.brand-title { font-weight: 800; letter-spacing: 0.2px; color: #e8eefc; }
.brand-sub { font-size: 12px; color: var(--muted); margin-top: -4px; }
.group { display:flex; gap:12px; align-items:center; }
.nav a.btn { display:inline-block; padding:10px 14px; border-radius:12px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color:#0b0f17; font-weight:700; border:1px solid rgba(255,255,255,0.06); box-shadow: var(--glow); }
.nav a.ghost { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,0.14); }

.skip { position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden; }
.skip:focus { position:fixed; left:20px; top:20px; width:auto; height:auto; z-index:9999; padding:8px 12px; background:#111827; color:#fff; border-radius:8px; }

.hero { padding: 84px 0 44px; display:grid; place-items:center; text-align:center; }
.eyebrow { display:inline-block; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }
.title { margin: 16px 0 10px; font-size: clamp(32px, 5vw, 56px); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; background: linear-gradient(90deg, #e5f2ff, #b9e8ff 30%, #b7fff8 70%, #e5f2ff); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 30px rgba(96,165,250,0.25); }
.lede { color: #cbd5e1; max-width: 820px; margin: 0 auto 28px; font-size: clamp(16px, 1.6vw, 20px); }
.cta { display:flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.cta a { padding: 12px 18px; border-radius: 14px; font-weight: 700; border: 1px solid rgba(255,255,255,0.12); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; will-change: transform; }
.cta .primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color:#0b0f17; box-shadow: var(--glow); }
.cta .primary:hover { transform: translateY(-2px); }
.cta .ghost { background: rgba(255,255,255,0.03); color: var(--text); }
.cta .ghost:hover { background: rgba(255,255,255,0.06); transform: translateY(-2px); }

.chips { display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-top:22px; }
.chip { padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 13px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); color: #dbeafe; }

.wrap-main { max-width:1160px; margin: 0 auto; padding: 0 20px; }
.grid { display:grid; grid-template-columns: 1.2fr .8fr; gap: 22px; margin: 46px auto 86px; }
@media (max-width: 960px) { .grid { grid-template-columns: 1fr; } }
.panel { padding: 22px; }
.panel h2 { margin: 0 0 10px; font-size: 22px; color:#e6eefc; }
.panel p { color: #c7cfdb; margin: 10px 0 0; }

.cards { display:grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 16px; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr; } }
.card { padding: 18px; border-radius: 14px; border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.04)); transform-style: preserve-3d; transition: transform .2s ease; }
.card h3 { margin: 2px 0 8px; color:#e6eefc; }
.card p { margin: 0; color:#b8c2d1; }
.card:hover { transform: translateY(-2px) rotateX(.6deg) rotateY(.6deg); }

.diagram { margin-top: 18px; }
.diagram svg { width: 100%; height: auto; display:block; }
.pulse { opacity:.6; }
.pulse.is-on { opacity:1; filter: drop-shadow(0 0 12px rgba(96,165,250,.35)); }

footer { border-top: 1px solid rgba(255,255,255,0.08); padding: 28px 0; color: var(--muted); text-align: center; background: linear-gradie
nt(180deg, rgba(255,255,255,0), rgba(255,255,255,0.02)); }

.reveal { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Utilities used to replace inline styles */
.toc-col { display:flex; flex-direction:column; gap:10px; margin-top:8px; }
.dot { width:8px; height:8px; border-radius:50%; background:var(--brand-2); box-shadow:0 0 10px rgba(34,211,238,.6); display:inline-block; }
.card-compact { margin-top:14px; padding:14px; border:1px solid var(--border); border-radius:12px; background:rgba(255,255,255,0.04); }
.small-strong { margin:0 0 6px; color:#e6eefc; }
.small-muted { margin:0; color:#c7cfdb; }
.footer-panel { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 18px; }
.btn-compact { padding:8px 12px; border-radius:10px; }
