﻿:root {
  --color-gold: #D4AF37;
  --color-gold-hover: #F2D26D;
  --color-dark: #0A0A0A;
  --color-light: #F5F5F5;
  --color-gray: #888888;
  --border-gold: 1px solid rgba(212, 175, 55, 0.3);
  --font-logo: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(240, 198, 130, 0.85) rgba(14, 19, 31, 0.7);
  scrollbar-width: thin;
  scroll-snap-type: none;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-dark);
  color: var(--color-light);
  /* overflow: hidden; -- removed to allow scrolling */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  scroll-snap-type: none;
}

/* Custom scrollbar (desktop) */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(10, 14, 23, 0.85), rgba(18, 24, 38, 0.85));
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.45);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(246, 211, 149, 0.95), rgba(200, 154, 86, 0.95));
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(246, 211, 149, 0.35);
  border: 2px solid rgba(12, 16, 26, 0.9);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 226, 170, 0.98), rgba(216, 165, 94, 0.98));
  box-shadow: 0 0 14px rgba(255, 226, 170, 0.45);
}

body .header,
body .main-content,
body .content-wrapper {
  transition: opacity 0.95s ease, transform 0.95s ease, filter 0.95s ease;
}

body.is-loading .header,
body.is-loading .main-content,
body.is-loading .content-wrapper {
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  filter: blur(7px);
}

body.is-ready .header {
  animation: pageRevealHeader 0.85s ease forwards;
}

body.is-ready .main-content {
  animation: pageRevealMain 1.05s ease 0.08s forwards;
}

body.is-ready .content-wrapper {
  animation: pageRevealMain 1.05s ease 0.2s forwards;
}

/* Preloader */
.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(12, 16, 30, 0.96) 0%, rgba(5, 7, 14, 0.995) 100%);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.site-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
  padding: 1rem;
}

.preloader-logo {
  width: min(460px, 80vw);
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.8));
}

.preloader-text {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.35rem;
  font-size: 0.8rem;
}

.preloader-dots {
  display: inline-flex;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.preloader-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e4c36a, #9cc8ff);
  box-shadow: 0 0 12px rgba(158, 198, 255, 0.65);
  animation: preloaderDot 1s infinite ease-in-out;
}

.preloader-dots span:nth-child(2) { animation-delay: 0.18s; }
.preloader-dots span:nth-child(3) { animation-delay: 0.36s; }

/* Background */
.page-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url('assets/images/hero-bg.png') no-repeat center center / cover;
  z-index: -3;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  animation: drift 18s infinite alternate ease-in-out;
  will-change: transform;
}

.page-background::before,
.page-background::after {
  display: none;
}

.page-background::before {
  display: none;
}

.page-background::after {
  display: none;
}

.page-fog {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  opacity: 1;
}

.page-fog::before,
.page-fog::after {
  content: '';
  position: absolute;
  width: 175%;
  height: 150%;
  left: -38%;
  top: -20%;
  background-repeat: no-repeat;
  filter: blur(42px);
  opacity: 0.42;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
}

.page-fog::before {
  background-image:
    radial-gradient(22% 20% at 14% 28%, rgba(208, 232, 250, 0.42), rgba(208, 232, 250, 0)),
    radial-gradient(26% 22% at 42% 38%, rgba(192, 221, 245, 0.38), rgba(192, 221, 245, 0)),
    radial-gradient(30% 24% at 74% 34%, rgba(220, 239, 255, 0.4), rgba(220, 239, 255, 0)),
    radial-gradient(34% 26% at 52% 74%, rgba(186, 214, 238, 0.44), rgba(186, 214, 238, 0));
  animation: fogMoveA 28s ease-in-out infinite alternate;
}

.page-fog::after {
  background-image:
    radial-gradient(24% 22% at 10% 62%, rgba(196, 225, 249, 0.34), rgba(196, 225, 249, 0)),
    radial-gradient(28% 24% at 36% 76%, rgba(177, 208, 235, 0.4), rgba(177, 208, 235, 0)),
    radial-gradient(26% 22% at 66% 68%, rgba(210, 234, 252, 0.36), rgba(210, 234, 252, 0)),
    radial-gradient(24% 20% at 88% 76%, rgba(186, 218, 242, 0.34), rgba(186, 218, 242, 0));
  animation: fogMoveB 34s ease-in-out infinite alternate;
}

@keyframes drift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, -12px, 0); }
}

@keyframes fogMoveA {
  0% { transform: translate3d(-4%, -1%, 0) scale(1.03); opacity: 0.28; }
  50% { transform: translate3d(3%, 1.5%, 0) scale(1.06); opacity: 0.42; }
  100% { transform: translate3d(7%, -1%, 0) scale(1.02); opacity: 0.3; }
}

@keyframes fogMoveB {
  0% { transform: translate3d(5%, 0.8%, 0) scale(1.02); opacity: 0.24; }
  50% { transform: translate3d(-2%, -1.4%, 0) scale(1.05); opacity: 0.4; }
  100% { transform: translate3d(-6%, 1.2%, 0) scale(1.03); opacity: 0.26; }
}

.page-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: radial-gradient(circle at center, rgba(8, 12, 22, 0.24) 0%, rgba(8, 11, 18, 0.72) 100%);
  z-index: -1;
}

