/* ============================================================
   BITÁCORA TRADING - Design System
   Mobile-first | Dark Terminal | Neon Green
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ── CSS Variables ── */
:root {
  /* Colors */
  --bg-primary:     #080c10;
  --bg-secondary:   #0d1117;
  --bg-card:        #111820;
  --bg-card-hover:  #161e28;
  --border:         #1e2d3d;
  --border-bright:  #253347;

  --neon:           #00ff88;
  --neon-dim:       #00d470;
  --neon-glow:      rgba(0, 255, 136, 0.15);
  --neon-glow-sm:   rgba(0, 255, 136, 0.08);

  --text-primary:   #e8edf5;
  --text-secondary: #7a8fa6;
  --text-muted:     #4a5f72;
  --text-accent:    #00ff88;

  --danger:         #ff4466;
  --warning:        #ffcc00;
  --info:           #4da6ff;

  /* Typography */
  --font-body:  'Inter', sans-serif;
  --font-mono:  'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  4rem;

  /* Radii */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-full:50px;

  /* Transitions */
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100vw;
  position: relative;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select { font-family: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 3px; }

/* ── Selection ── */
::selection { background: var(--neon-glow); color: var(--neon); }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   GRID BACKGROUND (subtle scanlines)
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,255,136,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,136,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   PROMO BANNER
   ============================================================ */
.promo-banner {
  background-color: #2544ee;
  background: linear-gradient(90deg, #1d4ed8, #2563eb);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  position: relative;
  z-index: 200;
}

.promo-banner__track {
  display: flex;
  width: max-content;
  animation: promo-scroll 35s linear infinite;
}

.promo-banner__content {
  display: flex;
  gap: 3rem;
  padding-right: 3rem;
}

@keyframes promo-scroll {
  to { transform: translateX(-50%); }
}

/* ============================================================
   TOP NAV / LOGO BAR
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 12, 16, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) 0;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.logo__icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--neon), var(--neon-dim));
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  box-shadow: 0 0 16px var(--neon-glow);
}

.logo__text { color: var(--text-primary); }
.logo__dot  { color: var(--neon); }

.topbar__badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #FF4500;
  background: rgba(255, 69, 0, 0.08);
  border: 1px solid rgba(255, 69, 0, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  animation: pulse-border-orange 2s ease infinite;
}

@keyframes pulse-border-orange {
  0%, 100% { border-color: rgba(255, 69, 0, 0.2); }
  50%       { border-color: rgba(255, 69, 0, 0.6); }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  z-index: 1;
  padding: var(--space-md) 0 var(--space-xl);
  text-align: center;
}

/* Glow blob behind hero */
.hero::after {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,255,136,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero__logo-img {
  display: block;
  margin: 0 auto var(--space-lg) auto;
  width: 100%;
  max-width: 450px;
  height: auto;
  filter: drop-shadow(0 0 30px rgba(0, 255, 136, 0.4));
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--neon);
  background: var(--neon-glow-sm);
  border: 1px solid rgba(0,255,136,0.2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--neon);
  border-radius: 50%;
  animation: blink 1.2s ease infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

.hero__h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
  max-width: 820px;
  margin-inline: auto;
}

.hero__h1 .highlight {
  color: var(--neon);
  position: relative;
}

.hero__h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), transparent);
  border-radius: 2px;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

/* ── Hero Stats strip ── */
.hero__stats {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat__num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--neon);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.stat__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   REGISTER FORM CARD
   ============================================================ */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  max-width: 480px;
  margin-inline: auto;
  position: relative;
  box-shadow: 0 0 60px rgba(0,0,0,0.5), 0 0 0 1px var(--border);
  transition: box-shadow var(--transition);
}

.form-card:hover {
  box-shadow: 0 0 80px rgba(0,0,0,0.6), 0 0 30px var(--neon-glow-sm);
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  border-radius: 1px;
}

.form-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-lg);
}

.form-card__title span { color: var(--neon); }

/* ── Form Fields ── */
.form-group {
  margin-bottom: var(--space-md);
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder { color: var(--text-muted); }

.form-input:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px var(--neon-glow-sm);
}

