/* Mind · shared visual system (deploy) */

:root {
  --void: #0a0a0c;
  --coal: #0e0e13;
  --accent: #8b5cf6;
  --aqua: #06b6d4;
}

html { scroll-behavior: smooth; color-scheme: dark; }
body {
  background: var(--void);
  color: #e8e8f0;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Mobile stacking guard: decorative layers can never cover UI controls. */
main, section, footer { isolation: isolate; }
.ui-layer { position: relative; z-index: 10; }
.decor-layer { pointer-events: none; z-index: 0; }

@media (max-width: 639px) {
  .btn-p, .btn-g { min-height: 46px; }
  .mobile-full { width: 100%; }
  .mobile-heading { font-size: clamp(1.875rem, 9vw, 2.65rem); line-height: 1.08; }
}
.mono { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; }

::selection { background: rgba(139, 92, 246, 0.4); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-track { background: #0a0a0c; }
::-webkit-scrollbar-thumb { background: #26262f; border-radius: 8px; border: 2px solid #0a0a0c; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #8b5cf6, #06b6d4); }
button:not(:disabled) { cursor: pointer; }
input, select { caret-color: #8b5cf6; }
::placeholder { color: rgba(255,255,255,.26); }

/* keyframes */
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-13px) } }
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes shine { 0% { transform: translateX(-140%) skewX(-20deg) } 55%,100% { transform: translateX(260%) skewX(-20deg) } }
@keyframes pulseDot { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52,211,153,.55) } 50% { opacity: .7; box-shadow: 0 0 0 6px rgba(52,211,153,0) } }
@keyframes blink { 0%,49% { opacity: 1 } 50%,100% { opacity: 0 } }
@keyframes overlayIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes modalIn { from { opacity: 0; transform: translateY(26px) scale(.95) } to { opacity: 1; transform: none } }
@keyframes riseIn { from { opacity: 0; transform: translateY(30px) } to { opacity: 1; transform: none } }
@keyframes spin { to { transform: rotate(360deg) } }
.anim-float { animation: float 7s ease-in-out infinite; }
.anim-float-slow { animation: float 11s ease-in-out infinite; }
.anim-marquee { animation: marquee 30s linear infinite; }
.anim-shine { animation: shine 2.6s ease-in-out infinite; }
.anim-pulse-dot { animation: pulseDot 2.2s cubic-bezier(.4,0,.6,1) infinite; }
.anim-blink { animation: blink 1.1s step-end infinite; }
.anim-spin { animation: spin .9s linear infinite; }
.anim-overlay { animation: overlayIn .25s ease both; }
.anim-modal { animation: modalIn .4s cubic-bezier(.22,1,.36,1) both; }
.anim-rise { animation: riseIn .45s cubic-bezier(.22,1,.36,1) both; }

/* components */
.glass {
  background: rgba(255,255,255,.032);
  border: 1px solid rgba(255,255,255,.085);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
.text-gradient {
  background-image: linear-gradient(98deg, #a78bfa 0%, #8b5cf6 34%, #06b6d4 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hairline { height: 1px; background: linear-gradient(90deg, transparent, rgba(139,92,246,.55), rgba(6,182,212,.55), transparent); }

.btn-p {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  overflow: hidden; border-radius: 999px; padding: 14px 28px; font-size: 14px; font-weight: 800; color: #fff;
  background: linear-gradient(90deg, var(--accent), var(--aqua));
  box-shadow: 0 10px 36px -10px rgba(139,92,246,.75);
  transition: all .3s cubic-bezier(.22,1,.36,1);
}
.btn-p:hover { transform: scale(1.03); filter: brightness(1.1); box-shadow: 0 16px 52px -8px rgba(6,182,212,.6); }
.btn-p:active { transform: scale(.97); }
.btn-p:disabled { opacity: .55; cursor: wait; }
.btn-g {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; padding: 14px 28px; font-size: 14px; font-weight: 700; color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.032); border: 1px solid rgba(255,255,255,.085);
  backdrop-filter: blur(16px); transition: all .3s;
}
.btn-g:hover { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.07); color: #fff; }

.input {
  width: 100%; border-radius: 12px; border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.3); padding: 12px 16px; font-size: 14px; color: #fff; outline: none;
  transition: border-color .3s, box-shadow .3s;
}
.input:focus { border-color: rgba(139,92,246,.6); box-shadow: 0 0 0 3px rgba(139,92,246,.2); }
.input[readonly] { color: rgba(255,255,255,.7); }

.label { display: block; margin-bottom: 6px; font-family: "JetBrains Mono", monospace; font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.35); }

