/* ============================================================
   HERO
============================================================ */
#hero {
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  padding: 80px 48px;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
#hero::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 70%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(255,85,0,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 680px;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hero left */
.hero-left {}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,85,0,0.08);
  border: 1px solid rgba(255,85,0,0.2);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 1.4s ease-in-out infinite;
  box-shadow: 0 0 8px var(--green);
}
.hero-badge span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--green);
  text-transform: uppercase;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(56px, 6.5vw, 88px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-headline .accent { color: var(--green); }

.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-btns {
  display: flex;
  gap: 14px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 24px;
  margin-right: 24px;
  border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.hero-stat-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}
.hero-stat-val .green { color: var(--green); }
.hero-stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   HOW IT WORKS
============================================================ */
#how-it-works {
  padding: 100px 48px;
  background: var(--surface1);
  position: relative;
  overflow: hidden;
}
#how-it-works::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 160%;
  background: radial-gradient(ellipse at center, rgba(255,85,0,0.05) 0%, transparent 65%);
  pointer-events: none;
}

.how-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
  margin-bottom: 64px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.step-num {
  font-family: var(--font-display);
  font-size: 72px;
  color: rgba(255,85,0,0.15);
  letter-spacing: 0.04em;
  line-height: 1;
}
.step-icon-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,85,0,0.08);
  border: 1px solid rgba(255,85,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.step-title {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  text-transform: uppercase;
}
.step-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 300px;
}
.step-btns {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.step-btn-wallet {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(255,85,0,0.25);
  font-weight: 600;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 7px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  cursor: pointer;
}
.step-btn-wallet:hover {
  background: rgba(255,85,0,0.2);
  box-shadow: 0 0 16px rgba(255,85,0,0.2);
  transform: translateY(-1px);
}
.wallet-icon {
  width: 16px; height: 16px;
}

.tech-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}
.tech-pill {
  padding: 10px 28px;
  border-right: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.tech-pill:last-child { border-right: none; }
.tech-pill .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 6px var(--green);
  vertical-align: middle;
}
.tech-pill .base-dot {
  background: var(--base-blue);
  box-shadow: 0 0 6px var(--base-blue);
}

/* ============================================================
   PARTNERS
============================================================ */
#partners {
  padding: 70px 48px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.partners-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.partners-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 36px;
}
.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.4;
  transition: opacity 0.25s;
  cursor: default;
}
.partner:hover { opacity: 1; }
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-logo-tvp {
  width: 80px; height: 44px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}
.partner-logo-base {
  width: 44px; height: 44px;
  background: var(--base-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-logo-mazatlan {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #2a1a3e, #1a0f2e);
  border-radius: 50%;
  border: 1.5px solid #6b4fa0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  color: #c5b5e8;
  letter-spacing: 0.04em;
}
.partner-logo-verde {
  width: 44px; height: 44px;
  background: var(--surface2);
  border: 2px solid var(--green);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(255,85,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--green);
  letter-spacing: 0.04em;
}
.partner-name {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

/* ============================================================
   FOOTER
============================================================ */
#footer {
  padding: 48px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}
.footer-logo .green-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  margin-left: 1px;
  vertical-align: middle;
  position: relative;
  top: -2px;
  box-shadow: 0 0 8px var(--green);
}
.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--green);
}

/* ============================================================
   PORTFOLIO SECTION
============================================================ */
#portfolio {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
}

.portfolio-content {
  max-width: 1280px;
  margin: 0 auto;
}

/* ============================================================
   MOBILE RESPONSIVE — sections
============================================================ */
@media (max-width: 768px) {

  /* Hero */
  #hero {
    padding: 40px 16px 48px;
    min-height: auto;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-headline {
    font-size: clamp(44px, 12vw, 64px);
  }
  .hero-sub {
    font-size: 15px;
    max-width: 100%;
  }
  .hero-btns {
    flex-direction: column;
    gap: 10px;
  }
  .hero-btns .btn-primary,
  .hero-btns .btn-ghost {
    width: 100%;
    text-align: center;
  }
  .hero-stats {
    gap: 0;
    flex-wrap: wrap;
  }
  .hero-stat {
    padding: 0 16px 0 0;
    margin: 0 16px 0 0;
    font-size: 11px;
  }

  /* How it works */
  #how-it-works {
    padding: 60px 16px;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .tech-strip {
    flex-wrap: wrap;
    gap: 0;
    justify-content: flex-start;
  }
  .tech-pill {
    padding: 8px 16px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    width: 50%;
  }
  .tech-pill:nth-last-child(-n+2) { border-bottom: none; }

  /* Partners */
  #partners {
    padding: 48px 16px;
  }
  .partners-row {
    gap: 32px;
  }

  /* Portfolio section */
  #portfolio {
    padding: 60px 16px;
  }

  /* Footer */
  #footer {
    padding: 32px 16px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Hero right column (carousel) — hide on mobile */
  .hero-right {
    display: none;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-headline {
    font-size: clamp(36px, 10vw, 52px);
    line-height: 1.1;
  }
  .hero-badge {
    font-size: 11px;
  }
  .hero-sub {
    font-size: 14px;
  }
  #hero {
    padding: 32px 16px 40px;
    min-height: auto;
  }
}

/* ── Extra small mobile ──────────────────────────────────────── */
@media (max-width: 480px) {
  /* Ticker: smaller text */
  #ticker {
    padding: 0 8px;
  }
  .ticker-item {
    font-size: 10px;
    padding: 0 12px;
    gap: 6px;
  }

  /* Category bar */
  .category-bar-inner {
    height: 40px;
    padding: 0 8px;
  }
  .filter-btn {
    font-size: 9px;
    padding: 5px 8px;
  }

  /* Markets section */
  #market {
    padding: 24px 12px !important;
  }
  .markets-section-title {
    font-size: 20px;
  }
}