.form-input.is-error { border-color: var(--danger); }

/* ── Phone field with country selector ── */
.phone-group {
  display: flex;
  gap: 8px;
}

.phone-group .country-select {
  width: 130px;
  flex-shrink: 0;
  background: var(--bg-secondary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%237a8fa6'%3E%3Cpath d='M0 0l6 8 6-8z'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 30px 13px 12px;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-family: var(--font-mono);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.phone-group .country-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.phone-group .country-select:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px var(--neon-glow-sm);
}

.phone-group .form-input { flex: 1; min-width: 0; }

/* ── Password toggle ── */
.input-wrapper { position: relative; }

.password-toggle {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  transition: color var(--transition-fast);
  line-height: 0;
  cursor: pointer;
  z-index: 10;
  background: transparent;
  border: none;
  padding: 5px;
}

.password-toggle:hover { color: var(--neon); }

/* ── CTA Button ── */
.btn-cta {
  width: 100%;
  background: linear-gradient(135deg, var(--neon), #00d470);
  color: #080c10;
  font-weight: 800;
  font-size: 1rem;
  padding: 15px var(--space-lg);
  border-radius: var(--radius-sm);
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 0 24px rgba(0,255,136,0.3);
  margin-top: var(--space-md);
}

.btn-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 32px rgba(0,255,136,0.45);
}

.btn-cta:hover::before { opacity: 1; }
.btn-cta:active { transform: translateY(0); }

.btn-cta.is-loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn-cta .btn-text   { transition: opacity var(--transition-fast); }
.btn-cta .btn-loader {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.btn-cta.is-loading .btn-text   { opacity: 0; }
.btn-cta.is-loading .btn-loader { opacity: 1; }

/* Spinner */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(8,12,16,0.3);
  border-top-color: #080c10;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Security note ── */
.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
  text-align: center;
}

.security-note svg { color: var(--neon); flex-shrink: 0; }

/* ── Form error message ── */
.form-error {
  background: rgba(255,68,102,0.1);
  border: 1px solid rgba(255,68,102,0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--danger);
  margin-bottom: var(--space-md);
  display: none;
}
.form-error.is-visible { display: block; }

/* ── Field-level error ── */
.field-error {
  font-size: 0.75rem;
  color: var(--danger);
  margin-top: 5px;
  display: none;
}
.field-error.is-visible { display: block; }

/* ============================================================
   SOCIAL PROOF SECTION
   ============================================================ */
.social-proof {
  padding: var(--space-lg) 0 var(--space-2xl) 0;
  position: relative;
  z-index: 1;
}

.social-proof__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
}

/* ── Compatible badge ── */
.compat-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 10px var(--space-lg);
}

.compat-badge__label {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compat-badge__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}

.nt-icon {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, #0066ff, #003399);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: white;
}

.compat-check {
  width: 20px; height: 20px;
  background: var(--neon-glow);
  border: 1px solid var(--neon);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--neon);
  font-size: 0.75rem;
}

/* ── Divider ── */
.divider {
  width: 100%;
  max-width: 400px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ── Testimonial ── */
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
  max-width: 540px;
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -10px; left: var(--space-lg);
  font-size: 3rem;
  font-weight: 900;
  color: var(--neon);
  line-height: 1;
  opacity: 0.6;
}

.testimonial__text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  padding-top: var(--space-sm);
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.testimonial__avatar {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--neon), #00a856);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #080c10;
  flex-shrink: 0;
}

.testimonial__name {
  font-weight: 700;
  font-size: 0.9rem;
  display: block;
  line-height: 1.2;
}

