/* ============================================================
   MemexTrade — style.css
   Dark Luxe Trading Theme · Meme Coin Broker
   ============================================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  background: #080c14;
  color: #e8eaf0;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

/* ---------- CSS Variables ---------- */
:root {
  --green: #00E68A;
  --cyan: #00B4D8;
  --red: #FF4757;
  --yellow: #FFB800;
  --bg: #080c14;
  --bg-surface: #0a0f1a;
  --bg-card: rgba(18, 22, 36, 0.6);
  --text-primary: #e8eaf0;
  --text-secondary: #7A8BA0;
  --text-muted: #4A5568;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --font-display: 'Sora', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ---------- Utility Colors ---------- */
.green {
  color: var(--green);
}

.cyan {
  color: var(--cyan);
}

.red {
  color: var(--red);
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
}

.font-display {
  font-family: var(--font-display);
}

.font-mono {
  font-family: var(--font-mono);
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
    max-width: 1280px;
  }
}

/* ---------- Glass Card ---------- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: rgba(22, 28, 44, 0.7);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ---------- Neon Button ---------- */
.btn-neon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--green);
  color: #080c14;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 230, 138, 0.3);
  font-size: 1rem;
}

.btn-neon:hover {
  box-shadow: 0 0 30px rgba(0, 230, 138, 0.5), 0 0 60px rgba(0, 230, 138, 0.2);
  transform: translateY(-2px);
}

/* ---------- Gradient Divider ---------- */
.gradient-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 230, 138, 0.4), transparent);
}

/* ---------- Live Pulse ---------- */
.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(0, 230, 138, 0.6);
  animation: pulse-glow 2s ease-in-out infinite;
  display: inline-block;
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 8px rgba(0, 230, 138, 0.6);
  }

  50% {
    opacity: 0.6;
    box-shadow: 0 0 16px rgba(0, 230, 138, 0.8);
  }
}

/* ---------- Glow Text ---------- */
.text-glow-green {
  text-shadow: 0 0 20px rgba(0, 230, 138, 0.4);
}

.text-glow-cyan {
  text-shadow: 0 0 20px rgba(0, 180, 216, 0.4);
}

/* ---------- Ticker Animation ---------- */
@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.ticker-animate {
  animation: ticker-scroll 30s linear infinite;
}

/* ---------- Float Animation ---------- */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

@keyframes float-slow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.animate-float-slow {
  animation: float-slow 5s ease-in-out infinite;
}