/* Header & Top Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  transform: none;
  width: 100%;
  padding: 0.95rem 2.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  z-index: 100;
  background:
    linear-gradient(180deg, rgba(9, 13, 21, 0.88), rgba(12, 16, 26, 0.76)),
    radial-gradient(circle at 50% -180%, rgba(138, 178, 231, 0.2), rgba(138, 178, 231, 0));
  border-bottom: 1px solid rgba(171, 197, 234, 0.24);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.nav-container {
  grid-column: 2;
  justify-self: center;
  width: max-content;
  max-width: 100%;
  display: flex;
  justify-content: center;
}

.mobile-menu-toggle {
  display: none;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 1.15rem;
  padding-left: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  text-decoration: none;
  color: rgba(234, 242, 255, 0.92);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.55px;
  font-weight: 600;
  transition: transform 0.22s ease, color 0.22s ease, text-shadow 0.22s ease;
  position: relative;
  padding: 0.25rem 0.05rem;
  border: none;
  background: transparent;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  line-height: 1;
  white-space: nowrap;
}

.nav-links a::before {
  content: '';
  position: absolute;
  inset: -6px -10px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 50%, rgba(244, 214, 155, 0.12), rgba(244, 214, 155, 0));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(249, 221, 164, 0.95), transparent);
  transition: width 0.28s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: #ffe3ad;
  transform: translateY(-1px);
  text-shadow: 0 0 10px rgba(249, 221, 164, 0.42), 0 1px 3px rgba(0, 0, 0, 0.45);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover::before {
  opacity: 1;
}

.nav-links a.active {
  transform: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  background: transparent !important;
  box-shadow: none !important;
}

.nav-links a.active::before {
  opacity: 0;
}

.header-right {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  gap: 0.55rem;
}

.btn-login {
  text-decoration: none;
  color: #241a0b;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  border: 1px solid rgba(244, 214, 155, 0.9);
  padding: 0.63rem 1.45rem;
  border-radius: 999px;
  transition: var(--transition-smooth);
  background: linear-gradient(135deg, #e8c479, #f2dcaf);
  white-space: nowrap;
  font-weight: 700;
  box-shadow:
    0 9px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
  position: relative;
  overflow: hidden;
}

.btn-login:hover {
  border-color: #f7e1b3;
  color: #120d05;
  background: linear-gradient(135deg, #f0cf87, #f8e8c5);
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.36),
    0 0 14px rgba(242, 217, 166, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.btn-login::after {
  content: '';
  position: absolute;
  inset: -40% 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.btn-login:hover::after {
  transform: translateX(120%);
}

/* Language selector */
.lang-selector {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.52rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 214, 155, 0.75);
  background:
    linear-gradient(135deg, rgba(22, 30, 48, 0.9), rgba(12, 18, 30, 0.9));
  color: #f7ecd3;
  font-size: 0.66rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.lang-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 214, 140, 0.85);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.36),
    0 0 12px rgba(255, 214, 140, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: rgba(10, 14, 23, 0.96);
  border: 1px solid rgba(174, 197, 229, 0.3);
  border-radius: 14px;
  padding: 0.5rem;
  display: none;
  z-index: 50;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(200, 168, 110, 0.18);
}

.lang-selector.open .lang-menu {
  display: grid;
  gap: 0.25rem;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  color: #e9f1ff;
  text-decoration: none;
  font-size: 0.7rem;
  background: rgba(18, 25, 40, 0.55);
  border: 1px solid rgba(174, 197, 229, 0.2);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  cursor: pointer;
}

.lang-item:hover {
  background: rgba(255, 214, 140, 0.12);
  border-color: rgba(255, 214, 140, 0.38);
  color: #ffe6b8;
  transform: translateX(2px);
}

.flag {
  display: inline-block;
  width: 18px;
  height: 12px;
  border-radius: 3px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.35);
  font-size: 12px;
  line-height: 12px;
}

.flag-ru {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #ffffff 33.33%,
    #2b6cff 33.33%,
    #2b6cff 66.66%,
    #e03b3b 66.66%,
    #e03b3b 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.flag-ua {
  background: linear-gradient(
    180deg,
    #1e67ff 0%,
    #1e67ff 50%,
    #ffd24a 50%,
    #ffd24a 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.flag-en {
  background:
    repeating-linear-gradient(
      180deg,
      #b22234 0%,
      #b22234 7.69%,
      #ffffff 7.69%,
      #ffffff 15.38%
    ),
    linear-gradient(180deg, #3c3b6e 0%, #3c3b6e 54%, transparent 54%);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

/* Main Content Area */
.main-content {
  position: relative;
  width: 100vw;
  min-height: 100dvh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

/* Hero Section */
.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 980px;
  transform: translateY(-3%);
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

.hero-logo {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 10px 28px rgba(0, 0, 0, 0.74))
    drop-shadow(0 0 20px rgba(185, 215, 255, 0.22));
  transform-origin: 50% 58%;
  animation:
    fadeInDown 0.9s cubic-bezier(0.25, 1, 0.5, 1) forwards,
    logoImagePulse 4.8s ease-in-out 0.9s infinite,
    logoImageTilt 6.4s ease-in-out 0.9s infinite;
}

.hero-logo-wrap {
  position: relative;
  display: block;
  width: min(500px, 80vw);
  margin: 0 auto 1.35rem;
  overflow: visible;
  border-radius: 0;
}

.hero-logo-wrap::after {
  display: none !important;
}

.hero-logo-wrap::before {
  display: none !important;
}

.hero-text {
  margin-bottom: 3rem;
  animation: fadeIn 2s 0.5s ease forwards;
  opacity: 0;
}

.hero-title {
  font-family: var(--font-logo);
  font-size: 3rem;
  color: #FFF;
  text-transform: uppercase;
  letter-spacing: 6px;
  text-shadow: 0 4px 15px rgba(0,0,0,1);
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-gold);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-cta {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 1.5s 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  opacity: 0;
}

/* Buttons */
.btn-primary, .btn-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 3.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-decoration: none;
  overflow: hidden;
  transition: var(--transition-fast);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #c79a22, #dfbb5b);
  color: #000;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
  border: none;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  transition: 0.5s;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.045);
  box-shadow: 0 6px 30px rgba(212, 175, 55, 0.6);
}

.btn-primary:hover::after {
  left: 150%;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: -60% -30%;
  background: radial-gradient(circle at 30% 50%, rgba(255, 236, 191, 0.5), rgba(255, 236, 191, 0));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: rgba(10, 10, 10, 0.4);
  color: #FFF;
  border: 1px solid var(--color-gold);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.1);
  box-shadow: inset 0 0 15px rgba(212, 175, 55, 0.2), 0 10px 20px rgba(0, 0, 0, 0.26);
  transform: translateY(-2px);
}

