:root{
  --bg:#0b0e12;
  --bg2:#07090c;
  --text:#e7edf7;
  --muted:#9aa7bb;
  --line:rgba(255,255,255,.12);
  --accent:rgba(210,225,255,.85);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 700px at 60% 20%, rgba(120,155,220,.18), transparent 55%),
              radial-gradient(1000px 600px at 30% 60%, rgba(60,90,140,.14), transparent 60%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  color:var(--text);
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
a:hover{opacity:.92}

.noise{
  pointer-events:none;
  position:fixed; inset:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.10'/%3E%3C/svg%3E");
  mix-blend-mode:overlay;
  opacity:.28;
}

nav{
  position:fixed;
  top:18px; left:18px; right:18px;
  display:flex; align-items:center; justify-content:space-between;
  z-index:30;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:14px;
  backdrop-filter: blur(10px);
  background: rgba(10,12,18,.55);
}

.brand{
  display:flex; gap:10px; align-items:center;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:12px;
}
.brand .dot{
  width:8px; height:8px; border-radius:99px;
  background: rgba(255,255,255,.75);
  box-shadow: 0 0 22px rgba(180,210,255,.55);
}

.navlinks{display:flex; gap:16px; align-items:center; font-size:12px; color:var(--muted)}
.navlinks a{padding:8px 10px; border-radius:10px}
.navlinks a:hover{background:rgba(255,255,255,.06); color:var(--text)}
.book{
  margin-left:6px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
  color:var(--text);
}

.canvasWrap{
  position:fixed; inset:0;
  z-index:1;
}
#webgl{
  width:100%; height:100%;
  display:block;
}

.heroOverlay{
  position:fixed;
  left:18px; right:18px;
  bottom:18px;
  z-index:25;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:14px;
  pointer-events:none;
}

.heroOverlay .left{
  max-width: 560px;
  padding:14px 14px;
  border:1px solid var(--line);
  border-radius:16px;
  backdrop-filter: blur(10px);
  background: rgba(10,12,18,.55);
  pointer-events:auto;
}

.kicker{
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
}
.h1{
  margin:8px 0 6px;
  font-size:28px;
  line-height:1.1;
}
.p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}

.hint{
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:16px;
  background: rgba(10,12,18,.55);
  backdrop-filter: blur(10px);
  color:var(--muted);
  font-size:12px;
  pointer-events:auto;
}

.scrollSpacer{
  height: 520vh;
}

.footer{
  position:fixed;
  left:18px; right:18px;
  top:78px;
  z-index:24;
  display:flex;
  justify-content:flex-end;
  pointer-events:none;
}
.badge{
  pointer-events:auto;
  display:none;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:14px;
  background: rgba(10,12,18,.55);
  backdrop-filter: blur(10px);
  color:var(--muted);
  font-size:12px;
}
.badge a{color:var(--text); text-decoration:underline}

@media (max-width: 780px){
  .h1{font-size:22px}
  .navlinks{gap:8px}
  .navlinks a{padding:8px 8px}
  .heroOverlay{flex-direction:column; align-items:stretch}
}
