:root {
  --bg: #0a0a0f;
  --panel: #12121a;
  --line: #1e1e2a;
  --cyan: #00d4ff;
  --green: #00ff88;
  --red: #ff4757;
  --text: #e0e0e8;
  --muted: #7a7aa5;

}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
}

body.menu-open {
  overflow: hidden;
}

.interactive {
  cursor: pointer;
}

/* Global typography hierarchy */
h1, h2, h3, h4, h5 {
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: 2.8rem; font-weight: 800; margin-bottom: 0.75em; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1em; }

/* Section headings — consistent across all sections */
section .container h2 {
  text-align: center;
  margin-bottom: 48px;
  font-size: 2rem;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: var(--text);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-status {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(16px);
  background: rgba(10, 10, 15, 0.9);
  color: var(--text);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 300;
}

.page-status.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   TOP MARKET TICKER BANNER
   ============================================================ */
.market-ticker-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 38px;
  background: #080c14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  z-index: 200;
  overflow: hidden;
  font-family: 'Consolas', 'Roboto Mono', 'SF Mono', Monaco, monospace, sans-serif;
  font-size: 0.81rem;
  letter-spacing: 0.02em;
  user-select: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.ticker-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 100%;
  background: #0d1322;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 5;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.4);
}

.ticker-dot {
  width: 8px;
  height: 8px;
  background-color: #f59e0b;
  border-radius: 50%;
  box-shadow: 0 0 8px #f59e0b, 0 0 14px rgba(245, 158, 11, 0.6);
  animation: amberPulse 1.8s infinite ease-in-out;
}

@keyframes amberPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 6px #f59e0b, 0 0 10px rgba(245, 158, 11, 0.4);
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
    box-shadow: 0 0 12px #fbbf24, 0 0 22px rgba(251, 191, 36, 0.8);
  }
}

.ticker-badge-text {
  color: #94a3b8;
  font-size: 0.76rem;
  font-weight: 500;
  text-transform: uppercase;
}

.ticker-badge-text strong {
  color: #f1f5f9;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ticker-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.12);
  margin-right: 8px;
  flex-shrink: 0;
}

.ticker-marquee-wrapper {
  display: flex;
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 16px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 16px), transparent);
}

.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: tickerMarquee 50s linear infinite;
}

.ticker-marquee-wrapper:hover .ticker-track {
  animation-play-state: paused;
}

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

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  min-height: 40px;
  min-width: 40px;
  margin: 0 2px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
}

.ticker-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.ticker-symbol {
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.79rem;
  letter-spacing: 0.04em;
}

.ticker-price {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.83rem;
  transition: color 0.3s;
}

.ticker-change {
  font-size: 0.79rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.02em;
}

.ticker-change.positive {
  color: #00ff88;
}

.ticker-change.negative {
  color: #ff4757;
}

.ticker-sep {
  color: rgba(255, 255, 255, 0.16);
  font-size: 0.75rem;
  margin: 0 4px;
  user-select: none;
}

/* Flash pulse animations when market data updates */
.flash-up {
  animation: priceFlashUp 1.2s ease-out;
}

.flash-down {
  animation: priceFlashDown 1.2s ease-out;
}

@keyframes priceFlashUp {
  0% {
    color: #00ff88;
    text-shadow: 0 0 10px #00ff88;
  }
  100% {
    color: #ffffff;
    text-shadow: none;
  }
}

@keyframes priceFlashDown {
  0% {
    color: #ff4757;
    text-shadow: 0 0 10px #ff4757;
  }
  100% {
    color: #ffffff;
    text-shadow: none;
  }
}

/* Navigation */
nav {
  position: fixed;
  top: 38px;
  left: 0;
  right: 0;
  padding: 10px 5%;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
  transition: top 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-brand-logo {
  display: block;
  width: clamp(48px, 5.5vw, 72px);
  height: clamp(48px, 5.5vw, 72px);
  flex: 0 0 clamp(48px, 5.5vw, 72px);
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
  filter: contrast(1.08) saturate(1.05);
  animation: brand-logo-breathe 4.5s ease-in-out infinite;
}


.hero-brand-lockup {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.1vw, 14px);
  width: fit-content;
  margin-bottom: 22px;
  text-align: left;
}

.hero-brand-lockup .platform-tag {
  margin: 0;
}

@keyframes brand-logo-breathe {
  0%, 100% {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24), 0 0 0 rgba(0, 212, 255, 0);
  }
  50% {
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3), 0 0 14px rgba(0, 212, 255, 0.22);
  }
}







