/* ======== FONT AND GLOBAL ======== */
body {
  font-family: 'Roboto', 'Inter', Arial, sans-serif;
  background: #0a1122;
  color: #fff;
  margin: 0;
  padding: 0;
  line-height: 1.5;
  min-height: 100vh;
  padding-top: 88px;
}

a { color: #00d3ff; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ======== STELLAR STAR BACKGROUND ======== */
#stellar-stars-bg {
  position: fixed !important;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  z-index: -1;
  pointer-events: none;
  background: transparent !important;
  display: block;
}

/* =================== HEADER =================== */
header.main-header {
  width: 100%;
  border-bottom: 1.5px solid #132c4e;
  background: rgba(16,26,47,0.94);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  margin: 0;
  padding: 0;
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 2vw 0.7rem 1vw;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.logo-img {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: none;
  box-shadow: 0 2px 18px #00d3ff11;
  display: block;
  transition: width .2s, height .2s;
}

.logo-text {
  font-size: 1.77rem;
  font-weight: 700;
  color: #00d3ff;
  letter-spacing: 1.2px;
  line-height: 1;
  margin-left: 0.1rem;
  transition: font-size .2s;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  background: none;
}

.main-nav ul li {
  position: relative;
}

.main-nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.03rem;
  padding: 0.4rem 1rem;
  border-radius: 12px;
  transition: color 0.16s, background 0.13s;
  background: none;
}

.main-nav ul li a.active,
.main-nav ul li a:hover {
  color: #00d3ff;
  background: #17244b;
}

/* Submenu: базовые стили */
.main-nav ul li ul.submenu {
  position: absolute;
  top: 1.8rem;
  left: 0;
  min-width: 230px;
  max-width: 500px;
  background: #18223d;
  border-radius: 12px;
  box-shadow: 0 8px 28px #00d3ff16;
  padding: 0.3rem 0;
  z-index: 20;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.2s ease,
    visibility 0s linear 0.2s; /* задержка скрытия visibility */
}

/* При наведении или фокусе на родителя показываем submenu */
.main-nav ul li:hover > ul.submenu,
.main-nav ul li:focus-within > ul.submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s; /* показываем сразу */
}

/* Стили для пунктов меню — оставь без изменений */
.main-nav ul li ul.submenu li {
  width: 100%;
  padding: 0;
}
.main-nav ul li ul.submenu li a {
  display: block;
  width: 100%;
  padding: 0.6rem 1.1rem;
  box-sizing: border-box;
  border-radius: 7px;
  color: #b3e8f7;
  font-size: 0.99rem;
  background: none;
  font-weight: 400;
  transition: background 0.15s, color 0.15s;
}
.main-nav ul li ul.submenu li a:hover {
  color: #00d3ff;
  background: #102040;
}


.main-nav ul li a:focus {
  outline: 2px solid #00d3ff;
  outline-offset: 1px;
}



@media (max-width: 1200px) {
  .header-content {
    padding: 0.5rem 1vw 0.5rem 1vw;
  }
  .logo-img { width: 50px; height: 50px; }
  .logo-text { font-size: 1.2rem; }
}
@media (max-width: 800px) {
  .header-content { flex-direction: column; align-items: flex-start; }
  .main-nav ul { flex-direction: column; gap: 0.1rem; width: 100%; }
  .main-nav ul li { width: 100%; }
  .main-nav ul li a { width: 100%; }
}


/* ======== HERO & SECTIONS TRANSPARENT ======== */
.hero,
.features,
.tokens,
.tokenomics,
.roadmap,
.partners,
.team-section,
.wl-steps,
.wl-advantages,
.blog-list {
  background: transparent !important;
  box-shadow: none !important;
}
footer {
  background: rgba(16, 26, 47, 0.82);
}

.hero {
  background: linear-gradient(90deg, rgba(16,26,47,0.93) 58%, rgba(16,26,47,0.77) 100%), url('/images/baner.png') no-repeat center/cover;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: #00d3ff;
  font-weight: 700;
  margin: 2.2rem 0 2.2rem 0;
}

