


body.preloader-active {
  overflow: hidden !important;
  height: 100vh !important;
}


.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0c1016;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

body.light-theme .preloader {
  background: #fafafa;
}


.preloader__progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  transition: width 0.4s ease;
  z-index: 1;
}

body.light-theme .preloader__progress {
  background: linear-gradient(90deg, transparent, #0d1119, transparent);
}


.preloader__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}


.preloader__logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader__logo-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  animation: preloaderGlowPulse 2s ease-in-out infinite;
  pointer-events: none;
}

body.light-theme .preloader__logo-glow {
  background: radial-gradient(circle, rgba(0,0,0,0.04) 0%, transparent 70%);
}

@keyframes preloaderGlowPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}


.preloader__text-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}


.preloader__brand {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 4.5rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #fff;
  display: flex;
  align-items: baseline;
  user-select: none;
  -webkit-user-select: none;
}

body.light-theme .preloader__brand {
  color: #0d1119;
}

.preloader__brand span {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px) scale(0.8);
  animation: preloaderLetterIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}


.preloader__brand span:nth-child(1)  { animation-delay: 0.1s; }
.preloader__brand span:nth-child(2)  { animation-delay: 0.15s; }
.preloader__brand span:nth-child(3)  { animation-delay: 0.2s; }
.preloader__brand span:nth-child(4)  { animation-delay: 0.25s; }
.preloader__brand span:nth-child(5)  { animation-delay: 0.3s; }
.preloader__brand span:nth-child(6)  { animation-delay: 0.35s; }
.preloader__brand span:nth-child(7)  { animation-delay: 0.4s; }

.preloader__brand span:nth-child(8)  { animation-delay: 0.45s; }
.preloader__brand span:nth-child(9)  { animation-delay: 0.5s; }
.preloader__brand span:nth-child(10) { animation-delay: 0.55s; }

@keyframes preloaderLetterIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}


.preloader__brand-dot {
  color: #2e456c !important;
  animation-delay: 0.5s !important;
  margin: 0 0.05em;
}

body.light-theme .preloader__brand-dot {
  color: #b6bac0 !important;
}


.preloader[data-type="page"] .preloader__brand {
  font-size: 2.8rem;
  letter-spacing: 0.2em;
}

.preloader[data-type="page"] .preloader__logo-glow {
  width: 140px;
  height: 140px;
}


.preloader__line {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #263652, transparent);
  animation: preloaderLineExpand 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

body.light-theme .preloader__line {
  background: linear-gradient(90deg, transparent, #c9cbcf, transparent);
}

@keyframes preloaderLineExpand {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 200px;
    opacity: 1;
  }
}


.preloader__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: #2e456c;
  opacity: 0;
  animation: preloaderSubIn 0.8s ease 0.8s forwards;
}

body.light-theme .preloader__subtitle {
  color: #9096a2;
}

@keyframes preloaderSubIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.preloader.preloader--hidden {
  opacity: 0;
  transform: scale(1.05);
  filter: blur(10px);
  pointer-events: none;
}


.preloader.preloader--gone {
  display: none !important;
}


@media (max-width: 768px) {
  .preloader__brand {
    font-size: 2.8rem;
    letter-spacing: 0.2em;
  }

  .preloader__logo-glow {
    width: 140px;
    height: 140px;
  }

  @keyframes preloaderLineExpand {
    from {
      width: 0;
      opacity: 0;
    }
    to {
      width: 140px;
      opacity: 1;
    }
  }
}

@media (max-width: 480px) {
  .preloader__brand {
    font-size: 2rem;
    letter-spacing: 0.15em;
  }

  .preloader__logo-glow {
    width: 100px;
    height: 100px;
  }

  @keyframes preloaderLineExpand {
    from {
      width: 0;
      opacity: 0;
    }
    to {
      width: 100px;
      opacity: 1;
    }
  }
}




* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

h1, h2, h3, .nav-logo, .box-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.hero h1 {
    letter-spacing: -0.03em;
}

*:focus {
    outline: none !important;
    box-shadow: none !important;
}

*:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}



