/* ============================================================
   MatchChat Hot Site — Electric Pulse Design System
   ============================================================ */

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

:root {
  /* Colors — canonical */
  --mc-bg-primary: #0D0D12;
  --mc-bg-surface: #1A1A24;
  --mc-bg-bubble: #252532;
  --mc-primary: #7C3AED;
  --mc-violet: #A855F7;
  --mc-magenta: #E040FB;
  --mc-online: #4ADE80;
  --mc-danger: #EF4444;
  --mc-text-primary: #F0F0F5;
  --mc-text-secondary: #8A8A9A;
  --mc-text-muted: #6B6B7B;
  --mc-border: #2A2A3A;
  --mc-border-light: #3A3A4A;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
  --gradient-brand-glow: linear-gradient(135deg, #7C3AED 0%, #A855F7 50%, #E040FB 100%);
  --gradient-card-glass: linear-gradient(180deg, rgba(26, 26, 36, 0.85) 0%, rgba(20, 20, 29, 0.95) 100%);
  --gradient-dark-overlay: linear-gradient(180deg, rgba(13, 13, 18, 0) 0%, #0D0D12 100%);

  /* Glows */
  --glow-primary: 0 0 25px rgba(124, 58, 237, 0.45);
  --glow-magenta: 0 0 25px rgba(224, 64, 251, 0.35);
  --glow-online: 0 0 15px rgba(74, 222, 128, 0.5);
  --glow-strong: 0 0 45px rgba(124, 58, 237, 0.6), 0 0 90px rgba(168, 85, 247, 0.25);

  /* Typography */
  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--mc-text-primary);
  background: var(--mc-bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.gradient-text {
  background: var(--gradient-brand-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--mc-primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { top: 8px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn__icon { width: 18px; height: 18px; }

.btn--primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--glow-primary);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-strong);
}

.btn--outline {
  background: transparent;
  color: var(--mc-text-primary);
  border: 1px solid var(--mc-border-light);
}
.btn--outline:hover {
  border-color: var(--mc-primary);
  background: rgba(124, 58, 237, 0.08);
}

.btn--sm { padding: 8px 18px; font-size: 14px; }
.btn--lg { padding: 14px 28px; font-size: 16px; }
.btn--full { width: 100%; justify-content: center; }

/* --- Section titles --- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: var(--space-md);
}
.section-sub {
  font-size: 17px;
  color: var(--mc-text-secondary);
  text-align: center;
  max-width: 560px;
  margin: 0 auto var(--space-2xl);
}

/* --- Pulse Dot --- */
.pulse-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mc-online);
  box-shadow: var(--glow-online);
  position: relative;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--mc-online);
  animation: pulse-ring 2s ease-out infinite;
}
.pulse-dot--sm { width: 8px; height: 8px; }
.pulse-dot--sm::after { inset: -3px; }

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(13, 13, 18, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(42, 42, 58, 0.5);
  transition: background 0.3s;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
}
.header__logo-icon { font-size: 22px; }
.header__nav { display: flex; gap: 28px; }
.header__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--mc-text-secondary);
  transition: color 0.2s;
}
.header__link:hover { color: var(--mc-text-primary); }
.header__menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--mc-text-primary);
  cursor: pointer;
}
.header__menu-btn svg { width: 24px; height: 24px; }

.mobile-menu {
  display: none;
  padding: var(--space-lg);
}
.mobile-menu.is-open {
  display: block;
}
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.mobile-menu__link {
  font-size: 16px;
  font-weight: 500;
  padding: var(--space-sm) 0;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}