/* ======== FLEX GRIDS ======== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  background: transparent;
}
@media (max-width: 600px) {
  .container { padding: 0 0.3rem; max-width: 100vw;}
}
.features-flex,
.tokens-flex,
.roadmap-flex,
.tokenomics-flex,
.partners-flex,
.team-grid,
.blog-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2.2rem;
  width: 100%;
}
.card, .blog-card, .team-card {
  background: rgba(19, 31, 58, 0.90);
  border-radius: 22px;
  box-shadow: 0 4px 24px #00d3ff0c;
  padding: 2.2rem 1.1rem 1.5rem 1.1rem;
  min-width: 240px;
  max-width: 370px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;
}
.card img, .blog-card img, .team-card img {
  display: block;
  margin: 0 auto 1.1rem auto;
  object-fit: contain;
  border-radius: 16px;
}
.team-card img { border-radius: 50%; width: 110px; height: 110px; box-shadow: 0 0 0 5px #18273c; }

/* ======== PARTNERS LOGOS ======== */
.partners-flex img {
  width: 330px;
  height: 100px;
  object-fit: contain;
  background: none;
  border-radius: 24px;
  box-shadow: 0 2px 24px #00d3ff1a;
  padding: 2.4rem 2.1rem;
  margin-bottom: 0.7rem;
  max-width: 98vw;
  transition: box-shadow 0.17s;
  display: block;
}
.partners-flex img:hover { box-shadow: 0 4px 42px #00d3ff44;}

@media (max-width: 1200px) {
  .partners-flex img { width: 95vw; height: 84px; padding:1rem;}
}
@media (max-width: 800px) {
  .partners-flex img { width: 95vw; height: 52vw; max-height:110px; min-height:60px; padding:0.7rem;}
  .logo-img { width: 46px; height: 46px;}
  .logo-text { font-size: 1.2rem;}
}
@media (max-width: 480px) {
  .header-content { flex-direction: column; align-items: flex-start; }
  .logo-img { width: 36px; height: 36px;}
  .logo-text { font-size: 1.0rem;}
  .partners-flex img { height: 44vw; max-height:80px; min-height:44px;}
  .container { padding: 0 0.1rem; }
}
@media (max-width: 900px) {
  .features-flex, .tokens-flex, .roadmap-flex, .tokenomics-flex, .team-grid, .blog-grid {
    flex-direction: column;
    align-items: center;
  }
  .section-title { font-size: 1.3rem; }
}

/* ======== BUTTONS & INTERACTIONS ======== */
.btn, .btn-mini, .connect-wallet {
  background: linear-gradient(90deg,#00d3ff,#178cff,#101a2f 90%);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 1.13rem;
  font-weight: 700;
  padding: 0.83em 1.55em;
  cursor: pointer;
  box-shadow: 0 2px 14px #00d3ff3a;
  transition: background .16s, color .14s, box-shadow .17s;
  text-align: center;
  display: inline-block;
  margin-top: 0.8em;
}
.btn:hover, .btn-mini:hover, .connect-wallet:hover {
  background: linear-gradient(90deg, #178cff 40%, #00d3ff 100%);
  color: #0a1122;
}

.btn-mini {
  font-size: 1.01rem;
  padding: 0.7em 1.1em;
  margin-top: 0.5em;
}

/* ======== INPUTS & FORMS ======== */
input[type="email"], input[type="text"], input[type="password"] {
  padding: 0.9em 1.25em;
  font-size: 1.11rem;
  border-radius: 13px;
  border: none;
  outline: none;
  margin-bottom: 0.8em;
  background: rgba(14,23,43,0.17);
  color: #fff;
  box-shadow: 0 2px 12px #00d3ff11;
}

form { width: 100%; max-width: 410px; margin: 0 auto; }
form label { font-weight: 700; color: #b3e8f7; }
form button { width: 100%; margin-top: 1.3em; }

/* ======== SCROLL UP BUTTON ======== */
#scrollup {
  position: fixed;
  right: 2vw;
  bottom: 2vw;
  width: 50px; height: 50px;
  background: #00d3ff;
  border-radius: 50%;
  box-shadow: 0 4px 18px #00d3ff33;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2000;
  opacity: 0.97;
  border: none;
  transition: background 0.16s, box-shadow 0.14s;
}
#scrollup:hover {
  background: #1ee7fa;
  box-shadow: 0 2px 24px #00d3ff80;
}
#scrollup svg {
  width: 32px; height: 32px;
  fill: none;
  stroke: #081026;
  stroke-width: 3.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ======== FOOTER ======== */
footer {
  background: rgba(16,26,47,0.94);
  padding: 3.2rem 0 1.7rem 0;
  color: #b6deff;
  font-size: 1.07rem;
  text-align: center;
  border-top: 1px solid #233459;
}
footer a { color: #00d3ff; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ======== BLUR EFFECTS (optional) ======== */
.blur-bg {
  backdrop-filter: blur(11px);
  background: rgba(16,26,47,0.58) !important;
  border-radius: 24px;
}

/* ======== MOBILE OPTIMIZATION ======== */
@media (max-width: 700px) {
  header.main-header { padding: 0.3rem 0; }
  .header-content { padding: 0.35rem 1vw 0.6rem 2vw; }
  .section-title { font-size: 1.08rem; margin: 1.1rem 0 1.5rem 0;}
  .card, .blog-card, .team-card { min-width: 80vw; max-width: 97vw; }
}
.hero,
.features,
.tokens,
.tokenomics,
.roadmap,
.partners,
.team-section,
.wl-steps,
.wl-advantages,
.blog-list {
  background: transparent !important;
  box-shadow: none !important;
}

.partners-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.7rem;
}
.partners-grid-3 .card {
  max-width: 100%;
  width: 100%;
  padding-top: 2.6rem;
  margin-bottom: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  min-height: 370px; /* можно скорректировать под твой текст */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
@media (max-width: 1200px) {
  .partners-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .partners-grid-3 {
    grid-template-columns: 1fr;
  }
}
.partners-grid-3 .card img {
  object-fit: contain !important;
  width: 110px !important;
  height: 44px !important;
  margin-bottom: 1.5rem !important;
  margin-top: 0.7rem !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.partners-grid-3 .logo-wrap {
  width: 120px;
  height: 64px;
  margin: 0 auto 1.4rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border-radius: 14px;
  box-shadow: none;
}

.partners-grid-3 .logo-wrap img {
  max-width: 100%;
  max-height: 58px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  background: none;
  box-shadow: none;
  border-radius: 0;
}

/* Бургер-кнопка */
#burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1101;
  margin-left: auto;
}
#burger span {
  display: block;
  height: 4px;
  width: 28px;
  margin: 4px 0;
  border-radius: 2px;
  background: #00d3ff;
  transition: .3s;
}
@media (max-width: 850px) {
  #burger { display: flex; }
  nav#mainnav {
    position: fixed;
    top: 0; right: -120vw;
    width: 78vw;
    max-width: 330px;
    height: 100vh;
    background: #101a2f;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 80px 1.5rem 2rem 1.5rem;
    transition: right .33s cubic-bezier(.65,.05,.36,1);
    box-shadow: -4px 0 32px #00d3ff33;
    z-index: 1100;
    overflow-y: auto;
  }
  nav#mainnav.open { right: 0; }
  header .container { flex-wrap: nowrap; }
  .connect-btn {
    margin-left: 0;
    margin-top: 18px;
    width: 100%;
    max-width: 260px;
  }
}
body.menu-open {
  overflow: hidden;
  touch-action: none;
}
#burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#burger.open span:nth-child(2) { opacity: 0; }
#burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.connect-btn {
  background: #00d3ff;
  color: #081026;
  border-radius: 18px;
  padding: 0.75rem 1.9rem;
  font-weight: 700;
  font-size: 1.07rem;
  margin-left: 1.8rem;
  transition: box-shadow .2s, background .23s;
  box-shadow: 0 2px 18px #00d3ff14;
}
.connect-btn:hover { background:#14e6ff; box-shadow:0 2px 24px #00d3ff2a;}

.guide-video-mockup {
  position: relative;
  width: 370px;
  margin: 0 auto;
  max-width: 96vw;
}
.guide-video-mockup img {
  width: 100%;
  display: block;
}
.guide-video-mockup video {
  position: absolute;
  left: 12.1%;
  top: 10.7%;
  width: 75.8%;
  height: 77.6%;
  border-radius: 30px;
  object-fit: cover;
  background: #0d141e;
}
@media (max-width: 480px) {
  .guide-video-mockup {width: 98vw; min-width: 240px;}
}
/* === ДОПОЛНЕНИЯ И КОРРЕКЦИИ ДЛЯ МОБИЛЬНЫХ @media === */

@media (max-width: 850px) {
  /* Показываем гамбургер */
  #burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* центрирование иконок */
    width: 40px;
    height: 40px;
    margin-left: auto;
    padding: 0;
    cursor: pointer;
  }

  /* Анимация гамбургера */
  #burger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  #burger.open span:nth-child(2) {
    opacity: 0;
  }
  #burger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Мобильное меню */
  nav#mainnav {
    position: fixed;
    top: 0;
    right: -120vw; /* прячем за экран */
    width: 78vw;
    max-width: 330px;
    height: 100vh;
    background: #101a2f;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 80px 1.5rem 2rem 1.5rem;
    transition: right 0.33s cubic-bezier(0.65, 0.05, 0.36, 1);
    box-shadow: -4px 0 32px #00d3ff33;
    z-index: 1100;
    overflow-y: auto;
  }
  nav#mainnav.open {
    right: 0;
  }

  /* Меню в столбик, ширина 100% */
  .main-nav ul {
    flex-direction: column;
    gap: 0.3rem;
    width: 100%;
  }
  .main-nav ul li {
    width: 100%;
  }
  .main-nav ul li a {
    width: 100%;
    padding: 0.7rem 1rem;
  }

  /* Подменю */
  .main-nav ul li ul.submenu {
    position: static;
    box-shadow: none;
    background: transparent;
    padding-left: 1rem;
    display: none;
  }
  .main-nav ul li.open > ul.submenu {
    display: block;
  }

  /* Чтобы header-content не ломалась */
  .header-content {
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
  }

  /* Логотип и текст меньше */
  .logo-img {
    width: 46px;
    height: 46px;
  }
  .logo-text {
    font-size: 1.2rem;
    padding-top: 2px;
  }

  /* Кнопка Connect Wallet под меню */
  .connect-btn {
    margin-left: 0;
    margin-top: 18px;
    width: 100%;
    max-width: 260px;
  }
}