.testimonial__role {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.testimonial__stars {
  margin-left: auto;
  color: var(--warning);
  font-size: 0.85rem;
  letter-spacing: 2px;
}

/* ============================================================
   BENEFITS / PILLARS SECTION
   ============================================================ */
.benefits {
  padding: var(--space-xl) 0 var(--space-2xl) 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-title .accent { color: var(--neon); }

/* ── Pillars Grid ── */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.pillar-card:hover {
  border-color: rgba(0,255,136,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 20px var(--neon-glow-sm);
}

.pillar-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--neon), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.pillar-card:hover::after { opacity: 1; }

.pillar-card__number {
  position: absolute;
  top: var(--space-lg); right: var(--space-lg);
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  user-select: none;
}

.pillar-card__icon {
  width: 52px; height: 52px;
  background: var(--neon-glow-sm);
  border: 1px solid rgba(0,255,136,0.2);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-lg);
  font-size: 1.5rem;
  transition: background var(--transition), box-shadow var(--transition);
}

.pillar-card:hover .pillar-card__icon {
  background: var(--neon-glow);
  box-shadow: 0 0 20px var(--neon-glow);
}

.pillar-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.pillar-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Mini feature list inside pillar ── */
.pillar-features {
  list-style: none;
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pillar-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.pillar-features li::before {
  content: '→';
  color: var(--neon);
  font-family: var(--font-mono);
}

/* ── Features Grid (Replaces Pillars) ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: left;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,255,136,0.3);
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 100%;
  background: linear-gradient(180deg, var(--neon), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover::after { opacity: 1; }

.feature-card__icon {
  font-size: 1.6rem;
  margin-bottom: var(--space-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: var(--neon-glow-sm);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,255,136,0.1);
}

.feature-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.feature-card__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   HOW IT WORKS - STEPS
   ============================================================ */
.how-it-works {
  padding: var(--space-2xl) 0;
  position: relative;
  z-index: 1;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  max-width: 600px;
  margin-inline: auto;
}

.steps::before {
  content: '';
  position: absolute;
  left: 22px; top: 44px; bottom: 44px;
  width: 1px;
  background: linear-gradient(180deg, var(--neon), var(--border), transparent);
}

.step {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
}

.step__num {
  width: 44px; height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--neon);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: background var(--transition), border-color var(--transition);
}

.step:hover .step__num {
  background: var(--neon-glow);
  border-color: var(--neon);
}

.step__content { padding-top: 6px; }

.step__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

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

/* ============================================================
   STATS / NUMBERS SECTION
   ============================================================ */
.stats-section {
  padding: var(--space-xl) 0;
  position: relative;
  z-index: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

.stat-card:hover {
  border-color: rgba(0,255,136,0.3);
  transform: translateY(-2px);
}

.stat-card__val {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--neon);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card__label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

/* ============================================================
   FINAL CTA SECTION
   ============================================================ */
.final-cta {
  padding: var(--space-3xl) 0;
  position: relative;
  z-index: 1;
  text-align: center;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,255,136,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--neon);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
  display: block;
}

.final-cta__h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  max-width: 680px;
  margin-inline: auto;
}

.final-cta__h2 .accent { color: var(--neon); }

.final-cta__sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.btn-cta-lg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card); /* Fallback */
  color: var(--neon);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 18px var(--space-2xl);
  border-radius: var(--radius-sm);
  letter-spacing: -0.01em;
  transition: transform var(--transition), box-shadow var(--transition), color var(--transition);
  box-shadow: 0 0 25px rgba(0,255,136,0.15);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* The spinning ray (neon green) */
.btn-cta-lg::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: conic-gradient(transparent, transparent, transparent, var(--neon));
  animation: rotateRay 2.5s linear infinite;
  z-index: -2;
}

/* The solid inner background to cover the ray in the middle */
.btn-cta-lg::after {
  content: '';
  position: absolute;
  inset: 2px; /* border thickness */
  background: #0a0f14;
  border-radius: calc(var(--radius-sm) - 2px);
  z-index: -1;
  transition: background var(--transition);
}

.btn-cta-lg:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(0,255,136,0.4);
  color: #fff;
}

.btn-cta-lg:hover::after {
  background: #111a24;
}

@keyframes rotateRay {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.final-cta__guarantee {
  margin-top: var(--space-lg);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: var(--space-xl) 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

footer p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.8;
}

footer a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

footer a:hover { color: var(--neon); }

/* ============================================================
   GRACIAS PAGE
   ============================================================ */
.gracias-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl);
  position: relative;
  z-index: 1;
}