.card {
  border-radius: 18px; border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.025); backdrop-filter: blur(14px); padding: 22px;
}

.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 12px; font-family: "JetBrains Mono", monospace; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.chip-green { border: 1px solid rgba(52,211,153,.3); background: rgba(52,211,153,.1); color: #6ee7b7; }
.chip-red { border: 1px solid rgba(251,113,133,.3); background: rgba(251,113,133,.1); color: #fda4af; }
.chip-dim { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: rgba(255,255,255,.4); }
.chip-amber { border: 1px solid rgba(251,191,36,.3); background: rgba(251,191,36,.08); color: #fcd34d; }

/* FAQ accordion */
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.22,1,.36,1); }
.acc-panel.open { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; opacity: 1; transform: none; } }

/* background */
.bg-grid {
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
}
.mask-top { -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, #000 20%, transparent 78%); mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, #000 20%, transparent 78%); }
.mask-fade-x { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }

/* ============ SPA tab panels ============ */
.tab-panel { display: none; }
.tab-panel.is-active {
  display: block;
  min-height: 56vh;
  animation: tabIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes tabIn {
  from { opacity: 0; transform: translateY(26px) scale(0.985); filter: blur(10px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
.nav-tab { position: relative; }
.nav-tab::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-tab:hover::after { width: 46%; }
.nav-tab.is-active { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-tab.is-active::after { width: 70%; }

/* ============ neon snake border (clockwise) ============ */
@property --snake-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.snake-card { position: relative; border-radius: 24px; }
.snake-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 1.6px;
  background: conic-gradient(
    from calc(var(--snake-angle)),
    transparent 0deg,
    transparent 236deg,
    rgba(139, 92, 246, 0.15) 262deg,
    #8b5cf6 296deg,
    #06b6d4 326deg,
    rgba(6, 182, 212, 0.35) 345deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 1;
  filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.75)) drop-shadow(0 0 10px rgba(6, 182, 212, 0.35));
  animation: snakeSpin 4.2s linear infinite;
  pointer-events: none;
}
@keyframes snakeSpin {
  to { --snake-angle: 360deg; }
}

/* ============ intro / preloader (portal reveal) ============ */
html.intro-lock, body.intro-lock { overflow: hidden; }
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: all;
}
.intro-half {
  position: absolute;
  left: -2%;
  width: 104%;
  height: 51%;
  background:
    radial-gradient(60% 80% at 50% 100%, rgba(139, 92, 246, 0.14), transparent 70%),
    #0a0a0c;
  transition: transform 0.95s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}
.intro-top { top: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.intro-bottom {
  bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(6, 182, 212, 0.12), transparent 70%),
    #0a0a0c;
}
.intro-core {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  transition: opacity 0.55s ease, transform 0.8s cubic-bezier(0.76, 0, 0.24, 1), filter 0.7s ease;
  will-change: transform, opacity, filter;
}
.intro-word {
  font-size: clamp(2.4rem, 9vw, 4.6rem);
  font-weight: 800;
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  text-transform: uppercase;
  background-image: linear-gradient(98deg, #a78bfa, #8b5cf6 40%, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: introWord 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes introWord {
  from { opacity: 0; transform: translateY(18px) scale(0.94); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
.intro-sub {
  margin-top: 0.6rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  animation: introWord 0.9s 0.18s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.intro-bar {
  width: min(240px, 60vw);
  height: 2px;
  margin-top: 1.8rem;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
}
.intro-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.7);
  transition: width 0.12s linear;
}
@keyframes introFill {
  0% { width: 0; }
  60% { width: 74%; }
  100% { width: 100%; }
}
.intro-overlay.is-done .intro-top { transform: translateY(-101%); }
.intro-overlay.is-done .intro-bottom { transform: translateY(101%); }
.intro-overlay.is-done .intro-core {
  opacity: 0;
  transform: scale(1.28);
  filter: blur(16px);
}
.intro-overlay.is-hidden { display: none; }

/* ============ digital rain canvas ============ */
.rain-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* ============ mobile slide menu ============ */
.slide-menu { animation: menuIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* ============ purchase (plans + payments) ============ */
.plan-card { transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s, background 0.3s, box-shadow 0.3s; }
.plan-card.is-selected {
  border-color: rgba(139, 92, 246, 0.6);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.12), rgba(255, 255, 255, 0.02));
  box-shadow: 0 18px 46px -22px rgba(139, 92, 246, 0.8);
  transform: translateY(-3px);
}
.pay-card.is-selected {
  border-color: rgba(6, 182, 212, 0.55);
  background: rgba(6, 182, 212, 0.08);
}
.otp-input {
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  text-align: center;
  font-family: "JetBrains Mono", monospace;
}

@media (prefers-reduced-motion: reduce) {
  .snake-card::before { animation: none; opacity: 0.5; }
  .tab-panel.is-active { animation: none; }
  .intro-overlay { display: none !important; }
}

/* ============ intro HUD (radial grid, rings, logo, metrics) ============ */
.intro-grid {
  position: absolute;
  inset: -12%;
  z-index: 1;
  background-image: repeating-radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.055) 0 1px,
    transparent 1px 52px
  );
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 18%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 50%, #000 18%, transparent 72%);
  animation: introGrid 7s ease-in-out infinite;
  will-change: transform, opacity;
  pointer-events: none;
}
@keyframes introGrid {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.08); opacity: 0.9; }
}