body {
    opacity: 1;
    animation: pageIn 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pageIn {
    from { 
        opacity: 0;
        transform: scale(0.98);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}


nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    animation: navSlideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
    animation-fill-mode: forwards !important;
}

@keyframes navSlideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}



.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}


.reveal:nth-child(1) { transition-delay: 0.1s; }
.reveal:nth-child(2) { transition-delay: 0.2s; }
.reveal:nth-child(3) { transition-delay: 0.3s; }
.reveal:nth-child(4) { transition-delay: 0.4s; }
.reveal:nth-child(5) { transition-delay: 0.5s; }
.reveal:nth-child(6) { transition-delay: 0.6s; }
.reveal:nth-child(7) { transition-delay: 0.7s; }
.reveal:nth-child(8) { transition-delay: 0.8s; }



button, .btn-submit, .btn-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

button:hover, .btn-submit:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.btn-card:hover {
    
}

button:active, .btn-submit:active {
    transform: translateY(-1px) scale(0.98) !important;
    transition: all 0.1s ease;
}


.btn-buy {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}


.btn-buy::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.btn-buy:hover::before {
    left: 100%;
}

.btn-buy:hover {
    transform: translateY(-2px) scale(1.01) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}


@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.1),
                    0 0 40px rgba(255, 255, 255, 0.05);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.2),
                    0 0 60px rgba(255, 255, 255, 0.1);
    }
}



input {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

input:focus {
    transform: translateY(-2px);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06),
                0 8px 24px rgba(0, 0, 0, 0.4);
}

input:hover:not(:focus) {
    border-color: #2a2a2a;
    transform: translateY(-1px);
}



.card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    will-change: transform;
    transform-style: preserve-3d;
}

.card:hover {
    
}





.card.featured {
    animation: featuredPulse 3s ease-in-out infinite;
}

.card.featured:hover {
    
}

@keyframes featuredPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
        box-shadow: 0 0 30px 2px rgba(255, 255, 255, 0.08);
    }
}



.info-block, .sub-block {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.info-block:hover, .sub-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.info-block::after, .sub-block::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.03), 
        transparent);
    transition: left 0.6s ease;
}

.info-block:hover::after, .sub-block:hover::after {
    left: 100%;
}

