/* ==========================================================================
   BeetWallet — Landing Design System v2
   Capa de tema moderna sobre el template Techie: tokens, claro/oscuro,
   hero, secciones, pricing, FAQ y footer. Misma identidad que la consola.
   Se carga DESPUÉS de style.css (gana por orden en igual especificidad).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens (idénticos a la consola)
   -------------------------------------------------------------------------- */
:root {
  --font-sans: "Inter", "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Poppins", "Nunito", var(--font-sans);

  --primary: #b02050;
  --primary-strong: #8e1a40;
  --primary-soft: rgba(176, 32, 80, 0.1);
  --accent: #35a9f2;
  --accent-soft: rgba(64, 176, 240, 0.12);
  --gradient-primary: linear-gradient(135deg, #c2245c 0%, #7a2f9e 100%);

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f8fd;
  --surface-3: #eef2f9;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --header-bg: rgba(255, 255, 255, 0.82);
  --hero-bg: #170613;
  --footer-bg: #170613;
  --footer-text: #aab6cf;
  --shadow-color: 218, 32%, 18%;

  --radius-lg: 18px;
  --radius: 14px;
  --radius-sm: 10px;

  --shadow-sm: 0 1px 2px hsla(var(--shadow-color), 0.06), 0 1px 3px hsla(var(--shadow-color), 0.05);
  --shadow-md: 0 2px 4px hsla(var(--shadow-color), 0.05), 0 10px 24px -8px hsla(var(--shadow-color), 0.12);
  --shadow-lg: 0 4px 8px hsla(var(--shadow-color), 0.06), 0 24px 48px -12px hsla(var(--shadow-color), 0.2);
  --shadow-glow: 0 8px 24px -6px rgba(176, 32, 80, 0.42);

  --ring: 0 0 0 3px rgba(176, 32, 80, 0.18);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --speed: 0.25s;

  color-scheme: light;
}

[data-theme="dark"] {
  --primary: #e14b7f;
  --primary-strong: #f06a97;
  --primary-soft: rgba(225, 75, 127, 0.16);
  --accent: #5cc1ff;
  --accent-soft: rgba(92, 193, 255, 0.16);
  --gradient-primary: linear-gradient(135deg, #e14b7f 0%, #9b59e8 100%);

  --bg: #150a12;
  --surface: #21121e;
  --surface-2: #1c0f1a;
  --surface-3: #2c1930;
  --text: #efe6ec;
  --text-muted: #a893a4;
  --border: rgba(225, 150, 190, 0.14);
  --border-strong: rgba(225, 150, 190, 0.28);

  --header-bg: rgba(21, 10, 18, 0.78);
  --footer-bg: #0f060d;
  --shadow-color: 330, 50%, 4%;
  --shadow-glow: 0 8px 26px -6px rgba(225, 75, 127, 0.5);
  --ring: 0 0 0 3px rgba(225, 75, 127, 0.28);

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  transition: background-color 0.35s ease, color 0.35s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text);
}

a {
  color: var(--primary);
  transition: color var(--speed) var(--ease-out);
}

::selection {
  background: var(--primary);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: content-box;
}

html.theme-anim,
html.theme-anim *,
html.theme-anim *::before,
html.theme-anim *::after {
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease !important;
}

.text-gradient {
  background: linear-gradient(120deg, #ff6b9d 0%, #b678ff 55%, #40b0f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* --------------------------------------------------------------------------
   3. Header y navegación
   -------------------------------------------------------------------------- */
#header {
  transition: all 0.4s ease;
}

#header.header-scrolled {
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}

#header .logo img {
  transition: transform var(--speed) var(--ease-out);
}

#header .logo:hover img {
  transform: scale(1.04);
}

/* Links: blancos sobre el hero, color de tema al hacer scroll */
.navbar a {
  font-family: var(--font-sans);
  font-weight: 500;
  position: relative;
}

.navbar a::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.navbar a:hover::after,
.navbar a.active::after {
  transform: scaleX(1);
}

#header:not(.header-scrolled) .navbar a {
  color: rgba(255, 255, 255, 0.88);
}

#header:not(.header-scrolled) .navbar a:hover,
#header:not(.header-scrolled) .navbar a.active {
  color: #fff;
}