/* В очень маленьких экранах (<=480px) */
@media (max-width: 480px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .logo-img {
    width: 36px;
    height: 36px;
  }
  .logo-text {
    font-size: 1rem;
  }
}

/* Блокировка скролла при открытом меню */
body.menu-open {
  overflow: hidden;
  touch-action: none;
}

.guide-video-mockup {
  position: relative;
  width: 350px;
  max-width: 90vw;
  margin: 0 auto 2.4rem auto;
  height: auto;
  position: relative;
}

.guide-video-mockup img {
  width: 10%;
  display: block;
  user-select: none;
  pointer-events: none;
  position: relative;
  z-index: 2;
}

.guide-video-mockup video {
  position: absolute;
  top: 10.5%;
  left: 12%;
  width: 76%;
  height: 77.4%;
  border-radius: 0px;
  object-fit: cover;
  background: #0d141e;
  box-shadow: 0 2px 20px #00d3ff16;
  z-index: 3;
  pointer-events: none;
}

@media (max-width: 600px) {
  .guide-video-mockup {
    width: 98vw;
    min-width: 240px;
  }
}
/* ===== TOKENS SCROLL LAYOUT ===== */
.tokens-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tokens-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
  padding: 0.5rem 0;
}

.tokens-scroll::-webkit-scrollbar {
  height: 6px;
}
.tokens-scroll::-webkit-scrollbar-thumb {
  background: rgba(0,211,255,0.4);
  border-radius: 3px;
}