.gracias-icon {
  width: 80px; height: 80px;
  background: var(--neon-glow);
  border: 2px solid var(--neon);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
  animation: celebrate 0.6s ease;
  box-shadow: 0 0 40px var(--neon-glow);
}

@keyframes celebrate {
  0%   { transform: scale(0) rotate(-180deg); }
  80%  { transform: scale(1.1) rotate(10deg); }
  100% { transform: scale(1) rotate(0); }
}

.gracias-title {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

.gracias-title .accent { color: var(--neon); }

.gracias-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.gracias-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 420px;
  margin-inline: auto;
  text-align: left;
  margin-bottom: var(--space-2xl);
}

.gracias-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.gracias-step__num {
  width: 32px; height: 32px;
  background: var(--neon-glow);
  border: 1px solid var(--neon);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--neon);
  flex-shrink: 0;
}

.gracias-step__text { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; }
.gracias-step__text strong { color: var(--text-primary); }

/* ============================================================
   RESPONSIVE — TABLET & DESKTOP
   ============================================================ */
@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
  .pillars-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: var(--space-3xl) 0 var(--space-2xl); }
  .gracias-steps { flex-direction: row; max-width: 700px; }
  .gracias-step { flex: 1; }
}

@media (min-width: 1024px) {
  .container { padding-inline: var(--space-xl); }
}

/* ============================================================
   MICRO-ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* Stagger delays */
.fade-up:nth-child(1) { transition-delay: 0.05s; }
.fade-up:nth-child(2) { transition-delay: 0.15s; }
.fade-up:nth-child(3) { transition-delay: 0.25s; }

/* ============================================================
   NOTIFICATION TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  max-width: 320px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 9999;
  transform: translateX(110%);
  transition: transform var(--transition);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.toast.is-visible { transform: translateX(0); }
.toast.is-success { border-color: rgba(0,255,136,0.3); }
.toast.is-error   { border-color: rgba(255,68,102,0.3); }

.toast__icon { font-size: 1.2rem; flex-shrink: 0; }
.toast__title { font-weight: 700; font-size: 0.9rem; line-height: 1.3; }
.toast__msg   { font-size: 0.8rem; color: var(--text-secondary); margin-top: 2px; }

/* ============================================================
   TICKER TAPE
   ============================================================ */
.ticker {
  position: relative;
  z-index: 10;
  background: rgba(8,12,16,0.95);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
}

.ticker::before,
.ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0;  background: linear-gradient(90deg, var(--bg-primary), transparent); }
.ticker::after  { right: 0; background: linear-gradient(-90deg, var(--bg-primary), transparent); }

.ticker__track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 28s linear infinite;
  will-change: transform;
}

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

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 28px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  border-right: 1px solid var(--border);
}

.ticker__sym   { color: var(--text-secondary); font-weight: 700; letter-spacing: 0.05em; }
.ticker__price { color: var(--text-primary); }
.ticker__chg   { font-size: 0.68rem; font-weight: 600; }
.ticker__chg.up   { color: var(--neon); }
.ticker__chg.down { color: var(--danger); }

/* ============================================================
   HERO CHART CANVAS
   ============================================================ */
.hero__chart {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  height: 220px;
  pointer-events: none;
  opacity: 0.7;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.8) 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.8) 100%);
}

/* ============================================================
   HERO ENTRANCE ANIMATIONS
   ============================================================ */
.hero__eyebrow {
  animation: hero-fade-in 0.6s ease both;
  animation-delay: 0.1s;
}

.hero__h1 {
  animation: hero-slide-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.2s;
}

.hero__subtitle {
  animation: hero-slide-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.35s;
}

.hero__stats {
  animation: hero-slide-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.5s;
}

.form-card {
  animation: hero-slide-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.65s;
}

@keyframes hero-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes hero-slide-up {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   STAT NUMBERS - GLOW ON COUNT
   ============================================================ */
.stat__num--free {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--neon);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
  animation: neon-pulse 2.5s ease infinite;
}

