* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red: #e50914;
  --dark-red: #b0060f;
  --black: #0a0a0a;
  --dark: #111111;
  --card: #1a1a1a;
  --border: #2a2a2a;
  --text: #ffffff;
  --muted: #aaaaaa;
  --green: #00c853;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-logo span { color: var(--red); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.lang-switcher {
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.lang-btn:hover, .lang-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 5% 60px;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0505 50%, #0a0a0a 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(229,9,20,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 600px;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(229,9,20,0.15);
  border: 1px solid rgba(229,9,20,0.3);
  color: var(--red);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  letter-spacing: -1px;
}

.hero h1 span { color: var(--red); }

.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn-primary {
  background: var(--red);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: var(--dark-red);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(229,9,20,0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--muted);
  background: rgba(255,255,255,0.05);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
}

.hero-stat span {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* XM BANNERS */
.hero-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  margin-left: auto;
  padding-left: 2rem;
  flex-shrink: 0;
}

.banner-strip {
  background: var(--dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0;
  overflow: hidden;
}

.banner-strip iframe {
  max-width: 100%;
}

/* Floating sidebar banner */
.banner-float {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.banner-float-close {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

@media (max-width: 1100px) {
  .hero-banner { display: none; }
  .banner-float { display: none; }
}

@media (max-width: 768px) {
  .banner-strip { display: none; }
  .mobile-banner { display: block !important; }
}

/* Mobile HTML banner — always visible, no iframe */
.mobile-banner {
  display: none;
  background: linear-gradient(135deg, #1a0505, #111);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 5%;
}

.mobile-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

.mobile-banner-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.mobile-banner-text span {
  font-size: 0.8rem;
  color: var(--muted);
}

.mobile-banner-badge {
  background: rgba(0,200,83,0.15);
  border: 1px solid rgba(0,200,83,0.3);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  white-space: nowrap;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.mobile-banner-btn {
  background: var(--red);
  color: white;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}

.mobile-banner-btn:hover {
  background: var(--dark-red);
}

/* TICKER */
.ticker-bar {
  background: var(--dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-inner {
  display: inline-flex;
  gap: 3rem;
  animation: ticker 30s linear infinite;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.ticker-item .pair { color: var(--muted); }
.ticker-item .price { color: var(--text); }
.ticker-item .up { color: var(--green); }
.ticker-item .down { color: var(--red); }

/* SECTIONS */
section {
  padding: 80px 5%;
}

.section-label {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1rem;
  max-width: 550px;
  margin-bottom: 3rem;
}

/* WHY SECTION */
.why-section { background: var(--dark); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.8rem;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: rgba(229,9,20,0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* MARKETS */
.markets-section { background: var(--black); }

.markets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.market-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}

.market-card:hover {
  border-color: var(--red);
  background: rgba(229,9,20,0.05);
}

.market-icon { font-size: 2.5rem; margin-bottom: 0.8rem; }
.market-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; }
.market-card p { color: var(--muted); font-size: 0.8rem; }

/* STEPS */
.steps-section { background: var(--dark); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  position: relative;
}

.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 1.2rem;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* CTA SECTION */
.cta-section {
  background: linear-gradient(135deg, #1a0505, #0a0a0a);
  text-align: center;
  padding: 100px 5%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

/* RISK WARNING */
.risk-warning {
  background: #0f0f0f;
  border-top: 1px solid var(--border);
  padding: 2rem 5%;
  text-align: center;
}

.risk-warning p {
  color: #666;
  font-size: 0.78rem;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.7;
}

.risk-warning strong { color: #888; }

/* FOOTER */
footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 3rem 5% 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.8rem;
  max-width: 280px;
}

footer h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 1rem;
}

footer ul { list-style: none; }

footer ul li {
  margin-bottom: 0.5rem;
}

footer ul li a {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

footer ul li a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: #555;
  font-size: 0.8rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }

  .hero {
    padding: 90px 5% 50px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-content {
    width: 100%;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .markets-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .cta-section h2 { font-size: 1.8rem; }
}
