:root {
  --bg: #010204;
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.45);
  --accent-cyan: #00f0ff;
  --accent-blue: #0080ff;
  --accent-red: #ff3344;
  --accent-gold: #ffd700;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.12);
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html,
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  overflow-x: hidden;
  line-height: 1.5;
}

/* --- Utility Classes (Replacing Inline Styles) --- */
.text-cyan {
  color: var(--accent-cyan);
}

.text-red {
  color: var(--accent-red);
}

.text-gold {
  color: var(--accent-gold);
}

.status-badge {
  color: var(--accent-cyan);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-title-part {
  color: var(--accent-cyan);
}

.stage-header {
  margin: 24px 0 32px;
}

.centered-stage {
  text-align: center;
}

.footer-contact {
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}

.legal-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
}

.legal-links a:hover {
  color: #fff;
}

.footer-links-group {
  display: flex;
  gap: 80px;
}

@media (max-width: 768px) {
  .footer-links-group {
    flex-wrap: wrap;
    gap: 40px;
  }
}

/* --- Crystal Environment --- */
.ambient-scene {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}

.mesh-gradient {
  position: absolute;
  width: 150vw;
  height: 150vh;
  top: -25%;
  left: -25%;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 240, 255, 0.08), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 128, 255, 0.09), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.04), transparent 60%),
    radial-gradient(circle at 40% 60%, rgba(255, 51, 68, 0.05), transparent 45%);
  filter: blur(140px);
  will-change: transform;
}

.glow-follower {
  position: fixed;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
  filter: blur(60px);
  will-change: transform;
}

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, rgba(1, 2, 4, 0.94), transparent);
  backdrop-filter: blur(25px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  font-weight: 900;
  letter-spacing: 0.15em;
  font-size: 20px;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  align-items: center;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #fff;
}

/* --- Language Switcher --- */
/* --- Settings & Language Modal --- */
.settings-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s, transform 0.3s;
  margin-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 20px;
}

.settings-btn:hover {
  color: #fff;
  transform: rotate(45deg);
}

.settings-btn svg {
  width: 20px;
  height: 20px;
}

.settings-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  opacity: 0;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(40px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 8px;
  transition: color 0.3s;
}

.modal-close:hover {
  color: #fff;
}

.lang-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lang-option {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 24px;
  color: var(--text-dim);
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-2px);
}

.lang-option.active {
  background: rgba(0, 240, 255, 0.05);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.lang-name {
  letter-spacing: 0.1em;
}

/* --- Typography --- */
h1,
h2,
h3 {
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}

.headline-xl {
  font-size: clamp(3rem, 7vw, 6rem);
}

.headline-lg {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.text-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6em;
  color: var(--accent-cyan);
  margin-bottom: 24px;
  display: block;
}

.text-body {
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 48px;
  line-height: 1.7;
}

/* --- Compositional Rhythm --- */
.stage {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0;
  /* Hard containment of visual elements */
}

.main-content {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
  /* Prevent flex/grid expansion */
}

.composition-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  /* Default ratio */
  gap: 100px;
  align-items: center;
}

/* Asymmetrical Variation Modifiers */
.grid-wide-visual {
  grid-template-columns: 1fr 1.8fr;
}

.grid-narrow-visual {
  grid-template-columns: 1.2fr 1fr;
}

.visual-scene {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 80px;
  position: relative;
}

.phone-mockup {
  position: relative;
  width: 250px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 250 / 520;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(40px);
  border-radius: 44px;
  border: 4px solid var(--accent-gold);
  box-shadow:
    0 0 50px rgba(255, 215, 0, 0.35),
    0 50px 100px rgba(0, 0, 0, 0.9);
  padding: 3px;
  background: var(--bg);
  flex-shrink: 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
  overflow: hidden;
}

.phone-mockup:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 60px 120px rgba(0, 240, 255, 0.15);
}

.phone-mockup.pro-glow:hover {
  box-shadow: 0 60px 120px rgba(255, 215, 0, 0.3);
  border-width: 2.5px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 38px;
}

.mascot-companion {
  width: 320px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.7));
  flex-shrink: 0;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, filter;
  animation: float 6s ease-in-out infinite;
}

.mascot-companion:hover {
  transform: scale(1.05) rotate(1deg);
  filter: drop-shadow(0 40px 80px rgba(0, 240, 255, 0.1));
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

/* Master Scale Modifiers */
.scale-up {
  transform: scale(1.1);
}

.scale-down {
  transform: scale(0.9);
}

.order-reverse {
  flex-direction: row-reverse;
}

/* --- Content Reveal Flow --- */
/* --- Final Section Customization --- */
.final-stage {
  padding-bottom: 40px;
  /* Reduced gap */
}

.final-visual {
  margin-top: 80px;
  display: flex;
  justify-content: center;
  position: relative;
}

.final-visual::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.08), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  filter: blur(40px);
}

.mascot-gold {
  width: 520px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.8));
  animation: floatGold 8s ease-in-out infinite;
  will-change: transform;
}