.hero__orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: float-orb 20s ease-in-out infinite;
}
.orb--indigo {
  width: 500px;
  height: 500px;
  background: var(--mc-primary);
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}
.orb--magenta {
  width: 400px;
  height: 400px;
  background: var(--mc-magenta);
  top: 40%;
  right: -5%;
  animation-delay: -7s;
}
.orb--cyan {
  width: 350px;
  height: 350px;
  background: #00DBE9;
  bottom: 5%;
  left: 30%;
  animation-delay: -14s;
  opacity: 0.2;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
  font-size: 13px;
  font-weight: 600;
  color: var(--mc-online);
  margin-bottom: var(--space-lg);
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}
.hero__subtitle {
  font-size: 17px;
  color: var(--mc-text-secondary);
  max-width: 500px;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Phone Mockup */
.hero__mockup { display: flex; justify-content: center; }
.phone-mockup { perspective: 1000px; position: relative; }
.phone-mockup__frame {
  width: 280px;
  height: 560px;
  border-radius: 36px;
  border: 2px solid var(--mc-border-light);
  background: var(--mc-bg-surface);
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--glow-primary);
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform 0.4s ease;
  position: relative;
  z-index: 1;
}
.phone-mockup__frame:hover { transform: rotateY(0) rotateX(0); }
.phone-mockup__screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: var(--mc-bg-primary);
  overflow: hidden;
  position: relative;
}
.phone-mockup__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.phone-mockup__glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

/* Screenshot in step cards */
.step-card__screenshot {
  margin-top: var(--space-lg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--mc-border);
}
.step-card__screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

/* Screenshot in feature cards */
.feature-card__screenshot {
  margin-top: var(--space-lg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--mc-border);
  max-width: 280px;
}
.feature-card__screenshot img {
  width: 100%;
  height: auto;
  display: block;
}
.feature-card__screenshot--wide {
  max-width: 100%;
}
.feature-card__screenshot--wide img {
  max-height: 400px;
  object-fit: cover;
  object-position: top;
}

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  border-top: 1px solid var(--mc-border);
  border-bottom: 1px solid var(--mc-border);
  padding: 14px 0;
  overflow: hidden;
  background: var(--mc-bg-surface);
}
.ticker__track { width: 100%; overflow: hidden; }
.ticker__content {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mc-text-secondary);
}
.ticker__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mc-online);
  box-shadow: var(--glow-online);
}

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

/* ============================================================
   STEPS (COMO FUNCIONA)
   ============================================================ */
.steps {
  padding: var(--space-3xl) 0;
}
.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.step-card {
  background: var(--gradient-card-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--mc-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  position: relative;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.step-card:hover {
  border-color: var(--mc-border-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.step-card__number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  box-shadow: var(--glow-primary);
}
.step-card__icon {
  margin: var(--space-lg) auto var(--space-md);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(124, 58, 237, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mc-primary);
}
.step-card__icon svg { width: 26px; height: 26px; }
.step-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  margin-bottom: var(--space-sm);
}
.step-card__text {
  font-size: 15px;
  color: var(--mc-text-secondary);
  line-height: 1.65;
}

/* ============================================================
   FEATURES (RECURSOS)
   ============================================================ */
.features {
  padding: var(--space-3xl) 0;
  background: var(--mc-bg-surface);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}
.feature-card {
  background: var(--mc-bg-primary);
  border: 1px solid var(--mc-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: border-color 0.3s, transform 0.3s;
}
.feature-card:hover {
  border-color: var(--mc-border-light);
  transform: translateY(-4px);
}
.feature-card--wide {
  grid-column: 1 / -1;
}
.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(124, 58, 237, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mc-primary);
  margin-bottom: var(--space-md);
}
.feature-card__icon svg { width: 22px; height: 22px; }
.feature-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: var(--space-sm);
}
.feature-card__text {
  font-size: 15px;
  color: var(--mc-text-secondary);
  line-height: 1.65;
}
.feature-card__text strong { color: var(--mc-text-primary); }

/* ============================================================
   COMPARISON
   ============================================================ */
.comparison {
  padding: var(--space-3xl) 0;
}
.comparison__table-wrap {
  overflow-x: auto;
}
.comparison__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.comparison__table th,
.comparison__table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--mc-border);
}
.comparison__table th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mc-text-muted);
}
.comparison__table td:first-child {
  font-weight: 600;
  color: var(--mc-text-primary);
}
.comparison__old {
  color: var(--mc-text-muted);
}
.comparison__new {
  color: var(--mc-online) !important;
  font-weight: 600 !important;
}
.comparison__table tbody tr {
  transition: background 0.2s;
}
.comparison__table tbody tr:hover {
  background: rgba(124, 58, 237, 0.04);
}

