:root { --g-bg-1: #1e1b4b; --g-bg-2: #0f172a; --text: #e5e7eb; --muted: #b4bac6; --accent: #6366f1; --accent-soft: #a5b4fc; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); }
a { color: var(--accent-soft); }
code { background: rgba(255,255,255,.1); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.page { max-width: 760px; margin: 0 auto; padding: 56px 16px 48px; }
.top { text-align: center; margin-bottom: 34px; }
.kicker { display: inline-block; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--g-border, rgba(255,255,255,.18)); background: var(--g-glass-soft, rgba(255,255,255,.05)); color: var(--accent-soft); font-size: .85rem; font-weight: 600; letter-spacing: .04em; }
h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); line-height: 1.1; margin: 16px 0 10px; color: #fff; letter-spacing: -.01em; }
.sub { margin: 0; color: var(--muted); font-size: 1.1rem; }
h2 { font-size: 1.3rem; margin: 40px 0 8px; color: #fff; }
h3 { margin: 0 0 4px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.note { margin: 0 0 12px; color: var(--muted); font-size: .92rem; }

.links { display: grid; gap: 12px; }
.link { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 20px; text-decoration: none; color: var(--text);
  border: 1px solid var(--g-border, rgba(255,255,255,.18)); background: var(--g-glass, rgba(255,255,255,.07));
  -webkit-backdrop-filter: blur(var(--g-blur, 18px)) saturate(var(--g-sat, 165%)); backdrop-filter: blur(var(--g-blur, 18px)) saturate(var(--g-sat, 165%));
  transition: transform var(--g-dur, .35s) var(--g-ease, ease), background-color var(--g-dur, .35s), border-color var(--g-dur, .35s); }
.link:hover, .link:focus-visible { background: var(--g-glass-hover, rgba(255,255,255,.12)); border-color: rgba(165,180,252,.55); }
.link:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }
.ico { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: rgba(99,102,241,.2); border: 1px solid rgba(165,180,252,.4); }
.ico svg { width: 24px; height: 24px; fill: none; stroke: var(--accent-soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.txt { flex: 1; min-width: 0; display: grid; }
.txt b { font-size: 1.12rem; color: #fff; }
.txt small { color: var(--muted); font-size: .92rem; }
.go { flex: none; font-size: 1.4rem; color: var(--accent-soft); transition: transform var(--g-dur, .35s) var(--g-ease, ease); }
.link:hover .go { transform: translateX(4px); }

.info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cardy { padding: 18px 20px; border-radius: 20px; border: 1px solid var(--g-border, rgba(255,255,255,.18)); background: var(--g-glass, rgba(255,255,255,.07));
  -webkit-backdrop-filter: blur(var(--g-blur, 18px)); backdrop-filter: blur(var(--g-blur, 18px)); }
.cardy p { margin: 0 0 2px; font-size: 1.25rem; font-weight: 700; color: #fff; }
.cardy small { color: var(--muted); }

.steps { margin: 8px 0 0; padding-left: 1.3em; display: grid; gap: 10px; }
.steps li::marker { color: var(--accent-soft); font-weight: 700; }
.steps b { color: #fff; }

.temp { margin: 28px auto 0; max-width: 520px; text-align: center; color: var(--muted); font-size: .9rem; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--g-border, rgba(255,255,255,.18)); background: var(--g-glass-soft, rgba(255,255,255,.05)); }
.foot { margin-top: 44px; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .95rem; }
.btn { font: inherit; font-weight: 600; font-size: .85rem; padding: 6px 14px; border-radius: 12px; cursor: pointer; color: var(--text);
  border: 1px solid var(--g-border, rgba(255,255,255,.18)); background: var(--g-glass-soft, rgba(255,255,255,.06)); }
.btn:hover { background: var(--g-glass-hover, rgba(255,255,255,.12)); }

@media (max-width: 560px) {
  .page { padding-top: 36px; }
  .info { grid-template-columns: 1fr; }
  .link { padding: 16px; gap: 14px; }
  .go { display: none; }
}

/* ---- Animations (this page only). The glass engine already reveals the cards and tilts them towards the pointer. ---- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: 200% 0; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(165,180,252,.35); } 70%, 100% { box-shadow: 0 0 0 12px rgba(165,180,252,0); } }
@keyframes blink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

.kicker, h1, .sub, .temp { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.kicker { animation-delay: .05s; }
h1 { animation-delay: .15s; }
.sub { animation-delay: .25s; }
.temp { animation-delay: .9s; }

.kicker::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; vertical-align: 1px; border-radius: 50%; background: var(--accent-soft); animation: blink 2s ease-in-out infinite; }

h1 { color: #fff; background: linear-gradient(100deg, #fff 0%, #fff 35%, #a5b4fc 50%, #fff 65%, #fff 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
h1 { animation: rise .7s cubic-bezier(.2,.7,.2,1) .15s both, shimmer 6s linear 1.2s infinite; }

.ico { animation: floaty 4.5s ease-in-out infinite, ring 3.2s ease-out infinite; }
.link:nth-child(2) .ico { animation-delay: .6s, .9s; }
.link:nth-child(3) .ico { animation-delay: 1.2s, 1.8s; }
.link:hover .go { animation: nudge .9s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .kicker, h1, .sub, .temp, .kicker::before, .ico, .link:hover .go { animation: none !important; }
  h1 { background: none; -webkit-text-fill-color: currentColor; color: #fff; }
}

/* ---------- motion: entrance (plays once) and ambient (loops, can be paused on this page) ---------- */
.page { position: relative; z-index: 1; }
.orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orbs i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; will-change: transform; }
.orbs i:nth-child(1) { width: 46vmax; height: 46vmax; left: -12vmax; top: -14vmax; background: radial-gradient(circle, rgba(99,102,241,.55), transparent 65%); animation: drift-a 26s ease-in-out infinite alternate; }
.orbs i:nth-child(2) { width: 40vmax; height: 40vmax; right: -14vmax; top: 18vh; background: radial-gradient(circle, rgba(56,189,248,.35), transparent 65%); animation: drift-b 32s ease-in-out infinite alternate; }
.orbs i:nth-child(3) { width: 36vmax; height: 36vmax; left: 20vw; bottom: -18vmax; background: radial-gradient(circle, rgba(192,132,252,.38), transparent 65%); animation: drift-c 29s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(14vmax, 10vmax) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-12vmax, -8vmax) scale(.9); } }
@keyframes drift-c { to { transform: translate(10vmax, -12vmax) scale(1.1); } }

@keyframes in-down { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes in-up   { from { opacity: 0; transform: translateY(22px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes in-pop  { 0% { opacity: 0; transform: scale(.3) rotate(-18deg); } 65% { opacity: 1; transform: scale(1.15) rotate(4deg); } 100% { opacity: 1; transform: none; } }
@keyframes in-fade { from { opacity: 0; } to { opacity: 1; } }
.kicker { animation: in-down .7s cubic-bezier(.2,.8,.2,1) .05s backwards; }
h1      { animation: in-up .9s cubic-bezier(.2,.8,.2,1) .15s backwards; }
.sub    { animation: in-up .9s cubic-bezier(.2,.8,.2,1) .3s backwards; }
.link .ico { animation: in-pop .7s cubic-bezier(.2,.9,.3,1.2) backwards; animation-delay: calc(.45s + var(--n, 0) * .12s); }
.link .txt, .link .go { animation: in-fade .8s ease backwards; animation-delay: calc(.6s + var(--n, 0) * .12s); }
.link:nth-child(1) { --n: 0; } .link:nth-child(2) { --n: 1; } .link:nth-child(3) { --n: 2; }
.temp, .foot { animation: in-fade 1s ease 1.1s backwards; }

/* ambient loops: each one is listed in .amb-off below so Pause can stop them together */
@keyframes shine { to { background-position: -150% 0; } }
@keyframes bob   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes ring  { 0% { box-shadow: 0 0 0 0 rgba(165,180,252,.45); } 70%, 100% { box-shadow: 0 0 0 14px rgba(165,180,252,0); } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@keyframes sweep { 0%, 70% { transform: translateX(-130%) skewX(-20deg); } 100% { transform: translateX(260%) skewX(-20deg); } }
.link { position: relative; overflow: hidden; }
.link::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 38%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.14), transparent); transform: translateX(-130%) skewX(-20deg);
  animation: sweep 7s ease-in-out infinite; animation-delay: calc(var(--n, 0) * 1.6s + 2s); }
.link .ico { animation: in-pop .7s cubic-bezier(.2,.9,.3,1.2) backwards, bob 4.5s ease-in-out infinite, ring 3.6s ease-out infinite;
  animation-delay: calc(.45s + var(--n, 0) * .12s), calc(1.3s + var(--n, 0) * .4s), calc(1.3s + var(--n, 0) * 1.1s); }
.link .go { animation: in-fade .8s ease backwards, nudge 2.6s ease-in-out infinite; animation-delay: calc(.6s + var(--n, 0) * .12s), calc(1.4s + var(--n, 0) * .3s); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  h1 { background: linear-gradient(100deg, #fff 0%, #fff 38%, #a5b4fc 50%, #fff 62%, #fff 100%); background-size: 250% 100%;
       -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
       animation: in-up .9s cubic-bezier(.2,.8,.2,1) .15s backwards, shine 7s linear 1.2s infinite; }
}

/* Pause (this page only): stops every loop above and the background. The entrance animation is not affected. */
html.pm-paused .orbs i, html.pm-paused .link::after, html.pm-paused h1, html.pm-paused .kicker::before { animation: none !important; }
html.pm-paused .link .ico { animation: none !important; }
html.pm-paused .link .go { animation: none !important; }
html.pm-paused #glass-bg { display: none; }
@media (max-width: 560px) { .orbs i { filter: blur(50px); } }