.intro-hud {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.hud-mark {
  position: absolute;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
  animation: introWord 0.8s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hud-tl { top: 20px; left: 22px; }
.hud-tr { top: 20px; right: 22px; color: rgba(6, 182, 212, 0.6); }
.hud-bl { bottom: 20px; left: 22px; }
.hud-br { bottom: 20px; right: 22px; color: rgba(139, 92, 246, 0.65); }

.hud-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: rgba(255, 255, 255, 0.28);
  animation: introWord 0.8s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hud-c-tl { top: 14px; left: 14px; border-top: 1px solid; border-left: 1px solid; }
.hud-c-tr { top: 14px; right: 14px; border-top: 1px solid; border-right: 1px solid; }
.hud-c-bl { bottom: 14px; left: 14px; border-bottom: 1px solid; border-left: 1px solid; }
.hud-c-br { bottom: 14px; right: 14px; border-bottom: 1px solid; border-right: 1px solid; }

.intro-logo {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  animation: logoPulse 1.9s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.4), inset 0 0 12px rgba(139, 92, 246, 0.12);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 34px rgba(6, 182, 212, 0.55), inset 0 0 16px rgba(6, 182, 212, 0.16);
  }
}

.intro-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 320px;
  height: 320px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.intro-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ringPulse 2.6s ease-in-out infinite;
}
.intro-ring.r1 {
  width: 170px;
  height: 170px;
  border: 1px solid rgba(139, 92, 246, 0.35);
}
.intro-ring.r2 {
  width: 244px;
  height: 244px;
  border: 1px solid rgba(6, 182, 212, 0.22);
  animation-delay: 0.5s;
}
.intro-ring.r3 {
  width: 316px;
  height: 316px;
  border: 1px dashed rgba(6, 182, 212, 0.4);
  animation: spin 22s linear infinite;
}
@keyframes ringPulse {
  0%, 100% { opacity: 0.45; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.035); }
}
@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.intro-meta {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(240px, 60vw);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 1.4rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.intro-meta [data-intro-status] {
  color: rgba(255, 255, 255, 0.42);
  animation: blink 1.4s step-end infinite;
}
.intro-pct {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background-image: linear-gradient(98deg, #a78bfa, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intro-overlay.is-done .intro-hud,
.intro-overlay.is-done .intro-grid {
  opacity: 0;
}
@media (max-width: 480px) {
  .hud-mark { font-size: 8px; letter-spacing: 0.16em; }
  .hud-bl, .hud-br { display: none; }
}

/* ============ @username / discord accents ============ */
.chip-accent {
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.12);
  color: #c4b5fd;
}
.user-card { transition: border-color 0.3s, background 0.3s; }
.user-card:hover { border-color: rgba(255, 255, 255, 0.16); }