#header.header-scrolled .navbar a {
  color: var(--text-muted);
}

#header.header-scrolled .navbar a:hover,
#header.header-scrolled .navbar a.active {
  color: var(--primary);
}

/* CTA "Consola beet" */
.navbar .getstarted,
.navbar .getstarted:visited {
  background: var(--gradient-primary);
  color: #fff !important;
  border-radius: 999px;
  padding: 9px 22px;
  margin-left: 18px;
  font-weight: 600;
  box-shadow: var(--shadow-glow);
  transition: transform var(--speed) var(--ease-out), box-shadow var(--speed) var(--ease-out);
}

.navbar .getstarted::after {
  display: none;
}

.navbar .getstarted:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -6px rgba(176, 32, 80, 0.55);
}

/* Toggle de tema */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-left: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  transition: all var(--speed) var(--ease-out);
}

#header.header-scrolled .theme-toggle {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text-muted);
}

.theme-toggle:hover {
  transform: rotate(15deg) scale(1.08);
  box-shadow: var(--shadow-glow);
  color: var(--primary);
  border-color: var(--primary);
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: inline-block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

/* Navegación móvil */
.mobile-nav-toggle {
  color: #fff;
}

#header.header-scrolled .mobile-nav-toggle {
  color: var(--text);
}

.navbar-mobile {
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.navbar-mobile ul {
  background: var(--surface);
  border: 1px solid var(--border);
}

.navbar-mobile a,
.navbar-mobile a:hover {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   4. Hero
   -------------------------------------------------------------------------- */
#hero {
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(194, 36, 92, 0.32), transparent 60%),
    radial-gradient(800px 420px at 8% 85%, rgba(58, 169, 245, 0.26), transparent 60%),
    linear-gradient(135deg, #170613 0%, #3b0e27 52%, #0e1d38 100%);
  position: relative;
  overflow: hidden;
}

/* Rejilla decorativa sutil */
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}

#hero .container-fluid {
  position: relative;
  z-index: 1;
}

#hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}

#hero h2 {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 400;
}

#hero .btn-get-started {
  position: relative;
  overflow: hidden;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 14px 34px;
  border-radius: 999px;
  border: none;
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
  transition: transform var(--speed) var(--ease-out), box-shadow var(--speed) var(--ease-out);
}

#hero .btn-get-started::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s var(--ease-out);
}

#hero .btn-get-started:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -6px rgba(194, 36, 92, 0.6);
}

#hero .btn-get-started:hover::after {
  left: 130%;
}

#hero .hero-img img {
  filter: drop-shadow(0 24px 48px rgba(2, 8, 30, 0.45));
}

/* --------------------------------------------------------------------------
   5. Secciones generales
   -------------------------------------------------------------------------- */
section {
  padding: 72px 0;
}

.section-bg {
  background: var(--surface-2);
}

.section-title {
  padding-bottom: 40px;
}

.section-title h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
}

.section-title p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 640px;
  margin: 14px auto 0;
}

/* About */
.about .content h3 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.about .content ul li {
  padding: 8px 0;
  color: var(--text-muted);
}

.about .content ul li i {
  color: var(--accent);
  font-size: 20px;
}

.about img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Counts: banda con gradiente de marca */
.counts {
  background:
    linear-gradient(120deg, rgba(23, 6, 19, 0.9) 0%, rgba(59, 14, 39, 0.82) 55%, rgba(58, 169, 245, 0.55) 100%),
    url("../img/counts-bg.png") center center no-repeat;
  background-size: cover;
  padding: 64px 0;
}

.counts span.purecounter {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.counts p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 500;
}

/* Features: icon-box como cards modernas */
.features .icon-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.features .icon-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.features .icon-box i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--gradient-primary);
  color: #fff !important;
  font-size: 26px;
  box-shadow: var(--shadow-glow);
  margin-right: 16px;
  transition: transform 0.3s var(--ease-out);
}

.features .icon-box:hover i {
  transform: scale(1.08) rotate(-4deg);
}

.features .icon-box h4 {
  font-size: 17px;
  font-weight: 600;
}

.features .icon-box p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.features .image img {
  filter: drop-shadow(0 18px 36px hsla(var(--shadow-color), 0.18));
}

