/* CSS Variables */
:root {
  --primary-color: #C9FA49;
}

/* Плавная прокрутка */
html {
  scroll-behavior: smooth;
}

/* Base reset */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
}
body {
  margin: 0;
  font-family: "Arial", sans-serif;
  background-image: url("media/bg.png"),
                    radial-gradient(circle at center, #1a1a1a 0%, #000 80%);
  background-repeat: no-repeat;
  background-position: center -200px, center;
  background-size: 1400px, cover;
  color: #fff;
  overflow-x: hidden;
}
a{
  text-decoration: none;
}
.container {
  width: 85%;
  max-width: 1200px;
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 250, 73, 0.2);
  transition: all 0.3s ease;
}

/* Принудительное закрепление для мобильных */
@media (max-width: 1000px) {
  header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background: rgba(10, 10, 10, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(201, 250, 73, 0.3) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
  }
  
  body {
    padding-top: 80px;
  }
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 64px;
  width: auto;
}

nav a {
  margin: 0 4px;
  color: #ddd;
  font-size: 0.95em;
  transition: 0.3s;
  padding: 8px 12px;
  border-radius: 6px;
}
nav a:hover {
  color: var(--primary-color);
  background: #222;
}

.btn {
  border: 1px solid var(--primary-color);
  padding: 10px 22px;
  border-radius: 8px;
  color: var(--primary-color);
  background: transparent;
  cursor: pointer;
  transition: 0.3s;
  font-size: 0.95em;
}
.btn:hover {
  background: var(--primary-color);
  color: #111;
  box-shadow: 0 0 20px rgba(179, 255, 74, 0.9);
}

/* Hero */
.hero {
  position: relative;
  text-align: center;
  padding: 120px 0;
  overflow: hidden;
}

.hero h1 {
  font-size: 2.5em;
  line-height: 1.4;
}
.hero .highlight {
  color: var(--primary-color);
}
.hero p {
  margin-top: 15px;
  color: #aaa;
  line-height: 24px;
}
.hero .btn { margin-top: 20px; display: inline-block;}

/* Shapes */
.shape {
  position: absolute;
  filter: drop-shadow(0 0 8px var(--primary-color));
}

.circle {
  border: 2px solid var(--primary-color);
  border-radius: 50%;
}
.triangle {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 20px solid var(--primary-color);
}
.square {
  border: 2px solid var(--primary-color);
}

/* Индивидуальные размеры и анимации */
.hero .shape1 {
  top: 50px; left: 20%;
  width: 35px; height: 35px;
  opacity: 0.6;
  animation: float 6s infinite ease-in-out alternate,
             diagonalMoveReverse 12s infinite ease-in-out alternate;
}
.hero .shape2 {
  top: 150px; right: 25%;
  transform: scale(1.2);
  opacity: 0.4;
  animation: float 6s infinite ease-in-out alternate,
             drift 16s infinite ease-in-out alternate,
             rotateShape 12s linear infinite;
}
.hero .shape3 {
  bottom: 80px; left: 30%;
  width: 15px; height: 15px;
  opacity: 0.25;
  animation: float 6s infinite ease-in-out alternate,
             drift 10s infinite ease-in-out alternate,
             rotateShape 8s linear infinite;
}
.hero .shape4 {
  bottom: 60px; right: 20%;
  width: 50px; height: 50px;
  opacity: 0.75;
  animation: float 6s infinite ease-in-out alternate,
             diagonalMove 8s infinite ease-in-out alternate;
}

@keyframes float {
  0%   { transform: translateY(0) scale(1); }
  50%  { transform: translateY(-20px) scale(1.1); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes drift {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(25px); }
  100% { transform: translateX(0); }
}
@keyframes rotateShape {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes diagonalMove {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(30px, -30px); }
  50%  { transform: translate(60px, 0); }
  75%  { transform: translate(30px, 30px); }
  100% { transform: translate(0, 0); }
}

@keyframes diagonalMoveReverse {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-25px, 25px); }
  50%  { transform: translate(-50px, 0); }
  75%  { transform: translate(-25px, -25px); }
  100% { transform: translate(0, 0); }
}