/* ============================================================
   VENUES (BALADAS)
   ============================================================ */
.venues {
  padding: var(--space-3xl) 0;
  background: var(--mc-bg-surface);
}
.venues__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.venue-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--mc-border);
  overflow: hidden;
  background: var(--mc-bg-primary);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.venue-card:hover {
  border-color: var(--mc-border-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.venue-card__photo {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.venue-card__body { padding: var(--space-lg); }
.venue-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
}
.venue-card__location {
  font-size: 13px;
  color: var(--mc-text-muted);
  margin-bottom: var(--space-md);
}
.venue-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.venue-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}
.venue-status--live {
  background: rgba(74, 222, 128, 0.1);
  color: var(--mc-online);
  border: 1px solid rgba(74, 222, 128, 0.2);
}
.venue-status--scheduled {
  background: rgba(138, 138, 154, 0.1);
  color: var(--mc-text-muted);
  border: 1px solid var(--mc-border);
}
.venue-card__count {
  font-size: 12px;
  color: var(--mc-text-muted);
}

/* ============================================================
   B2B
   ============================================================ */
.b2b {
  padding: var(--space-3xl) 0;
}
.b2b__card {
  background: var(--mc-bg-surface);
  border: 1px solid var(--mc-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-xl);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.b2b__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
}
.b2b__text {
  font-size: 16px;
  color: var(--mc-text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 480px;
}
.b2b__benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.b2b__benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--mc-text-secondary);
}
.b2b__benefits svg { width: 20px; height: 20px; color: var(--mc-primary); flex-shrink: 0; }
.b2b__visual {
  width: 200px;
  height: 200px;
  position: relative;
}
.b2b__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-orb 8s ease-in-out infinite;
}

/* ============================================================
   DOWNLOAD / CTA FINAL
   ============================================================ */
.download {
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.download::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.download__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}
.download__subtitle {
  font-size: 17px;
  color: var(--mc-text-secondary);
  margin-bottom: var(--space-xl);
}
.download__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--mc-border);
  background: var(--mc-bg-surface);
  transition: border-color 0.2s, transform 0.2s;
}
.store-badge:hover {
  border-color: var(--mc-primary);
  transform: translateY(-2px);
}
.store-badge__icon { color: var(--mc-text-primary); }
.store-badge__small {
  display: block;
  font-size: 11px;
  color: var(--mc-text-muted);
}
.store-badge__big {
  display: block;
  font-size: 17px;
  font-weight: 700;
}

/* QR */
.qr-placeholder {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px;
  border: 1px dashed var(--mc-border);
  border-radius: var(--radius-lg);
  color: var(--mc-text-muted);
  font-size: 13px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--mc-border);
  padding: var(--space-xl) 0;
  background: var(--mc-bg-surface);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}
.footer__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
}
.footer__copy {
  font-size: 13px;
  color: var(--mc-text-muted);
  margin-top: 4px;
}
.footer__links {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
}
.footer__links a {
  font-size: 13px;
  color: var(--mc-text-secondary);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--mc-text-primary); }
.footer__privacy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--mc-text-muted);
}

/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */
.anim-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.anim-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .header__nav { display: none; }
  .header__cta { display: none; }
  .header__menu-btn { display: block; }

  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-xl);
  }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__mockup { order: -1; }

  .steps__grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .features__grid { grid-template-columns: 1fr; }
  .venues__grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }

  .b2b__card { grid-template-columns: 1fr; text-align: center; }
  .b2b__benefits { align-items: center; }
  .b2b__text { margin-left: auto; margin-right: auto; }
  .b2b__visual { display: none; }

  .comparison__table { font-size: 13px; }
  .comparison__table th,
  .comparison__table td { padding: 12px; }
}

@media (max-width: 600px) {
  .hero__title { font-size: 32px; }
  .phone-mockup__frame { width: 240px; height: 480px; }
  .download__actions { flex-direction: column; align-items: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .anim-reveal { opacity: 1; transform: none; }
  .ticker__content { animation: none; }
}