@keyframes float-delay {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.animate-float-delay {
  animation: float-delay 3.5s ease-in-out infinite;
}

@keyframes float-rotate {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

.animate-float-rotate {
  animation: float-rotate 5s ease-in-out infinite;
}

@keyframes float-rotate-rev {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(-10deg);
  }
}

.animate-float-rotate-rev {
  animation: float-rotate-rev 4s ease-in-out 1.5s infinite;
}

@keyframes slow-rotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.animate-slow-rotate {
  animation: slow-rotate 20s linear infinite;
}

/* ---------- Fade In Up (scroll reveal) ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

html.js-anim .fade-in-up:not(.visible) {
  opacity: 0;
  transform: translateY(30px);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

html.js-anim .fade-in-left:not(.visible) {
  opacity: 0;
  transform: translateX(-30px);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #080c14;
}

::-webkit-scrollbar-thumb {
  background: #2a2e3e;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3e4e;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(8, 12, 20, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.navbar .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

@media (min-width: 1024px) {
  .navbar .nav-inner {
    height: 80px;
  }
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.navbar .logo img {
  height: 40px;
  width: auto;
}

@media (min-width: 1024px) {
  .navbar .logo img {
    height: 48px;
  }
}

.navbar .logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
}

@media (min-width: 1024px) {
  .navbar .logo-text {
    font-size: 1.25rem;
  }
}

.navbar .logo-text .green {
  color: var(--green);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-ctas {
  display: none;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .nav-ctas {
    display: flex;
  }
}

/* Language Selector */
.lang-selector {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.lang-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.lang-btn .chevron {
  transition: transform 0.2s;
  font-size: 0.625rem;
}

.lang-btn.open .chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background: #0F1923;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  min-width: 140px;
  display: none;
}

.lang-dropdown.open {
  display: block;
}

.lang-dropdown button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.lang-dropdown button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.lang-dropdown button.active {
  color: var(--green);
  background: rgba(0, 230, 138, 0.05);
}

.nav-login {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 1rem;
  transition: color 0.2s;
}

.nav-login:hover {
  color: #fff;
}

.nav-cta-btn {
  font-size: 0.875rem;
  padding: 0.625rem 1.5rem;
}

/* Mobile Menu */
.mobile-toggle {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem;
}

.mobile-toggle:hover {
  color: #fff;
}

@media (min-width: 1024px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  background: rgba(8, 12, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
}

.mobile-menu.open {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-menu.open {
    display: none;
  }
}

.mobile-menu .mobile-inner {
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: #fff;
}

.mobile-lang-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.mobile-lang-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.mobile-lang-btn:hover {
  color: #fff;
}

.mobile-lang-btn.active {
  color: var(--green);
  background: rgba(0, 230, 138, 0.1);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-bg .overlay-1 {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8, 12, 20, 0.6), rgba(8, 12, 20, 0.4), #080c14);
}

.hero-bg .overlay-2 {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(8, 12, 20, 0.7), transparent, rgba(8, 12, 20, 0.7));
}

.hero-floating-coins {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-floating-coins img {
  position: absolute;
  top: 10px;
  right: -80px;
  width: 600px;
  opacity: 0.07;
}

@media (min-width: 1024px) {
  .hero-floating-coins img {
    width: 800px;
  }
}

.hero-content {
  position: relative;
  padding-top: 7rem;
  padding-bottom: 3rem;
}

@media (min-width: 1024px) {
  .hero-content {
    padding-top: 8rem;
  }
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

@media (max-width: 1023px) {
  .hero-text {
    text-align: center;
  }

  .hero-badges {
    justify-content: center;
  }

  .hero-social-proof {
    justify-content: center;
  }

  .hero-cta-row {
    justify-content: center;
  }

  .hero-mini-features {
    justify-content: center;
  }

  .hero-credibility {
    text-align: center;
  }
}


/* Hero Left */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}

.badge-market {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 230, 138, 0.2);
  background: rgba(0, 230, 138, 0.05);
}

.badge-market span {
  font-size: 10px;
  font-weight: 600;
  color: var(--green);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.badge-regulated {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 180, 216, 0.2);
  background: rgba(0, 180, 216, 0.05);
}

.badge-regulated svg {
  width: 12px;
  height: 12px;
  color: var(--cyan);
}

.badge-regulated span {
  font-size: 10px;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: 2.25rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.75rem;
  }
}

@media (min-width: 1280px) {
  .hero h1 {
    font-size: 4.5rem;
  }
}

.hero-credibility {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}

.hero-credibility strong {
  color: #fff;
  font-weight: 600;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 28rem;
}

.hero-social-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.proof-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.star {
  width: 14px;
  height: 14px;
  color: var(--yellow);
  fill: var(--yellow);
}

.star.half {
  opacity: 0.4;
}

.proof-badge .rating {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
}

.proof-badge .count {
  font-size: 10px;
  color: var(--text-secondary);
}

.proof-badge .award-icon {
  width: 16px;
  height: 16px;
  color: var(--yellow);
}

.proof-badge .award-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-cta-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.hero-mini-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.hero-mini-features span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-mini-features svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}

/* Hero Right — Mascot */
.hero-mascot {
  position: relative;
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-mascot {
    justify-content: flex-end;
  }
}