.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
  position: absolute;
  right: 5%;
}

@media (max-width: 980px) {
  .nav-toggle {
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
  }
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 7px);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -7px);
}

.nav-links {
  display: flex;
  gap: 30px;
}

nav > ul.nav-links {
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(12px, 2vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
  animation: nav-links-enter 650ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

nav > ul.nav-links li {
  animation: nav-item-enter 500ms ease both;
}

nav > ul.nav-links li:nth-child(2) { animation-delay: 50ms; }
nav > ul.nav-links li:nth-child(3) { animation-delay: 100ms; }
nav > ul.nav-links li:nth-child(4) { animation-delay: 150ms; }
nav > ul.nav-links li:nth-child(5) { animation-delay: 200ms; }
nav > ul.nav-links li:nth-child(6) { animation-delay: 250ms; }
nav > ul.nav-links li:nth-child(7) { animation-delay: 300ms; }

.nav-links a {
  position: relative;
  display: inline-block;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease, text-shadow 0.25s ease;
}

nav > ul.nav-links a::after {
  position: absolute;
  right: 50%;
  bottom: -7px;
  left: 50%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  content: "";
  transition: left 0.25s ease, right 0.25s ease;
}

nav > ul.nav-links a:hover,
nav > ul.nav-links a:focus-visible {
  color: var(--cyan);
  transform: translateY(-2px);
  text-shadow: 0 0 14px rgba(0, 212, 255, 0.35);
}

nav > ul.nav-links a:hover::after,
nav > ul.nav-links a:focus-visible::after {
  right: 0;
  left: 0;
}

@keyframes nav-links-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes nav-item-enter {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 210px 5% 100px;
  background: var(--bg);
  position: relative;
}

.hero-content {
  max-width: 600px;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 40px;
}

.download-buttons .btn-download {
  display: inline-block;
  padding: 12px 24px;
  margin-right: 15px;
  background: var(--cyan);
  color: var(--bg);
  font-weight: 500;
  font-family: Arial, sans-serif;
  font-size: 13.3333px;
  line-height: normal;
  text-align: center;
  border-radius: 4px;
  border: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

@media (max-width: 600px) {
  .download-buttons .btn-download {
    min-height: 44px;
  }

  .hero-ticker-pill {
    min-height: 44px;
  }
}

.download-buttons .btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.market-tickers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}

.hero-subtext {
  max-width: 560px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-ticker-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #94a3b8;
  font-family: 'Consolas', 'Courier New', monospace;
  cursor: pointer;
  transition: all 0.25s ease;
}

.hero-ticker-pill:hover {
  background: rgba(0, 212, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 212, 255, 0.15);
}

.hero-ticker-pill strong {
  color: #ffffff;
  font-weight: 700;
}

.hero-ticker-pill em {
  font-style: normal;
  font-weight: 600;
}

.hero-ticker-pill em.positive {
  color: #00ff88;
}

.hero-ticker-pill em.negative {
  color: #ff4757;
}

.ticker-badge-dot {
  width: 6px;
  height: 6px;
  background: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 6px #00ff88;
}

.ticker-badge-dot.red {
  background: #ff4757;
  box-shadow: 0 0 6px #ff4757;
}

/* Trading Section */
.trade {
  padding: 90px 5% 80px;
  background: var(--panel);
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-chip {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 255, 0.4);
  background: rgba(0, 212, 255, 0.08);
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-header h2 {
  text-align: center;
  margin-bottom: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: linear-gradient(180deg, rgba(18,18,26,0.9), rgba(12,12,18,0.9));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 30px 24px;
  box-shadow: 0 18px 35px rgba(0,0,0,0.18);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.32);
}

.feature-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.7;
}


.features {
  padding: 90px 5%;
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.95), rgba(12, 18, 24, 1));
}

.feature-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
}

.showcase-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 22px 18px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.showcase-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.3);
}

.showcase-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.showcase-card h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.showcase-card p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}



















/* Charts Section */
.charts {
  padding: 80px 5%;
  background: var(--bg);
}

/* Markets Section */
.markets {
  padding: 80px 5%;
  background: var(--panel);
}

.info-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.card {
  background: var(--bg);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.card p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.change {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
}

.change.positive {
  background: rgba(0, 255, 136, 0.2);
  color: var(--green);
}

.change.negative {
  background: rgba(255, 71, 87, 0.2);
  color: var(--red);
}

/* Learn Section */
.learn {
  padding: 80px 5%;
  background: var(--bg);
}

.learn-diagram-wrap {
  max-width: 1100px;
  margin: 0 auto 32px;
}



.learn-image-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.24);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.learn-frame-right {
  min-height: 450px;
}