.info-row {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-row:hover {
    background: rgba(255, 255, 255, 0.03);
    padding-left: 2rem;
    transform: translateX(8px);
}



nav {
    position: fixed !important;
    top: 0 !important;
    transform: none !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}




nav .nav-links a {
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}





.nav-logo,
a.nav-logo,
nav .nav-logo,
nav a.nav-logo {
    transition: color 0.3s ease !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    position: relative !important;
    z-index: 1000 !important;
    color: var(--text-primary) !important;
    pointer-events: auto !important;
}


.nav-logo:hover,
.nav-logo:focus,
.nav-logo:active,
.nav-logo:visited,
a.nav-logo:hover,
a.nav-logo:focus,
a.nav-logo:active,
a.nav-logo:visited,
nav .nav-logo:hover,
nav .nav-logo:focus,
nav .nav-logo:active,
nav .nav-logo:visited,
nav a.nav-logo:hover,
nav a.nav-logo:focus,
nav a.nav-logo:active,
nav a.nav-logo:visited {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    transform: none !important;
    filter: none !important;
    text-shadow: none !important;
    color: var(--text-primary) !important;
    background: transparent !important;
    pointer-events: auto !important;
    transition: color 0.3s ease !important;
    animation: none !important;
}


.nav-logo::before,
.nav-logo::after,
a.nav-logo::before,
a.nav-logo::after {
    display: none !important;
    content: none !important;
}



.feature-item {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 12px;
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item:hover {
    transform: translateX(12px) translateY(-4px);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-item .tag {
    transition: all 0.3s ease;
}

.feature-item:hover .tag {
    color: #888;
    letter-spacing: 0.35em;
}



.hero h1 {
    animation: heroIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    text-shadow: 0 0 80px rgba(255, 255, 255, 0.1),
                 0 4px 0 #000,
                 0 8px 20px rgba(0, 0, 0, 0.5);
}

@keyframes heroIn {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.9);
        letter-spacing: 0.5em;
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        letter-spacing: 0.15em;
    }
}


.hero h1:hover {
    transform: scale(1.02);
    text-shadow: 0 0 120px rgba(255, 255, 255, 0.2),
                 0 4px 0 #000,
                 0 12px 30px rgba(0, 0, 0, 0.6);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.4s ease;
}



.scroll-arrow {
    animation: bounceImproved 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    will-change: transform;
    transition: all 0.3s ease;
}

.scroll-arrow:hover {
    transform: translateY(4px) scale(1.2);
    color: #aaa;
}

@keyframes bounceImproved {
    0%, 100% { 
        transform: translateY(0);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(12px);
        opacity: 1;
    }
}



.page-leaving {
    animation: pageOut 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageOut {
    from { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to { 
        opacity: 0;
        transform: translateY(-20px) scale(0.98);
    }
}



.btn-submit, .btn-buy, .btn-card {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    transform: scale(0);
    animation: rippleAnim 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

@keyframes rippleAnim {
    to { 
        transform: scale(5);
        opacity: 0;
    }
}




.avatar {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(2deg);
    }
    75% {
        transform: translateY(-4px) rotate(-2deg);
    }
}


.hero-badge {
    animation: badgeSlide 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s backwards;
}

@keyframes badgeSlide {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.gradient-bg {
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a, #0a0a0a);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}


@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.star {
    animation: twinkle 3s ease-in-out infinite;
}

.star:nth-child(2n) {
    animation-delay: 0.5s;
    animation-duration: 4s;
}

.star:nth-child(3n) {
    animation-delay: 1s;
    animation-duration: 5s;
}


@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.typewriter {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 2s steps(40) 1s forwards;
}


.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #fff, #888);
    transform-origin: left;
    z-index: 99;
    transition: transform 0.1s ease;
    pointer-events: none;
}


.parallax {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}


img {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

img:hover {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.1);
}


::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #1e1e1e;
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #2a2a2a;
}


.list-item {
    animation: listSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.list-item:nth-child(1) { animation-delay: 0.1s; }
.list-item:nth-child(2) { animation-delay: 0.2s; }
.list-item:nth-child(3) { animation-delay: 0.3s; }
.list-item:nth-child(4) { animation-delay: 0.4s; }
.list-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes listSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


.glow-text:hover {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5),
                 0 0 40px rgba(255, 255, 255, 0.3);
    transition: text-shadow 0.3s ease;
}


.rotate-on-hover {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.rotate-on-hover:hover {
    transform: rotate(360deg);
}


@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.shake {
    animation: shake 0.5s ease;
}


.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



:root {
  --bg-primary: #080808;
  --bg-secondary: #0e0e0e;
  --bg-tertiary: #0a0a0a;
  --bg-card: #0e0e0e;
  --bg-card-hover: #131313;
  --border-color: #1c1c1c;
  --border-hover: #2a2a2a;
  --text-primary: #fff;
  --text-secondary: #999;
  --text-tertiary: #666;
  --accent: #fff;
  --shadow: rgba(0,0,0,0.4);
}

body.light-theme {
  --bg-primary: #fafafa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f5f5f5;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f8f8;
  --border-color: #e0e0e0;
  --border-hover: #c0c0c0;
  --text-primary: #0a0a0a;
  --text-secondary: #555;
  --text-tertiary: #888;
  --accent: #0a0a0a;
  --shadow: rgba(0,0,0,0.1);
}


.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.theme-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: rotate(20deg);
}

.theme-toggle svg {
  position: absolute;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.theme-toggle .sun-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}

.theme-toggle .moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

body.light-theme .theme-toggle .sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

body.light-theme .theme-toggle .moon-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0);
}



.ui-ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255,255,255,0.35) 0%,
    rgba(255,255,255,0.12) 45%,
    transparent 70%);
  transform: scale(0);
  animation: ui-ripple-anim 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1;
}