.hero-mascot .glow {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-mascot .glow div {
  width: 350px;
  height: 350px;
  background: rgba(0, 230, 138, 0.08);
  border-radius: 50%;
  filter: blur(100px);
}

@media (min-width: 1024px) {
  .hero-mascot .glow div {
    width: 500px;
    height: 500px;
  }
}

.hero-mascot .mascot-img {
  position: relative;
  width: 320px;
  height: auto;
  max-width: 100%;
  filter: drop-shadow(0 0 40px rgba(0, 230, 138, 0.15));
}

@media (min-width: 640px) {
  .hero-mascot .mascot-img {
    width: 380px;
  }
}

@media (min-width: 1024px) {
  .hero-mascot .mascot-img {
    width: 460px;
  }
}

@media (min-width: 1280px) {
  .hero-mascot .mascot-img {
    width: 520px;
  }
}

@media (max-width: 1023px) {
  .hero-text {
    text-align: center;
  }

  .hero-badges {
    justify-content: center;
  }

  .hero-social-proof {
    justify-content: center;
  }

  .hero-cta-row {
    justify-content: center;
  }

  .hero-mini-features {
    justify-content: center;
  }

  .hero-credibility {
    text-align: center;
  }
}

.floating-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
}

.floating-tag .tag-emoji {
  font-size: 1.125rem;
}

.floating-tag .tag-pair {
  font-size: 10px;
  color: var(--text-secondary);
}

.floating-tag .tag-change {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--green);
  font-family: var(--font-mono);
}

.tag-doge {
  top: 2rem;
  right: 0;
}

@media (min-width: 1024px) {
  .tag-doge {
    top: 3rem;
    right: 1rem;
  }
}

.tag-pepe {
  bottom: 5rem;
  left: 0;
}

@media (min-width: 1024px) {
  .tag-pepe {
    bottom: 7rem;
    left: -1rem;
  }
}

.floating-emoji {
  position: absolute;
  pointer-events: none;
}

.emoji-rocket {
  top: 33%;
  left: -1rem;
  font-size: 1.875rem;
}

.emoji-diamond {
  bottom: 2.5rem;
  right: 2rem;
  font-size: 1.5rem;
}

/* Stats Bar */
.stats-bar {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 1024px) {
  .stats-bar {
    margin-top: 4.5rem;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.stat-card {
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
  transition: border-color 0.3s;
}

@media (min-width: 1024px) {
  .stat-card {
    padding: 1.25rem;
  }
}

.stat-card:hover {
  border-color: rgba(0, 230, 138, 0.2);
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  background: rgba(0, 230, 138, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
}

.stat-icon svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green);
  font-family: var(--font-mono);
  margin-bottom: 0.125rem;
}

@media (min-width: 1024px) {
  .stat-value {
    font-size: 1.5rem;
  }
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ============================================================
   TICKER BAR
   ============================================================ */
.ticker-bar {
  position: relative;
  width: 100%;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.5rem;
  white-space: nowrap;
}

.ticker-symbol {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.ticker-price {
  font-size: 0.875rem;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.7);
}

.ticker-change {
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.ticker-change.up {
  color: var(--green);
}

.ticker-change.down {
  color: var(--red);
}

/* ============================================================
   SECTIONS — Shared
   ============================================================ */
.section {
  padding: 5rem 0;
  position: relative;
}

@media (min-width: 1024px) {
  .section {
    padding: 7rem 0;
  }
}

.section-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(150px);
}

/* ============================================================
   MARKETS
   ============================================================ */
.markets-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .markets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .markets-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.coin-card {
  padding: 1.25rem;
  cursor: pointer;
}

.coin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.coin-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.coin-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  overflow: hidden;
}

.coin-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.coin-name {
  font-weight: 600;
  color: #fff;
  font-size: 0.875rem;
}

.coin-pair {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.coin-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.coin-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-mono);
}

.coin-volume {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.125rem;
}

.coin-change {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.coin-change.up {
  color: var(--green);
}

.coin-change.down {
  color: var(--red);
}

.coin-change svg {
  width: 14px;
  height: 14px;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--green);
  font-weight: 600;
  font-size: 0.875rem;
  font-family: var(--font-display);
  transition: color 0.2s;
}

.view-all-btn:hover {
  color: #fff;
}

.view-all-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.view-all-btn:hover svg {
  transform: translateX(4px);
}

/* Mini Chart SVG */
.mini-chart {
  width: 96px;
  height: 40px;
}