/* Features */
.features {padding: 100px 0 0;}
.features .feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 100px;
  scroll-margin-top: 120px;
}
.features .feature:nth-child(even) { flex-direction: row-reverse; flex-wrap: wrap; }
.feature-text { flex: 1; padding: 0 40px; }
.feature-text h2 {
  font-size: 1.8em;
  color: #FFFFFF;
  margin-bottom: 15px;
}
.feature-text p { color: #AAA; line-height: 24px; }
.features .feature-text .btn { 
  margin-top: 20px; 
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), #a8e64e);
  color: #111;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(201, 250, 73, 0.4);
}
.features .feature-text .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(201, 250, 73, 0.6);
}
.feature-visual {
  max-width: 360px;
  max-height: 360px;
  border: 8px solid var(--primary-color);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 4s infinite ease-in-out;
  margin: 0 auto;
  /* overflow: hidden; */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  aspect-ratio: 1 / 1;
  height: 100%;
}

.feature-visual img {
  width: 100%;
  /* height: 100%; */
  /* object-fit: cover; */
  cursor: pointer;
  transition: transform 0.3s ease;
  transform: scale(1.1);
}

.feature-visual img:hover {
  transform: scale(1.15);
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Capabilities */
.capabilities {
  background: #0f0f0f;
  padding: 48px 0 100px;
  text-align: center;
  scroll-margin-top: 80px;
}
.capabilities h2 {
  margin-bottom: 50px;
  font-size: 2em;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}
.card {
  background: #1a1a1a;
  padding: 30px 20px;
  border-radius: 15px;
  color: #ccc;
  transition: 0.3s;
  box-shadow: 0 0 15px rgba(179, 255, 74, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.card:hover {
  background: #222;
  box-shadow: 0 0 25px rgba(179, 255, 74, 0.4);
  transform: translateY(-5px);
}

.card-icon {
  font-size: 3em;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px rgba(201, 250, 73, 0.5));
  transition: all 0.3s ease;
  color: var(--primary-color);
}

.card:hover .card-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 15px rgba(201, 250, 73, 0.8));
}

.card-content {
  line-height: 1.6;
  font-size: 1em;
}

/* Тарифы */
.tariffs {
  background: #0f0f0f;
  padding: 100px 0;
  text-align: center;
}

.tariffs h2 {
  margin-bottom: 50px;
  font-size: 2em;
  color: #fff;
}

/* Поддерживаемые биржи */
.exchanges {
  background: #0f0f0f;
  padding: 40px 0 80px;
  text-align: center;
}

.exchanges h2 {
  margin: 0 auto 30px;
  font-size: 2em;
  color: #fff;
}

.exchange-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  align-items: stretch;
  max-width: 900px;
  margin: 0 auto;
}

.exchange {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.exchange-logo {
  width: 100%;
  height: 32px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.exchange span {
  color: #ddd;
  font-size: 0.95em;
}

.exchange.active {
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(201, 250, 73, 0.15);
}

.exchange.inactive {
  opacity: 0.6;
  filter: grayscale(100%);
  position: relative;
}

.exchange.inactive::after {
  content: attr(data-title);
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #bbb;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75em;
}

/* Фоны логотипов бирж */
.exchange-logo.binance { background-image: url("media/exchanges/binance_logo.svg"); }
.exchange-logo.bybit { background-image: url("media/exchanges/bybit_logo.svg"); }
.exchange-logo.mexc { background-image: url("media/exchanges/mexc_logo.svg"); }

@media (max-width: 600px) {
  .exchange-logos {
    grid-template-columns: 1fr 1fr;
  }
}

/* Социальные сети */
.social {
  background: #0f0f0f;
  padding: 20px 0 80px;
  text-align: center;
}

.social h2 {
  margin: 0 auto 20px;
  font-size: 1.8em;
  color: #fff;
}

.social-links {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60% 60%;
  transition: all 0.25s ease;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(201, 250, 73, 0.15);
  border-color: var(--primary-color);
}

.social-link.telegram { background-image: url("media/social/telegram.svg"); }
.social-link.youtube  { background-image: url("media/social/youtube.svg"); }

.tariff-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.tariff-card {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px 20px;
  position: relative;
  transition: all 0.3s ease;
  color: #ccc;
  display: flex;
  flex-direction: column;
}

.tariff-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(201, 250, 73, 0.2);
}

.tariff-card.featured {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  transform: scale(1.05);
}

.tariff-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: #000;
  padding: 5px 20px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 600;
}

