@font-face {
  font-family: 'SeoulHangang';
  src: url('/landing/fonts/SeoulHangangL.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SeoulHangang';
  src: url('/landing/fonts/SeoulHangangM.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SeoulHangang';
  src: url('/landing/fonts/SeoulHangangB.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SeoulHangang';
  src: url('/landing/fonts/SeoulHangangEB.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  background: #07122A;
  font-family: 'SeoulHangang', sans-serif;
  margin: 0;
  padding-top: 0;
}

.header-landing {
  width: 100%;
  height: 115px;
  background: linear-gradient(90deg, rgba(1, 14, 46, 0.5) 0%, rgba(0, 35, 87, 0.5) 100%);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin: 0;
}
.logo-icon {
  width: 100px;
  height: 25px;
  flex-shrink: 0;
}
.header-left {
  display: flex;
  align-items: center;
}

.header-menu {
  display: flex;
  gap: 2.1875rem;
  margin-left: 4rem;
}
.header-menu-item {
  color: #FFF;
  font-family: 'SeoulHangang', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8rem;
  text-decoration: none;
  padding: 0 0.5rem;
}
.header-menu-item:hover { text-decoration: underline; }
.lang-switch {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  margin: 0 0.5rem 0 1.2rem;
}
.lang-abbr {
  margin-left: 0.25rem;
  font-size: 1rem;
  color: #FFF;
  text-transform: uppercase;
}
.lang-icon,
.lang-dropdown li img {
  width: 1rem;
  height: 1rem;
}
.lang-dropdown {
  position: absolute;
  top: 120%;
  right: 0;
  list-style: none;
  background: rgba(7, 18, 42, 0.9);
  margin: 0;
  padding: 4px 0;
  display: none;
}
.lang-dropdown li {
  padding: 0.25rem 0.5rem;
  display: flex;
  align-items: center;
}
.lang-dropdown.show {
  display: block;
}
.header-dropdown { position: relative; }
.header-dropdown-toggle {
  background: none;
  border: none;
  color: #fff !important;
  font: inherit;
  padding: 0 0.5rem;
  cursor: pointer;
  position: relative;
}
.header-dropdown-toggle::after {
  content: "\25BC";
  display: inline-block;
  margin-left: 0.25rem;
  color: #fff !important;
  font-size: 0.75em;
}
.header-dropdown-menu {
  position: absolute;
  top: 120%;
  left: 0;
  list-style: none;
  background: #0A1024;
  margin: 0;
  padding: 6px 0;
  border-radius: 8px;
  display: none;
  min-width: 180px;
  z-index: 1000;
}
.header-dropdown-menu.show {
  display: block;
}
.header-dropdown-menu a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  white-space: nowrap;
}
.header-dropdown-menu a:hover {
  background: #82ecff;
  color: #fff;
}
.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.app-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #82ECFF;
  color: #002051;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  height: 34px;
  min-width: 60px;
  max-width: 90px;
  padding: 0 18px;
  text-decoration: none;
  margin: 0 0.5rem;
  border: none;
  transition: background 0.18s;
  box-shadow: 0 1px 6px rgba(130,236,255,0.10);
}
.app-btn:hover {
  background: #00cfff;
}
.hero-section {
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}
.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-video-bg.playing {
  opacity: 1;
}
@media (min-width: 600px) and (max-width: 899px) {
  .hero-video-bg {
    object-position: 75% center;
  }
}
.hero-bg-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: opacity 1s ease;
}
.hero-bg-fallback.hidden {
  opacity: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 20px;
  padding-right: 1.25rem;
  padding-top: 80px;
  max-width: 90vw;
  box-sizing: border-box;
}
.hero-title {
  color: #82ECFF;
  font-family: 'SeoulHangang', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  max-width: 64.625rem;
  margin: 0 0 30px 0;
}
.hero-desc {
  color: rgba(255, 255, 255, 0.85);
  font-family: 'SeoulHangang', sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  max-width: 38.3125rem;
  margin: 0 0 40px 0;
}
.hero-btn-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 0;
  margin-bottom: 50px;
}
.hero-btn {
  width: 100%;
  min-width: 220px;
  max-width: 360px;
  height: 3.5rem;
  padding: 0 2.5rem;
  background: url('/landing/images/button_main.svg') no-repeat center/contain;
  border: none;
  box-sizing: border-box;
  font-family: 'SeoulHangang', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #173569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ton-part {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0;
  margin-left: 0;
}
.ton-part-icon {
  width: 2.2rem;
  height: 1.375rem;
}
.ton-part-text {
  color: #FFF;
  font-family: 'SeoulHangang', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.8rem;
  white-space: nowrap;
}
.ticker {
  display: flex;
  overflow: hidden;
  align-items: center;
  height: 56px;
  padding: 0;
  background: linear-gradient(180deg, rgba(7, 18, 42, 0) 0%, #07122A 100%);
  border-top: 2px solid #82ECFF;
  border-bottom: 2px solid #82ECFF;
  border-left: none;
  border-right: none;
  border-radius: 0;
  box-sizing: border-box;
  margin-top: 0;
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}

.ticker-item {
  flex: 0 0 auto;
  color: #82ECFF;
  font-family: 'SeoulHangang', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding-right: 2rem;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive typography and spacing for hero section */
@media (min-width: 481px) {
  .hero-title {
    font-size: 32px;
    margin-bottom: 30px;
  }
  .ticker {
    height: 64px;
  }
  .ticker-item {
    font-size: 1.125rem;
    padding-right: 2.5rem;
  }
  .hero-desc { font-size: 16px; }
  .hero-btn { font-size: 16px; }
  .hero-content {
    padding-left: 40px;
    padding-top: 100px;
    max-width: 90vw;
  }
  .logo-icon { width: 120px; height: 30px; }
  .header-menu-item { font-size: 16px; }
  .app-btn { font-size: 15px; height: 2.5rem; }
}

@media (min-width: 769px) {
  .hero-title { font-size: 42px; }
  .hero-desc { font-size: 18px; }
  .logo-icon { width: 150px; height: 38px; }
  .header-menu-item { font-size: 18px; }
  .app-btn { font-size: 16px; height: 2.8rem; }
  .hero-btn { font-size: 16px; }
  .hero-content {
    padding-left: 80px;
    padding-top: 140px;
    max-width: 600px;
  }
  .ticker {
    height: 72px;
  }
  .ticker-item {
    font-size: 1.25rem;
    padding-right: 3rem;
  }
}

@media (min-width: 1200px) {
  .hero-content {
    padding-left: 200px;
    padding-top: 220px;
    max-width: 504px;
  }
  .hero-title {
    font-size: 54px;
    white-space: nowrap;
  }
  .hero-desc {
    font-size: 24px;
    white-space: nowrap;
  }
  .hero-btn { font-size: 18px; }
  .logo-icon { width: 170px; height: 42px; }
  .header-menu-item { font-size: 22px; }
  .app-btn { font-size: 18px; height: 3rem; }
  .ticker {
    height: 76px;
  }
  .ticker-item {
    font-size: 1.5rem;
    padding-right: 3.5rem;
  }
}


/* Лоадер Magix — полноэкранный, всегда по центру */
#magix-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #07122A;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
}

#magix-loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Контейнер для центрирования всех элементов лоадера */
.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100vw;
  max-width: 100vw;
  padding: 0 5vw;
  box-sizing: border-box;
}