.learn-image-frame:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 212, 255, 0.28);
  box-shadow: 0 28px 52px rgba(0, 0, 0, 0.3);
}

.learn-image-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(9, 16, 24, 0.8);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--cyan);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.learn-section-image {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.learn-section-image--chart {
  width: 100%;
  height: 100%;
  min-height: 450px;
  object-fit: cover;
  object-position: center;
}

.learn-image-frame:hover .learn-section-image {
  transform: scale(1.01);
  filter: saturate(1.04) contrast(1.03);
}

@media (max-width: 700px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .learn-frame-right {
    min-height: 320px;
  }

  .learn-section-image--chart {
    min-height: 320px;
  }
}

.grid-layout {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.learn .card {
  background: var(--panel);
  padding: 30px;
  border-radius: 8px;
  transition: transform 0.3s;
}

.learn .card:hover {
  transform: translateY(-5px);
}

/* Community Section */
.community {
  padding: 80px 5%;
  background: var(--panel);
}

.chat-messages {
  max-width: 700px;
  margin: 0 auto;
}

.message {
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.message.system {
  background: var(--line);
  color: var(--muted);
}

.telegram-link {
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
}

/* Telegram Button */
.btn-telegram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  margin: 0 auto;
  margin-top: 30px;
  background: linear-gradient(135deg, #0088cc 0%, #006bb3 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  border: 2px solid #00adee;
  box-shadow: 0 0 20px rgba(0, 136, 204, 0.5);
  cursor: pointer;
}

.btn-telegram svg {
  flex-shrink: 0;
}

.btn-telegram:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(0, 136, 204, 0.7);
  border-color: #00adee;
  background: linear-gradient(135deg, #0099dd 0%, #007fcc 100%);
}

.update-note {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: var(--cyan);
  font-size: 0.95rem;
  font-weight: 500;
}

.update-note::before {
  content: "★ ";
  color: #ffd700;
}

footer {
  padding: 50px 5%;
  background: var(--bg);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

footer .footer-brand {
  margin-bottom: 25px;
}

.footer-logo {
  color: var(--text);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.footer-tagline {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

.footer-links a {
  color: var(--cyan);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-disclaimer {
  color: var(--muted);
  font-size: 0.82rem;
  max-width: 700px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.footer-policies {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.footer-copyright {
  color: var(--muted);
  font-size: 0.8rem;
}

/* Water/Drowning Effect */
.water-effect {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.water-wave {
  position: absolute;
  top: -10px;
  left: -50%;
  width: 200%;
  height: 20px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
  animation: wave 8s linear infinite;
  filter: blur(5px);
}

.water-wave:nth-child(2) {
  top: 10px;
  animation: wave 12s linear infinite reverse;
  opacity: 0.6;
}

.water-wave:nth-child(3) {
  top: 30px;
  animation: wave 15s linear infinite;
  opacity: 0.4;
}

@keyframes wave {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(50%);
  }
}

/* Platform Tag */
.platform-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
  opacity: 0.8;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.platform-tag.premium {
  border-color: #b026ff;
  color: #b026ff;
  box-shadow: 0 0 15px rgba(176, 38, 255, 0.4);
}

.platform-tag.premium::before {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background: #b026ff;
  border-radius: 50%;
  box-shadow: 0 0 8px #b026ff, 0 0 16px #b026ff;
}

/* Robot Climbing on Beginners */
.robot-climbing {
  position: relative;
  display: inline-block;
  margin: 20px 0;
}

.robot {
  position: absolute;
  right: -80px;
  top: -10px;
  width: 60px;
  height: 80px;
}

.robot-head {
  width: 40px;
  height: 40px;
  background: var(--cyan);
  border-radius: 50% 50% 40% 40%;
  position: relative;
  margin: 0 auto;
  box-shadow: 0 0 10px var(--cyan);
}

.robot-head::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 8px;
  width: 8px;
  height: 8px;
  background: var(--bg);
  border-radius: 50%;
}

.robot-head::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--bg);
  border-radius: 50%;
}

.eye {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--bg);
  border-radius: 50%;
}

.eye.left {
  top: 8px;
  left: 8px;
}

.eye.right {
  top: 8px;
  right: 8px;
}

.mouth {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 4px;
  background: var(--bg);
  border-radius: 0 0 10px 10px;
}

.robot-body {
  width: 30px;
  height: 30px;
  background: var(--green);
  margin: 0 auto;
  border-radius: 5px;
  box-shadow: 0 0 8px var(--green);
}

.arm {
  position: absolute;
  width: 6px;
  height: 20px;
  background: var(--cyan);
  border-radius: 3px;
}

.left-arm {
  top: 15px;
  left: 5px;
  transform: rotate(45deg);
}

.right-arm {
  top: 15px;
  right: 5px;
  transform: rotate(-45deg);
}

.beginners-block {
  position: absolute;
  right: -10px;
  top: 50px;
  width: 25px;
  height: 15px;
  background: var(--line);
  border-radius: 3px;
}

/* 3D Card Effects */
.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.card-3d:hover {
  transform: rotateX(10deg) rotateY(10deg) translateZ(20px);
}

/* 3D Candlestick */


/* Hero 3D Text */
.hero-3d {
  transform-style: preserve-3d;
}

/* Water ripple effect */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.4);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.ripple:hover::before {
  width: 300px;
  height: 300px;
}

/* Drowning overlay on sections */
.drowning-overlay {
  position: relative;
}

.drowning-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(30, 58, 95, 0.3));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}

.drowning-overlay:hover::after {
  opacity: 1;
}

/* 3D Grid Background */
.grid-3d {
  position: relative;
  perspective: 1000px;
}

.grid-3d::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: rotateX(60deg) translateY(-50%);
  transform-origin: top center;
  opacity: 0.5;
  z-index: -1;
}

/* Candlestick Patterns Grid */
.patterns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.pattern-card {
  background: var(--panel);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.pattern-card:hover {
  transform: translateY(-8px) rotateX(10deg);
  box-shadow: 0 15px 30px rgba(0, 212, 255, 0.2);
  border-color: var(--cyan);
}

.pattern-card:focus-visible,
.ticker-item:focus-visible,
.hero-ticker-pill:focus-visible,
.card[role="button"]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.pattern-card span {
  display: block;
  margin-top: 15px;
  font-size: 0.85rem;
  color: var(--cyan);
  font-weight: 600;
}

.pattern-canvas {
  width: 100px;
  height: 120px;
  display: block;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

/* Popup Modal */
.pattern-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.pattern-popup.is-open {
  display: flex;
}

.pattern-popup .popup-content {
  background: var(--panel);
  padding: 40px;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  border: 1px solid var(--cyan);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
  animation: popupIn 0.3s ease;
  position: relative;
}

@keyframes popupIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.close {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  font-family: inherit;
  line-height: inherit;
}

.close:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

.pattern-popup .close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.3s;
}

.pattern-popup .close:hover {
  color: var(--cyan);
}

.pattern-popup h3 {
  color: var(--cyan);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.pattern-popup p {
  color: var(--text);
  line-height: 1.6;
}

/* Responsive */
/* Mobile menu overlay — hidden by default, shown via JS */
.nav-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(12px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 80px 5% 40px;
  overflow-y: auto;
}

.nav-menu-overlay.open {
  display: flex;
}

.nav-menu-overlay a {
  position: relative;
  font-size: 1.4rem;
  color: var(--text);
  padding: 8px 0;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  animation: nav-item-enter 450ms ease both;
  transition: color 0.3s, transform 0.3s, text-shadow 0.3s;
}

.nav-menu-overlay a:hover {
  color: var(--cyan);
  transform: translateY(-2px);
  text-shadow: 0 0 14px rgba(0, 212, 255, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 160px 5% 60px;
  }

  .hero-content {
    max-width: 100%;
    margin-bottom: 20px;
  }
  
  .info-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .learn .grid-layout {
    grid-template-columns: 1fr;
  }

  .feature-showcase-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .market-ticker-banner {
    height: 34px;
    font-size: 0.74rem;
  }
  
  .ticker-badge {
    padding: 0 10px;
  }
  
  .ticker-badge-text {
    font-size: 0.7rem;
  }

  nav {
    top: 34px;
  }

  .hero {
    padding: 160px 5% 80px;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .market-tickers {
    justify-content: center;
  }
   
  .download-buttons .btn-download {
    width: 100%;
    margin: 10px 0;
  }
   
   
   

  .ticker-item {
    padding: 12px 16px;
    min-height: 44px;
    min-width: 44px;
  }

  .ticker-symbol {
    font-size: 0.85rem;
  }

  .ticker-price {
    font-size: 0.9rem;
  }

  .pattern-card {
    padding: 28px 20px;
    min-height: 120px;
  }

  .nav-menu-overlay a {
    font-size: 1.5rem;
  }
}

/* ============================================================
   HERO CHARACTER INTERACTIVE – two-image instant swap + parallax
   ============================================================ */

/* Wrapper sits to the right of the hero text */
.hero-character-interactive {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  z-index: 5;
}

/* Ambient glow behind character */
.char-glow-effect {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(0, 212, 255, 0.18) 0%,
    rgba(0, 255, 136, 0.08) 50%,
    transparent 70%);
  filter: blur(30px);
  pointer-events: none;
  animation: charGlowPulse 3s ease-in-out infinite alternate;
}

@keyframes charGlowPulse {
  from { opacity: 0.7; transform: scale(0.95); }
  to   { opacity: 1;   transform: scale(1.05); }
}

/* Image container stacks both images on top of each other */
.char-image-container {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Both images fill the container */
.char-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: none;
  user-select: none;
  pointer-events: none;
}

/* State 1 is visible by default */
.char-state-1 {
  opacity: 1;
  pointer-events: auto;
}

/* State 2 is hidden by default */
.char-state-2 {
  opacity: 0;
}

/* Hover swap */
.char-image-container:hover .char-state-1 {
  opacity: 0;
  pointer-events: none;
}

.char-image-container:hover .char-state-2 {
  opacity: 1;
  pointer-events: auto;
}

/* Responsive: put character below text on small screens */
@media (max-width: 1100px) {
  .hero-character-interactive {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 280px;
    height: 360px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .hero-character-interactive {
    width: 220px;
    height: 290px;
  }
}

/* Technical Analysis Popup */
.tech-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  overflow-y: auto;
  padding: 20px;
}

.tech-popup.is-open {
  display: flex;
}

.tech-popup-content {
  background: linear-gradient(135deg, var(--panel), #0d0d15);
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  border: 1px solid var(--cyan);
  box-shadow: 0 0 50px rgba(0, 212, 255, 0.2);
  animation: popupIn 0.3s ease;
  position: relative;
}

.tech-popup .close {
  position: sticky;
  top: 15px;
  float: right;
  font-size: 32px;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.3s;
  z-index: 10;
}

.tech-popup .close:hover {
  color: var(--cyan);
}

.tech-popup-body h2 {
  color: var(--cyan);
  font-size: 1.8rem;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--cyan);
  padding-bottom: 10px;
}

.tech-popup-body .warning {
  color: var(--red);
  font-style: italic;
  margin-bottom: 25px;
  padding: 10px 15px;
  background: rgba(255, 71, 87, 0.1);
  border-left: 3px solid var(--red);
  border-radius: 4px;
}

.tech-popup-body h3 {
  color: var(--green);
  font-size: 1.2rem;
  margin-top: 25px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tech-popup-body h3 .star {
  color: var(--cyan);
}

.tech-popup-body p {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 12px;
}

.tech-popup-body ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.tech-popup-body ul li {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 6px;
}

.tech-popup-body .highlight {
  background: rgba(0, 212, 255, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--cyan);
  font-weight: 600;
}

.tech-popup-body .core-formula {
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid var(--green);
  border-radius: 8px;
  padding: 15px 20px;
  margin: 20px 0;
  font-family: monospace;
  color: var(--green);
  font-size: 1.1rem;
  text-align: center;
}

.tech-popup-body .progression {
  background: rgba(176, 38, 255, 0.08);
  border: 1px solid #b026ff;
  border-radius: 8px;
  padding: 15px 20px;
  margin: 20px 0;
  color: #b026ff;
}

.tech-popup-body .final-note {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 136, 0.1));
  border-radius: 12px;
  padding: 20px;
  margin-top: 30px;
  text-align: center;
  border: 1px solid var(--cyan);
}

.market-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin-top: 20px;
  padding: 15px 20px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
}

.market-info .info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.9rem;
}

.market-info .info-row span:last-child {
  font-weight: 600;
  color: var(--text);
}

.market-info .info-row .positive {
  color: var(--green);
}

.market-info .info-row .negative {
  color: var(--red);
}

@media (max-width: 700px) {
  .pattern-popup .close,
  .tech-popup .close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  #marketChartCanvas {
    display: block;
    max-width: 100%;
    height: auto;
  }

  .market-info {
    grid-template-columns: 1fr;
  }
}