@keyframes neon-pulse {
  0%, 100% { text-shadow: 0 0 8px rgba(0,255,136,0.4); }
  50%       { text-shadow: 0 0 24px rgba(0,255,136,0.9), 0 0 48px rgba(0,255,136,0.4); }
}

/* Hero stat numbers get a glow flash + bounce when counter finishes */
.stat__num {
  transition: text-shadow 0.4s ease, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  display: block;
}

.stat__num.counted {
  text-shadow: 0 0 24px rgba(0,255,136,0.9), 0 0 50px rgba(0,255,136,0.5);
  animation: counter-pop 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes counter-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.25); }
  70%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}

/* Scramble phase: rapid random digit flicker */
.stat__num.scrambling {
  opacity: 0.7;
  filter: blur(0.5px);
}


/* ============================================================
   LOGO GLITCH EFFECT
   ============================================================ */
@keyframes glitch-clip {
  0%   { clip-path: inset(0 0 95% 0); transform: translate(-2px, 0); color: var(--neon); }
  33%  { clip-path: inset(40% 0 35% 0); transform: translate(2px, 0); }
  66%  { clip-path: inset(70% 0 10% 0); transform: translate(-1px, 0); color: var(--info); }
  100% { clip-path: inset(0 0 95% 0); transform: translate(0); }
}

.logo__text.glitch {
  position: relative;
}

.logo__text.glitch::before {
  content: 'Bitácora.Pro';
  position: absolute;
  top: 0; left: 0;
  color: #00ff88;
  animation: glitch-clip 0.18s steps(1) both;
}

.logo__text.glitch::after {
  content: 'Bitácora.Pro';
  position: absolute;
  top: 0; left: 2px;
  color: #ff4466;
  animation: glitch-clip 0.18s steps(1) 0.05s both;
}

/* ============================================================
   FORM CARD - ANIMATED SHIMMER STRIPE
   ============================================================ */
@keyframes shimmer-slide {
  0%   { left: -60%; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { left: 140%; opacity: 0; }
}

.form-card::after {
  content: '';
  position: absolute;
  top: -15px; /* Offset to center the heartbeat height */
  left: -60%;
  width: 200px; /* Fixed width for the SVG */
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg width='200' height='30' viewBox='0 0 200 30' xmlns='http://www.w3.org/2000/svg'%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0%25' stop-color='%2300ff88' stop-opacity='0' /%3E%3Cstop offset='30%25' stop-color='%2300ff88' stop-opacity='1' /%3E%3Cstop offset='70%25' stop-color='%2300ff88' stop-opacity='1' /%3E%3Cstop offset='100%25' stop-color='%2300ff88' stop-opacity='0' /%3E%3C/linearGradient%3E%3Cpath d='M0 15 L 70 15 L 80 5 L 90 25 L 100 10 L 110 20 L 120 15 L 200 15' stroke='url(%23g)' stroke-width='2' fill='none' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  animation: shimmer-slide 3.5s ease infinite;
  animation-delay: 1.5s;
  pointer-events: none;
  filter: drop-shadow(0 0 4px var(--neon));
}

/* ============================================================
   PILLAR CARDS - ICON BOUNCE ON HOVER
   ============================================================ */
.pillar-card:hover .pillar-card__icon {
  transform: scale(1.18) rotate(-6deg);
}

/* ============================================================
   STAT CARD VALUE - GLOW HOVER
   ============================================================ */
.stat-card:hover .stat-card__val {
  text-shadow: 0 0 20px rgba(0,255,136,0.7);
  transition: text-shadow 0.3s ease;
}

/* ============================================================
   STEP NUMBER - FULL SPIN ON HOVER
   ============================================================ */
.step__num {
  transition: background 0.3s ease, border-color 0.3s ease,
              box-shadow 0.3s ease, transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}

.step:hover .step__num {
  transform: scale(1.2) rotate(360deg);
  box-shadow: 0 0 20px rgba(0,255,136,0.5);
}

/* ============================================================
   CTA BUTTON - RIPPLE WAVE ON CLICK
   ============================================================ */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255,255,255,0.3);
  animation: ripple-out 0.65s linear;
  pointer-events: none;
  width: 100px; height: 100px;
  margin-left: -50px; margin-top: -50px;
}