body.light-theme .ui-ripple {
  background: radial-gradient(circle,
    rgba(0,0,0,0.2) 0%,
    rgba(0,0,0,0.08) 45%,
    transparent 70%);
}

@keyframes ui-ripple-anim {
  to {
    transform: scale(1);
    opacity: 0;
  }
}


nav.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

body.light-theme nav.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}


nav a.nav-active {
  color: var(--text-primary) !important;
}


.ui-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.ui-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

body.light-theme .ui-toast {
  background: rgba(20, 20, 20, 0.95);
  color: #fff;
}


::selection {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

body.light-theme ::selection {
  background: rgba(0, 0, 0, 0.15);
  color: #000;
}


*:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.3);
  outline-offset: 2px;
}

body.light-theme *:focus-visible {
  outline-color: rgba(0, 0, 0, 0.25);
}


.lang-switch button:focus-visible,
.lang-switch button:focus,
#btn-en:focus-visible,
#btn-en:focus,
#btn-ru:focus-visible,
#btn-ru:focus {
  outline: none !important;
  box-shadow: none !important;
}




* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

body.light-theme * {
  scrollbar-color: rgba(0,0,0,0.15) transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
  background-clip: padding-box;
}

body.light-theme ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  background-clip: padding-box;
}

body.light-theme ::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
  background-clip: padding-box;
}



.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    var(--text-primary, #fff),
    var(--text-primary, #fff),
    transparent);
  width: 0%;
  z-index: 1000;
  pointer-events: none;
  transition: width 0.08s ease-out;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

body.light-theme .scroll-progress {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}





nav.scrolled {
  
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}


nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.08) 20%,
    rgba(255, 255, 255, 0.08) 80%,
    transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

nav.scrolled::after {
  opacity: 1;
}

body.light-theme nav::after {
  background: linear-gradient(90deg,
    transparent,
    rgba(0, 0, 0, 0.08) 20%,
    rgba(0, 0, 0, 0.08) 80%,
    transparent);
}



img {
  opacity: 0;
  animation: image-fade-in 0.6s ease-out forwards;
}

img[loading="eager"],
.no-fade {
  animation: none;
  opacity: 1;
}

@keyframes image-fade-in {
  to { opacity: 1; }
}




.btn-submit,
.btn-buy,
.btn-card,
.theme-toggle,
.back {
  will-change: transform, box-shadow;
}



.divider {
  height: 1px;
  border: none;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent);
  margin: 2rem 0;
}

body.light-theme .divider {
  background: linear-gradient(90deg,
    transparent,
    rgba(0, 0, 0, 0.1),
    transparent);
}



h1, h2, h3, h4 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}



footer {
  position: relative;
  opacity: 0.75;
  transition: opacity 0.3s ease;
  font-size: 0.65rem !important;
  padding: 3rem 1.5rem 2.5rem !important;
  width: 100%;
}

footer:hover {
  opacity: 1;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.08) 15%, 
    rgba(255, 255, 255, 0.08) 85%, 
    transparent 100%
  );
}

body.light-theme footer::before {
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 0, 0, 0.25) 15%, 
    rgba(0, 0, 0, 0.25) 85%, 
    transparent 100%
  );
}

footer a,
footer span {
  font-size: 0.65rem !important;
}

@media (max-width: 768px) {
  footer {
    font-size: 0.58rem !important;
    padding: 2rem 1rem 1.5rem !important;
  }
  footer a,
  footer span {
    font-size: 0.58rem !important;
  }
}



a:not(.nav-logo):not(.back):not(.btn):not(.btn-buy):not(.btn-submit):not(.btn-card):not(nav a) {
  transition: color 0.2s ease, opacity 0.2s ease;
}



.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--text-primary, #fff);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}



.hero h1 {
  
  letter-spacing: -0.02em;
}



.card,
.info-block,
.sub-block {
  
  will-change: transform, box-shadow, background;
  transform: translateZ(0);
  backface-visibility: hidden;
}



input:focus,
textarea:focus,
select:focus {
  transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              background-color 0.3s ease !important;
}



body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0.03;
  mix-blend-mode: overlay;
}