/* --------------------------------------------------------------------------
   6. Pricing
   -------------------------------------------------------------------------- */
.pricing .box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.pricing .box:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.pricing .box h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  margin: -36px -28px 24px;
  padding: 18px 15px;
}

.pricing .box.featured h3 {
  background: var(--gradient-primary);
  color: #fff;
}

.pricing .btn-wrap {
  background: var(--surface-2);
  margin: 24px -28px -36px;
  padding: 20px 15px;
}

.pricing .box h4 {
  font-size: 44px;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text);
}

.pricing .box h4 sup {
  font-size: 20px;
  color: var(--text-muted);
}

.pricing .box h4 span {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing .box ul li {
  color: var(--text-muted);
  font-size: 14.5px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
}

.pricing .box ul li.na {
  opacity: 0.45;
  text-decoration: line-through;
}

.pricing .box.featured {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--gradient-primary) border-box;
  box-shadow: var(--shadow-glow);
  transform: scale(1.03);
}

.pricing .box.featured:hover {
  transform: scale(1.03) translateY(-8px);
}

.pricing .advanced {
  background: var(--gradient-primary);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing .btn-buy {
  position: relative;
  overflow: hidden;
  display: inline-block;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 999px;
  padding: 11px 32px;
  font-weight: 600;
  font-size: 14.5px;
  transition: transform var(--speed) var(--ease-out), box-shadow var(--speed) var(--ease-out);
}

.pricing .btn-buy:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* --------------------------------------------------------------------------
   7. FAQ
   -------------------------------------------------------------------------- */
.faq .faq-list ul li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
  padding: 6px 20px;
  transition: box-shadow 0.3s var(--ease-out);
}

.faq .faq-list ul li:hover {
  box-shadow: var(--shadow-md);
}

.faq .faq-list a {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--text);
}

.faq .faq-list a.collapsed {
  color: var(--text);
}

.faq .faq-list a:hover {
  color: var(--primary);
}

.faq .faq-list p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.faq .faq-list .icon-help {
  color: var(--accent);
}

.faq .faq-list a .icon-show,
.faq .faq-list a .icon-close {
  color: var(--accent);
}

/* Banda de acento de marca (antes magenta del template) */
.faq {
  background: linear-gradient(135deg, #3b0e27 0%, #b02050 60%, #3aa9f5 135%);
}

/* --------------------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------------------- */
#footer {
  background: var(--footer-bg);
  color: var(--footer-text);
}

#footer .footer-top {
  background: transparent;
  border-top: none;
  padding: 64px 0 40px;
}

#footer .footer-top h3,
#footer .footer-top h4 {
  color: #fff;
  font-family: var(--font-display);
}

#footer .footer-top .footer-contact p,
#footer .footer-top .footer-links ul li {
  color: var(--footer-text);
}

#footer .footer-top .footer-links ul li a {
  color: var(--footer-text);
  transition: color var(--speed) var(--ease-out), padding-left var(--speed) var(--ease-out);
}

#footer .footer-top .footer-links ul li a:hover {
  color: #fff;
  padding-left: 6px;
}

#footer .footer-top .footer-links ul li i {
  color: var(--accent);
}

#footer .copyright-wrap {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#footer .copyright,
#footer .credits {
  color: var(--footer-text);
}

#footer .credits a {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   9. Back to top y preloader
   -------------------------------------------------------------------------- */
.back-to-top {
  background: var(--gradient-primary);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  box-shadow: var(--shadow-glow);
  transition: transform var(--speed) var(--ease-out), opacity 0.4s ease;
}

.back-to-top:hover {
  background: var(--gradient-primary);
  transform: translateY(-4px);
}

#preloader {
  background: var(--bg);
}

#preloader:before {
  content: "";
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  background: none;
  animation: beet-spin 0.8s linear infinite;
}

@keyframes beet-spin {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   10. Páginas internas (terms / contract)
   -------------------------------------------------------------------------- */
#about p,
#about li,
.inner-page p,
.inner-page li {
  color: var(--text-muted);
  line-height: 1.75;
}

#about h1,
#about h2,
#about h3,
#about h4,
.inner-page h1,
.inner-page h2,
.inner-page h3,
.inner-page h4 {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   11. Movimiento reducido
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
