/* ============================================================
  (c) MeaOvis 2026 ReWork by Maff
  ============================================================ */
:root{
  --bg: #f5f5f7;
  --card: rgba(255,255,255,.72);
  --card2: rgba(255,255,255,.92);
  --text: #0b0b0f;
  --muted: rgba(11,11,15,.68);
  --line: rgba(11,11,15,.10);
  --accent: #0071e3; 
  --shadow: 0 18px 50px rgba(0,0,0,.10);
  --shadow2: 0 10px 30px rgba(0,0,0,.08);
  --radius: 22px;
}
html.dark{
  --bg: #0b0b0f;
  --card: rgba(20,20,22,.62);
  --card2: rgba(20,20,22,.88);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.66);
  --line: rgba(255,255,255,.12);
  --accent: #0a84ff;
  --shadow: 0 24px 70px rgba(0,0,0,.55);
  --shadow2: 0 14px 40px rgba(0,0,0,.35);
}
.text-container {
  z-index: 100;
  width: 100vw;
  height: 100vh;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  justify-content: center;
  align-items: center;
  font-size: 96px;
  color: white;
  opacity: 0.8;
  user-select: none;
  text-shadow: 1px 1px rgba(0,0,0,0.1);
}

:root {
  --color-bg1: rgb(108, 0, 162);
  --color-bg2: rgb(0, 17, 82);
  --color1: 18, 113, 255;
  --color2: 221, 74, 255;
  --color3: 100, 220, 255;
  --color4: 200, 50, 50;
  --color5: 180, 180, 50;
  --color-interactive: 140, 100, 255;
  --circle-size: 80%;
  --blending: hard-light;
}

@keyframes moveInCircle {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes moveVertical {
  0% {
    transform: translateY(-50%);
  }
  50% {
    transform: translateY(50%);
  }
  100% {
    transform: translateY(-50%);
  }
}

@keyframes moveHorizontal {
  0% {
    transform: translateX(-50%) translateY(-10%);
  }
  50% {
    transform: translateX(50%) translateY(10%);
  }
  100% {
    transform: translateX(-50%) translateY(-10%);
  }
}


.gradient-bg {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(40deg, var(--color-bg1), var(--color-bg2));
  top: 0;
  left: 0;

  svg {
    position: fixed;
    top:0;
    left:0;
    width: 0;
    height: 0;
  }


  .gradients-container {
    filter: url(#goo) blur(40px) ;
    width: 100%;
    height: 100%;
  }

  .g1 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color1), 0.8) 0, rgba(var(--color1), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);

    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2);
    left: calc(50% - var(--circle-size) / 2);

    transform-origin: center center;
    animation: moveVertical 30s ease infinite;

    opacity: 1;
  }

  .g2 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color2), 0.8) 0, rgba(var(--color2), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);

    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2);
    left: calc(50% - var(--circle-size) / 2);

    transform-origin: calc(50% - 400px);
    animation: moveInCircle 20s reverse infinite;

    opacity: 1;
  }

  .g3 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color3), 0.8) 0, rgba(var(--color3), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);

    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2 + 200px);
    left: calc(50% - var(--circle-size) / 2 - 500px);

    transform-origin: calc(50% + 400px);
    animation: moveInCircle 40s linear infinite;

    opacity: 1;
  }

  .g4 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color4), 0.8) 0, rgba(var(--color4), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);

    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2);
    left: calc(50% - var(--circle-size) / 2);

    transform-origin: calc(50% - 200px);
    animation: moveHorizontal 40s ease infinite;

    opacity: 0.7;
  }

  .g5 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color5), 0.8) 0, rgba(var(--color5), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);

    width: calc(var(--circle-size) * 2);
    height: calc(var(--circle-size) * 2);
    top: calc(50% - var(--circle-size));
    left: calc(50% - var(--circle-size));

    transform-origin: calc(50% - 800px) calc(50% + 200px);
    animation: moveInCircle 20s ease infinite;

    opacity: 1;
  }

  .interactive {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color-interactive), 0.8) 0, rgba(var(--color-interactive), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);

    width: 100%;
    height: 100%;
    top: -50%;
    left: -50%;

    opacity: 0.7;
  }
}
body{
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
  letter-spacing: -0.01em;
}
.container-max{ max-width: 1160px; }

.glass{
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow2);
  border-radius: var(--radius);
}
.surface{
  background: var(--card2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
  border-radius: var(--radius);
}
.hairline{ border-top: 1px solid var(--line); }

.hero-bg{
  background:
    radial-gradient(900px 500px at 25% -10%, color-mix(in oklab, var(--accent) 20%, transparent), transparent 62%),
    radial-gradient(700px 420px at 85% 10%, color-mix(in oklab, #7c3aed 16%, transparent), transparent 62%),
    linear-gradient(180deg, color-mix(in oklab, var(--bg) 85%, transparent), var(--bg));
  border-bottom: 1px solid var(--line);
}
.grid-mask{
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--text) 7%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--text) 7%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 18%, black 32%, transparent 72%);
  opacity: .35;
}

.btn-primary{
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 30px color-mix(in oklab, var(--accent) 18%, transparent);
}
.btn-primary:hover{ filter: brightness(0.97); }
.btn-ghost{
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover{
  background: color-mix(in oklab, var(--card2) 70%, transparent);
}

.chip{
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--card2) 70%, transparent);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}
.chip.active{
  border-color: color-mix(in oklab, var(--accent) 55%, var(--line));
  background: color-mix(in oklab, var(--accent) 12%, transparent);
}


.shelf{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 360px);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}
.shelf > *{ scroll-snap-align: start; }
.shelf::-webkit-scrollbar{ height: 10px; }
.shelf::-webkit-scrollbar-thumb{
  background: color-mix(in oklab, var(--muted) 35%, transparent);
  border-radius: 999px;
}


.modal-overlay{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 60;
}
.modal-overlay[data-open="true"]{ display: flex; }

@keyframes loadingFull {
0% { width: 0%; }
50% { width: 100%; }
100% { width: 0%; }
}

@keyframes loadingVar {
0% { width: 0%; }
20% { width: 20%; }
60% { width: 80%; }
100% { width: 20%; }
}


.animate-bar-full {
animation: loadingFull 10s ease-in-out infinite;
}

.animate-bar-var {
animation: loadingVar 10s ease-in-out infinite;
}