.btn-secondary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0), rgba(210, 230, 255, 0.2), rgba(255, 255, 255, 0));
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}

.btn-secondary:hover::after {
  transform: translateX(120%);
}

/* Status Bar */
.status-bar {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(820px, calc(100% - 30px));
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  padding: 8px 16px;
  background:
    linear-gradient(180deg, rgba(12, 16, 26, 0.54), rgba(8, 12, 19, 0.54)),
    radial-gradient(circle at 50% -100%, rgba(213, 174, 96, 0.16), rgba(213, 174, 96, 0));
  border: 1px solid rgba(199, 167, 111, 0.42);
  border-radius: 16px;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 241, 208, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  overflow: hidden;
  animation: fadeIn 1.7s 1s ease forwards;
  opacity: 0;
}

.status-bar::before {
  content: '';
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(234, 205, 148, 0.15);
  border-radius: 13px;
  pointer-events: none;
}

.status-item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 7px 10px;
  border: none;
  background: transparent;
  box-shadow: none;
  z-index: 1;
}

.status-item + .status-item {
  border-left: 1px solid rgba(212, 179, 121, 0.34);
}

.status-label {
  font-size: 0.57rem;
  color: #d3b27c;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  margin-bottom: 0.18rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.48);
}

.status-value {
  font-family: var(--font-logo);
  font-size: 1.05rem;
  color: #f9de9d;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  white-space: nowrap;
  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.55);
}

.status-value span.text {
  color: #f6f8fc;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.status-divider {
  display: none;
}