@keyframes floatGold {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-20px) scale(1.02);
  }
}

/* --- PRO Stage Enhancements --- */
.pro-stage {
  background: radial-gradient(circle at 70% 50%, rgba(255, 215, 0, 0.05), transparent 60%);
}

.pro-feature-list {
  list-style: none;
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: left;
}

.pro-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}

.pro-feature-item::before {
  content: '✓';
  color: var(--accent-gold);
  font-weight: 900;
}

.pro-badge {
  display: inline-block;
  background: var(--accent-gold);
  color: #000;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 900;
  font-size: 10px;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

/* --- Actions & Buttons --- */
.actions-row {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 22px 42px;
  text-decoration: none;
  font-weight: 900;
  font-size: 13px;
  border-radius: 100px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: #fff;
  color: #000;
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--accent-gold);
  color: #000;
}

.btn-gold:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
}

/* --- New Store & Social Buttons --- */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.btn-store {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 200px;
}

.btn-store:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
}

.btn-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.btn-label {
  font-size: 8px;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.btn-title {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
}

.social-hero {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.btn-social {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-dim);
}

.btn-social:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
  color: #fff;
  transform: translateY(-2px) rotate(5deg);
  box-shadow: 0 10px 25px rgba(0, 240, 255, 0.2);
}

.social-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-social-row {
  display: flex;
  gap: 20px;
  margin-top: 12px;
}

.footer-social-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-social-link:hover {
  color: var(--accent-cyan);
}

/* --- Footer --- */
footer {
  padding: 120px 5% 60px;
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 80px;
}

.footer-brand p {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.8;
  margin: 24px 0 32px;
  max-width: 340px;
}

.footer-group-label {
  font-size: 12px;
  font-weight: 900;
  color: var(--accent-cyan);
  letter-spacing: 0.3em;
  margin-bottom: 24px;
  display: block;
}

.copyright-bar {
  text-align: center;
  margin-top: 120px;
  font-size: 11px;
  color: var(--text-dim);
  opacity: 0.5;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* --- Responsiveness --- */
@media (max-width: 1200px) {
  .composition-grid {
    grid-template-columns: 1fr;
    gap: 80px;
    text-align: center;
  }

  .visual-scene {
    gap: 40px;
    justify-content: center;
  }

  .actions-row {
    justify-content: center;
  }

  .mascot-companion {
    width: 280px;
  }

  .phone-mockup {
    width: 220px;
    height: 460px;
  }
}

@media (max-width: 768px) {
  .visual-scene {
    flex-direction: column;
  }

  .headline-xl {
    font-size: 3.5rem;
  }

  /* Mobile Nav Optimization */
  nav {
    padding: 12px 5%;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    background: rgba(1, 2, 4, 0.98);
  }

  .nav-links {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    padding: 4px 0;
  }

  .nav-links a {
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .nav-links a {
    letter-spacing: 0.1em;
  }

  .lang-switcher {
    margin-left: 12px;
    padding-left: 12px;
  }

  .status-badge {
    display: none;
  }

  .btn {
    padding: 18px 32px;
    font-size: 12px;
    width: 100%;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .btn-store {
    width: 100%;
    justify-content: center;
    min-width: unset;
  }
}

/* --- Small Mobile Optimization (< 480px) --- */
@media (max-width: 480px) {
  .stage {
    padding: 80px 0;
  }

  .composition-grid {
    gap: 40px;
  }

  .visual-scene {
    gap: 20px;
  }

  .headline-xl {
    font-size: clamp(2.2rem, 10vw, 3rem);
    hyphens: auto;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .headline-lg {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
    hyphens: auto;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .mascot-companion {
    width: 220px;
  }

  .phone-mockup {
    width: 180px;
  }

  .mascot-gold {
    width: 320px;
  }

  .main-content {
    padding: 0 20px;
  }
}

/* --- Premium Logo Aesthetics --- */
.logo-emblem-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  margin: 0 auto 40px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 0 30px rgba(0, 240, 255, 0.05),
    inset 0 0 20px rgba(255, 255, 255, 0.02);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.6s ease;
}

.logo-emblem-container::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 40%, rgba(0, 240, 255, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.logo-emblem-container:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow:
    0 10px 40px rgba(0, 240, 255, 0.15),
    inset 0 0 30px rgba(0, 240, 255, 0.05);
}

.logo-emblem {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.3));
  animation: emblemPulse 4s infinite ease-in-out;
}

@keyframes emblemPulse {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.3));
  }

  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 25px rgba(0, 240, 255, 0.5));
  }
}

/* --- Legal Pages Layout Fix --- */
.legal-page-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 140px 24px 120px;
}

/* Fix for long Russian titles on mobile */
@media (max-width: 600px) {
  .legal-page-main h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .legal-page-main {
    padding-top: 100px;
    padding-bottom: 60px;
  }
}

@media (max-width: 500px) {

  .nav-links a[data-i18n="nav_source"],
  .nav-links a[data-i18n="nav_privacy"] {
    display: none;
  }

  .social-hero {
    justify-content: center;
  }
}