/* Текст "Magix Launching..." */
.loader-title {
  padding-bottom: 16px;
  font-size: 24px;
  font-weight: 700;
  color: #82ECFF;
}

/* Прогресс-бар */
.loader-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
}

/* Линия прогресс-бара из 20 сегментов */
.loader-bar {
  display: flex;
  gap: 4px;
  width: 100%;
  max-width: 100%;
}

/* Сегмент прогресс-бара */
.loader-bar .loader-segment {
  flex: 1;
  height: 18px;
  background: rgba(23, 53, 105, 0.5);
}

/* Активный (заполненный) сегмент */
.loader-bar .loader-segment.active {
  background: #82ECFF;
  box-shadow: 0 0 8px #82ECFF;
}

/* Процент */
.loader-percent {
  font-size: 18px;
  color: #82ECFF;
  font-weight: 500;
}

@media (max-width: 600px) {
  .loader-title {
    font-size: 20px;
  }

  .loader-percent {
    font-size: 16px;
  }

  .loader-bar .loader-segment {
    height: 14px;
  }
}

@media (min-width: 900px) {
  .loader-title {
    font-size: 1.25rem;
    padding-bottom: 12px;
  }

  .loader-percent {
    font-size: 1rem;
  }

  .loader-progress {
    gap: 8px;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
  }

  .loader-bar .loader-segment {
    height: 14px;
  }
}

/* Плавное появление основного сайта после лоадера */
body.loading {
  overflow: hidden;
}

body.loading > :not(#magix-loader) {
  visibility: hidden;
  opacity: 0;
}

body > :not(#magix-loader) {
  transition: opacity 0.5s ease;
}

/* ===== About section ===== */
.about-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.about-video-bg {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.about-video-filter {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 18, 42, 0.68);
  z-index: 0;
}

.about-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 16px 80px;
  box-sizing: border-box;
}

.about-title {
  margin: 0;
  color: #fff;
  font-family: 'SeoulHangang', sans-serif;
  font-weight: 400;
  line-height: 100%;
  font-size: clamp(12px, 2.2vw, 26px);
}

.about-subtitle {
  margin: 13px 0 0;
  color: #fff;
  font-family: 'SeoulHangang', sans-serif;
  font-weight: 400;
  line-height: 120%;
  font-size: 14px;
}

.about-cards {
  position: relative;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 280px;
}


.about-card {
  position: relative;
  width: 100%;
  aspect-ratio: 654 / 452;
  padding: 16px;
  box-sizing: border-box;
  color: #fff;
  font-family: 'SeoulHangang', sans-serif;
  text-align: left;
  overflow: hidden;
}

.about-card-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.about-card-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-card h3 {
  margin: 0 0 10px;
  font-size: clamp(12px, 1.8vw, 18px);
  font-weight: 400;
  line-height: 1.3;
  padding-left: 40px;
  word-break: break-word;
  white-space: normal;
}


.about-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  padding-left: 40px;
  word-break: break-word;
  white-space: normal;
}

.bullet {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  vertical-align: middle;
  background: url('/landing/images/bullet.svg') no-repeat center/contain;
}


@media (min-width: 481px) {
  .about-content { padding: 60px 24px 80px; }
}

@media (min-width: 769px) {
  .about-title { font-size: 36px; }
  .about-subtitle { font-size: 18px; }
  .about-content { padding: 80px 24px 100px; }
  .about-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 664px;
  }
  .about-card { padding: 24px; }
  .about-card h3 { font-size: 22px; }
  .about-card p { font-size: 16px; }
  .bullet { width: 7px; height: 7px; margin-right: 5px; }
}

@media (min-width: 1200px) {
  .about-title { font-size: 48px; }
  .about-subtitle { font-size: 24px; }
  .about-content { padding: 80px 40px 120px; }
  .about-cards {
    gap: 48px;
    max-width: 968px;
  }
  .about-card { padding: 36px; }
  .about-card h3 { font-size: 28px; }
  .about-card p { font-size: 18px; }
  .bullet { width: 9px; height: 9px; margin-right: 6px; }
}

@media (min-width: 900px) and (max-width: 1250px) {
  .about-cards { max-width: 800px; }
  .about-card { padding: 30px; }
  .about-card h3 { font-size: 20px; }
  .about-card p { font-size: 14px; }
}

@media (min-width: 1920px) {
  .about-title { font-size: 64px; }
  .about-cards { max-width: 1248px; }
  .about-card { padding: 48px; }
  .about-card h3 { font-size: 32px; }
  .about-card p { font-size: 20px; }
  .bullet { width: 10px; height: 10px; }
}

@media (max-width: 1099px) {
  body, .section, .container { font-size: 15px; }
  h1, .hero-title, .about-title { font-size: 32px; }
  h2, .section-title, .card-title { font-size: 22px; }
  .btn, .button, .hero-btn { font-size: 14px; padding: 10px 22px; }
  .grid, .cards-row { gap: 12px; }
  .card-content, .about-card-content { padding: 14px; }
  .marker-dot, .about-card-marker { width: 7px; height: 7px; }
}
@media (max-width: 600px) {
  body, .section, .container { font-size: 13px; }
  h1, .hero-title, .about-title { font-size: 22px; }
  h2, .section-title, .card-title { font-size: 16px; }
  .btn, .button, .hero-btn { font-size: 12px; padding: 8px 12px; }
  .grid, .cards-row { gap: 8px; }
  .card-content, .about-card-content { padding: 8px; }
  .marker-dot, .about-card-marker { width: 5px; height: 5px; }
  .cards-row, .about-cards-grid { flex-direction: column; gap: 12px; }
}
@media (max-width: 400px) {
  body, .section, .container { font-size: 11px; }
  h1, .hero-title, .about-title { font-size: 16px; }
  h2, .section-title, .card-title { font-size: 13px; }
  .btn, .button, .hero-btn { font-size: 10px; padding: 6px 6px; }
  .grid, .cards-row { gap: 4px; }
  .card-content, .about-card-content { padding: 4px; }
  .marker-dot, .about-card-marker { width: 4px; height: 4px; }
}