.tariff-header {
  margin-bottom: 30px;
}

.tariff-header h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #fff;
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
}

.currency {
  font-size: 1.2em;
  color: var(--primary-color);
}

.amount {
  font-size: 2.5em;
  font-weight: 700;
  color: #fff;
}

.period {
  font-size: 1em;
  color: #aaa;
}

.tariff-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  text-align: left;
  flex: auto;
}

.tariff-features li {
  padding: 8px 0;
  position: relative;
  padding-left: 25px;
}

.tariff-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.tariff-btn {
  width: 100%;
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tariff-btn:hover {
  background: var(--primary-color);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(201, 250, 73, 0.3);
}

.featured .tariff-btn {
  background: var(--primary-color);
  color: #000;
}

.featured .tariff-btn:hover {
  background: #a8e64e;
  transform: translateY(-2px);
}

/* Модальное окно для изображений */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.opened {
  opacity: 1;
  animation: fadeIn 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.modal:not(.opened) {
  animation: fadeOut 0.3s ease;
}

.modal-content {
  /* margin: auto; */
  display: block;
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.3s ease;
}

.close:hover {
  color: var(--primary-color);
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  font-size: 30px;
  padding: 15px 20px;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease;
  border-radius: 5px;
}

.nav-btn:hover {
  background: rgba(201, 250, 73, 0.8);
  color: #000;
  transform: translateY(-50%) scale(1.1);
}

.nav-btn.prev {
  left: 20px;
}

.nav-btn.next {
  right: 20px;
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

#caption {
  /* margin: auto; */
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #fff;
  padding: 10px 0;
  /* height: 150px; */
  font-size: 18px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes zoomIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Мобильное меню */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: 1px;
}

.mobile-menu-toggle.active span:first-child {
  transform: rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:last-child {
  transform: rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 80px;
  transition: right 0.3s ease;
  z-index: 1000;
  border-left: 1px solid rgba(201, 250, 73, 0.2);
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
}

.mobile-nav.active {
  right: 0;
  visibility: visible;
  opacity: 1;
}

.mobile-nav a {
  color: #ddd;
  text-decoration: none;
  font-size: 1.1em;
  padding: 15px 20px;
  margin: 5px 0;
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.mobile-nav a:hover {
  color: var(--primary-color);
  background: rgba(201, 250, 73, 0.1);
}

/* Адаптив */
@media (max-width: 1000px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-nav {
    display: flex;
  }
  
  header .container {
    justify-content: space-between;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .btn {
    font-size: 0.9em;
    padding: 8px 16px;
  }
}

/* Адаптивность для карточек возможностей */
@media (max-width: 900px) {
  .features .feature { flex-direction: column !important; text-align: center; }
  .feature-text {padding: 20px 0 50px;}
  .cards { 
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 500px;
  }
  
  .card-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
  }
  
  .card-content {
    font-size: 0.95em;
  }
  
  .tariff-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 500px;
  }
  
  .tariff-card.featured {
    transform: none;
  }
  
  .close {
    top: 10px;
    right: 20px;
    font-size: 30px;
  }
  
  .modal-content {
    max-width: 95%;
    max-height: 80%;
  }
  
  .nav-btn {
    font-size: 20px;
    padding: 10px 15px;
  }
  
  .nav-btn.prev {
    left: 10px;
  }
  
  .nav-btn.next {
    right: 10px;
  }
  
  .mobile-nav {
    width: 100%;
    right: -100%;
  }
}

/* Дополнительные правила для мобильных устройств */
@media (max-width: 768px) {
  * {
    max-width: 100vw;
    box-sizing: border-box;
  }
  
  .mobile-nav:not(.active) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    right: -100% !important;
  }
}

/* Нижнее уведомление об альфа-тестировании */
.alpha-notice {
  width: 100%;
  z-index: 1100;
  background: #111;
  border-top: 1px solid rgba(201, 250, 73, 0.25);
  color: #ffaaaa;
  font-size: 0.9em;
}

.alpha-notice .container {
  padding: 12px 0;
  text-align: center;
}