/* ---------- Market Cards (gerados pelo JS) ---------- */
.market-card {
  padding: 1.25rem;
  cursor: pointer;
}

.market-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.market-coin-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.market-coin-name {
  font-weight: 600;
  color: #fff;
  font-size: 0.875rem;
}

.market-coin-pair {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.market-mini-chart {
  width: 96px;
  height: 40px;
  flex-shrink: 0;
}

.market-card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.market-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-mono);
}

.market-volume {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.125rem;
}

.market-change {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.market-change svg {
  width: 14px;
  height: 14px;
}

/* ============================================================
   HOW TRADING WORKS
   ============================================================ */
.htw-panel {
  border-radius: 1rem;
  padding: 1.25rem;
}

@media (min-width: 1024px) {
  .htw-panel {
    padding: 2rem;
  }
}

.htw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.htw-pair {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.htw-pair-name {
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
}

.htw-pair-price {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.htw-change {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green);
  font-family: var(--font-mono);
}

.htw-chart {
  position: relative;
  height: 176px;
  margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
  .htw-chart {
    height: 224px;
  }
}

.htw-chart svg {
  width: 100%;
  height: 100%;
}

.htw-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.75rem;
}

.htw-badge-buy {
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 230, 138, 0.1);
  border: 1px solid rgba(0, 230, 138, 0.2);
}

@media (min-width: 1024px) {
  .htw-badge-buy {
    right: 1.5rem;
  }
}

.htw-badge-sell {
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 71, 87, 0.1);
  border: 1px solid rgba(255, 71, 87, 0.2);
}

@media (min-width: 1024px) {
  .htw-badge-sell {
    right: 1.5rem;
  }
}

.htw-badge svg {
  width: 18px;
  height: 18px;
}

.htw-badge-buy svg,
.htw-badge-buy .badge-title {
  color: var(--green);
}

.htw-badge-sell svg,
.htw-badge-sell .badge-title {
  color: var(--red);
}

.badge-title {
  font-size: 0.875rem;
  font-weight: 700;
}

.badge-desc {
  font-size: 10px;
  opacity: 0.7;
}

.htw-badge-buy .badge-desc {
  color: var(--green);
}

.htw-badge-sell .badge-desc {
  color: var(--red);
}

.htw-explanation {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 1024px) {
  .htw-explanation {
    font-size: 1.125rem;
  }
}

.htw-steps {
  display: grid;
  gap: 1rem;
  max-width: 48rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .htw-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.htw-step {
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: center;
}

.htw-step-emoji {
  font-size: 1.875rem;
  margin-bottom: 0.75rem;
}

.htw-step h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.htw-step p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ============================================================
   WHY US
   ============================================================ */
.why-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: 4fr 8fr;
    gap: 2rem;
  }
}

.why-left {}

@media (min-width: 1024px) {
  .why-left {
    position: sticky;
    top: 7rem;
    align-self: start;
  }
}

.why-pepe {
  position: relative;
  display: none;
}

@media (min-width: 1024px) {
  .why-pepe {
    display: block;
  }
}

.why-pepe .pepe-glow {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.why-pepe .pepe-glow div {
  width: 250px;
  height: 250px;
  background: rgba(0, 230, 138, 0.06);
  border-radius: 50%;
  filter: blur(80px);
}

.why-pepe img {
  position: relative;
  width: 420px;
  filter: drop-shadow(0 0 30px rgba(0, 230, 138, 0.1));
}

.adv-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .adv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.adv-card {
  border-radius: 1rem;
  padding: 1.25rem;
  transition: border-color 0.3s;
}

.adv-card:hover {
  border-color: rgba(0, 230, 138, 0.15);
}

.adv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.adv-title-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.adv-emoji {
  font-size: 1.5rem;
}

.adv-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  font-family: var(--font-display);
}

.adv-value {
  font-size: 1.125rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.adv-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   HOW IT WORKS (STEPS)
   ============================================================ */
.steps-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: 7fr 5fr;
    gap: 2rem;
  }
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 0.75rem;
  padding: 1rem;
  transition: border-color 0.3s;
}