@media (max-width: 899px) {
  .about-content {
    padding-top: 80px;
    padding-bottom: 100px;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }
  .about-title { font-size: 32px; }
  .about-subtitle { font-size: 18px; }
  .about-cards {
    margin-top: 40px;
    max-width: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 19px;
  }
  .about-card {
    width: calc(100vw - 24px);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 654 / 452;
    padding: 0;
    box-sizing: border-box;
  }
  .about-card-frame {
    width: 100%;
    height: 100%;
    inset: 0;
  }
  .about-card-inner {
    padding: 20px;
    box-sizing: border-box;
  }
  
  .about-card h3 {
    padding-left: 0;
    font-size: 20px;
  }
  .about-card p {
    padding-left: 0;
    font-size: 15px;
  }
  .bullet {
    width: 7px;
    height: 7px;
    margin-right: 6px;
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .about-card {
    width: 90vw;
    max-width: 440px;
  }
}

/* ===== Legend section ===== */
.legend-section {
  width: 100%;
  background: #07122A;
  margin: 40px 0 0 0;
  display: flex;
  justify-content: center;
  border-top: 2px solid #62d0f8;
  border-bottom: 2px solid #62d0f8;
  border-left: none;
  border-right: none;
  border-radius: 0;
  box-sizing: border-box;
}

.legend-container {
  padding: 12px 0;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  font-family: 'SeoulHangang', sans-serif;
  font-weight: 500;
  color: #b6f0fa;
  text-align: left;
  line-height: 1.5;
}

.legend-line {
  margin: 0 0 0.2em 0;
  font-size: 1.2rem;
  line-height: 1.32;
}
.legend-line:last-child {
  margin-bottom: 0;
}

@media (max-width: 1099px) {
  .legend-container { padding: 8px 0; }
  .legend-line { font-size: 1.05rem; }
}

@media (max-width: 600px) {
  .legend-container { padding: 6px 0; }
  .legend-line { font-size: 0.98rem; }
}

/* ===== Ecosystem section ===== */
.ecosystem-section {
  width: 100%;
  background: #07122A;
  display: flex;
  justify-content: center;
}

.ecosystem-container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ecosystem-title {
  margin: 0;
  color: #FFF;
  font-family: 'SeoulHangang', sans-serif;
  font-weight: 400;
  font-size: 40px;
  line-height: 1.2;
}

.ecosystem-subtitle {
  margin: 12px 0 32px;
  color: #FFF;
  font-family: 'SeoulHangang', sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.3;
}

.ecosystem-tabs {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.ecosystem-tab {
  min-width: 185px;
  height: 57px;
  padding: 0 24px;
  background: url('/landing/images/products/button.svg') no-repeat center/100% 100%;
  border: none;
  color: #173569;
  font-family: 'SeoulHangang', sans-serif;
  font-weight: 400;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ecosystem-tab.active {
  background: url('/landing/images/products/button_done.svg') no-repeat center/100% 100%;
}

.ecosystem-tab.soon {
  background: url('/landing/images/products/soon_button.svg') no-repeat center/100% 100%;
  color: #5586E7;
}

@media (max-width: 1099px) {
  .ecosystem-container { padding: 40px 16px; }
  .ecosystem-title { font-size: 28px; }
  .ecosystem-subtitle { font-size: 17px; }
}

@media (max-width: 600px) {
  .ecosystem-container {
    max-width: 393px;
    width: 90%;
    padding: 32px 16px;
  }
  .ecosystem-tab {
    width: calc((100% - 12px) / 2);
    min-width: 120px;
    height: 40px;
    font-size: 15px;
    padding: 0 14px;
    flex: 0 0 calc((100% - 12px) / 2);
  }
  .ecosystem-tabs { gap: 12px; }
}

@media (max-width: 599px) {
  .ecosystem-tab {
    box-sizing: border-box;
    width: calc((100% - 16px) / 2);
    min-width: 185px;
    height: 57px;
    font-size: 18px;
    padding: 0 24px;
    flex: 0 0 calc((100% - 16px) / 2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: linear-gradient(#07122A, #07122A),
      linear-gradient(90deg, #77EAEB, #5586E7);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border: 2px solid transparent;
    border-radius: 12px;
    clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px);
  }
  .ecosystem-tab.active {
    background: #82ECFF;
  }
  .ecosystem-tab.soon {
    color: #5586E7;
    background-image: linear-gradient(#07122A, #07122A),
      linear-gradient(90deg, #77EAEB, #5586E7);
    background-origin: border-box;
    background-clip: padding-box, border-box;
  }
  .ecosystem-tabs {
    gap: 16px;
    padding: 0 8px;
  }
}

/* ===== Ecosystem cards ===== */
.ecosystem-slider {
  position: relative;
  width: 100%;
  overflow: visible;             /* стрелки могут выходить за края */
  margin-top: 32px;
}

.ecosystem-viewport {
  width: 100%;
  overflow-x: hidden;            /* обрезаем лишние карточки */
  overflow-y: visible;           /* важно для кнопок */
  /* padding-bottom removed: кнопки теперь участвуют в потоке */
}

.ecos-arrow {
  position: absolute;
  top: 50%;
  width: 28px;
  height: 56px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ecos-arrow-left {
  left: 0;
  transform: translate(-100%, -50%);
  z-index: 2;
}

.ecos-arrow-right {
  right: 0;
  transform: translate(100%, -50%);
}

.ecosystem-track {
  display: flex;
  transition: transform 0.5s;
}

.ecos-card {
  position: relative;
  flex: 0 0 300px;
  margin-right: 24px;
  aspect-ratio: 427 / 661;
  box-sizing: border-box;
  color: #FFF;
  font-family: 'SeoulHangang', sans-serif;
  overflow: visible;             /* КНОПКИ не обрезаются */
  display: flex;
  flex-direction: column;
  align-items: center;
  --ecos-card-btn-height: 57px;
}

.ecos-card:last-child { margin-right: 0; }

.ecos-card-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  box-sizing: border-box;
  display: block;
}

.ecos-card-inner {
  position: relative;
  z-index: 1;
  height: auto;
  width: 100%;
  padding: 24px;
  box-sizing: border-box;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.ecos-card-img {
  width: 100%;
  max-width: 190px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.ecos-card-inner h3 {
  margin: 16px 0 8px;
  font-size: 20px;
  padding-left: 40px;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  text-align: left;
}

.ecos-card-inner p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.3;
  text-align: left;
  padding-left: 40px;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}
.ecos-desc-mobile { display: none; }

@media (max-width: 899px) {
  .ecos-desc-desktop { display: none; }
  .ecos-desc-mobile { display: block; }
}

.ecos-card-buttons {
  width: 82%;         /* Было: calc(100% - 48px); */
  display: flex;
  justify-content: center;
  gap: 12px;           /* Было: 24px */
  z-index: 2;
  pointer-events: auto;
  padding: 0 5px;      /* Если хочется ещё немного “вжать” внутрь */
  margin-top: auto;
}

.ecos-card-btn {
  flex: 1 1 0;
  height: var(--ecos-card-btn-height);
  background: url('/landing/images/products/button.svg') no-repeat center/100% 100%;
  border: none;
  color: #173569;
  font-family: 'SeoulHangang', sans-serif;
  font-size: 18px;
  cursor: pointer;
  min-width: 140px;
  max-width: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ecos-card-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 1099px) {
  .ecos-card {
    flex: 0 0 260px;
    aspect-ratio: auto;
    --ecos-card-btn-height: 40px;
  }
  .ecos-card-btn { min-width: 110px; max-width: 135px; font-size: 15px; }
  .ecos-card-buttons { gap: 14px; }
}

@media (max-width: 600px) {
  .ecos-card {
    flex: 0 0 220px;
    aspect-ratio: auto;
    --ecos-card-btn-height: 36px;
  }
  .ecos-card-btn { min-width: 92px; max-width: 120px; font-size: 14px; }
  .ecos-card-buttons { width: calc(100% - 20px); }
  .ecos-card-inner {
    padding: 16px;
    padding-top: 20px;
  }
  /* уменьшенное изображение */
  .ecos-card-img {
    max-width: 144px;
    margin-top: 20px;
  }
  /* текст ближе к картинке */
  .ecos-card-inner h3 { margin: 8px 0 4px; }
  .ecos-card-inner p  { margin: 0 0 8px; }
}

@media (max-width: 899px) {
  /* Single-card layout for slider on mobile/tablet */
  .ecosystem-slider {
    width: 100%;
    position: relative;
  }

  .ecosystem-viewport {
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
  }

  .ecos-arrow-left {
    left: 7px;
    transform: translateY(-50%);
  }

  .ecos-arrow-right {
    right: 7px;
    transform: translateY(-50%);
  }

  .ecos-card {
    flex: 0 0 calc(100vw - 20px);
    width: calc(100vw - 20px);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    scroll-snap-align: start;
  }

  .ecos-card-frame {
    width: 100%;
    height: 100%;
  }

  .ecos-card-inner {
    padding: 18px;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .ecos-card-inner h3,
  .ecos-card-inner p {
    text-align: center;
    padding-left: 0;
  }

  .ecosystem-track {
    justify-content: center;
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .ecosystem-track { justify-content: flex-start; }
  .ecosystem-viewport {
    -ms-overflow-style: none;  /* hide scrollbar IE/Edge */
    scrollbar-width: none;     /* hide scrollbar Firefox */
  }
  .ecosystem-viewport::-webkit-scrollbar {
    display: none;             /* hide scrollbar Chrome/Safari */
  }
  /* increase card width by 20% and set 15px gap between cards */
  .ecosystem-slider .ecos-card {
    flex: 0 0 312px;
    width: 312px;
    margin-right: 15px;
  }
  .ecosystem-slider .ecos-card:last-child {
    margin-right: 0;
  }
  /* make soon tab images slightly smaller */
  .ecosystem-soon .ecos-card-img {
    max-width: 171px;
  }
}
@media (max-width: 600px) {
  .ecos-card {
    flex: 0 0 100%;
    width: 100%;
    margin: 0;
  }
  .ecosystem-active .ecos-card {
    flex: 1 0 auto;
    width: 100%;
    height: auto;
    min-height: fit-content;
    aspect-ratio: auto;
  }
  .ecosystem-active .ecos-card-inner { flex: 1 1 auto; }
  .ecosystem-track { justify-content: flex-start; }
  .ecos-arrow-left { left: 5px; }
  .ecos-arrow-right { right: 5px; }
  .ecosystem-active .ecos-arrow { display: none; }
}

.ecosystem-soon .ecos-card-inner { justify-content: flex-start; }

/* === Mobile overrides for active ecosystem cards === */
@media (max-width: 600px) {
  .ecosystem-section .ecosystem-container {
    width: 100vw;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }
  .ecosystem-section .ecosystem-slider,
  .ecosystem-section .ecosystem-viewport {
    width: 100vw;
  }
  .ecosystem-active .ecos-card {
    flex: 0 0 calc(100vw - 20px);
    width: calc(100vw - 20px);
    margin: 0 10px;
    max-width: none;
    /* increase card height by 15% on mobile */
    min-height: 419px;
    height: auto;
    aspect-ratio: auto;
  }
  .ecosystem-active .ecos-card-frame {
    width: 100%;
    height: 100%;
  }
  .ecosystem-active .ecos-card-inner { flex: 1 1 auto; }
}

@media (min-width: 900px) {
  /* desktop layout tweaks for ecosystem cards */
  .ecosystem-section .ecos-card-img {
    max-width: 171px; /* 10% smaller */
    margin-top: 20px; /* more space from top border */
  }

  .ecosystem-section .ecos-card-inner h3,
  .ecosystem-section .ecos-card-inner p {
    padding-left: 0;
    margin-left: 8px; /* ~32px from card edge with inner padding */
    text-align: left;
  }

  .ecosystem-soon .ecos-card {
    aspect-ratio: 1 / 1;
    margin-right: 15px;
  }

  .ecosystem-soon .ecos-card:last-child {
    margin-right: 0;
  }

  .ecosystem-soon .ecos-card-inner {
    justify-content: center;
    align-items: center;
    text-align: center;
  }
}

@media (min-width: 900px) and (max-width: 1100px) {
  .ecosystem-active .ecos-card-img {
    max-width: 152px;
  }
  .ecosystem-active .ecos-card-buttons {
    margin-bottom: 0;
  }
  /* remove svg frames and draw cards with pure CSS */
  .ecosystem-active .ecos-card {
    border: 2px solid #77EAEB;
    border-radius: 16px;
    background: #07122A;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
  }
  .ecosystem-active .ecos-card picture,
  .ecosystem-active .ecos-card-frame {
    display: none;
  }
  .ecosystem-active .ecos-card-inner {
    padding-top: 20px;
  }
}

/* ===== Transition video section (идеальный плавный переход с прозрачным центром) ===== */
.transition-video-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: #07122A;
}

.transition-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
}

@media (min-width: 600px) and (max-width: 899px) {
  .transition-video {
    object-position: 25% center;
  }
}

/* Многоступенчатый верхний градиент + нижний антилинейный */
.transition-gradient {
  position: absolute;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    linear-gradient(
      180deg,
      #07122A 0%,
      #07122A 8%,
      rgba(7, 18, 42, 0.80) 17%,
      rgba(7, 18, 42, 0.15) 36%,
      rgba(7, 18, 42, 0.02) 57%,
      rgba(7, 18, 42, 0.01) 69%,
      rgba(7, 18, 42, 0.05) 90%,
      rgba(7, 18, 42, 0.15) 100%
    ),
    /* нижний дополнительный антилинейный — “размывает” линию на поясе */
    linear-gradient(
      0deg,
      rgba(7, 18, 42, 0.18) 0%,
      rgba(7, 18, 42, 0.01) 32%,
      rgba(7, 18, 42, 0) 58%
    );
  z-index: 1;
  pointer-events: none;
}

.transition-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  /* overlay — мягкий, не давит центральную часть, только по краям */
  background: linear-gradient(
    180deg,
    rgba(7, 18, 42, 0.12) 0%,
    rgba(7, 18, 42, 0.02) 40%,
    rgba(7, 18, 42, 0.11) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.transition-info {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 3;
  box-sizing: border-box;
  padding: 0 16px;
}

.transition-title {
  margin: 0 0 36px;
  font-family: 'SeoulHangang', sans-serif;
  font-weight: 400;
  font-size: 48px;
  color: #fff;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

.transition-text {
  margin: 0 auto;
  max-width: 650px;
  font-family: 'SeoulHangang', sans-serif;
  font-size: 22px;
  color: #fff;
  text-align: center;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

@media (max-width: 600px) {
  .transition-title {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .transition-text { font-size: 15px; }
}

/* ===== Total volume section ===== */
.total-volume-section {
  width: 100%;
  background: #07122A;
  margin: 0;
  display: flex;
  justify-content: center;
  border-top: 2px solid #62d0f8;
  border-bottom: 2px solid #62d0f8;
  border-left: none;
  border-right: none;
  border-radius: 0;
  box-sizing: border-box;
}

.total-volume-container {
  position: relative;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 12px 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.total-volume-label {
  position: absolute;
  left: 0;
  color: #fff;
  font-family: 'SeoulHangang', sans-serif;
  font-weight: 400;
  font-size: 18px;
}

.total-volume-number {
  color: #b6f0fa;
  font-family: 'SeoulHangang', sans-serif;
  font-weight: 700;
  font-size: 64px;
}

/* ===== Distribution section ===== */
.distribution-section {
  width: 100%;
  background: #07122A;
  margin: 0;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}

.distribution-container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.distribution-percents {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}

.distribution-item {
  display: flex;
  align-items: flex-end;
  color: #b6f0fa;
  font-family: 'SeoulHangang', sans-serif;
}

.distribution-number {
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  margin-right: 8px;
  opacity: 0;
}

.distribution-label {
  font-size: 18px;
  line-height: 1.2;
}

.distribution-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  max-width: 360px;
  height: 57px;
  margin: 24px 0;
  padding: 0 24px;
  background: url('/landing/images/products/button.svg') no-repeat center/100% 100%;
  color: #173569;
  font-family: 'SeoulHangang', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.distribution-text {
  max-width: 700px;
  color: #fff;
  font-family: 'SeoulHangang', sans-serif;
  font-size: 18px;
  line-height: 1.4;
}

.distribution-text p {
  margin: 8px 0;
}

.distribution-text a {
  color: #b6f0fa;
}

.desktop-only {
  display: inline;
}

.mobile-only {
  display: none;
}

@media (max-width: 1099px) {
  .distribution-container { padding: 16px 0; }
  .distribution-number { font-size: 48px; }
  .distribution-label { font-size: 16px; }
}

@media (max-width: 600px) {
  .distribution-container { padding: 12px 0; }
  .distribution-number { font-size: 34px; }
  .distribution-label { font-size: 14px; }
  .distribution-percents { gap: 24px; }
}

@media (max-width: 1099px) {
  .total-volume-container { padding: 8px 0; }
}

@media (max-width: 599px) {
  .total-volume-container {
    padding: 24px 0;
    flex-direction: column;
    align-items: center;
  }
  .total-volume-label {
    position: static;
    display: block;
    text-align: center;
    margin-bottom: 8px;
  }
  .total-volume-number {
    font-size: 34px;
    text-align: center;
  }
  .distribution-container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .distribution-buy {
    height: 48px;
    margin: 16px auto;
    font-size: 16px;
  }
    .token-tool-text { font-size: 18px; }
    .token-tool-container {
      padding: 24px 16px;
      align-items: center;
      text-align: center;
    }
  .distribution-text {
    font-size: 16px;
  }
  .desktop-only { display: none; }
  .mobile-only { display: inline; }
}

@media (min-width: 600px) and (max-width: 899px) {
  .total-volume-container {
    padding: 40px 0;
    flex-direction: column;
    align-items: center;
  }
  .total-volume-label {
    position: static;
    display: block;
    text-align: center;
    margin-bottom: 16px;
  }
  .total-volume-number {
    text-align: center;
  }
}


/* ===== Principles section ===== */
.principles-section {
  width: 100%;
  background: #07122A;
  display: flex;
  justify-content: center;
  padding: 40px 16px;
  box-sizing: border-box;
}

.principles-container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.principles-title {
  margin: 0 0 40px;
  color: #FFF;
  font-family: 'SeoulHangang', sans-serif;
  font-weight: 700;
  font-size: 38px;
  text-align: center;
}

.principles-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.principle-card {
  position: relative;
  width: 100%;
  min-width: 280px;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  color: #FFF;
  font-family: 'SeoulHangang', sans-serif;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.principle-card.show {
  opacity: 1;
  transform: translateY(0);
}

.principle-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.principle-card-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.principle-icon {
  align-self: flex-start;
  margin-left: 40px;
  margin-bottom: 12px;
  width: 88px;
  height: 88px;
}

.principle-card-title {
  margin: 0 0 8px;
  padding-left: 40px;
  font-size: 26px;
  font-weight: 700;
  text-align: left;
  word-break: break-word;
  white-space: normal;
}

.principle-card-text {
  margin: 0;
  padding-left: 40px;
  font-size: 18px;
  text-align: left;
  word-break: break-word;
  white-space: normal;
}

@media (min-width: 481px) {
  .principles-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (min-width: 769px) {
  .principles-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .principles-title { font-size: 22px; }
}

.apply-section {
  width: 100%;
  background: #07122A;
  display: flex;
  justify-content: center;
  padding: 40px 16px;
  box-sizing: border-box;
}

.apply-container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.apply-title {
  margin: 0 0 40px;
  color: #FFF;
  font-family: 'SeoulHangang', sans-serif;
  font-weight: 700;
  font-size: 38px;
  text-align: center;
}

.apply-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.apply-card {
  position: relative;
  width: 100%;
  aspect-ratio: 655 / 310;
  min-height: 280px;
  box-sizing: border-box;
  color: #FFF;
  font-family: 'SeoulHangang', sans-serif;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.apply-card.show {
  opacity: 1;
  transform: translateY(0);
}

.apply-card-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.apply-card-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 20px;
  padding-bottom: 20px;
  box-sizing: border-box;
}

.apply-icon {
  align-self: flex-start;
  margin-left: 40px;
  margin-bottom: 12px;
  width: 88px;
  height: 88px;
}

.apply-card-title {
  margin: 0 0 8px;
  padding-left: 40px;
  font-size: clamp(12px, 2.2vw, 26px);
  font-weight: 700;
  text-align: left;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  white-space: normal;
}

.apply-card-text {
  margin: 0;
  padding-left: 40px;
  font-size: clamp(12px, 1.8vw, 18px);
  text-align: left;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  white-space: normal;
}

@media (min-width: 769px) {
  .apply-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 600px) {
  .apply-title { font-size: 22px; }
}

/* ===== Pantheon video section ===== */
.pantheon-video-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: #07122A;
}

.pantheon-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
}

.pantheon-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background:
    linear-gradient(
      180deg,
      #07122A 0%,
      #07122A 10%,
      rgba(7, 18, 42, 0.8) 20%,
      rgba(7, 18, 42, 0.4) 35%,
      rgba(7, 18, 42, 0.15) 50%,
      rgba(7, 18, 42, 0.05) 60%,
      rgba(7, 18, 42, 0) 75%
    ),
    linear-gradient(
      0deg,
      rgba(7, 18, 42, 0.2) 0%,
      rgba(7, 18, 42, 0.05) 35%,
      rgba(7, 18, 42, 0) 60%
    );
  z-index: 1;
  pointer-events: none;
}

.pantheon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(
    180deg,
    rgba(7, 18, 42, 0.12) 0%,
    rgba(7, 18, 42, 0.02) 40%,
    rgba(7, 18, 42, 0.11) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.pantheon-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  box-sizing: border-box;
  z-index: 3;
}

.pantheon-why,
.pantheon-buy {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pantheon-buy {
  margin-top: 40px;
  display: none !important;
}

.pantheon-why { margin-bottom: clamp(40px, 5vh, 60px); }

.pantheon-why-title,
.pantheon-buy-title {
  margin: 0 0 40px;
  color: #FFF;
  font-family: 'SeoulHangang', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 5vw, 38px);
  text-align: center;
}

.pantheon-why-rows {
  --card-width: clamp(220px, 25vw, 300px);
  --card-gap: clamp(16px, 2vw, 32px);
  width: 100%;
  max-width: calc(var(--card-width) * 2 + var(--card-gap));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--card-gap);
  justify-items: center;
}

.pantheon-why-card {
  position: relative;
  width: var(--card-width);
  max-width: 100%;
  aspect-ratio: 655 / 310;
  box-sizing: border-box;
  color: #FFF;
  font-family: 'SeoulHangang', sans-serif;
  overflow: hidden;
}

.why-card-frame,
.buy-card-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.why-card-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 24px 24px;
  box-sizing: border-box;
}

.why-card-icon { width: 64px; height: 64px; margin-right: 16px; flex-shrink: 0; }
.why-card-title {
  margin: 0 0 8px;
  font-size: clamp(21px, 5vw, 22px);
  line-height: 1.2;
  text-align: left;
}
.why-card-desc { margin: 0; font-size: 15px; text-align: left; }

.pantheon-buy-cards {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.buy-card {
  position: relative;
  flex: 0 0 241px;
  width: 241px;
  /* Reduce height about 30% keeping width */
  aspect-ratio: 241 / 176;
  box-sizing: border-box;
  color: #FFF;
  font-family: 'SeoulHangang', sans-serif;
  text-align: center;
  overflow: hidden;
}

.buy-card-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.buy-step-num {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #82ECFF;
}
.buy-step-title { margin: 0 0 8px; font-size: 20px; }
.buy-step-desc { margin: 0; font-size: 15px; }

@media (min-width: 900px) {
  /* increase why cards size on desktop */
  .pantheon-why-rows {
    --card-width: clamp(253px, 28.75vw, 345px);
  }
}

@media (max-width: 599px) {
  .pantheon-why-rows {
    width: 100%;
    grid-template-columns: 1fr;
    gap: var(--card-gap);
  }
  .pantheon-why-card {
    width: 100%;
    max-width: none;
  }
  .pantheon-buy-cards { gap: 24px; }
  .buy-card { flex: 0 0 calc(50% - 12px); width: calc(50% - 12px); }
}

@media (max-width: 600px) {
  .buy-card { flex: 0 0 100%; width: 100%; }
}

/* ===== RC video section ===== */
.rc-video-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: #07122A;
}

.rc-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
}

.rc-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 16, 32, 0.44);
  pointer-events: none;
  z-index: 1;
}

.rc-fade {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 180px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(7, 18, 42, 0) 0%,
    #07122A 100%
  );
}

.rc-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 0);
  width: 100%;
  max-width: 1100px;
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
}

.rc-title {
  margin: 0 0 20px;
  color: #fff;
  font-family: 'SeoulHangang', sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 5vw, 40px);
}

.rc-card {
  margin: 0 0 20px;
  padding: 20px;
  border: 2px solid #82ECFF;
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  box-sizing: border-box;
}

.rc-card-subtitle {
  margin: 0;
  color: #82ECFF;
  font-family: 'SeoulHangang', sans-serif;
  font-size: clamp(16px, 4vw, 24px);
  line-height: 1.3;
}

.rc-desc {
  margin: 20px 0 0;
  color: #fff;
  font-family: 'SeoulHangang', sans-serif;
  font-size: clamp(14px, 3vw, 20px);
  line-height: 1.4;
  max-width: 800px;
}


/* ===== RC purpose section ===== */
.rc-purpose-section {
  position: relative;
  z-index: 0;
  width: 100%;
  background: #07122A;
  padding: 60px 20px;
  box-sizing: border-box;
}


.rc-purpose-title {
  margin: 0 0 40px;
  color: #FFF;
  font-family: 'SeoulHangang', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 5vw, 38px);
  text-align: center;
}

.rc-purpose-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.rc-purpose-card {
  border: 2px solid #82ECFF;
  border-radius: 20px;
  padding: 20px;
  box-sizing: border-box;
  color: #FFF;
  font-family: 'SeoulHangang', sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
}

.rc-purpose-card h3 {
  margin: 0 0 12px;
  color: #82ECFF;
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3em;
}

.rc-purpose-card p {
  margin: 0;
  font-size: clamp(14px, 3vw, 18px);
  line-height: 1.4;
}

@media (max-width: 899px) {
  .rc-purpose-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .rc-purpose-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 599px) {
  .rc-purpose-card:first-child h3 br {
    display: none;
  }
}

/* ===== RC rate section ===== */
.rc-rate-title {
  margin: 0 0 40px;
  color: #FFF;
  font-family: 'SeoulHangang', sans-serif;
  font-weight: 700;
  font-size: 38px;
  text-align: center;
}

.rc-rate-section {
  width: 100%;
  background: #07122A;
  margin: 0;
  display: flex;
  justify-content: center;
  border-top: 2px solid #62d0f8;
  border-bottom: 2px solid #62d0f8;
  box-sizing: border-box;
}

.rc-rate-container {
  position: relative;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  gap: 24px;
  align-items: center;
}

.rc-rate-container::after,
.rc-rate-container::before {
  display: none;
}

.rc-rate-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rc-rate-formula {
  color: #FFF;
  font-family: 'SeoulHangang', sans-serif;
  font-size: clamp(14px, 3vw, 20px);
  line-height: 1.4;
  text-align: center;
}

.rc-rate-right {
  flex: 1.4;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.rc-rate-card {
  border: 2px solid #82ECFF;
  border-radius: 20px;
  padding: 20px;
  box-sizing: border-box;
  color: #FFF;
  font-family: 'SeoulHangang', sans-serif;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 899px) {
  .rc-rate-container {
    flex-direction: column;
    gap: 24px;
  }
  .rc-rate-right {
    grid-template-columns: repeat(2, 1fr);
  }
  .rc-rate-container::after,
  .rc-rate-container::before {
    display: none;
  }
}

@media (max-width: 600px) {
  .rc-rate-right {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 599px) {
  .rc-rate-card p {
    font-size: clamp(14px, 3vw, 18px);
    line-height: 1.4;
  }
}

/* ===== RC use section ===== */
.rc-use-title {
  margin: 60px 0 40px;
  color: #FFF;
  font-family: 'SeoulHangang', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 5vw, 38px);
  text-align: center;
}

.rc-use-section {
  width: 100%;
  background: #07122A;
  display: flex;
  justify-content: center;
  padding: 0 20px 60px;
  box-sizing: border-box;
}

.rc-use-grid {
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rc-use-card {
  border: 2px solid #82ECFF;
  border-radius: 20px;
  padding: 20px;
  box-sizing: border-box;
  color: #FFF;
  font-family: 'SeoulHangang', sans-serif;
  text-align: left;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.rc-use-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.rc-use-texts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.rc-use-card h3 {
  margin: 0 0 12px;
  color: #82ECFF;
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 700;
}

.rc-use-card p {
  margin: 0;
  font-size: clamp(14px, 3vw, 18px);
  line-height: 1.4;
}

@media (max-width: 899px) {
  .rc-use-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rc-use-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .rc-use-texts { align-items: center; }
  .rc-use-icon {
    margin: 0 auto 12px;
    width: clamp(60px, 12vw, 88px);
    height: clamp(60px, 12vw, 88px);
  }
}

@media (max-width: 600px) {
  .rc-use-grid {
    grid-template-columns: 1fr;
  }
  .rc-use-title {
    margin-top: 40px;
    font-size: 22px;
  }
}

/* ===== Token tool section ===== */
.token-tool-section {
  width: 100%;
  background: #07122A;
  margin: 0;
  display: flex;
  justify-content: center;
  border-top: 2px solid #62d0f8;
  border-bottom: 2px solid #62d0f8;
  box-sizing: border-box;
}
.token-tool-container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.token-tool-text {
  margin: 0 0 16px;
  color: #82ECFF;
  font-family: SeoulHangang, sans-serif;
  font-size: 20px;
  line-height: 1.4;
}

/* ===== Liquidity section ===== */
.liquidity-title {
  margin: 60px 0 40px;
  color: #FFF;
  font-family: 'SeoulHangang', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 5vw, 38px);
  text-align: center;
}

.liquidity-section {
  width: 100%;
  background: #07122A;
  margin: 0;
  display: flex;
  justify-content: center;
  border-top: 2px solid #62d0f8;
  border-bottom: 2px solid #62d0f8;
  box-sizing: border-box;
}

.liquidity-container {
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.liquidity-card {
  padding: 20px;
  box-sizing: border-box;
  color: #FFF;
  font-family: 'SeoulHangang', sans-serif;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.liquidity-card:not(:last-child) {
  border-right: 1px solid #82ECFF;
}

.liquidity-card h3 {
  margin: 0 0 12px;
  color: #82ECFF;
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 700;
}

.liquidity-card p {
  margin: 0;
  font-size: clamp(14px, 3vw, 18px);
  line-height: 1.4;
}

/* ===== Final video section ===== */
.final-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  background: #07122A;
  margin-top: 0;
  padding-top: 0;
}

.final-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin: 0;
  padding: 0;
  z-index: 0;
}

.final-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 18, 42, 0.4);
  z-index: 1;
  pointer-events: none;
}

.final-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
  z-index: 2;
  pointer-events: none;
}

.final-text {
  margin: 0;
  color: #fff;
  font-family: 'SeoulHangang', sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 6vw, 48px);
  opacity: 0;
  transform: translateY(20px);
  animation: finalFadeIn 1.6s ease forwards;
  animation-delay: 0.4s;
}

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