/* ===== CARD STYLES ===== */
.token-card {
  scroll-snap-align: start;
  background: rgba(19,31,58,0.9);
  border-radius: 20px;
  min-width: 260px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem 1.2rem;
  text-align: center;
}

.token-card img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.token-card h3 {
  margin: 0.5rem 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.token-card .supply,
.token-card .price,
.token-card .potential {
  margin: 0.3em 0;
  font-weight: 500;
  color: #b3e8f7;
}

.token-card .potential {
  color: #16fa96;
  font-weight: 700;
}

.token-card .btn {
  margin-top: 1rem;
  background: linear-gradient(90deg,#16fa96,#0ffc96);
  color: #081026;
}
.token-card .btn:hover {
  background: linear-gradient(90deg,#0ffc96,#16fa96);
}

/* ===== ARROW BUTTONS ===== */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(16,26,47,0.6);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  z-index: 10;
}
.scroll-btn:hover {
  opacity: 1;
}
.scroll-btn.left { left: 0; }
.scroll-btn.right { right: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .scroll-btn { display: none; }
}
/* Scale token cards down to 1.25× original */

/* Card size */
.token-card {
  min-width: 250px;           /* was 300px */
  max-width: 275px;           /* was 330px */
  padding: 1.5rem 1rem;       /* was 1.8rem 1.2rem */
}

/* Logo inside card */
.token-card img {
  width: 80px;                /* was 96px */
  height: 80px;
  margin-bottom: 1rem;        /* was 1.2rem */
}

/* Title typography */
.token-card h3 {
  font-size: 1.25rem;         /* was 1.5rem */
  margin: 0.5rem 0;           /* was 0.6rem */
}

/* Supply text */
.token-card .supply {
  font-size: 1.125rem;        /* was 1.35rem */
  margin: 0.25rem 0;          /* was 0.3rem */
}

/* Adjust gap between cards */
.tokens-scroll {
  gap: 1.25rem;               /* was 1.5rem */
  padding: 0.5rem 0;          /* was 0.6rem */
}

/* Featured Interfaces Styles */
.featured-interfaces {
  background: rgba(16,26,47,0.9);
}
.interface-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0 0.5rem;
}
.interface-buttons .btn-mini {
  background: transparent;
  border: 1px solid #00d3ff;
  color: #00d3ff;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}
.interface-buttons .btn-mini:hover {
  background: #00d3ff;
  color: #0a1122;
}
.interface-tagline {
  text-align: center;
  color: #b3e8f7;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}
/* Сделаем, чтобы кнопка была справа всегда */
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* остальные стили */
}
.connect-btn {
  background: #00d3ff;
  color: #081026;
  border-radius: 18px;
  padding: 0.75rem 1.9rem;
  font-weight: 700;
  font-size: 1.07rem;
  margin-left: 1.8rem;
  transition: box-shadow .2s, background .23s;
  box-shadow: 0 2px 18px #00d3ff14;
  cursor: pointer;
}
.connect-btn:hover {
  background:#14e6ff;
  box-shadow:0 2px 24px #00d3ff2a;
}
@media (max-width: 900px) {
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
  }
  .connect-btn {
    margin-left: 0;
    padding: 0.7rem 1.4rem;
    font-size: 1rem;
  }
  .logo-text {
    font-size: 1.15rem;
  }
  #burger { display: flex !important; }
  .main-nav {
    /* меню адаптив */
  }
}
@media (max-width: 600px) {
  .logo-img,
  .logo-text {
    display: none !important;
  }
}