body.light-theme::before {
  opacity: 0.02;
}



.nav-links a:not(.nav-logo),
.back,
.footer-link a {
  transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease !important;
}



.hero-badge {
  position: relative;
}

.hero-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: badge-pulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes badge-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0;
  }
}



input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea {
  cursor: text;
}

button:disabled,
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}



@media (max-width: 768px) {
  body::before {
    display: none; 
  }
  
  .scroll-progress {
    display: none; 
  }
}



@media print {
  nav, footer, #bg, .scroll-progress, .ui-toast, body::before {
    display: none !important;
  }
}



.hero h1 {
  animation: hero-text-in 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-sub,
.hero p,
.hero-badge {
  animation: hero-sub-in 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero .btn-buy,
.hero button {
  animation: hero-sub-in 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

@keyframes hero-text-in {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes hero-sub-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@media (max-width: 992px) {
  .footer-separator {
    display: none !important;
  }
}




body.light-theme .card,
body.light-theme .feature-block,
body.light-theme .form-box,
body.light-theme .info-block,
body.light-theme .sub-block,
body.light-theme .account-card,
body.light-theme .modal-content,
body.light-theme .status-card,
body.light-theme .news-card {
    border: 1px solid rgba(0, 0, 0, 0.25) !important;
    background: #ffffff !important;
}


body.light-theme nav {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2) !important;
    background: rgba(248, 248, 248, 0.95) !important;
}


body.light-theme .field input,
body.light-theme input[type="text"],
body.light-theme input[type="password"],
body.light-theme input[type="email"] {
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    background: #f4f4f4 !important;
    color: #111 !important;
}

body.light-theme .field input:focus,
body.light-theme input:focus {
    border: 1px solid rgba(0, 0, 0, 0.4) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}


body.light-theme footer,
body.light-theme footer span,
body.light-theme footer a,
body.light-theme footer span[data-i18n="footer"] {
    color: #222 !important;
}

body.light-theme .footer-separator {
    color: #222 !important;
    opacity: 0.3 !important;
}




.card,
.feature-block,
.form-box,
.info-block,
.sub-block,
.account-card,
.modal-content,
.status-card,
.news-card {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 255, 255, 0.015) !important;
}


body.light-theme .card,
body.light-theme .feature-block,
body.light-theme .form-box,
body.light-theme .info-block,
body.light-theme .sub-block,
body.light-theme .account-card,
body.light-theme .modal-content,
body.light-theme .status-card,
body.light-theme .news-card {
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2), 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

:root{
  --vie-accent:#a78bfa;
  --vie-accent-2:#7c3aed;
  --vie-glow:rgba(139,92,246,.28);
}
body{background:#050506;}
#bg{opacity:.72!important;filter:saturate(1.15) contrast(1.05);}
body::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:0;background:radial-gradient(circle at 50% -10%,rgba(124,58,237,.18),transparent 38%),radial-gradient(circle at 0% 50%,rgba(99,102,241,.07),transparent 32%),radial-gradient(circle at 100% 70%,rgba(167,139,250,.06),transparent 30%);}
nav{padding:1rem clamp(1rem,4vw,3rem)!important;background:rgba(5,5,7,.58)!important;border-bottom:1px solid rgba(255,255,255,.07)!important;box-shadow:0 10px 40px rgba(0,0,0,.18);}
.nav-logo{font-size:1.05rem!important;letter-spacing:.28em!important;text-shadow:0 0 22px rgba(167,139,250,.35);}
.nav-logo::after{content:""!important;display:block!important;position:absolute!important;left:0!important;bottom:-7px!important;width:22px!important;height:2px!important;background:linear-gradient(90deg,var(--vie-accent),transparent)!important;opacity:1!important;visibility:visible!important;}
.nav-links a,.theme-toggle,.lang-switch{transition:transform .25s ease,background .25s ease,border-color .25s ease,box-shadow .25s ease!important;}
.nav-links .btn-login:hover,.theme-toggle:hover{box-shadow:0 0 22px rgba(167,139,250,.1);}
.nav-links .btn-signup{background:linear-gradient(135deg,#fff,#d8d8dc)!important;box-shadow:0 0 26px rgba(255,255,255,.08);}
.hero{min-height:92vh!important;padding-top:9rem!important;}
.hero-label{color:#a78bfa!important;letter-spacing:.42em!important;}
.hero h1{font-size:clamp(5rem,14vw,10.5rem)!important;letter-spacing:.1em!important;background:linear-gradient(105deg,#fff 0%,#b8a4ff 34%,#fff 52%,#6d5aa8 78%,#fff 100%)!important;background-size:220% 100%!important;filter:drop-shadow(0 0 35px rgba(139,92,246,.12));}
.hero-badge{border-color:rgba(167,139,250,.24)!important;background:rgba(255,255,255,.035)!important;box-shadow:0 12px 40px rgba(0,0,0,.2),inset 0 1px rgba(255,255,255,.06)!important;}
.hero-badge::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:#a78bfa;box-shadow:0 0 12px #a78bfa;margin-right:9px;vertical-align:middle;animation:vieDot 1.8s ease-in-out infinite;}
@keyframes vieDot{50%{opacity:.35;box-shadow:0 0 4px #a78bfa}}
.btn-buy{background:linear-gradient(135deg,#17131f,#29203b)!important;border-color:rgba(167,139,250,.35)!important;box-shadow:0 12px 40px rgba(0,0,0,.3),0 0 0 1px rgba(255,255,255,.02) inset!important;}
.btn-buy:hover{background:linear-gradient(135deg,#241b35,#382754)!important;border-color:rgba(167,139,250,.65)!important;box-shadow:0 16px 50px rgba(124,58,237,.18)!important;}
.feature-section,.pricing{padding-left:clamp(1rem,5vw,5rem)!important;padding-right:clamp(1rem,5vw,5rem)!important;}
.feature-block{border:1px solid rgba(255,255,255,.07)!important;background:linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.015))!important;box-shadow:0 30px 100px rgba(0,0,0,.28),inset 0 1px rgba(255,255,255,.04);backdrop-filter:blur(14px);}
.feature-item,.halo-tile{transition:transform .35s cubic-bezier(.16,1,.3,1),border-color .35s,box-shadow .35s!important;}
.feature-item:hover,.halo-tile:hover{transform:translateY(-7px)!important;border-color:rgba(167,139,250,.28)!important;box-shadow:0 24px 70px rgba(0,0,0,.28),0 0 35px rgba(124,58,237,.07)!important;}
.tag,.halo-tile__chip{color:#bbaaff!important;border-color:rgba(167,139,250,.2)!important;background:rgba(124,58,237,.08)!important;}
.halo-tile--featured,.halo-tile:not(.halo-tile--secondary){box-shadow:0 25px 80px rgba(0,0,0,.3),0 0 45px rgba(124,58,237,.08)!important;border-color:rgba(167,139,250,.3)!important;}
.halo-tile__cta{background:linear-gradient(135deg,#fff,#dcd7e8)!important;color:#08070a!important;border:none!important;box-shadow:0 10px 30px rgba(255,255,255,.08);}
.halo-tile__cta:hover{transform:translateY(-2px);box-shadow:0 14px 35px rgba(167,139,250,.18);}
footer{border-top:1px solid rgba(255,255,255,.05);margin-top:4rem!important;background:rgba(0,0,0,.12)!important;}
.social-btn:hover{border-color:rgba(167,139,250,.3)!important;background:rgba(124,58,237,.08)!important;color:#fff!important;transform:translateY(-2px);}
.scroll-top{box-shadow:0 10px 35px rgba(0,0,0,.25)!important;}
@media(max-width:700px){nav{padding:.8rem 1rem!important}.nav-links{gap:.25rem}.nav-links a{padding:.45rem .65rem!important;font-size:.65rem!important}.hero{min-height:88vh!important}.hero h1{font-size:clamp(4rem,21vw,7rem)!important}.hero-badge{font-size:.56rem!important}.feature-block{border-radius:18px!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.001ms!important}}