.pulse-green {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes preloaderDot {
  0%, 80%, 100% { transform: translateY(0) scale(1); opacity: 0.65; }
  40% { transform: translateY(-8px) scale(1.06); opacity: 1; }
}

@keyframes preloaderFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pageRevealHeader {
  from { opacity: 0; transform: translateY(-18px); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes pageRevealMain {
  from { opacity: 0; transform: translateY(22px) scale(0.99); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* Responsive */
@media (max-width: 900px) {
  html, body {
    scroll-snap-type: none;
  }
  .header {
    top: 0;
    left: 0;
    width: 100%;
    border-radius: 0;
    padding: 0.48rem 0.55rem;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 0.44rem;
  }
  .nav-container {
    width: 100%;
    position: relative;
    display: block;
  }
  .mobile-menu-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.66rem;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: #f1f5ff;
    background: linear-gradient(180deg, rgba(18, 25, 40, 0.86), rgba(14, 19, 31, 0.86));
    border: 1px solid rgba(181, 206, 238, 0.3);
    border-radius: 10px;
    padding: 0.56rem 0.62rem;
    cursor: pointer;
  }
  .mobile-menu-toggle::after {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 2px solid rgba(239, 214, 166, 0.92);
    border-bottom: 2px solid rgba(239, 214, 166, 0.92);
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.2s ease;
  }
  .header.menu-open .mobile-menu-toggle::after {
    transform: rotate(-135deg) translateY(-1px);
  }
  .nav-links {
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    right: 0;
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.45rem;
    border-radius: 12px;
    border: 1px solid rgba(174, 197, 229, 0.3);
    background: linear-gradient(180deg, rgba(11, 17, 29, 0.94), rgba(8, 13, 22, 0.94));
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
    z-index: 9;
    overflow: visible;
  }
  .header.menu-open .nav-links {
    display: flex;
  }
  .nav-links a {
    font-size: 0.6rem;
    letter-spacing: 0.9px;
    padding: 0.52rem 0.35rem;
    text-align: center;
    border: 1px solid rgba(174, 197, 229, 0.24);
    border-radius: 10px;
    background: rgba(15, 21, 33, 0.58);
    transform: none;
  }
  .nav-links a::after {
    display: none;
  }
  .header-right {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .btn-login {
    width: 100%;
    max-width: none;
    text-align: center;
    font-size: 0.62rem;
    letter-spacing: 1px;
    padding: 0.52rem 0.7rem;
  }
  .main-content {
    min-height: auto;
    height: auto;
    padding-top: 186px;
    padding-bottom: 20px;
  }
  .hero {
    transform: none;
    padding: 1rem 12px 0;
  }
  .hero-logo {
    width: min(82vw, 420px);
    margin-bottom: 0.95rem;
  }
  .hero-title {
    font-size: 1.62rem;
    letter-spacing: 2.6px;
  }
  .hero-subtitle {
    font-size: 0.74rem;
    letter-spacing: 2px;
  }
  .hero-text {
    margin-bottom: 1.15rem;
  }
  .hero-cta {
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
    max-width: 340px;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    padding: 0.92rem 1.2rem;
    font-size: 0.75rem;
    letter-spacing: 1.2px;
  }
  .status-bar {
    position: relative;
    left: auto;
    transform: none;
    bottom: auto;
    width: calc(100% - 16px);
    max-width: 440px;
    flex-direction: column;
    gap: 4px;
    padding: 7px 8px;
    margin: 0.95rem auto 0;
    border-radius: 14px;
  }
  .status-item {
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 8px 4px;
  }
  .status-item + .status-item {
    border-left: none;
    border-top: 1px solid rgba(162, 196, 236, 0.24);
    padding-top: 7px;
  }
  .status-label {
    font-size: 0.54rem;
    margin-bottom: 0.2rem;
  }
  .status-value {
    font-size: 0.9rem;
  }
  .status-value span.text {
    font-size: 0.78rem;
  }
  .status-divider { display: none; }
  .info-section {
    padding: 3.4rem 7%;
  }
  .section-title {
    font-size: 1.72rem;
    letter-spacing: 2px;
  }
  .section-content {
    font-size: 0.98rem;
  }
  .download-card {
    min-width: 0;
    width: 100%;
    padding: 1.8rem 1.2rem;
  }
  .stats-preview {
    gap: 1.1rem;
  }
  .stat-box {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .mobile-menu-toggle {
    font-size: 0.61rem;
    padding: 0.5rem 0.56rem;
  }
  .nav-links a {
    font-size: 0.56rem;
    padding: 0.46rem 0.26rem;
  }
  .btn-login {
    font-size: 0.58rem;
  }
  .main-content {
    padding-top: 222px;
  }
  .hero-title {
    font-size: 1.34rem;
    letter-spacing: 1.8px;
  }
  .hero-subtitle {
    font-size: 0.66rem;
    letter-spacing: 1.4px;
  }
  .hero-logo {
    width: min(84vw, 360px);
  }
  .section-title {
    font-size: 1.5rem;
  }
}

/* Scrollable Content Sections */
.content-wrapper {
  background: transparent;
  position: relative;
  z-index: 15;
  padding-top: 0;
}

.info-section {
  padding: 6rem 10%;
  border-bottom: 1px solid rgba(255,255,255,0.025);
  background: transparent;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

.section-container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-logo);
  color: var(--color-gold);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-align: center;
}

.section-content {
  color: var(--color-light);
  line-height: 1.8;
  font-size: 1.1rem;
}

.section-content p {
  margin-bottom: 1.5rem;
  text-align: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  text-align: left;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-block {
    padding: 0.95rem 1rem;
    display: block !important;
    grid-template-columns: 1fr !important;
  }
  .about-block p {
    font-size: 0.88rem;
  }
  .about-block li {
    font-size: 0.86rem;
  }
  .about-block > *:not(h3) {
    grid-column: auto !important;
  }
  .about-block h3 {
    margin-bottom: 0.55rem;
  }
  .about-cols {
    grid-template-columns: 1fr !important;
    gap: 0.6rem !important;
  }
}

.about-block {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 0.95rem 1.15rem;
  box-shadow:
    0 10px 24px rgba(0,0,0,0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  display: grid;
  grid-template-columns: 220px 1fr;
  column-gap: 1.05rem;
  align-items: start;
  position: relative;
  overflow: hidden;
  animation: aboutBreath 6.2s ease-in-out infinite;
}

.about-block h3 {
  font-family: var(--font-logo);
  color: var(--color-gold);
  font-size: 0.98rem;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 0.35rem;
}

.about-block h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 54px;
  height: 2px;
  background: linear-gradient(90deg, rgba(242, 210, 109, 0.9), rgba(242, 210, 109, 0));
}

/* removed glow patch to avoid light squares */

.about-block > *:not(h3) {
  grid-column: 2;
}

.about-block p {
  color: var(--color-light);
  line-height: 1.35;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

/* subtle block animation */
.about-block {
  transition: transform 0.25s ease;
  will-change: transform;
}

.about-block:hover {
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow:
    0 10px 24px rgba(0,0,0,0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

@keyframes aboutBreath {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.about-block ul,
.about-block ol {
  padding-left: 0.95rem;
  margin-bottom: 0.45rem;
}

.about-block li {
  margin-bottom: 0.22rem;
  font-size: 0.88rem;
}

.about-lead {
  font-size: 0.9rem;
  color: #e8dcc7;
}

.about-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.7rem;
}

/* News Section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.news-card {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 16px;
  transition: var(--transition-fast);
  position: relative;
  overflow: visible;
}

.news-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  background: rgba(15, 15, 15, 0.8);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.news-card:hover::before {
  transform: scaleX(1);
}

.news-date {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--color-gold);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.news-card h3 {
  font-family: var(--font-logo);
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.news-card p {
  font-size: 0.9rem;
  color: var(--color-gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.news-link {
  color: var(--color-gold);
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 1px;
  display: inline-block;
  transition: var(--transition-fast);
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.news-link:hover {
  color: #fff;
}

/* Features List */
.features-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.features-list li {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  border-left: 3px solid var(--color-gold);
  border-radius: 14px;
}

/* Download Cards */
.download-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.download-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 3rem 2rem;
  text-align: center;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 18px;
  flex: 1;
  min-width: 300px;
  transition: var(--transition-fast);
}

.download-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-gold);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.download-card h3 {
  font-family: var(--font-logo);
  color: var(--color-gold);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.download-card p {
  font-size: 0.9rem;
  color: var(--color-gray);
  margin-bottom: 2rem;
}

/* Stats Preview */
.stats-preview {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.stat-box {
  background: rgba(0,0,0,0.4);
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.1);
  min-width: 250px;
  border-radius: 18px;
}

.stat-box h4 {
  color: var(--color-gold);
  margin-bottom: 1rem;
  font-family: var(--font-logo);
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.5rem;
}

.stat-box span {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(255,255,255,0.05);
  font-size: 0.95rem;
}

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rank-list li {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
}

.rank-pos {
  color: var(--color-gold);
  font-weight: 700;
}

.rank-name {
  color: #e9e9e9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-val {
  color: #fff;
  font-weight: 700;
}

.rank-empty {
  color: var(--color-gray);
}

/* Footer */
.footer {
  text-align: center;
  padding: 3rem;
  background: rgba(5, 5, 5, 0.75);
  color: var(--color-gray);
  font-size: 0.85rem;
}

/* Final Responsive Overrides */
@media (max-width: 900px) {
  .content-wrapper {
    padding-top: 0;
  }
  .info-section {
    padding: 3.4rem 7%;
  }
  .section-title {
    font-size: 1.72rem;
    letter-spacing: 2px;
  }
  .section-content {
    font-size: 0.98rem;
  }
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .news-card {
    padding: 1.3rem;
  }
  .features-list {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .download-cards {
    gap: 1rem;
  }
  .download-card {
    min-width: 0;
    width: 100%;
    padding: 1.8rem 1.2rem;
  }
  .stats-preview {
    gap: 1.1rem;
  }
  .stat-box {
    width: 100%;
    min-width: 0;
  }
  .footer {
    padding: 1.8rem 1rem;
  }
}

@media (max-width: 560px) {
  .info-section {
    padding: 3rem 5.5%;
  }
  .section-title {
    font-size: 1.46rem;
  }
  .section-content {
    font-size: 0.92rem;
  }
}

@keyframes logoLocalGlint {
  0%, 72%, 100% {
    left: -38%;
    opacity: 0;
  }
  78% {
    opacity: 0.52;
  }
  92% {
    left: 112%;
    opacity: 0.52;
  }
  100% {
    left: 112%;
    opacity: 0;
  }
}

@keyframes logoSoftPulse {
  0%, 100% {
    opacity: 0.42;
  }
  50% {
    opacity: 0.62;
  }
}

@keyframes logoImagePulse {
  0%, 100% {
    filter:
      drop-shadow(0 10px 28px rgba(0, 0, 0, 0.74))
      drop-shadow(0 0 14px rgba(185, 215, 255, 0.14));
  }
  50% {
    filter:
      drop-shadow(0 14px 34px rgba(0, 0, 0, 0.82))
      drop-shadow(0 0 34px rgba(227, 192, 122, 0.48))
      brightness(1.12);
  }
}

@keyframes logoImageTilt {
  0%, 100% {
    transform: perspective(900px) rotateY(0deg) rotateX(0deg) scale(1);
  }
  25% {
    transform: perspective(900px) rotateY(2.2deg) rotateX(0.9deg) scale(1.025);
  }
  75% {
    transform: perspective(900px) rotateY(-2.2deg) rotateX(-0.9deg) scale(1.025);
  }
}

/* Final Mobile+Logo Overrides */
@media (max-width: 900px) {
  .header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.42rem 0.5rem;
    padding: 0.5rem 0.56rem;
  }
  .nav-container {
    grid-column: 1;
    justify-self: start;
    width: auto;
    max-width: none;
    position: relative;
  }
  .header-right {
    grid-column: 2;
    justify-self: end;
    width: auto;
    display: flex;
    justify-content: flex-end;
  }
  .mobile-menu-toggle {
    width: auto;
    min-width: 104px;
    border-radius: 11px;
    padding: 0.52rem 0.72rem;
    font-size: 0.65rem;
    line-height: 1;
  }
  .nav-links {
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    width: min(340px, calc(100vw - 20px));
    border-radius: 14px;
    padding: 0.46rem;
    gap: 0.33rem;
    z-index: 30;
  }
  .header.menu-open .nav-links {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: 0.35rem;
  }
  .nav-links a {
    border-radius: 11px;
  }
  .nav-links a.active {
    background: rgba(15, 21, 33, 0.58) !important;
    border-color: rgba(174, 197, 229, 0.24) !important;
  }
  .main-content {
    padding-top: 154px;
    padding-bottom: 24px;
  }
  .header.menu-open ~ .main-content {
    padding-top: 232px;
  }
  .hero {
    width: 100%;
    max-width: 100%;
    padding: 0.65rem 12px 0;
  }
  .hero-logo-wrap {
    width: min(88vw, 420px);
    margin: 0 auto 0.9rem;
    border-radius: 0;
  }
  .hero-logo-wrap::after {
    display: none !important;
  }
  .hero-logo-wrap::before {
    display: none !important;
  }
  .hero-logo {
    width: 100%;
    margin-bottom: 0;
  }
  .hero-text {
    margin-bottom: 0.95rem;
  }
  .hero-title {
    font-size: 1.52rem;
    letter-spacing: 2px;
  }
  .hero-subtitle {
    font-size: 0.7rem;
    letter-spacing: 1.6px;
  }
  .hero-cta {
    width: 100%;
    max-width: 360px;
    gap: 0.55rem;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 0.7rem;
    letter-spacing: 0.8px;
    white-space: normal;
    text-align: center;
    line-height: 1.15;
  }
  .btn-login {
    width: auto;
    min-width: 122px;
    max-width: none;
    padding: 0.54rem 0.74rem;
    font-size: 0.62rem;
    line-height: 1;
  }
}

@media (max-width: 560px) {
  html, body {
    scroll-snap-type: none;
  }
  .header {
    padding: 0.52rem 0.5rem;
  }
  .mobile-menu-toggle {
    min-width: 96px;
    font-size: 0.6rem;
    padding: 0.5rem 0.62rem;
  }
  .btn-login {
    min-width: 114px;
    font-size: 0.56rem;
    padding: 0.52rem 0.62rem;
  }
  .main-content {
    padding-top: 150px;
  }
  .header.menu-open ~ .main-content {
    padding-top: 248px;
  }
  .hero-logo-wrap {
    width: min(90vw, 360px);
    border-radius: 0;
  }
  .hero-title {
    font-size: 1.3rem;
    letter-spacing: 1.4px;
  }
  .hero-subtitle {
    font-size: 0.63rem;
    letter-spacing: 1.1px;
  }
  .btn-primary, .btn-secondary {
    font-size: 0.58rem;
    letter-spacing: 0.3px;
    padding: 0.72rem 0.65rem;
    white-space: normal;
    line-height: 1.2;
  }

  .download-card .btn-primary,
  .download-card .btn-secondary {
    min-height: 42px;
  }
}


/* Top menu: no forced yellow active item */
.nav-links a:hover {
  color: #ffe3ad;
  transform: none !important;
  text-shadow: 0 0 8px rgba(249, 221, 164, 0.28), 0 1px 3px rgba(0, 0, 0, 0.45);
}

.nav-links a.active,
.nav-links a.active:hover,
.nav-links a.active:focus {
  color: rgba(234, 242, 255, 0.92) !important;
  transform: none !important;
  background: transparent !important;
  box-shadow: none !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45) !important;
}

.nav-links a.active::after,
.nav-links a.active:hover::after {
  width: 0 !important;
}

.nav-links a.active::before,
.nav-links a.active:hover::before {
  opacity: 0 !important;
}

/* Logo animation: clean image motion, no external glow */
.hero-logo {
  animation:
    fadeInDown 0.85s cubic-bezier(0.25, 1, 0.5, 1) forwards,
    logoDriftClean 5.8s ease-in-out 0.9s infinite !important;
  filter:
    drop-shadow(0 10px 24px rgba(0, 0, 0, 0.72)) !important;
}

@keyframes logoDriftClean {
  0%, 100% {
    transform: translateY(0) scale(1) rotate(0deg);
    filter:
      drop-shadow(0 10px 24px rgba(0, 0, 0, 0.72))
      contrast(1)
      saturate(1);
  }
  35% {
    transform: translateY(-3px) scale(1.015) rotate(0.35deg);
    filter:
      drop-shadow(0 12px 26px rgba(0, 0, 0, 0.74))
      contrast(1.06)
      saturate(1.06);
  }
  70% {
    transform: translateY(2px) scale(0.995) rotate(-0.35deg);
    filter:
      drop-shadow(0 10px 22px rgba(0, 0, 0, 0.7))
      contrast(1.02)
      saturate(1.03);
  }
}

/* Mobile header/menu stability */
@media (max-width: 900px) {
  .header {
    overflow: visible !important;
  }

  .nav-container {
    position: relative !important;
    z-index: 40;
  }

  .header .nav-links {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: auto !important;
    width: min(270px, calc(100vw - 20px)) !important;
    max-height: min(58vh, 360px);
    overflow-y: auto;
    display: none !important;
    gap: 0.34rem !important;
    padding: 0.5rem !important;
    border-radius: 13px !important;
    border: 1px solid rgba(174, 197, 229, 0.28) !important;
    background: linear-gradient(180deg, rgba(11, 17, 29, 0.96), rgba(8, 13, 22, 0.96)) !important;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.46) !important;
  }

  .header.menu-open .nav-links {
    display: flex !important;
    flex-direction: column !important;
    margin-top: 0 !important;
  }

  .header .nav-links a {
    padding: 0.58rem 0.44rem !important;
    line-height: 1.1 !important;
    font-size: 0.62rem !important;
    letter-spacing: 1px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(174, 197, 229, 0.24) !important;
    background: rgba(15, 21, 33, 0.58) !important;
  }

  .header.menu-open ~ .main-content {
    padding-top: 154px !important;
  }
}

@media (max-width: 560px) {
  .header .nav-links {
    width: min(250px, calc(100vw - 16px)) !important;
  }

  .header.menu-open ~ .main-content {
    padding-top: 150px !important;
  }
}


/* PC top menu hover: calm, no jump */
.nav-links a,
.nav-links a:hover,
.nav-links a:focus,
.nav-links a:active {
  transform: none !important;
}

.nav-links a {
  transition: color 0.18s ease, text-shadow 0.18s ease, opacity 0.18s ease !important;
}

.nav-links a::before {
  display: none !important;
}

.nav-links a::after {
  height: 1px !important;
  bottom: -4px !important;
  background: linear-gradient(90deg, transparent, rgba(249, 221, 164, 0.85), transparent) !important;
}

.nav-links a:hover,
.nav-links a:focus {
  color: #f7ddb0 !important;
  text-shadow: 0 0 6px rgba(249, 221, 164, 0.22), 0 1px 2px rgba(0, 0, 0, 0.45) !important;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  width: 100% !important;
}

/* Keep active item neutral */
.nav-links a.active,
.nav-links a.active:hover,
.nav-links a.active:focus {
  color: rgba(234, 242, 255, 0.92) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45) !important;
}

.nav-links a.active::after,
.nav-links a.active:hover::after,
.nav-links a.active:focus::after {
  width: 0 !important;
}

/* Mobile: items must not overlap */
@media (max-width: 900px) {
  .header .nav-links {
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    row-gap: 6px !important;
    column-gap: 0 !important;
    white-space: normal !important;
  }

  .header.menu-open .nav-links {
    display: flex !important;
  }

  .header .nav-links li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .header .nav-links li + li {
    margin-top: 0 !important;
  }

  .header .nav-links a {
    display: block !important;
    width: 100% !important;
    min-height: 36px !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 560px) {
  .header .nav-links a {
    min-height: 34px !important;
    font-size: 0.61rem !important;
    letter-spacing: 0.9px !important;
    padding: 0.56rem 0.42rem !important;
  }
}


/* Prevent accidental drag/select in top interface block */
.header,
.header * {
  -webkit-user-select: none;
  user-select: none;
}

.header a,
.mobile-menu-toggle {
  -webkit-user-drag: none;
  user-drag: none;
}

/* Desktop-only active nav animation (without yellow block) */
@media (min-width: 901px) {
  .nav-links a.active {
    color: #f6ddb1 !important;
    animation: navActivePulse 2.2s ease-in-out infinite;
  }

  .nav-links a.active::after {
    width: 72% !important;
    opacity: 0.9;
    animation: navActiveLine 2.2s ease-in-out infinite;
  }
}

@keyframes navActivePulse {
  0%, 100% {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 0 4px rgba(246, 221, 177, 0.18);
  }
  50% {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 0 9px rgba(246, 221, 177, 0.34);
  }
}

@keyframes navActiveLine {
  0%, 100% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.95;
  }
}

@media (min-width: 901px) {
  .nav-links a.active,
  .nav-links a.active:hover,
  .nav-links a.active:focus {
    color: rgba(234, 242, 255, 0.92) !important;
    animation: none !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45) !important;
  }

  .nav-links a.active::after,
  .nav-links a.active:hover::after,
  .nav-links a.active:focus::after {
    width: 0 !important;
    opacity: 0 !important;
    animation: none !important;
  }

  .nav-links a {
    overflow: hidden;
  }

  .nav-links a:hover,
  .nav-links a:focus {
    color: #ffe6b8 !important;
    text-shadow:
      0 0 10px rgba(248, 218, 160, 0.34),
      0 1px 2px rgba(0, 0, 0, 0.45) !important;
    animation: none !important;
    background: linear-gradient(180deg, rgba(255, 214, 140, 0.16), rgba(255, 214, 140, 0.06)) !important;
    box-shadow: 0 0 14px rgba(255, 214, 140, 0.22), inset 0 0 12px rgba(255, 214, 140, 0.08);
    border-radius: 999px;
  }

  .nav-links a:hover::after,
  .nav-links a:focus::after {
    width: 100% !important;
    opacity: 1 !important;
    height: 2px !important;
  }
}

/* smooth hover transitions (no snap-in) */
.nav-links a,
.nav-links a::after {
  transition:
    color 0.22s ease,
    text-shadow 0.22s ease,
    opacity 0.22s ease,
    width 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
  will-change: color, text-shadow, opacity, width, box-shadow, background;
}

/* Logo hover animation in CTA style (sheen sweep on image) */
.hero-logo-wrap {
  position: relative;
}

.hero-logo-wrap::after {
  display: block !important;
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -46%;
  width: 42%;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 233, 186, 0.26) 52%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  opacity: 0;
  transform: skewX(-16deg);
}

.hero-logo-wrap:hover::after {
  opacity: 1;
  animation: logoCtaSweep 0.85s ease forwards;
}

.hero-logo-wrap:hover .hero-logo {
  filter:
    drop-shadow(0 12px 28px rgba(0, 0, 0, 0.74))
    brightness(1.06)
    contrast(1.05) !important;
  transform: translateY(-1px) scale(1.012) !important;
  transition: filter 0.24s ease, transform 0.24s ease;
}

@keyframes logoCtaSweep {
  0% {
    left: -46%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    left: 112%;
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .hero-logo-wrap::after {
    display: none !important;
  }
}

@media (min-width: 901px) {
  .nav-links a.active {
    color: #e9f1ff !important;
    animation: navActiveSoft 1.9s ease-in-out infinite !important;
  }

  .nav-links a.active::after {
    width: 78% !important;
    opacity: 0.9 !important;
    background: linear-gradient(90deg, transparent, rgba(178, 211, 255, 0.95), transparent) !important;
    animation: navActiveSoftLine 1.9s ease-in-out infinite !important;
  }

  /* Active item must also animate on hover like others */
  .nav-links a.active:hover,
  .nav-links a.active:focus {
    color: #ffe6b8 !important;
    animation: navHoverPulse 0.52s ease-out 1 !important;
    text-shadow:
      0 0 10px rgba(248, 218, 160, 0.34),
      0 1px 2px rgba(0, 0, 0, 0.45) !important;
    background: linear-gradient(180deg, rgba(255, 214, 140, 0.16), rgba(255, 214, 140, 0.06)) !important;
    box-shadow: 0 0 14px rgba(255, 214, 140, 0.22), inset 0 0 12px rgba(255, 214, 140, 0.08);
    border-radius: 999px;
  }

  .nav-links a.active:hover::after,
  .nav-links a.active:focus::after {
    width: 100% !important;
    opacity: 1 !important;
    height: 2px !important;
    animation: none !important;
  }
}

@keyframes navActiveSoft {
  0%, 100% {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 0 5px rgba(174, 205, 248, 0.18);
  }
  50% {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 0 10px rgba(174, 205, 248, 0.38);
  }
}

@keyframes navActiveSoftLine {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Replace mask sheen: hover animation only on logo image */
.hero-logo-wrap::after {
  display: none !important;
}

.hero-logo-wrap::before {
  display: none !important;
}

.hero-logo {
  transition: filter 0.26s ease, transform 0.26s ease;
}

.hero-logo-wrap:hover .hero-logo,
.hero-logo-wrap:focus-within .hero-logo {
  transform: translateY(-1px) scale(1.018) !important;
  filter:
    drop-shadow(0 12px 30px rgba(0, 0, 0, 0.74))
    brightness(1.08)
    saturate(1.08)
    contrast(1.06) !important;
}

@media (max-width: 900px) {
  .hero-logo-wrap::before {
    display: none !important;
  }
}

@media (min-width: 901px) {
  .nav-links a.active:hover,
  .nav-links a.active:focus {
    color: #ffe6b8 !important;
    text-shadow:
      0 0 10px rgba(248, 218, 160, 0.34),
      0 1px 2px rgba(0, 0, 0, 0.45) !important;
    animation: navHoverPulse 0.52s ease-out 1 !important;
  }
}

.hero-logo-wrap:hover .hero-logo,
.hero-logo-wrap:focus-within .hero-logo,
.hero-logo:hover,
.hero-logo:focus {
  transform: none !important;
  filter:
    drop-shadow(0 10px 24px rgba(0, 0, 0, 0.72))
    brightness(1.06)
    contrast(1.05) !important;
  animation-play-state: running !important;
}

.hero-logo {
  transform: none !important;
  filter:
    drop-shadow(0 10px 24px rgba(0, 0, 0, 0.72))
    brightness(1.06)
    contrast(1.05) !important;
  animation: fadeInDown 0.85s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
}

/* Mobile layout hard reset (prevents overlaps) */
@media (max-width: 900px) {
  .header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0.6rem 0.7rem !important;
    z-index: 999;
  }

  .nav-container {
    display: grid !important;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
  }

  .mobile-menu-toggle {
    justify-self: start;
    width: auto !important;
    min-width: 104px !important;
  }

  .header-right {
    justify-self: end;
    width: auto !important;
    gap: 0.5rem;
  }

  .header .nav-links {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: calc(100% - 16px) !important;
    max-width: 420px !important;
    margin: 8px auto 0 !important;
    padding: 10px !important;
    display: none !important;
    flex-direction: column !important;
    gap: 6px !important;
    background: rgba(10, 14, 22, 0.94) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 28px rgba(0,0,0,0.45) !important;
    z-index: 1000;
  }

  .header.menu-open .nav-links {
    display: flex !important;
  }

  .header .nav-links li {
    width: 100% !important;
  }

  .header .nav-links a {
    width: 100% !important;
    text-align: center !important;
    padding: 0.62rem 0.6rem !important;
    font-size: 0.72rem !important;
    line-height: 1.15 !important;
  }

  .header.menu-open ~ .main-content {
    padding-top: 260px !important;
  }
}

@media (max-width: 560px) {
  .mobile-menu-toggle {
    min-width: 94px !important;
    font-size: 0.6rem !important;
  }

  .header .nav-links {
    width: calc(100% - 12px) !important;
    max-width: 360px !important;
  }

  .header .nav-links a {
    font-size: 0.64rem !important;
    padding: 0.58rem 0.5rem !important;
  }

  .header.menu-open ~ .main-content {
    padding-top: 240px !important;
  }
}

/* Final hard override for About blocks on mobile/tablet */
@media (max-width: 1200px) {
  .about-grid {
    grid-template-columns: 1fr !important;
  }

  .about-block {
    display: block !important;
    grid-template-columns: 1fr !important;
    column-gap: 0 !important;
    overflow: visible !important;
  }

  .about-block > *:not(h3) {
    grid-column: auto !important;
  }

  .about-block h3,
  .about-block p,
  .about-block ul,
  .about-block ol,
  .about-block li {
    max-width: 100% !important;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}


