html { scroll-behavior: smooth; }
body { overflow-x: hidden; line-height: 1.6; }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 26px; padding-top: calc(18px + env(safe-area-inset-top));
}
.logo { text-decoration: none; letter-spacing: .2em; font-size: 15px; color: var(--ink-dim); }
.logo:hover { color: var(--ink); }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 14px 30px; border-radius: 999px; color: #15122b;
  background: linear-gradient(135deg, #c9bbff, #9db4ff);
  box-shadow: 0 10px 40px rgba(140, 120, 255, .35);
  transition: transform .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 14px 50px rgba(140, 120, 255, .5); }
.btn.small { padding: 9px 20px; font-size: 14px; color: var(--ink); background: var(--glass); border: 1px solid var(--glass-line); box-shadow: none; backdrop-filter: blur(10px); }
.btn.small:hover { background: rgba(255, 255, 255, .14); box-shadow: none; }

/* hero: the blob field drifts behind the copy, edge to edge. Decoration only, not interactive. */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; max-width: none; margin: 0; display: grid; place-items: center; overflow: hidden; }
#heroField { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.hero-copy { position: relative; z-index: 2; text-align: center; max-width: 720px; padding: 0 24px; }
.hero-copy::before {      /* soft scrim so the headline stays readable over blobs */
  content: ''; position: absolute; inset: -60px -40px; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(9, 13, 28, .72), rgba(9, 13, 28, 0));
}
h1 { font-size: clamp(34px, 6vw, 64px); line-height: 1.1; font-weight: 700; margin: 0 0 20px; letter-spacing: -.02em; text-wrap: balance; }
.hero-copy p { color: var(--ink-dim); font-size: clamp(16px, 2vw, 19px); margin: 0 auto 30px; max-width: 560px; text-wrap: balance; }

main { position: relative; }
section { padding: 90px 24px; max-width: 1040px; margin: 0 auto; }
h2 { text-align: center; font-size: clamp(26px, 4vw, 38px); margin: 0 0 40px; font-weight: 600; letter-spacing: -.01em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
article {
  padding: 30px 26px; border-radius: 28px; background: var(--glass); border: 1px solid var(--glass-line);
}   /* no backdrop-filter: it only sits over the smooth sky gradient (blur changes nothing) but is recomputed every frame while #sky drifts */
article h3 { margin: 18px 0 8px; font-size: 20px; font-weight: 600; }
article p { margin: 0; color: var(--ink-dim); }
.dot { border-radius: 50%; animation: bob 7s ease-in-out infinite; }
.dot.s { width: 28px; height: 28px; background: radial-gradient(circle at 35% 30%, #aab6dd, #5d6a9c); opacity: .75; }
.dot.m { width: 44px; height: 44px; background: radial-gradient(circle at 35% 30%, #cfc6ff, #7f78d8); animation-delay: -2s; }
.dot.l { width: 64px; height: 64px; background: radial-gradient(circle at 35% 30%, #efdcff, #a35be0); box-shadow: 0 0 50px rgba(170, 100, 235, .55); animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

.private { text-align: center; }
.private p { color: var(--ink-dim); max-width: 560px; margin: 0 auto 32px; font-size: 18px; }

footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 30px 26px calc(40px + env(safe-area-inset-bottom)); color: var(--ink-dim); font-size: 14px;
  border-top: 1px solid var(--glass-line); max-width: 1040px; margin: 0 auto;
}

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