:root {
  --bg: #050912;
  --fg: #e6edf7;
  --muted: #8b9bb4;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --rose: #fb7185;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--fg); background: var(--bg);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Inter, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--cyan); }

/* Animated backdrop: drifting glow orbs + fading grid */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; background:
  radial-gradient(1200px 600px at 50% -10%, rgba(59,130,246,.18), transparent 60%), var(--bg); }
.backdrop::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: drift 22s ease-in-out infinite alternate; }
.orb.a { width: 420px; height: 420px; background: #2563eb; top: -80px; left: -100px; }
.orb.b { width: 360px; height: 360px; background: #0891b2; top: 30%; right: -120px; animation-delay: -8s; }
.orb.c { width: 300px; height: 300px; background: #4338ca; bottom: -80px; left: 30%; animation-delay: -14s; opacity: .35; }
@keyframes drift { to { transform: translate3d(60px, 40px, 0) scale(1.12); } }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Glass surfaces */
.glass {
  background: var(--glass); border: 1px solid var(--line); border-radius: 18px;
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 20px 50px rgba(0,0,0,.35);
}

/* Nav */
.nav { position: sticky; top: 12px; z-index: 20; margin-top: 14px; }
.nav .glass { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 10px 16px; border-radius: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .01em; color: var(--fg); text-decoration: none; }
.brand svg { width: 26px; height: 26px; }
.by { font-size: 13px; color: var(--muted); font-weight: 400; }
.by a { color: var(--fg); text-decoration: none; }
.by a:hover { color: var(--cyan); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border: 0; border-radius: 12px; cursor: pointer;
  font: inherit; font-weight: 600; color: #04121f; text-decoration: none;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 8px 30px rgba(34,211,238,.28);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset, 0 12px 40px rgba(34,211,238,.4); }
.btn.ghost { background: var(--glass); color: var(--fg); box-shadow: 0 0 0 1px var(--line) inset; }
.btn.small { padding: 8px 16px; font-size: 15px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.eyebrow { font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.muted { color: var(--muted); }

/* Footer */
footer { margin-top: 90px; padding: 36px 0 56px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer a { color: var(--fg); text-decoration: none; }
footer a:hover { color: var(--cyan); }
.maker { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.maker img { height: 34px; width: auto; filter: drop-shadow(0 0 10px rgba(239,68,68,.35)); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
