/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-card: #1f1f1f;
  --text-primary: #ffffff;
  --text-secondary: #999999;
  --accent-orange: #ff9500;
  --accent-orange-hover: #ffaa33;
  --green: #00c853;
  --border-color: rgba(255, 255, 255, 0.08);
  --shadow: rgba(0, 0, 0, 0.5);
  --glow-orange: rgba(255, 149, 0, 0.15);
  --glow-orange-strong: rgba(255, 149, 0, 0.3);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 149, 0, 0.05), transparent),
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(255, 149, 0, 0.03), transparent);
  background-attachment: fixed;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ffffff 0%, #ff9500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-button {
  background: linear-gradient(135deg, var(--accent-orange) 0%, #ffaa33 100%);
  color: var(--text-primary);
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px var(--glow-orange);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-block;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--glow-orange-strong);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  padding: 60px 0;
  background-image: url('../images/bg-grid.png');
  background-size: 400px 400px;
  background-position: center;
  background-repeat: repeat;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.92) 0%, rgba(10, 10, 10, 0.95) 100%);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.95) 100%);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.stat-item {
  background: linear-gradient(135deg, rgba(31, 31, 31, 0.75) 0%, rgba(26, 26, 26, 0.7) 100%);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.stat-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 255, 255, 0.03), transparent);
  pointer-events: none;
}

.stat-item:hover {
  border-color: rgba(255, 149, 0, 0.3);
  box-shadow: 0 8px 32px rgba(255, 149, 0, 0.1);
  transform: translateY(-2px);
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
}

.arena-card {
  background: linear-gradient(135deg, rgba(42, 42, 42, 0.75) 0%, rgba(26, 26, 26, 0.7) 100%);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  padding: 32px;
  border-radius: 20px;
  border: 1px solid rgba(255, 149, 0, 0.2);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(255, 149, 0, 0.15);
}

.arena-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 149, 0, 0.15) 0%, transparent 60%);
  pointer-events: none;
  animation: pulse 4s ease-in-out infinite;
}

.arena-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: radial-gradient(ellipse 100% 60% at 50% 0%, rgba(255, 255, 255, 0.05), transparent);
  pointer-events: none;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.trophy-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.arena-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.prize-pool {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.participate-button {
  background: rgba(255, 149, 0, 0.1);
  color: var(--accent-orange);
  border: 2px solid var(--accent-orange);
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  text-decoration: none;
  display: inline-block;
}

.participate-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--accent-orange);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
  z-index: -1;
}

.participate-button:hover::before {
  width: 300px;
  height: 300px;
}

.participate-button:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--glow-orange-strong);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.step-item {
  background: linear-gradient(135deg, rgba(31, 31, 31, 0.7) 0%, rgba(26, 26, 26, 0.65) 100%);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.step-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 255, 255, 0.03), transparent);
  pointer-events: none;
}

.step-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--accent-orange), transparent);
  transition: height 0.3s ease;
}

.step-item:hover::after {
  height: 100%;
}

.step-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 149, 0, 0.3);
  box-shadow: 0 12px 40px rgba(255, 149, 0, 0.15);
  background: linear-gradient(135deg, rgba(31, 31, 31, 0.8) 0%, rgba(26, 26, 26, 0.6) 100%);
}

.step-icon {
  font-size: 36px;
  flex-shrink: 0;
}

.step-number {
  font-size: 14px;
  color: var(--accent-orange);
  font-weight: 600;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================
   TOP TRADERS SECTION
   ============================================ */
.top-traders {
  padding: 80px 0;
  background-image: url('../images/bg-grid.png');
  background-size: 400px 400px;
  background-position: center;
  background-repeat: repeat;
  position: relative;
}

.top-traders::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 10, 10, 0.92);
  z-index: 0;
}

.top-traders::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* Затемнение в конце секции */
.top-traders {
  position: relative;
}

.top-traders::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, transparent 10%, transparent 90%, rgba(10, 10, 10, 0.95) 100%),
    rgba(10, 10, 10, 0.92);
  z-index: 0;
}

.top-traders .container {
  position: relative;
  z-index: 2;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
}

.view-all {
  color: var(--accent-orange);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.view-all:hover {
  color: var(--accent-orange-hover);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 40px;
}

.traders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.trader-card {
  background: linear-gradient(135deg, rgba(31, 31, 31, 0.75) 0%, rgba(26, 26, 26, 0.7) 100%);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.trader-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: radial-gradient(circle at top, rgba(255, 149, 0, 0.05), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.trader-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: radial-gradient(ellipse 100% 60% at 50% 0%, rgba(255, 255, 255, 0.04), transparent);
  pointer-events: none;
}

.trader-card:hover::before {
  opacity: 1;
}

.trader-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 149, 0, 0.4);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(255, 149, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.trader-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.trader-avatar {
  position: relative;
  flex-shrink: 0;
}

.trader-avatar img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  object-fit: cover;
  object-position: center;
}

.trader-card:hover .trader-avatar img {
  border-color: var(--accent-orange);
  box-shadow: 0 0 20px var(--glow-orange-strong);
}

.badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background-color: var(--bg-card);
  border-radius: 50%;
  font-size: 18px;
}

