html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: #fff;
  line-height: 1.6;
  background-color: #000;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow-x: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

body.loaded {
  opacity: 1;
}

@media print {
  body { display: none; }
}

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  color: #fff;
}

.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

@media (max-width: 768px) {
  .hero-video {
    object-fit: contain;
    background: #000;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.hero-top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2rem;
  backdrop-filter: blur(20px);
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  z-index: 3;
}

.hero-top-bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.top-left {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
}

.social-label {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-right: 0.4rem;
  display: none;            
}

@media (min-width: 769px) {
  .social-label { display: inline-block; }
}

.social-icon {
  display: inline-flex;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.social-icon:hover {
  background: rgba(255,255,255,0.3);
}

.social-icon img {
  width: 16px; height: 16px;
  filter: brightness(0) invert(1);
}

.top-center {
  flex: 1;
  text-align: center;
}

.site-name {
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.top-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.lang-select {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 2rem;
  padding: 0.3rem 1.5rem 0.3rem 0.8rem;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10"><path fill="white" d="M5 7L1 3h8z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 8px;
}

.lang-select option {
  background: #1e293b;
  color: #fff;
}

.btn-open-app {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  background: #0088CC;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 4px 14px rgba(0,136,204,0.4);
}

.btn-open-app:hover {
  background: #0077B3;
  transform: translateY(-2px);
}

.hero-glass-card {
  position: absolute;
  left: 5%;
  top: 45%;
  transform: translateY(-50%);
  z-index: 2;
  width: min(340px, 80vw);
  max-height: 80vh;
  padding: 2rem 1.5rem;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(30px);
  border-radius: 2rem;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 25px 45px rgba(0,0,0,0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  overflow-y: auto;
}

.glass-logo {
  width: min(120px, 30vw);
  height: min(120px, 30vw);
  border-radius: 2rem;
  border: 2px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  padding: 0.1rem;
  object-fit: contain;
}

.glass-description {
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  line-height: 1.5;
  opacity: 0.9;
  margin: 0;
}

.btn-open-heart {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 2.5rem;
  background: #0088CC;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s, box-shadow 0.3s;
  box-shadow: 0 10px 20px rgba(0,136,204,0.4);
}

.btn-open-heart:hover {
  background: #0077B3;
  box-shadow: 0 15px 30px rgba(0,136,204,0.6);
}

/* ===========================================================
   MOBILE HERO FIXES
   =========================================================== */
@media (max-width: 768px) {
  .hero-top-bar {
    flex-wrap: wrap;
    padding: 0.8rem 1rem;
  }
  .top-left { order: 2; flex: 100%; justify-content: center; margin-top: 0.5rem; }
  .top-center { order: 1; flex: 100%; }
  .top-right { order: 3; flex: 100%; justify-content: center; margin-top: 0.5rem; }
  .social-label { display: none; }
  .site-name { font-size: 1.5rem; }

  .hero-glass-card {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    max-width: 320px;
    padding: 2rem 1.5rem;
  }
  .glass-logo { width: 100px; height: 100px; }

  [data-aos] {
    transition-duration: 0.8s !important;   
    transition-timing-function: ease;       
  }

  .hero-glass-card,
  .hero-top-bar,
  .how-media,
  .timeline-detail-text::before {
    backdrop-filter: blur(20px) !important;   
    -webkit-backdrop-filter: blur(20px) !important;
    background: rgba(255,255,255,0.08);       
  }

  .principle {
    animation: glowPulse 2.5s infinite ease-in-out;
  }
  @keyframes glowPulse {
    0%, 100% { text-shadow: 0 0 15px rgba(0,136,204,0.7), 0 0 25px rgba(0,136,204,0.4); }
    50% { text-shadow: 0 0 25px rgba(0,136,204,1), 0 0 40px rgba(0,136,204,0.8); }
  }
  .principle.active {
    text-shadow: 0 0 25px rgba(0,136,204,0.9);
  }
}

/* ===========================================================
   BACKGROUND & MAIN SECTIONS
   =========================================================== */
.main-content {
  background-image: url('images/fon1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
}

.main-content::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 0;
}

.main-content > section,
.main-content > footer {
  position: relative;
  z-index: 1;
}

.section {
  width: 100%;
  padding: 3rem 1rem;
  text-align: center;
  box-sizing: border-box;
}

.section h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 2rem;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255,255,255,0.3), 0 2px 8px rgba(0,0,0,0.5);
  display: inline-block;
}

.section h2::after {
  display: none;
}

.main-content > section:first-of-type {
  margin-top: 0;
}

.main-content > section:last-of-type {
  margin-bottom: 0;
}

.main-content > footer {
  margin-top: 0;
}

.section h2,
.section h3,
.section p,
.section li,
.gallery-note {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* ===========================================================
   HOW IT WORKS (ACCORDION)
   =========================================================== */
.how-it-works-new {
  color: #fff;
}

.how-container {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.how-accordion {
  flex: 1 1 45%;
}

.how-item {
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.how-title {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1rem 0;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: color 0.3s;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.how-title:hover {
  color: #0088CC;
}

.how-text {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.how-text p {
  padding: 0 0 1.5rem 0;
  margin: 0;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
}

.how-item.active .how-title {
  color: #0088CC;
}

.how-item.active .how-text {
  max-height: 200px;
  opacity: 1;
  transition: max-height 0.5s ease, opacity 0.3s ease;
}

.how-media {
  flex: 1 1 45%;
  display: grid;
  grid-template: 1fr / 1fr;
  background: rgba(255,255,255,0.05);
  border-radius: 1.5rem;
  overflow: hidden;
  backdrop-filter: blur(4px);
  aspect-ratio: 1 / 1;
}

.how-video {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: auto;
  z-index: 0;
}

.how-video.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

@media (max-width: 768px) {
  .how-container {
    flex-direction: column;
    gap: 1.5rem;
  }
  .how-media {
    order: -1;
    min-height: 200px;
    aspect-ratio: auto;
    width: 100%;
  }
  .how-title { font-size: 1.1rem; }
}

/* ===========================================================
   PRINCIPLES CLOUD (GAMEPLAY)
   =========================================================== */
.principles-cloud {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
  min-height: 500px;
}

.principle {
  position: absolute;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: color 0.3s, text-shadow 0.3s, transform 0.3s;
  white-space: normal;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  letter-spacing: 0.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(280px, 90%);
  z-index: 1;
  animation: glowPulse 2.5s infinite ease-in-out;
}

@keyframes glowPulse {
  0%, 100% {
    text-shadow: 0 0 15px rgba(0,136,204,0.7), 0 0 25px rgba(0,136,204,0.4);
  }
  50% {
    text-shadow: 0 0 25px rgba(0,136,204,1), 0 0 40px rgba(0,136,204,0.8);
  }
}

.principle:hover,
.principle.active {
  animation: none;
  text-shadow: 0 0 30px rgba(0,136,204,1), 0 0 50px rgba(0,136,204,0.9);
}

.principle-title {
  display: block;
}

.principle-desc {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  margin-top: 0.3rem;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.principle.active {
  color: #0088CC !important;
  text-shadow: 0 0 25px rgba(0,136,204,0.7);
  font-weight: 800;
  z-index: 5;
}

.principle.active .principle-desc {
  opacity: 1;
}

.principle:nth-child(1) { top: 2%; left: 28%; transform: rotate(-6deg); }
.principle:nth-child(2) { top: 48%; left: 25%; transform: rotate(1deg); }
.principle:nth-child(3) { top: 70%; left: 73%; transform: rotate(-6deg); }
.principle:nth-child(4) { top: 5%; left: 52%; transform: rotate(6deg); }
.principle:nth-child(5) { top: 60%; left: 48%; transform: rotate(-3deg); }
.principle:nth-child(6) { top: 18%; left: 75%; transform: rotate(4deg); }
.principle:nth-child(7) { top: 1%; left: 1%; transform: rotate(-4deg); }
.principle:nth-child(8) { top: 70%; left: 1%; transform: rotate(3deg); }

@media (max-width: 768px) {
  .principles-cloud {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem 1rem;
  }
  .principle {
    position: static;
    transform: none !important;
    max-width: 100%;
    width: 100%;
  }
}

/* ===========================================================
   FULLSCREEN MODAL
   =========================================================== */
.screenshot-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.screenshot-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 1001;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.screenshot-modal.active .modal-content {
  transform: scale(1);
}

.modal-content img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 90vh;
  border-radius: 1.8rem;
  border: 4px solid #ffffff;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
  pointer-events: none;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  z-index: 1002;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.modal-close:hover {
  opacity: 1;
}

/* ===========================================================
   VISIONS & MILESTONES TIMELINE
   =========================================================== */
.milestones {
  color: #fff;
}

.milestones-note {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-top: -1rem;
  margin-bottom: 2rem;
  font-style: italic;
}

.timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1100px;
  margin: 4rem auto 2rem;
  padding: 0 1rem;
}

.timeline-line {
  position: absolute;
  top: 38px;
  left: 5%;
  right: 5%;
  height: 3px;
  background: rgba(255,255,255,0.25);
  z-index: 0;
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
  flex: 1;
  cursor: pointer;
}

.timeline-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  transition: background 0.8s ease, border-color 0.8s ease, box-shadow 0.8s ease;
  margin-bottom: 0.3rem;
  z-index: 3;
}

.timeline-item:hover .timeline-dot,
.timeline-item.active .timeline-dot {
  background: rgba(0,136,204,0.5);
  border-color: #0088CC;
  box-shadow: 0 0 30px rgba(0,136,204,0.6);
  backdrop-filter: blur(0);
}

.dot-icon {
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.dot-icon img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.timeline-quarter {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0088CC;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.timeline-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  text-align: center;
  max-width: 120px;
  line-height: 1.3;
}

.timeline-detail {
  max-width: 700px;
  margin: 2rem auto 0;
  min-height: 80px;
}

.timeline-detail-text {
  position: relative;
  padding: 1.5rem 2rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  background: transparent;
  border-radius: 2rem;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 1;
}

.timeline-detail-text::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.25);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.6s ease 0.3s;
}

.timeline-detail-text.active {
  opacity: 1;
}

.timeline-detail-text.active::before {
  opacity: 1;
  transition-delay: 0.3s;
}

.timeline-detail-text:not(.active)::before {
  transition-delay: 0s;
}

@media (max-width: 768px) {
  .timeline {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    margin-left: 2rem;
  }
  .timeline-line {
    top: 0;
    bottom: 0;
    left: 18px;
    width: 3px;
    height: auto;
    background: rgba(255,255,255,0.25);
    z-index: 0;
  }
  .timeline-item {
    flex-direction: row;
    gap: 1.5rem;
    align-items: center;
  }
  .timeline-dot { width: 42px; height: 42px; }
  .timeline-quarter,
  .timeline-title { text-align: left; }
}

/* ===========================================================
   FOOTER & MISSION
   =========================================================== */
.full-width-footer {
  position: relative;
  background: transparent;
  backdrop-filter: none;
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 4rem 1rem 2rem;
  color: #fff;
  text-align: center;
  box-sizing: border-box;
  margin: 0;
}

.full-width-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: -1;
  border-radius: inherit;
}

.footer-mission {
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.footer-mission h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #fff;
  text-shadow: 0 0 25px rgba(0,136,204,0.5);
}

.mission-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
}

.btn-telegram-join {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: #0088CC;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 3rem;
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow: 0 6px 20px rgba(0,136,204,0.35);
}

.btn-telegram-join:hover {
  background: #0077B3;
  transform: translateY(-4px) scale(0.97);
  box-shadow: 0 4px 12px rgba(0,136,204,0.5), inset 0 2px 4px rgba(0,0,0,0.25);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.footer-col {
  flex: 1 1 200px;
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: #0088CC;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li { margin-bottom: 0.7rem; }

.footer-col a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(0,136,204,0.6);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

.footer-legal { display: flex; gap: 2rem; }
.footer-legal a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-legal a:hover { color: #0088CC; }

@media (max-width: 768px) {
  .footer-mission h2 { font-size: 2rem; }
  .footer-grid { flex-direction: column; align-items: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { gap: 1rem; }
}

/* ===========================================================
   MOBILE HERO FIXES
   =========================================================== */
@media (max-width: 768px) {
  .hero-video {
    object-fit: cover;   
    background: #000;
  }

  .hero-glass-card {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90vw;
    max-width: 320px;
    padding: 2rem 1.5rem;
    margin: 0;
  }

  .hero-top-bar {
    z-index: 3;
  }

  [data-aos] {
    transition-duration: 0.8s !important;
    transition-timing-function: ease;
  }

  .hero-glass-card,
  .hero-top-bar,
  .how-media,
  .timeline-detail-text::before {
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    background: rgba(255,255,255,0.08);
  }

  .principle {
    animation: glowPulse 2.5s infinite ease-in-out;
  }
  @keyframes glowPulse {
    0%, 100% { text-shadow: 0 0 15px rgba(0,136,204,0.7), 0 0 25px rgba(0,136,204,0.4); }
    50% { text-shadow: 0 0 25px rgba(0,136,204,1), 0 0 40px rgba(0,136,204,0.8); }
  }
  .principle.active {
    text-shadow: 0 0 25px rgba(0,136,204,0.9);
  }
}