.step-card:hover {
  border-color: rgba(0, 230, 138, 0.15);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  background: rgba(0, 230, 138, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-number span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green);
  font-family: var(--font-mono);
}

.step-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.step-emoji {
  font-size: 1.5rem;
}

.step-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  font-family: var(--font-display);
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.steps-rocket {
  display: flex;
  justify-content: center;
}

.steps-rocket .rocket-wrap {
  position: relative;
}

.steps-rocket .rocket-glow {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.steps-rocket .rocket-glow div {
  width: 300px;
  height: 300px;
  background: rgba(0, 230, 138, 0.06);
  border-radius: 50%;
  filter: blur(80px);
}

.steps-rocket img {
  position: relative;
  width: 280px;
  filter: drop-shadow(0 0 40px rgba(0, 230, 138, 0.12));
}

@media (min-width: 640px) {
  .steps-rocket img {
    width: 340px;
  }
}

@media (min-width: 1024px) {
  .steps-rocket img {
    width: 380px;
  }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-layout {
  display: grid;
  gap: 2.5rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .faq-layout {
    grid-template-columns: 1fr 1.5fr;
    gap: 3.5rem;
  }
}

.faq-left {}

@media (min-width: 1024px) {
  .faq-left {
    position: sticky;
    top: 7rem;
    align-self: start;
  }
}

.faq-help {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.faq-help button {
  color: var(--green);
  font-weight: 500;
  background: none;
  border: none;
}

.faq-help button:hover {
  text-decoration: underline;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item.active {
  border-color: rgba(0, 230, 138, 0.2);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  text-align: left;
}

.faq-question span {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  font-family: var(--font-display);
  padding-right: 1rem;
}

@media (min-width: 1024px) {
  .faq-question span {
    font-size: 1rem;
  }
}

.faq-question .faq-chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  transition: transform 0.3s, color 0.3s;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--green);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 1rem;
}

/* ============================================================
   CTA
   ============================================================ */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #080c14, #0a1628, #080c14);
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: rgba(0, 230, 138, 0.06);
  border-radius: 50%;
  filter: blur(150px);
  pointer-events: none;
}

.cta-coins {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  opacity: 0.05;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}

.cta-emoji {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.cta-inner h2 {
  font-size: 1.875rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .cta-inner h2 {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .cta-inner h2 {
    font-size: 3.75rem;
  }
}

.cta-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-sub-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 1.25rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  background: #060a12;
}

.footer-main {
  padding: 2.5rem 0;
}

@media (min-width: 1024px) {
  .footer-main {
    padding: 3.5rem 0;
  }
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .footer-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-brand {
  max-width: 28rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}

.footer-logo img {
  height: 44px;
  width: auto;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}

.footer-logo-text .green {
  color: var(--green);
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-email {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-email svg {
  width: 14px;
  height: 14px;
  color: var(--green);
}

.footer-email a:hover {
  color: #fff;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-legal a:hover {
  color: #fff;
  transition: color 0.2s;
}

.footer-legal-notice {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

.footer-legal-notice picture {
  display: block;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
}

.footer-legal-img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-risk {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}

.footer-risk p {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
  max-width: 64rem;
  margin: 0 auto;
}

/* ---------- Footer padding fix ---------- */
.footer-main {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.footer-legal-notice .container,
.footer-risk .container {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .footer-main {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .footer-legal-notice .container,
  .footer-risk .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-page {
  min-height: 100vh;
  background: #080C14;
  color: #fff;
}

.legal-container {
  max-width: 56rem;
  margin: 0 auto;
  padding: 3rem 1rem;
}

@media (min-width: 1024px) {
  .legal-container {
    padding: 5rem 2rem;
  }
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--green);
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.legal-back:hover {
  color: #fff;
}

.legal-back svg {
  width: 16px;
  height: 16px;
}

.legal-notice-image {
  width: 100%;
}

.legal-notice-image picture,
.legal-notice-image img {
  display: block;
  width: 100%;
  height: auto;
}