@media (min-width: 900px) {
  .liquidity-card {
    text-align: left;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .liquidity-card h3,
  .liquidity-card p {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .liquidity-container {
    grid-template-columns: 1fr;
  }
  .liquidity-card:not(:last-child) {
    border-right: none;
  }
}

/* ===== Responsive adjustments ===== */
@media (max-width: 899px) {
  .header-menu { display: none !important; }
  .burger { display: flex !important; }
  .legend-container,
  .ecosystem-container,
  .total-volume-container,
  .distribution-container,
  .principles-container,
  .apply-container,
  .token-tool-container,
  .pantheon-why,
  .pantheon-buy {
    max-width: 95vw;
    padding-left: min(16px, 2vw);
    padding-right: min(16px, 2vw);
  }
  .about-content {
    max-width: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }
  .about-cards {
    display: flex;
    flex-direction: column;
    gap: 19px;
    width: 100%;
    max-width: none;
  }
  .principles-grid { grid-template-columns: 1fr 1fr; }
  .apply-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 599px) {
  .about-cards,
  .principles-grid,
  .apply-grid { grid-template-columns: 1fr; }
  .principle-frame { display: none; }
  .principle-card {
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    aspect-ratio: 4 / 3;
  }
  .principle-card-inner {
    align-items: center;
    text-align: center;
    padding: 16px;
  }
  .principle-icon {
    margin: 0 auto 8px;
    width: 64px;
    height: 64px;
  }
  .principle-card-title {
    padding-left: 0;
    text-align: center;
    font-size: 20px;
  }
  .principle-card-text {
    padding-left: 0;
    text-align: center;
    font-size: 14px;
  }
  .pantheon-why-rows { grid-template-columns: 1fr; justify-items: center; }
  .pantheon-buy-cards { flex-direction: column; align-items: center; }
  .pantheon-why-card {
    border: 1px solid transparent;
    border-radius: 18px;
    background: rgba(7,18,42,0.18);
    box-shadow: inset 0 0 12px rgba(0,0,0,0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    aspect-ratio: unset;
  }
  .why-card-frame { display: none; }
  .why-card-inner {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 16px;
  }
  .why-card-icon {
    margin: 0;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
  }
  .why-card-title,
  .why-card-desc { text-align: left; }

  /* Token usage cards */
  .apply-card {
    aspect-ratio: 655 / 356.5;
    min-height: 260px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  }
  .apply-card-frame { display: none; }
  .apply-card-inner {
    align-items: center;
    text-align: center;
    padding: 20px;
  }
  .apply-icon {
    margin: 0 auto 12px;
    width: 72px;
    height: 72px;
  }
  .apply-card-title {
    padding-left: 0;
    text-align: center;
    font-size: clamp(12px, 3vw, 20px);
  }
  .apply-card-text {
    padding-left: 0;
    text-align: center;
    font-size: clamp(12px, 2.5vw, 14px);
  }
    .token-tool-text { font-size: 18px; }
    .token-tool-container { padding: 24px 0; }
}

@media (min-width: 600px) and (max-width: 899px) {
  .apply-grid { gap: 24px; }
  .apply-card {
    aspect-ratio: 655 / 356.5;
    min-height: 300px;
    border: 2px solid transparent;
    border-radius: 20px;
    background:
      linear-gradient(#071229, #071229) padding-box,
      linear-gradient(135deg, #77EAEB, #5586E7) border-box;
    box-shadow: inset 0 0 12px rgba(0,0,0,0.25);
  }
  .apply-card-frame { display: none; }
  .apply-card-inner {
    align-items: center;
    text-align: center;
    padding: 20px;
  }
  .apply-icon {
    margin: 0 auto 12px;
    width: clamp(60px, 12vw, 88px);
    height: clamp(60px, 12vw, 88px);
  }
  .apply-card-title {
    padding-left: 0;
    text-align: center;
    font-size: clamp(12px, 3vw, 26px);
  }
  .apply-card-text {
    padding-left: 0;
    text-align: center;
    font-size: clamp(12px, 2.5vw, 18px);
  }
  .pantheon-why-card {
    border: 2px solid transparent;
    border-radius: 18px;
    background: rgba(7,18,42,0.18);
    box-shadow: inset 0 0 12px rgba(0,0,0,0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    aspect-ratio: unset;
  }
  .why-card-frame { display: none; }
  .why-card-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }
  .why-card-icon {
    margin: 0 auto 12px;
    width: clamp(60px, 12vw, 88px);
    height: clamp(60px, 12vw, 88px);
  }
  .why-card-title,
  .why-card-desc { text-align: center; }
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
  gap: 5px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #fff;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.mobile-menu.show { display: flex; }
.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(7,18,42,0.98);
  z-index: 0;
}
.mobile-menu-panel {
  position: relative;
  z-index: 1;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100vw;
  height: 100vh;
}
.mobile-menu a {
  color: #fff;
  text-decoration: none;
  font-size: clamp(16px, 6vw, 24px);
  padding: 12px;
}
.mobile-menu .mobile-menu-item {
  color: #fff;
  text-align: center;
  font-size: clamp(16px, 6vw, 24px);
  padding: 12px;
}
.mobile-menu button.mobile-menu-item {
  background: none;
  border: none;
}
.mobile-menu a:hover,
.mobile-menu .mobile-menu-item:hover {
  color: #82ECFF;
}
.mobile-dropdown-items { display: none; flex-direction: column; width: 100%; }
.mobile-dropdown-items.show { display: flex; }
.mobile-dropdown-toggle {
  cursor: pointer;
  position: relative;
}
.mobile-dropdown-toggle::after {
  content: "\25BC";
  display: inline-block;
  margin-left: 0.25rem;
  color: #fff;
  font-size: 0.75em;
}
.mobile-submenu {
  position: absolute;
  inset: 0;
  background: rgba(7,18,42,0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 2;
}
.mobile-submenu.show { transform: translateX(0); }
.mobile-back {
  position: absolute;
  top: 20px;
  left: 20px;
  color: #fff;
}
body.menu-open { overflow: hidden; }

@media (min-width: 900px) {
  .header-menu { display: flex !important; }
  .header-login-btn {
    width: 130px;
    height: 35px;
    border-radius: 10px;
    font-size: 14px;
    color: #000;
    padding: 0;
  }
  .lang-switch { margin-right: 1.5rem; }
}

@media (max-width: 899px) {
  .header-landing {
    height: 56px;
    padding: 0 1rem;
  }
  .hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 56px; /* header */
  }
  .hero-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 18, 42, 0.45);
    z-index: 1;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    position: relative;
    z-index: 2;
  }
  .hero-title {
    font-size: clamp(32px, 9vw, 48px);
    white-space: normal;
    text-align: center;
    margin-bottom: 16px;
    width: 100%;
    max-width: 100vw;
    line-height: 1.15;
  }
  .hero-desc {
    font-size: 20px;
    white-space: normal;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.4;
    width: 100%;
    max-width: 100vw;
    color: #FFFFFF;
    padding: 0 20px;
  }
  .hero-btn-wrap {
    align-items: center;
    margin-bottom: 24px;
    width: 100%;
  }
  .hero-btn {
    width: 90vw;
    min-width: 0;
    max-width: 350px;
    height: 44px;
    font-size: 17px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .ton-part {
    justify-content: center;
    width: 100%;
    margin: 10px 0 0 0;
  }
  .ton-part-text {
    font-size: 15px;
    white-space: normal;
  }
}
/* ===== Footer ===== */
.footer {
  position: relative;
  background: #07122A;
  color: #fff;
  font-family: 'SeoulHangang', sans-serif;
}

.footer-fade {
  position: absolute;
  top: -160px;
  left: 0;
  width: 100%;
  height: 160px;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(
      180deg,
      rgba(7, 18, 42, 0) 0%,
      rgba(7, 18, 42, 0.05) 30%,
      rgba(7, 18, 42, 0.15) 55%,
      rgba(7, 18, 42, 0.4) 80%,
      rgba(7, 18, 42, 0.8) 90%,
      #07122A 100%
    ),
    linear-gradient(
      0deg,
      rgba(7, 18, 42, 0.2) 0%,
      rgba(7, 18, 42, 0.05) 65%,
      rgba(7, 18, 42, 0) 100%
    );
}
.footer-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 60px 40px;
  box-sizing: border-box;
  align-items: flex-start;
}
.footer-logo-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.footer-logo {
  width: 100px;
  height: auto;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-brand-text {
  margin-left: 0;
  display: flex;
  flex-direction: column;
}
.footer-brand-name {
  color: #82ECFF;
  font-size: 24px;
  font-weight: 700;
}
.footer-brand-tagline {
  font-size: 14px;
  color: #fff;
}
.footer-socials {
  margin: 24px 0;
  display: flex;
  gap: 20px;
}
.footer-socials a img {
  width: 32px;
  height: 32px;
}
.footer-brand-col,
.footer-docs-col,
.footer-contact-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-docs-col {
  grid-column: 2;
}
.footer-contact-group.general {
  grid-column: 3;
}
.footer-contact-group.special {
  grid-column: 4;
}
.footer-docs-col {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.footer-docs-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
  width: 100%;
}
.footer-docs-col a,
.footer-docs-col a:visited {
  color: #82ECFF;
  text-decoration: none;
  font-size: 14px;
}
.footer-docs-col a:hover,
.footer-docs-col a:focus,
.footer-docs-col a:active {
  color: #b2f6ff;
}
.footer-products {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}
.footer-product {
  display: flex;
  align-items: flex-start;
  text-decoration: none;
  color: #fff;
  gap: 12px;
}
.product-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.product-name {
  color: #82ECFF;
  font-weight: 700;
}
.product-desc {
  display: block;
  font-size: 14px;
  line-height: 1.3;
}
.footer-right {
  display: flex;
  flex-direction: column;
}
.footer-contact-columns {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.footer-contacts-title {
  color: #82ECFF;
  font-size: 24px;
  margin: 0 0 20px;
}
.footer-contact-group {
  margin-bottom: 24px;
}
.footer-contact-group-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
}
.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  margin-bottom: 12px;
}
.contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.contact-info {
  display: flex;
  flex-direction: column;
}
.contact-email {
  font-weight: 400;
}
.contact-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}
.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 40px;
  flex-wrap: wrap;
  box-sizing: border-box;
  text-align: center;
}
.footer-copy {
  font-size: 14px;
  text-align: center;
}
.footer-policies {
  display: flex;
  gap: 8px;
  font-size: 14px;
}
.footer-policies a,
.footer-policies a:visited {
  color: #82ECFF;
  text-decoration: none;
}
@media (max-width: 899px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 20px;
    text-align: center;
  }
  .footer-brand-col,
  .footer-docs-col,
  .footer-contact-group {
    align-items: center;
  }
  .footer-docs-col,
  .footer-contact-group.general,
  .footer-contact-group.special {
    grid-column: auto;
    grid-row: auto;
  }
  .footer-contact-columns {
    flex-direction: column;
    align-items: center;
  }
  .footer-socials {
    justify-content: center;
    flex-wrap: wrap;
  }
  .footer-products {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  .footer-product {
    width: auto;
    justify-content: center;
  }
  .footer-product .product-texts {
    text-align: center;
  }
}
@media (max-width: 599px) {
  .footer-product {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-contact {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    text-align: center;
  }
}

/* Custom scrollbar for desktop browsers */
@media (hover: hover) and (pointer: fine) {
  html {
    scrollbar-color: #82ECFF transparent;
    scrollbar-width: thin;
  }

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

  ::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 8px;
  }

  ::-webkit-scrollbar-thumb {
    background: #82ECFF;
    border-radius: 8px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #aaf2ff;
  }
}

/* Apps modal */
.apps-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  align-items: center;
  justify-content: center;
}
.apps-modal.show { display: flex; }
.apps-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
}
.apps-modal-dialog {
  position: relative;
  background: #07122a;
  padding: 24px;
  border-radius: 12px;
  width: 90%;
  max-width: 98vw;
  color: #fff;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}
.apps-modal-title { margin: 0 0 12px; font-size: 20px; text-align: center; }
.apps-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 24px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}
.apps-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 8px;
  justify-content: center;
  max-width: 98vw;
}
.apps-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 320px;
  min-width: 140px;
}
.apps-card-link {
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  touch-action: manipulation;
}
.apps-card-link:hover,
.apps-card-link:focus {
  box-shadow: 0 0 8px rgba(255,255,255,0.3);
  transform: translateY(-4px);
}
.apps-card-link:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.apps-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.apps-card-label {
  margin-top: 12px;
  font-size: 1.15em;
  color: #fff;
  text-align: center;
}
@media (max-width: 1099px) {
  .apps-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (max-width: 599px) {
  .apps-modal-dialog {
    padding-top: 32px;
    padding-bottom: 32px;
    max-height: 100vh;
  }
  .apps-cards {
    grid-template-columns: 1fr;
  }
  .apps-card {
    width: 100%;
    max-width: 160px;
    margin: 0 auto;
  }
  .apps-card + .apps-card {
    margin-top: 16px;
  }
  .apps-card-link {
    height: calc((100vh - 180px) / 3);
    max-height: 140px;
    min-height: 90px;
  }
}
body.apps-modal-open { overflow: hidden; }