@keyframes ripple-out {
  to { transform: scale(5); opacity: 0; }
}

/* ============================================================
   COMPAT BADGE - PULSE RING
   ============================================================ */
.compat-badge {
  position: relative;
}

.compat-badge::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0,255,136,0.25);
  animation: ring-pulse 2.5s ease infinite;
  pointer-events: none;
}

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

/* ============================================================
   RESPONSIVE ADJUSTMENTS FOR NEW ELEMENTS
   ============================================================ */
@media (max-width: 480px) {
  .ticker { display: none; }
  .hero__chart { height: 140px; opacity: 0.35; }
}

/* ============================================================
   DASHBOARD MOCKUP
   ============================================================ */
.dashboard-preview {
  padding: 0;
  position: relative;
  z-index: 2;
  margin-top: -30px;
}

.mockup-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,255,136,0.1);
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  transform: perspective(1000px) rotateX(2deg) translateY(30px);
  opacity: 0;
  transition: transform 0.6s ease, box-shadow 0.6s ease, opacity 0.6s ease;
  animation: mockup-entrance 0.8s ease forwards;
  animation-delay: 0.8s;
}

@keyframes mockup-entrance {
  to {
    opacity: 1;
    transform: perspective(1000px) rotateX(2deg) translateY(0);
  }
}

.mockup-window:hover {
  transform: perspective(1000px) rotateX(0deg) translateY(-5px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.7), 0 0 20px rgba(0,255,136,0.15);
}

/* ── SUCCESS MODAL ── */
.success-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.success-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.success-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.success-modal__content {
  position: relative;
  background: linear-gradient(180deg, #13151a 0%, #0a0b0e 100%);
  border: 1px solid var(--neon-glow);
  padding: 40px;
  border-radius: 24px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 255, 136, 0.15), 0 0 0 1px rgba(255,255,255,0.05) inset;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-modal.is-visible .success-modal__content {
  transform: translateY(0) scale(1);
}

.success-modal__icon {
  width: 80px;
  height: 80px;
  background: rgba(0, 255, 136, 0.1);
  color: var(--neon);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

.success-modal__title {
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}

.success-modal__text {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.success-modal__alert {
  background: rgba(255, 170, 0, 0.1);
  border: 1px solid rgba(255, 170, 0, 0.3);
  color: #ffaa00;
  padding: 16px;
  border-radius: 12px;
  font-size: 14px;
}

/* Floating Trader Texts Animation */
#floating-texts-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0; /* Behind main content */
  overflow: hidden;
}

.floating-trader-text {
  position: absolute;
  bottom: -100px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  user-select: none;
  animation: floatUpFade linear forwards;
}

.floating-trader-text.green {
  color: rgba(0, 255, 128, 0.15);
  text-shadow: 0 0 15px rgba(0, 255, 128, 0.1);
}

.floating-trader-text.red {
  color: rgba(255, 60, 60, 0.12);
  text-shadow: 0 0 15px rgba(255, 60, 60, 0.08);
}

.floating-trader-text.blue {
  color: rgba(0, 191, 255, 0.12);
  text-shadow: 0 0 15px rgba(0, 191, 255, 0.08);
}

@keyframes floatUpFade {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translateY(-110vh) scale(1.1);
    opacity: 0;
  }
}

/* ── INFO MODALS (Privacidad, Términos, Contacto) ── */
.info-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.info-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.info-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}

.info-modal__content {
  position: relative;
  background: linear-gradient(180deg, #13151a 0%, #0a0b0e 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.05) inset;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.info-modal.is-visible .info-modal__content {
  transform: translateY(0) scale(1);
}

.info-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.info-modal__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.info-modal__title {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 12px;
}

.info-modal__text {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.info-modal__text h3 {
  color: #fff;
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 18px;
}
.info-modal__text p {
  margin-bottom: 16px;
}
.info-modal__text ul {
  margin-bottom: 16px;
  padding-left: 20px;
}
.info-modal__text li {
  margin-bottom: 8px;
}
