:root {
  --bg: #ffffff;
  --fg: #0f172a;
  --muted: #64748b;
  --brand: #2f6bff;
  --brand-glow: #5b8bff;
  --gradient-brand: linear-gradient(135deg, var(--brand), var(--brand-glow));
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Inter, Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ---------- Background ---------- */
.bg {
  position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
}
.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(47,107,255,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,107,255,0.10) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  animation: pulseGrid 6s ease-in-out infinite;
}
.orb {
  position: absolute; border-radius: 9999px; filter: blur(50px);
  animation: floatOrb 18s ease-in-out infinite;
}
.orb-1 {
  left: -160px; top: 22%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(47,107,255,0.35), transparent 70%);
}
.orb-2 {
  right: -160px; bottom: 18%;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(91,139,255,0.30), transparent 70%);
  animation-delay: -6s;
}
#particles { position: absolute; inset: 0; }
.sparks { position: absolute; inset: 0; }
.spark {
  position: absolute; bottom: 0; width: 4px; height: 4px;
  border-radius: 9999px; background: var(--brand);
  box-shadow: 0 0 8px var(--brand-glow);
}
.shimmer {
  position: absolute; left: 0; top: 50%; width: 100%; height: 1px;
  overflow: hidden; opacity: .6;
}
.shimmer-bar {
  height: 100%; width: 33%;
  background: linear-gradient(90deg, transparent, rgba(91,139,255,0.85), transparent);
  animation: shimmer 8s linear infinite;
}

/* ---------- Page ---------- */
.page {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; min-height: 100vh;
}
.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px;
}
.tag, .version {
  font-size: 12px; letter-spacing: .3em; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.dot {
  width: 6px; height: 6px; border-radius: 9999px; background: var(--brand);
  box-shadow: 0 0 12px var(--brand-glow);
}

.hero {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 0 24px;
}
.logo {
  width: min(560px, 82vw);
  filter: drop-shadow(0 0 60px rgba(47,107,255,0.25));
}

.headline {
  margin-top: 32px; max-width: 720px;
  font-size: clamp(24px, 4vw, 40px); font-weight: 300; line-height: 1.15;
}
.grad {
  font-weight: 500;
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub {
  margin-top: 16px; max-width: 560px; color: var(--muted);
  font-size: clamp(14px, 1.6vw, 16px);
}
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--fg); }

.pills {
  margin-top: 56px; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 12px 32px; font-size: 12px; letter-spacing: .3em; color: var(--muted);
}
.bullet { width: 4px; height: 4px; border-radius: 9999px; background: var(--brand); }

.foot {
  text-align: center; padding: 24px; font-size: 12px; color: var(--muted);
}

/* ---------- Animations ---------- */
@keyframes floatOrb {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(40px,-60px) scale(1.1); }
  66%     { transform: translate(-30px,40px) scale(.95); }
}
@keyframes pulseGrid {
  0%,100% { opacity: .35; }
  50%     { opacity: .8; }
}
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}
@keyframes rise {
  0%   { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes drift {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-110vh) translateX(40px); opacity: 0; }
}

.rise { animation: rise .9s cubic-bezier(.2,.8,.2,1) both; }
