:root {
  --bg-primary: #08031a;
  --bg-secondary: #0d0726;
  --bg-tertiary: #130c34;
  --bg-card: rgba(255, 255, 255, .07);
  --bg-card-hover: rgba(255, 255, 255, .11);
  --accent-primary: #ff2d78;
  --accent-primary-soft: #ff5c99;
  --accent-primary-glow: rgba(255, 45, 120, .35);
  --accent-secondary: #00ead0;
  --accent-secondary-soft: #70ffee;
  --accent-secondary-glow: rgba(0, 234, 208, .25);
  --accent-gradient: linear-gradient(135deg, #ff2d78 0%, #ff6b9d 40%, #00ead0 100%);
  --purple-accent: #c084fc;
  --purple-glow: rgba(192, 132, 252, .25);
  --glass-bg: rgba(255, 255, 255, .07);
  --glass-border: rgba(255, 255, 255, .12);
  --text-primary: #fff;
  --text-secondary: rgba(255, 255, 255, .75);
  --text-muted: rgba(255, 255, 255, .48);
  --border-subtle: rgba(255, 255, 255, .09);
  --border-hover: rgba(255, 255, 255, .18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
}

:root[data-theme="light"] {
  --bg-primary: #f0ebff;
  --bg-secondary: #faf7ff;
  --bg-tertiary: #ede0ff;
  --bg-card: rgba(255, 255, 255, .65);
  --bg-card-hover: rgba(255, 255, 255, .85);
  --accent-primary: #e91e63;
  --accent-primary-soft: #f06292;
  --accent-primary-glow: rgba(233, 30, 99, .25);
  --accent-secondary: #00bfa5;
  --accent-secondary-soft: #4dd0e1;
  --accent-secondary-glow: rgba(0, 191, 165, .22);
  --accent-gradient: linear-gradient(135deg, #e91e63 0%, #f06292 40%, #00bfa5 100%);
  --purple-accent: #7c3aed;
  --purple-glow: rgba(124, 58, 237, .22);
  --glass-bg: rgba(255, 255, 255, .6);
  --glass-border: rgba(255, 255, 255, .8);
  --text-primary: #1a0a3d;
  --text-secondary: rgba(26, 10, 61, .72);
  --text-muted: rgba(26, 10, 61, .48);
  --border-subtle: rgba(124, 58, 237, .1);
  --border-hover: rgba(124, 58, 237, .28);
  --nav-bg: rgba(240, 235, 255, .88);
}

body {
  transition: background-color .45s, color .45s;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: Manrope, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.reveal {
  opacity: 0;
  transition: opacity .7s, transform .7s;
  transform: translateY(30px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: .1s;
}

.reveal-delay-2 {
  transition-delay: .2s;
}

.reveal-delay-3 {
  transition-delay: .3s;
}

.bg-mesh {
  pointer-events: none;
  z-index: 0;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
}

.mesh-gradient {
  filter: blur(70px);
  opacity: 1;
  border-radius: 50%;
  position: absolute;
}

.mesh-1 {
  background: radial-gradient(circle, rgba(255, 45, 120, .28), rgba(0, 0, 0, 0) 70%);
  width: 700px;
  height: 700px;
  animation: 11s ease-in-out infinite meshFloat1;
  top: -200px;
  right: -150px;
}

.mesh-2 {
  background: radial-gradient(circle, rgba(0, 234, 208, .22), rgba(0, 0, 0, 0) 70%);
  width: 600px;
  height: 600px;
  animation: 14s ease-in-out infinite meshFloat2;
  bottom: -150px;
  left: -100px;
}

.mesh-3 {
  background: radial-gradient(circle, rgba(192, 132, 252, .18), rgba(0, 0, 0, 0) 70%);
  width: 500px;
  height: 500px;
  animation: 17s ease-in-out infinite meshFloat3;
  top: 35%;
  left: 35%;
}

:root[data-theme="light"] .mesh-1 {
  background: radial-gradient(circle, rgba(233, 30, 99, .35), rgba(0, 0, 0, 0) 70%);
}

:root[data-theme="light"] .mesh-2 {
  background: radial-gradient(circle, rgba(0, 191, 165, .3), rgba(0, 0, 0, 0) 70%);
}

:root[data-theme="light"] .mesh-3 {
  background: radial-gradient(circle, rgba(124, 58, 237, .22), rgba(0, 0, 0, 0) 70%);
}

@keyframes meshFloat1 {
  0%, 100% {
    transform: translate(0) scale(1);
  }

  50% {
    transform: translate(-90px, 60px) scale(1.1);
  }
}

@keyframes meshFloat2 {
  0%, 100% {
    transform: translate(0) scale(1);
  }

  50% {
    transform: translate(75px, -90px) scale(1.08);
  }
}

@keyframes meshFloat3 {
  0%, 100% {
    transform: translate(0) scale(1);
  }

  50% {
    transform: translate(-60px, 45px) scale(1.12);
  }
}

nav {
  z-index: 100;
  background: var(--nav-bg, rgba(8, 3, 18, .92));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
  gap: 24px;
  padding: 16px 40px;
  display: flex;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
}

.nav-logo {
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  display: flex;
}

.nav-logo-mark {
  background: var(--accent-gradient);
  color: #fff;
  border-radius: 13px;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  font-family: Space Grotesk, sans-serif;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  box-shadow: 0 0 24px rgba(124, 58, 237, .28);
}

.nav-logo-text {
  letter-spacing: .17em;
  background: var(--accent-gradient);
  color: rgba(0, 0, 0, 0);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: Space Grotesk, sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.nav-spacer {
  flex: 1;
}

.nav-country-links {
  align-items: center;
  gap: 12px;
  display: flex;
}

.nav-country-link {
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  white-space: nowrap;
  border-radius: 100px;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s;
  display: flex;
}

.nav-country-link:hover {
  border-color: var(--accent-primary);
  color: #fff;
  background: rgba(255, 45, 120, .08);
}

.nav-country-link.active {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
  background: var(--accent-secondary-glow);
}

#en-toggle {
  background: var(--purple-glow);
  color: var(--purple-accent);
  cursor: pointer;
  border: 1px solid rgba(167, 139, 250, .3);
  border-radius: 20px;
  padding: 6px 14px;
  font-family: Manrope, sans-serif;
  font-size: 13px;
  font-weight: 500;
  transition: all .2s;
}

#en-toggle:hover {
  background: rgba(167, 139, 250, .25);
}

#en-toggle.active {
  opacity: .5;
  cursor: default;
}

@media (max-width: 768px) {
  nav {
    gap: 10px;
    padding: 12px 20px;
  }

  .nav-country-link {
    padding: 6px 10px;
    font-size: 12px;
  }
}

.btn-gradient {
  background: var(--accent-gradient);
  color: #fff;
  letter-spacing: .01em;
  border: none;
  font-weight: 700;
}

.btn-gradient:hover {
  opacity: .88;
  transform: scale(1.02);
}

.nav-hamburger {
  z-index: 10000;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  color: var(--text-secondary);
  background: none;
  border-radius: 8px;
  padding: .5rem .65rem;
  font-size: 1.2rem;
  line-height: 1;
  display: none;
  position: relative;
}

.nav-mobile-menu {
  z-index: 9999;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  background: rgba(5, 2, 10, .97);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  width: 100%;
  height: 100%;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
}

.nav-mobile-menu.open {
  display: flex;
}

.nav-menu-close {
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border-radius: 8px;
  padding: .45rem .7rem;
  font-size: 1.35rem;
  line-height: 1;
  position: absolute;
  top: 14px;
  right: 16px;
}

.nav-menu-close:hover {
  color: #fff;
}

.mobile-nav-link {
  color: var(--text-secondary);
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
}

.mobile-nav-link:hover {
  color: #fff;
}

.mobile-nav-actions {
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  display: flex;
}

.nav-mobile-menu ul {
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-ghost {
    display: none;
  }

  .nav-hamburger {
    display: block;
  }
}

footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  z-index: 2;
  padding: 3rem 2rem 2rem;
  position: relative;
}

.footer-inner, .footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  text-align: center;
  letter-spacing: .08em;
  background: var(--accent-gradient);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: .75rem;
  font-family: Space Grotesk, sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
}

.footer-links {
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: flex;
}

.footer-links a {
  color: var(--text-muted);
  font-size: .88rem;
  text-decoration: none;
  transition: color .2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  text-align: center;
  color: var(--text-muted);
  font-size: .82rem;
}

.theme-toggle {
  z-index: 9999;
  cursor: pointer;
  background: var(--bg-secondary);
  width: 46px;
  height: 46px;
  color: var(--accent-primary);
  border: 1px solid var(--border-hover);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  line-height: 1;
  transition: transform .2s, box-shadow .2s, background .3s;
  display: flex;
  position: fixed;
  bottom: 18px;
  right: 18px;
  box-shadow: 0 6px 24px rgba(124, 58, 237, .28);
}

.theme-toggle:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 10px 30px rgba(124, 58, 237, .4);
}

.theme-toggle:active {
  transform: scale(.94);
}

::view-transition-old(root) {
  animation: none;
}

::view-transition-new(root) {
  animation: .62s cubic-bezier(.4, 0, .2, 1) theme-sweep;
}

@keyframes theme-sweep {
  from {
    clip-path: circle(0 at var(--theme-x, 50%) var(--theme-y, 50%));
  }

  to {
    clip-path: circle(var(--theme-r, 150%) at var(--theme-x, 50%) var(--theme-y, 50%));
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-new(root) {
    animation: none;
  }
}