.trader-info {
  flex: 1;
}

.trader-info h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.trader-stats-small {
  font-size: 13px;
  color: var(--text-secondary);
}

.followers {
  color: var(--text-primary);
}

.favorite-btn {
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.favorite-btn:hover {
  color: var(--accent-orange);
}

.trader-metrics {
  margin-bottom: 20px;
}

.metric-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.roi-value {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 0 20px currentColor;
}

.roi-value.positive {
  color: var(--green);
}

.metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.metric {
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.6) 0%, rgba(26, 26, 26, 0.4) 100%);
  backdrop-filter: blur(10px);
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.metric:hover {
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.8) 0%, rgba(26, 26, 26, 0.6) 100%);
  border-color: rgba(255, 149, 0, 0.2);
}

.metric-value {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.metric-value.green {
  color: var(--green);
}

.metric-name {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.connect-button {
  width: 100%;
  background: rgba(255, 149, 0, 0.1);
  color: var(--accent-orange);
  border: 2px solid var(--accent-orange);
  padding: 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  text-decoration: none;
  display: block;
  text-align: center;
}

.connect-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: linear-gradient(135deg, var(--accent-orange) 0%, #ffaa33 100%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: -1;
}

.connect-button:hover::before {
  width: 400px;
  height: 400px;
}

.connect-button:hover {
  color: var(--text-primary);
  border-color: var(--accent-orange);
  box-shadow: 0 8px 30px var(--glow-orange-strong);
  transform: translateY(-2px);
}

/* ============================================
   REGISTRATION SECTION
   ============================================ */
.registration {
  padding: 80px 0;
  background:
    radial-gradient(ellipse 100% 50% at 50% 50%, rgba(255, 149, 0, 0.05), transparent),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
}

.registration::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  opacity: 0.5;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.form-container h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.form-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.registration-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.registration-form input,
.registration-form select {
  background: rgba(31, 31, 31, 0.6);
  backdrop-filter: blur(10px);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.registration-form input:focus,
.registration-form select:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow:
    0 0 0 4px rgba(255, 149, 0, 0.1),
    inset 0 2px 8px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(255, 149, 0, 0.15);
  background: rgba(31, 31, 31, 0.8);
}

.phone-input {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
}

.country-code {
  cursor: pointer;
}

.submit-button {
  background: linear-gradient(135deg, var(--accent-orange) 0%, #ffaa33 100%);
  color: var(--text-primary);
  border: none;
  padding: 18px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
  box-shadow: 0 8px 24px var(--glow-orange);
  position: relative;
  overflow: hidden;
}

.submit-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.submit-button:hover::before {
  left: 100%;
}

.submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--glow-orange-strong);
}

.submit-button:active {
  transform: translateY(-1px);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq {
  padding: 80px 0 60px;
  background-color: var(--bg-primary);
}

.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.faq-header h2 {
  font-size: 36px;
  font-weight: 700;
}

.faq-links {
  display: flex;
  gap: 24px;
}

.faq-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease;
}

.faq-link:hover {
  color: var(--accent-orange);
}

.faq-list {
  max-width: 1000px;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0;
  transition: all 0.3s ease;
}

.faq-item:hover {
  padding-left: 8px;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--accent-orange);
}

.faq-icon {
  font-size: 14px;
  transition: transform 0.3s ease;
  color: var(--text-secondary);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-top: 16px;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--bg-secondary);
  padding: 30px 0;
  border-top: 1px solid var(--border-color);
}

.footer p {
  color: var(--text-secondary);
  font-size: 13px;
  text-align: center;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .traders-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .traders-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .faq-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .faq-links {
    flex-direction: column;
    gap: 12px;
  }

  .phone-input {
    grid-template-columns: 120px 1fr;
  }
}

@media (max-width: 480px) {
  .header .container {
    flex-direction: column;
    gap: 16px;
  }

  .cta-button {
    width: 100%;
  }

  .hero h1 {
    font-size: 28px;
  }

  .stat-value {
    font-size: 22px;
  }

  .form-container h2 {
    font-size: 28px;
  }

  .phone-input {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content,
.steps,
.traders-grid,
.form-container,
.faq-list {
  animation: fadeInUp 0.6s ease-out;
}