/* Motion layer (motion.js). Hidden-until-revealed only applies when motion-boot.js
   has added .motion to <html>, so no-JS / reduced-motion visitors see everything. */
html.motion .rv{opacity:0;transform:translateY(28px);transition:opacity .9s cubic-bezier(.2,.7,.2,1),transform .9s cubic-bezier(.2,.7,.2,1);}
html.motion .rv[data-rd="1"]{transition-delay:0.08s}
html.motion .rv[data-rd="2"]{transition-delay:0.16s}
html.motion .rv[data-rd="3"]{transition-delay:0.24s}
html.motion .rv[data-rd="4"]{transition-delay:0.32s}
html.motion .rv[data-rd="5"]{transition-delay:0.40s}
html.motion .rv[data-rd="6"]{transition-delay:0.48s}
html.motion .rv[data-rd="7"]{transition-delay:0.56s}
html.motion .rv[data-rd="8"]{transition-delay:0.64s}

html.motion .rv.in{opacity:1;transform:none}
html.motion .rv-zoom{transform:scale(.94)}
html.motion .rv-zoom.in{transform:none}
/* blockchain cursor canvas */
#chainfx{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;z-index:40}
dialog[open]~#chainfx{display:none}
/* scroll progress */
#sprog{position:fixed;left:0;top:0;height:3px;width:100%;transform-origin:0 50%;transform:scaleX(0);z-index:60;background:linear-gradient(90deg,#4196E7,#7170D6,#CD379D);pointer-events:none}
/* hero hub: the logo lights up once the circuit traces have drawn in */
.hub-logo,.hub-word{opacity:0;transform-box:fill-box;transform-origin:center}
.hub-logo{animation:hubin 1.1s cubic-bezier(.2,.7,.2,1) 1.9s forwards,hubfloat 5s ease-in-out 3.2s infinite}
.hub-word{animation:hubin .9s cubic-bezier(.2,.7,.2,1) 2.4s forwards}
.hub-glow{transform-box:fill-box;transform-origin:center;animation:hubglow 3.4s ease-in-out infinite}
.ring-rev{animation:spin 18s linear infinite reverse}
@keyframes hubin{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:none}}
@keyframes hubfloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@keyframes hubglow{0%,100%{opacity:.55;transform:scale(.94)}50%{opacity:1;transform:scale(1.06)}}
@media (prefers-reduced-motion:reduce){.hub-logo,.hub-word{opacity:1!important}}
/* background-mode switch in the header */
.tone-switch{display:inline-flex;gap:2px;padding:3px;border-radius:999px;border:1px solid #2E2E42;background:rgba(15,15,22,.8)}
.tone-switch button{width:34px;height:34px;border:0;border-radius:999px;background:transparent;color:#A9A9BC;cursor:pointer;display:grid;place-items:center}
.tone-switch button svg{width:18px;height:18px}
.tone-switch button:hover{color:#fff}
.tone-switch button.on{background:linear-gradient(135deg,#4196E7,#7170D6,#CD379D);color:#fff}
.tone-switch button:focus-visible{outline:2px solid #7FB8F0;outline-offset:2px}
/* sections change colour smoothly when the mode is switched */
.tone{transition:background-color .35s,color .35s}
/* header button → media & advertising plans (visible at every width) */
.hdr-media{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 16px;border-radius:999px;border:1.5px solid #7170D6;color:#F2F2F7!important;text-decoration:none;font-weight:700;font-size:13.5px;white-space:nowrap;background:rgba(113,112,214,.12);transition:background .25s,border-color .25s}
.hdr-media:hover{background:rgba(113,112,214,.28);border-color:#A7A6F0}
.hdr-media-dot{width:7px;height:7px;border-radius:50%;background:#E04287;animation:blink 1.6s ease-in-out infinite}
@media(max-width:560px){.hdr-media{padding:0 12px;font-size:12.5px;min-height:36px}.tone-switch button{width:30px;height:30px}}
.hero-media{display:inline-flex;align-items:center;gap:10px;min-height:52px;padding:16px 28px;box-sizing:border-box;border-radius:999px;border:1.5px solid #7170D6;background:rgba(113,112,214,.14);color:#F2F2F7!important;text-decoration:none;font-weight:700;font-size:16px;transition:background .25s}
.hero-media:hover{background:rgba(113,112,214,.3)}
.hdr-my{display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border-radius:999px;color:#C9C9D6!important;text-decoration:none;font-weight:700;font-size:13.5px;white-space:nowrap}
.hdr-my:hover{color:#fff!important;background:rgba(255,255,255,.06)}
@media(max-width:560px){.hdr-my{padding:0 8px;font-size:12.5px}}
