:root { --grad: linear-gradient(100deg, #A613D8 0%, #D63A8E 50%, #F25C4A 100%); }

/* overflow-x: clip (not hidden) — clip prevents horizontal scroll from the
   decorative orbs WITHOUT creating a scroll container, so position: sticky
   (the desktop header) still anchors to the viewport and works. */
html, body { background: #060D17; color: #F4F7FF; overflow-x: clip; max-width: 100%; }
body { font-family: 'Manrope', sans-serif; -webkit-font-smoothing: antialiased; position: relative; width: 100%; }

.hd-grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hd-grain {
  position: fixed; inset: -50%; width: 200%; height: 200%; pointer-events: none; z-index: 60; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: hd-grain 7s steps(10) infinite;
}
@keyframes hd-grain {
  0%,100% { transform: translate(0,0); }
  10% { transform: translate(-3%,2%); }
  30% { transform: translate(2%,-3%); }
  50% { transform: translate(-2%,3%); }
  70% { transform: translate(3%,1%); }
  90% { transform: translate(-1%,-2%); }
}

.hd-orb { position: fixed; border-radius: 50%; filter: blur(120px); pointer-events: none; z-index: 0; opacity: .55; }

.hd-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 90; background: var(--grad); box-shadow: 0 0 12px rgba(214,58,142,.6); }

.hd-link { position: relative; }
.hd-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; transform: scaleX(0); transform-origin: left;
  background: var(--grad); transition: transform .35s cubic-bezier(.22,1,.36,1); border-radius: 2px;
}
.hd-link:hover::after, .hd-link.is-active::after { transform: scaleX(1); }
.hd-link.is-active { color: #F4F7FF; }

.is-auth-hidden { display: none !important; }

#hd-nav { transition: background .3s, border-color .3s, backdrop-filter .3s; }
#hd-nav.is-scrolled { background: rgba(6,13,23,.72); backdrop-filter: blur(18px); border-color: rgba(255,255,255,.08); }

.hd-track { display: flex; width: max-content; }
.hd-ticker:hover .hd-track, .hd-wall:hover .hd-track { animation-play-state: paused; }
.hd-wall { -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }

#hd-drawer { opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
#hd-drawer.is-open { opacity: 1; visibility: visible; }
#hd-drawer .hd-d-link { opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s; }
#hd-drawer.is-open .hd-d-link { opacity: 1; transform: none; }

.card { background: rgba(14,27,46,.5); border: 1px solid rgba(255,255,255,.1); border-radius: 1rem; }
.card:hover { border-color: rgba(255,255,255,.18); }

.legal-body p { color: #8A98AD; }
.legal-body ul { list-style: disc; padding-left: 1.25rem; }
.legal-body ul li { color: #8A98AD; margin: .2rem 0; }
.legal-body a { color: #E58FC9; text-decoration: underline; }
.legal-body strong { color: #F4F7FF; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }

.hd-lift { transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s cubic-bezier(.22,1,.36,1); }
.hd-lift:hover { transform: translateY(-6px); box-shadow: 0 22px 46px -18px rgba(214,58,142,.55); }
.hd-glow { transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s cubic-bezier(.22,1,.36,1); }
.hd-glow:hover { box-shadow: 0 16px 40px -10px rgba(214,58,142,.6); }

:focus-visible { outline: 2px solid #E58FC9; outline-offset: 3px; border-radius: 6px; }

.article-body { font-size: 1.075rem; line-height: 1.8; color: rgba(244,247,255,.82); }
.article-body > *:first-child { margin-top: 0; }
.article-body p { margin: 0 0 1.35em; }
.article-body h2 { font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: clamp(22px,3.4vw,30px); line-height: 1.25; color: #F4F7FF; margin: 1.9em 0 .55em; }
.article-body ul { margin: 0 0 1.4em; padding-left: 1.25em; list-style: disc; }
.article-body li { margin: .45em 0; }
.article-body a { color: #E58FC9; text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: #F4F7FF; }
.article-body strong { color: #F4F7FF; font-weight: 700; }
.article-body blockquote {
  margin: 1.7em 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid #D63A8E;
  font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: clamp(18px,2.6vw,22px);
  line-height: 1.4; color: #F4F7FF;
}

@media (prefers-reduced-motion: reduce) {
  .hd-grain, .hd-orb { animation: none !important; }
  .animate-ticker, .animate-wall, .animate-drift { animation: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hd-lift { transition: none !important; }
  .hd-lift:hover { transform: none !important; box-shadow: none !important; }
}

.loader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: #04070f; transition: opacity .6s ease, visibility .6s ease; }
.loader.gone { opacity: 0; visibility: hidden; }
.ld-inner { text-align: center; }
.ld-logo { font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: clamp(28px, 6vw, 46px); letter-spacing: -.02em; }
.ld-bar { width: 160px; height: 3px; border-radius: 3px; margin: 18px auto 0; background: rgba(255,255,255,.12); overflow: hidden; }
.ld-bar::after { content: ""; display: block; height: 100%; width: 40%; border-radius: 3px; background: var(--grad); animation: ld-load 1.1s cubic-bezier(.22,1,.36,1) infinite; }
.ld-tag { margin-top: 14px; font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: rgba(244,247,255,.5); }
@keyframes ld-load { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }

.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; transform: translate(-50%, -50%); pointer-events: none; z-index: 100; border-radius: 50%; }
.cursor-dot { width: 7px; height: 7px; background: #E58FC9; box-shadow: 0 0 10px rgba(214,58,142,.85); }
.cursor-ring { width: 32px; height: 32px; border: 1.5px solid rgba(244,247,255,.45); display: grid; place-items: center; transition: width .25s cubic-bezier(.22,1,.36,1), height .25s cubic-bezier(.22,1,.36,1), background .25s, border-color .25s; }
.cursor-ring.is-hover { width: 66px; height: 66px; background: var(--grad); border-color: transparent; }
.cur-label { font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #fff; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s; }
.cursor-ring.is-hover .cur-label { opacity: 1; transform: scale(1); }

@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none; }
  html.has-cursor input, html.has-cursor textarea, html.has-cursor select { cursor: auto; }
}
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }
@media (prefers-reduced-motion: reduce) { .ld-bar::after { animation: none !important; } }

.hd-faq summary { list-style: none; }
.hd-faq summary::-webkit-details-marker { display: none; }
.hd-faq[open] summary .fa-chevron-down { transform: rotate(180deg); }
.hd-faq[open] { border-color: rgba(255,255,255,.18); }

.hd-cf { position: relative; }
.hd-cf-stage { position: relative; }
.hd-cf-track { display: flex; gap: 1rem; overflow-x: auto; padding: .25rem .25rem 1rem; scrollbar-width: none; }
.hd-cf-track::-webkit-scrollbar { display: none; }
.hd-cf-card { position: relative; flex: 0 0 auto; width: 172px; aspect-ratio: 9/13.5; border-radius: 20px; overflow: hidden; border: none; }
.hd-cf-card .rc-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hd-cf-card .rc-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 32%, rgba(4,7,15,.94)); }
.hd-cf-card .rc-dim { position: absolute; inset: 0; background: rgba(4,7,15,0); transition: background .5s ease; }
.hd-cf-card .rc-info { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2; }
.hd-cf-card .rc-rank { position: absolute; left: 14px; top: 12px; z-index: 2; font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: 13px; line-height: 1; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.hd-cf-card .rc-tag { display: inline-block; font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: 8.5px; letter-spacing: .18em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; background: var(--grad); margin-bottom: 9px; }
.hd-cf-card .rc-title { font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: 15px; line-height: 1.2; }
.hd-cf-card .rc-eps { font-size: 11px; color: #B8C2D4; margin-top: 5px; }

.hd-cf-glow, .hd-cf-controls { display: none; }

.hd-cf.is-cf { perspective: 1500px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent); mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent); }
.hd-cf.is-cf .hd-cf-stage { position: relative; height: 440px; transform-style: preserve-3d; }
.hd-cf.is-cf .hd-cf-track { display: block; overflow: visible; height: 100%; padding: 0; }
.hd-cf.is-cf .hd-cf-card { position: absolute; top: 50%; left: 50%; width: clamp(196px, 16vw, 240px); margin: 0; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.22,1,.36,1), opacity .55s ease; cursor: pointer; will-change: transform, opacity; }
.hd-cf.is-cf .hd-cf-card.is-active { box-shadow: 0 44px 100px rgba(166,19,216,.45); }
.hd-cf.is-cf .hd-cf-glow { display: block; position: absolute; left: 50%; top: 50%; width: 380px; height: 380px; transform: translate(-50%,-50%); border-radius: 50%; background: radial-gradient(circle, rgba(214,58,142,.30), transparent 66%); filter: blur(55px); z-index: 0; pointer-events: none; }
.hd-cf.is-cf .hd-cf-controls { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: 1.25rem; }
.hd-cf-arrow { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); color: #F4F7FF; background: rgba(14,27,46,.5); transition: border-color .2s, background .2s, transform .2s; }
.hd-cf-arrow:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); transform: translateY(-1px); }
.hd-cf-dots { display: flex; align-items: center; gap: 8px; }
.hd-cf-dot { width: 7px; height: 7px; border-radius: 999px; background: rgba(255,255,255,.22); transition: width .3s, background .3s; }
.hd-cf-dot.is-on { width: 22px; background: var(--grad); }

.hd-feed-phone { position: relative; width: 300px; max-width: 78vw; aspect-ratio: 9/19; border-radius: 42px; background: #0a0f1e; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 50px 120px rgba(0,0,0,.7), 0 0 90px rgba(166,19,216,.22), inset 0 0 0 8px #04070f; padding: 10px; }
.hd-feed-3d { perspective: 1300px; }
.hd-feed-3d .hd-feed-phone { transform: rotateY(-15deg) rotateX(6deg); transition: transform .9s cubic-bezier(.22,1,.36,1); transform-style: preserve-3d; }
.hd-feed-3d:hover .hd-feed-phone { transform: rotateY(-5deg) rotateX(2deg); }
@media (prefers-reduced-motion: reduce) { .hd-feed-3d .hd-feed-phone { transform: none !important; } }
.hd-feed-phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; background: #04070f; border-radius: 14px; z-index: 9; }
.hd-feed-screen { position: absolute; inset: 10px; border-radius: 32px; overflow: hidden; background: #04070f; }
.hd-feed-slide { position: absolute; inset: 0; transform: translateY(100%); }
.hd-feed-slide:first-child { transform: translateY(0); }
.hd-feed-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hd-feed-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,7,15,.3), transparent 28%, rgba(4,7,15,.96)); }
.hd-swipe-hint { animation: hd-swipe 1.8s ease-in-out infinite; }
@keyframes hd-swipe { 0% { transform: translateY(14px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(-14px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .hd-cf.is-cf .hd-cf-card { transition: none !important; }
  .hd-swipe-hint { animation: none !important; }
}

.hd-modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 1.25rem; opacity: 0; visibility: hidden; transition: opacity .25s ease; }
.hd-modal.is-open { opacity: 1; visibility: visible; }
.hd-modal-backdrop { position: absolute; inset: 0; background: rgba(4,7,15,.82); backdrop-filter: blur(8px); }
.hd-modal-card { position: relative; width: 100%; max-width: 420px; transform: translateY(14px) scale(.97); transition: transform .3s cubic-bezier(.22,1,.36,1); }
.hd-modal.is-open .hd-modal-card { transform: none; }

.hd-scrub { position: relative; height: 6px; border-radius: 999px; background: rgba(255,255,255,.22); cursor: pointer; touch-action: none; }
.hd-scrub-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--grad); width: 0%; }
.hd-scrub-knob { position: absolute; top: 50%; left: 0; width: 15px; height: 15px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 0 0 4px rgba(214,58,142,.35); transition: box-shadow .2s; }
.hd-scrub.is-drag .hd-scrub-knob { box-shadow: 0 0 0 7px rgba(214,58,142,.3); }
.hd-nextup { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; text-align: center; padding: 1.5rem; background: rgba(4,7,15,.78); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .3s ease; }
.hd-nextup.is-open { opacity: 1; visibility: visible; }

@media (prefers-reduced-motion: reduce) {
  .hd-modal, .hd-modal-card, .hd-nextup { transition: none !important; }
}

.hd-tl { position: relative; }
.hd-tl-step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 1.25rem; padding-bottom: 2.25rem; }
.hd-tl-step:last-child { padding-bottom: 0; }
.hd-tl-rail { position: relative; display: flex; justify-content: center; }
.hd-tl-rail::before { content: ""; position: absolute; top: 58px; bottom: -2.25rem; left: 50%; width: 2px; transform: translateX(-50%); background: linear-gradient(180deg, rgba(166,19,216,.75), rgba(242,92,74,.4) 70%, transparent); }
.hd-tl-step:last-child .hd-tl-rail::before { display: none; }
.hd-tl-node { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: 20px; color: #fff; background: var(--grad); box-shadow: 0 12px 30px -8px rgba(166,19,216,.6); }
@media (min-width: 768px) { .hd-tl-step { grid-template-columns: 72px 1fr; gap: 1.75rem; } .hd-tl-node { width: 64px; height: 64px; font-size: 24px; } .hd-tl-rail::before { top: 66px; } }

.hd-phone3d { perspective: 1400px; }
.hd-phone3d-card { transform: rotateY(-18deg); transition: transform .9s cubic-bezier(.22,1,.36,1); transform-style: preserve-3d; }
.hd-phone3d:hover .hd-phone3d-card { transform: rotateY(-6deg); }
@media (prefers-reduced-motion: reduce) { .hd-phone3d-card { transform: none !important; } }

.hd-hero { position: relative; overflow: hidden; }
.hd-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hd-hero-bg video { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.hd-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: #8A98AD; }
.hd-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #F25C4A; box-shadow: 0 0 12px #F25C4A; animation: hd-blink 1.8s infinite; }
@keyframes hd-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.hd-hero-title { font-family: 'Unbounded', sans-serif; font-weight: 900; text-transform: uppercase; letter-spacing: -.015em; line-height: 1.02; font-size: clamp(33px, 6.6vw, 86px); }
.hd-hero-line { display: block; opacity: 0; transform: translateY(20px); animation: hd-rise .9s cubic-bezier(.22,1,.36,1) forwards; }
.hd-hero-line:nth-child(1) { animation-delay: .12s; }
.hd-hero-line:nth-child(2) { animation-delay: .26s; }
.hd-hero-line:nth-child(3) { animation-delay: .40s; }
.hd-hero-title .thin { font-weight: 400; color: #8A98AD; }
@keyframes hd-rise { to { opacity: 1; transform: none; } }

.hd-count-num { font-variant-numeric: tabular-nums; }

.hd-scroll { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: 9px; letter-spacing: .4em; color: #5b6b80; text-transform: uppercase; }
.hd-scroll .wheel { width: 22px; height: 34px; border: 1.5px solid rgba(255,255,255,.25); border-radius: 12px; display: flex; justify-content: center; padding-top: 6px; }
.hd-scroll .wheel i { width: 3px; height: 8px; border-radius: 3px; background: #F25C4A; animation: hd-wheel 1.6s ease-in-out infinite; }
@keyframes hd-wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .hd-hero-line { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hd-eyebrow .dot, .hd-scroll .wheel i { animation: none !important; }
}

.hd-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; background: rgba(6,13,23,.72); backdrop-filter: blur(18px); border-top: 1px solid rgba(255,255,255,.08); padding-bottom: env(safe-area-inset-bottom); }
.hd-tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 9px 0 8px; font-size: 10px; font-weight: 700; letter-spacing: .02em; color: #8A98AD; transition: color .2s; }
.hd-tab i { font-size: 17px; }
.hd-tab.is-active { color: #F4F7FF; }
.hd-tab.is-active i { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 767px) { body { padding-bottom: calc(3.25rem + env(safe-area-inset-bottom)); } }
/* Desktop: bottom tab bar is mobile-only. Set here (not just via the markup's
   md:hidden) because style.css loads after tailwind.css, so this wins the cascade. */
@media (min-width: 768px) { .hd-tabbar { display: none; } }

.hd-toasts { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 110; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; width: max-content; max-width: 90vw; }
@media (min-width: 768px) { .hd-toasts { bottom: 28px; } }
.hd-toast { display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px 11px 12px; border-radius: 100px; background: rgba(14,27,46,.96); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 14px 40px -10px rgba(0,0,0,.65); font-size: 14px; font-weight: 600; color: #F4F7FF; backdrop-filter: blur(12px); opacity: 0; transform: translateY(12px) scale(.96); transition: opacity .3s cubic-bezier(.22,1,.36,1), transform .3s cubic-bezier(.22,1,.36,1); }
.hd-toast.in { opacity: 1; transform: none; }
.hd-toast .ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 12px; flex: 0 0 auto; }
@media (prefers-reduced-motion: reduce) { .hd-toast { transition: opacity .2s; transform: none; } }

/* ============================================================
   Touch devices (phones/tablets): disable ALL animations & motion.
   CSS backstop — JS-driven motion is gated via HD_REDUCE_MOTION (main.js).
   Static / JS-positioning transforms (e.g. coverflow cards, centering)
   are left intact so layout stays correct; only animations, transitions
   and decorative motion end-states are neutralized.
   ============================================================ */
@media (hover: none), (pointer: coarse) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    transition-delay: 0s !important;
  }
  html { scroll-behavior: auto !important; }

  /* Stop looping / ambient animations outright */
  .hd-grain, .hd-orb,
  .animate-ticker, .animate-wall, .animate-drift,
  .hd-swipe-hint, .ld-bar::after,
  .hd-eyebrow .dot, .hd-scroll .wheel i { animation: none !important; }

  /* Force scroll-reveal / entry elements to their visible end state */
  .reveal { opacity: 1 !important; transform: none !important; }
  .hd-hero-line { opacity: 1 !important; transform: none !important; }
  .hd-toast { transform: none; }

  /* Flatten decorative 3D tilt (CSS-only transforms) */
  .hd-feed-3d .hd-feed-phone,
  .hd-phone3d-card { transform: none !important; }
}
