/* ============================================================
   TENSA — style.css
   "Aggressive Elegance" Design System
   ============================================================ */

/* ─── IMPORTS & RESET ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --pink: #25D366;
  --pink-dark: #c4093a;
  --pink-glow: rgba(241, 12, 69, 0.35);
  /* Reduced saturation */
  --pink-glow-soft: rgba(241, 12, 69, 0.12);
  /* Reduced saturation */
  --black: #000000;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-mid: rgba(255, 255, 255, 0.14);
  --white: #ffffff;
  --white-60: rgba(255, 255, 255, 0.6);
  --white-30: rgba(255, 255, 255, 0.3);
  --font-head: 'Inter', sans-serif;
  /* Cleaner head font */
  --font-body: 'Inter', sans-serif;
  /* Unified to Inter for premium feel */
  --font-mono: 'JetBrains Mono', monospace;
  --nav-h: 72px;
  --max-w: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

img,
svg {
  display: block;
}

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

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── FIX #1: Correct brand color (was #25D366 = WhatsApp green by mistake) ── */
:root {
  --pink: #25D366;
  --pink-dark: #c4093a;
  --pink-glow: rgba(241, 12, 69, 0.5);
}

/* ── FIX #2: Proper column layout — scrollable with nav + card + footer ── */
body {
  background: #000;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(241, 12, 69, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── FIX #3: auth-main fills remaining space + accounts for fixed navbar ── */
.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h, 72px) + 24px) 20px 48px;
  position: relative;
  z-index: 2;
}

.card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -0.04em;
  margin-bottom: 36px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 14px var(--pink);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 14px var(--pink);
  }

  50% {
    box-shadow: 0 0 28px var(--pink);
    transform: scale(1.15);
  }
}

h1 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.sub {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.field {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.04em;
}

/* ── FIX #5: Password wrapper for eye toggle ── */
.input-wrap {
  position: relative;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"] {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  padding: 12px 16px;
  font-family: 'Space Grotesk', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 12px rgba(241, 12, 69, 0.2);
}

/* ── FIX #4: Validation states ── */
input.is-error {
  border-color: var(--pink) !important;
  box-shadow: 0 0 8px rgba(241, 12, 69, 0.3) !important;
}

input.is-success {
  border-color: #25D366;
  box-shadow: 0 0 8px rgba(37, 211, 102, 0.2);
}

.field-error {
  font-size: 0.75rem;
  color: var(--pink);
  margin-top: 5px;
  display: none;
}

.field-error.visible {
  display: block;
}

/* ── Password strength bar ── */
.pwd-strength {
  margin-top: 8px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.pwd-strength-fill {
  height: 100%;
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s, background 0.3s;
}

.pwd-strength-label {
  font-size: 0.7rem;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.3);
}

/* ── Eye toggle button ── */
.pwd-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  line-height: 0;
}

.pwd-toggle:hover {
  color: rgba(255, 255, 255, 0.7);
}

.pwd-toggle svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.input-wrap input[type="password"],
.input-wrap input[type="text"] {
  padding-right: 44px;
}

/* ── Phone prefix helper ── */
.phone-hint {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 4px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--pink);
  margin-top: 1px;
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-row label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0;
  margin-bottom: 0;
  cursor: pointer;
}

.checkbox-row a {
  color: var(--pink);
  text-decoration: underline;
}

/* ── FIX #4: Checkbox error state ── */
.checkbox-row.chk-error label {
  color: var(--pink);
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--pink);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  position: relative;
  overflow: hidden;
}

.btn-submit:hover {
  background: var(--pink-dark);
  box-shadow: 0 0 40px var(--pink-glow);
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: scale(0.98);
}

.btn-submit.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-submit.loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

@keyframes spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

.trial-note {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 12px;
  letter-spacing: 0.04em;
}

.login-link {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 20px;
}

.login-link a {
  color: var(--pink);
  font-weight: 600;
  text-decoration: none;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 0.88rem;
  color: #fff;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
  .card {
    padding: 36px 24px;
  }
}

/* ─── THREE.JS CANVAS ─── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ─── UTILITY ─── */
.text-pink {
  color: var(--pink);
}

.section-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 120px 32px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--pink);
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.9;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  /* Less heavy for premium feel */
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 48px;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: all 0.22s var(--ease);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0;
  transition: opacity 0.18s;
  border-radius: inherit;
}

.btn:active::after {
  opacity: 1;
  transform: scale(0.96);
}

.btn:active {
  transform: scale(0.97);
}

/* Click ripple effect */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: btn-ripple 0.5s linear;
  background: rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

@keyframes btn-ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Glass outline */
.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-mid);
  color: var(--white);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.06);
}

/* Solid pink */
.btn-solid {
  background: var(--pink);
  color: var(--white);
  border: 1px solid transparent;
}

.btn-solid:hover {
  background: var(--pink-dark);
  box-shadow: 0 0 28px var(--pink-glow), 0 4px 20px var(--pink-glow);
  transform: translateY(-1px);
}

/* Hero primary — large glow */
.btn-hero-primary {
  background: var(--pink);
  color: var(--white);
  font-size: 1.05rem;
  padding: 16px 36px;
  border-radius: 10px;
  border: 1px solid transparent;
  position: relative;
  overflow: visible;
}

.btn-hero-primary:hover {
  background: var(--pink-dark);
  box-shadow: 0 0 50px var(--pink-glow), 0 0 100px rgba(241, 12, 69, 0.3), 0 8px 32px var(--pink-glow);
  transform: translateY(-2px);
}

.btn-glow-ring {
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  border: 1.5px solid var(--pink);
  opacity: 0;
  animation: glow-ring-pulse 2.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glow-ring-pulse {

  0%,
  100% {
    opacity: 0;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.04);
    box-shadow: 0 0 20px var(--pink-glow);
  }
}

.btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.22s var(--ease);
}

.btn-hero-primary:hover .btn-arrow {
  transform: translateX(4px);
}

/* ─── NAVIGATION ─── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.3s var(--ease), backdrop-filter 0.3s, box-shadow 0.3s;
}

#navbar.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -0.04em;
  color: var(--white);
}

.nav-logo img {
  width: clamp(80px, 15vw, 80px);
  height: auto;
}


.logo-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 14px var(--pink), 0 0 6px var(--pink);
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {

  0%,
  100% {
    box-shadow: 0 0 14px var(--pink), 0 0 6px var(--pink);
  }

  50% {
    box-shadow: 0 0 30px var(--pink), 0 0 12px var(--pink-dark);
    transform: scale(1.15);
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white-60);
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--white);
  background: var(--surface-hover);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--white-30);
}

.lang-btn {
  color: inherit;
  font-weight: 500;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.lang-btn:hover {
  color: var(--white);
}

.lang-btn.active {
  color: var(--pink);
  font-weight: 700;
}

.lang-divider {
  opacity: 0.2;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  z-index: 1100;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── HERO ─── */
#hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--nav-h) 32px 80px;
}

.hero-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 40px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 14px;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.badge-live {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--pink);
  font-weight: 700;
  letter-spacing: 0.12em;
  animation: live-blink 1.2s ease-in-out infinite;
}

@keyframes live-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.badge-text {
  font-size: 0.8rem;
  color: var(--white-60);
  font-family: var(--font-mono);
}

.hero-headline {
  font-family: var(--font-head);
  font-weight: 800;
  /* Refined weight */
  font-size: clamp(2.4rem, 7vw, 5rem);
  letter-spacing: -0.05em;
  /* Refined tracking */
  line-height: 1.0;
  margin-bottom: 28px;
  max-width: 900px;
}

.emoji-fancy {
  display: inline-block;
  animation: emoji-spin 4s ease-in-out infinite;
}

@keyframes emoji-spin {

  0%,
  90%,
  100% {
    transform: rotate(0deg) scale(1);
  }

  95% {
    transform: rotate(-10deg) scale(1.1);
  }
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--white-60);
  max-width: 600px;
  margin-bottom: 44px;
  line-height: 1.8;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.cta-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--white-30);
  letter-spacing: 0.03em;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 0 36px 0 0;
}

.stat-num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--white);
  letter-spacing: -0.04em;
}

.stat-plus,
.stat-unit {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--pink);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--white-30);
  font-family: var(--font-mono);
  margin-left: 6px;
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  margin-right: 36px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--white-30);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--white-30), transparent);
  animation: scroll-line-anim 2s ease-in-out infinite;
}

@keyframes scroll-line-anim {

  0%,
  100% {
    opacity: 1;
    height: 40px;
  }

  50% {
    opacity: 0.3;
    height: 24px;
  }
}

/* ─── GSAP REVEAL DEFAULTS ─── */
.gsap-reveal {
  opacity: 0;
  transform: translateY(40px);
}

.gsap-card {
  opacity: 0;
  transform: translateY(30px);
}

/* ─── FEATURES ─── */
#features {
  position: relative;
  z-index: 2;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(241, 12, 69, 0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

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

.feature-card:hover {
  border-color: rgba(241, 12, 69, 0.3);
  box-shadow: 0 8px 40px rgba(241, 12, 69, 0.1);
  transform: translateY(-4px);
}

.feature-card--premium {
  border-color: rgba(241, 12, 69, 0.15);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(241, 12, 69, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(241, 12, 69, 0.12);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--white-60);
  line-height: 1.7;
  margin-bottom: 20px;
}

.feature-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--white-60);
  border: 1px solid var(--border);
}

.feature-tag--premium {
  background: rgba(241, 12, 69, 0.1);
  color: var(--pink);
  border-color: rgba(241, 12, 69, 0.25);
}

/* ─── ROAST SIMULATOR ─── */
#roast-simulator {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(241, 12, 69, 0.03) 50%, transparent);
}

.roast-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.roast-description {
  color: var(--white-60);
  margin-bottom: 28px;
  font-size: 1rem;
}

.roast-features-list {
  margin-bottom: 40px;
}

.roast-features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--white-60);
  border-bottom: 1px solid var(--border);
}

.check-icon {
  color: var(--pink);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

/* WhatsApp Window */
.whatsapp-window {
  background: #111b21;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
  max-width: 380px;
  width: 100%;
  margin-left: auto;
  transform-style: preserve-3d;
  position: relative;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.whatsapp-window:hover {
  transform: rotateY(-4deg) rotateX(2deg) translateZ(10px);
  box-shadow: 20px 50px 120px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(241, 12, 69, 0.15);
}

.wa-header {
  background: #1f2c33;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.wa-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2a3c44;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-avatar-dot {
  width: 14px;
  height: 14px;
}

.wa-contact-info {
  flex: 1;
}

.wa-contact-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  color: #e9edef;
  letter-spacing: 0.04em;
}

.wa-contact-status {
  font-size: 0.72rem;
  color: #8696a0;
  font-family: var(--font-mono);
}

.wa-menu-dots {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px;
}

.wa-menu-dots span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #8696a0;
}

.wa-body {
  height: 350px;
  /* Altura fija para que no crezca */
  overflow-y: auto;
  /* Activa el scroll vertical */
  padding: 16px;
  min-height: 280px;
  background: #0b141a;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--pink) transparent;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Estilo para el scrollbar en Chrome/Safari */
.wa-body::-webkit-scrollbar {
  width: 4px;
}

.wa-body::-webkit-scrollbar-thumb {
  background: var(--pink);
  border-radius: 10px;
}

.wa-date-badge {
  text-align: center;
  font-size: 0.7rem;
  color: #8696a0;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 3px 10px;
  align-self: center;
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

/* Chat bubbles */
.wa-msg {
  max-width: 85%;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.85rem;
  line-height: 1.5;
  position: relative;
  animation: wa-msg-in 0.3s var(--ease) both;
}

@keyframes wa-msg-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.wa-msg--user {
  background: #005c4b;
  color: #e9edef;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.wa-msg--tensa {
  background: #1f2c33;
  color: #e9edef;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.wa-msg-time {
  font-size: 0.62rem;
  color: #8696a0;
  text-align: right;
  margin-top: 4px;
  font-family: var(--font-mono);
}

.wa-msg--typing {
  background: #1f2c33;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  padding: 12px 16px;
}

.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8696a0;
  animation: typing-bounce 1.2s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-bounce {

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

  30% {
    transform: translateY(-6px);
  }
}

.wa-footer {
  background: #1f2c33;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.wa-input-bar {
  flex: 1;
  background: #2a3c44;
  border-radius: 24px;
  padding: 9px 16px;
}

.wa-input-placeholder {
  font-size: 0.83rem;
  color: #8696a0;
  font-family: var(--font-body);
}

.wa-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #00a884;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-send-btn svg {
  width: 16px;
  height: 16px;
  fill: white !important;
  transform: rotate(45deg);
}

/* ─── PRICING ─── */
#pricing {
  position: relative;
  z-index: 2;
}

.pricing-sub {
  color: var(--white-60);
  font-size: 1.05rem;
  margin-top: -32px;
  margin-bottom: 40px;
}

/* ─── HOW IT WORKS (pricing flow) ─── */
.pricing-how-it-works {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.how-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 180px;
}

.how-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 14px var(--pink-glow);
}

.how-step-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.how-step-body strong {
  font-size: 0.88rem;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
}

.how-step-body span {
  font-size: 0.78rem;
  color: var(--white-30);
  line-height: 1.5;
}

.how-step-arrow {
  font-size: 1.2rem;
  color: var(--pink);
  opacity: 0.5;
  padding: 0 16px;
  margin-top: 6px;
  flex-shrink: 0;
}

/* ─── PSE trust note ─── */
.pricing-pse-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--white-30);
  margin-top: 36px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  line-height: 1.7;
}

.pricing-pse-note strong {
  color: var(--white-60);
}

/* ─── Annual note inside card ─── */
.plan-tagline--annual {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--pink);
  margin-bottom: 6px !important;
  min-height: 0 !important;
  letter-spacing: 0.03em;
}

/* ─── Final CTA PSE note ─── */
.final-cta-pse {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--white-30);
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .pricing-how-it-works {
    flex-direction: column;
    gap: 20px;
    padding: 24px 20px;
  }

  .how-step-arrow {
    transform: rotate(90deg);
    padding: 0;
    margin: 0 auto;
  }
}

.billing-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
  justify-content: center;
}

.billing-label {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--white-60);
  display: flex;
  align-items: center;
  gap: 8px;
}

.billing-toggle {
  width: 52px;
  height: 28px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border-mid);
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
}

.billing-toggle.active {
  background: var(--pink);
  border-color: var(--pink);
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s var(--ease);
}

.billing-toggle.active .toggle-thumb {
  transform: translateX(24px);
}

.badge-save {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  background: var(--pink);
  color: var(--white);
  padding: 3px 8px;
  border-radius: 4px;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.billing-toggle.active~.billing-label .badge-save {
  opacity: 1;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.pricing-card:hover {
  transform: translateY(-6px);
}

.pricing-card-inner {
  padding: 40px 36px;
  position: relative;
  z-index: 2;
}

.plan-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white-60);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.plan-badge--premium {
  background: rgba(241, 12, 69, 0.1);
  color: var(--pink);
  border-color: rgba(241, 12, 69, 0.25);
}

.popular-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--white);
  background: var(--pink);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 8px;
  margin-left: 8px;
  box-shadow: 0 0 16px var(--pink-glow);
}

.plan-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 4px;
}

.plan-name--premium {
  color: var(--pink);
}

.plan-price-wrap {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  margin: 16px 0 4px;
}

.plan-currency {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white-60);
  margin-top: 10px;
}

.plan-price {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
  color: var(--white);
  transition: all 0.4s var(--ease);
}

.plan-period {
  font-size: 1rem;
  color: var(--white-30);
  align-self: flex-end;
  margin-bottom: 10px;
  font-family: var(--font-body);
}

.plan-tagline {
  color: var(--white-60);
  font-size: 0.88rem;
  margin-bottom: 28px;
  min-height: 36px;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--white-60);
}

.pf-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(241, 12, 69, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--pink);
  flex-shrink: 0;
  font-weight: 700;
}

.pf-icon--off {
  background: rgba(255, 255, 255, 0.04);
  color: var(--white-30);
}

.pf-icon--gold {
  background: rgba(241, 12, 69, 0.15);
  color: #ff6b8a;
}

.plan-cta {
  width: 100%;
  justify-content: center;
}

.plan-cta--premium {
  box-shadow: 0 0 30px var(--pink-glow-soft);
}

/* Premium card electric border */
.pricing-card--premium {
  border-color: transparent;
  box-shadow: 0 0 0 1px rgba(241, 12, 69, 0.3), 0 20px 60px rgba(241, 12, 69, 0.12);
}

.electric-border {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;
  z-index: 1;
}

.electric-border span {
  position: absolute;
  background: linear-gradient(90deg, transparent, var(--pink), transparent);
}

.electric-border span:nth-child(1) {
  top: 0;
  left: -100%;
  width: 100%;
  height: 1.5px;
  animation: electric-t 3s linear infinite;
}

.electric-border span:nth-child(2) {
  top: -100%;
  right: 0;
  width: 1.5px;
  height: 100%;
  animation: electric-r 3s linear infinite 0.75s;
}

.electric-border span:nth-child(3) {
  bottom: 0;
  right: -100%;
  width: 100%;
  height: 1.5px;
  animation: electric-b 3s linear infinite 1.5s;
}

.electric-border span:nth-child(4) {
  bottom: -100%;
  left: 0;
  width: 1.5px;
  height: 100%;
  animation: electric-l 3s linear infinite 2.25s;
}

@keyframes electric-t {
  to {
    left: 100%;
  }
}

@keyframes electric-r {
  to {
    top: 100%;
  }
}

@keyframes electric-b {
  to {
    right: 100%;
  }
}

@keyframes electric-l {
  to {
    bottom: 100%;
  }
}

/* Premium particles canvas */
.premium-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  border-radius: 20px;
}

/* ─── TESTIMONIALS ─── */
#trust {
  position: relative;
  z-index: 2;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.testimonial-card:hover {
  border-color: var(--border-mid);
  transform: translateY(-3px);
}

.stars {
  color: var(--pink);
  font-size: 1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.9rem;
  color: var(--white-60);
  line-height: 1.75;
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1rem;
  color: var(--white);
  flex-shrink: 0;
}

.author-name {
  font-weight: 700;
  font-size: 0.88rem;
  font-family: var(--font-head);
}

.author-role {
  font-size: 0.75rem;
  color: var(--white-30);
  font-family: var(--font-mono);
}

/* ─── FINAL CTA ─── */
#final-cta {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 32px 120px;
  overflow: hidden;
}

#final-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(241, 12, 69, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.final-cta-headline {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.05em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.final-cta-sub {
  color: var(--white-60);
  font-size: 1rem;
  margin-bottom: 44px;
}

/* ─── FOOTER ─── */
#footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--white-30);
  margin-top: 12px;
  letter-spacing: 0.06em;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--white-30);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-link {
  display: block;
  font-size: 0.88rem;
  color: var(--white-60);
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--white);
}

.footer-logo img {
  /* width: clamp(MIN, PREFERIDO, MAX); */
  width: clamp(300px, 10vw, 180px);
  height: auto;
  /* Mantiene la proporción */
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-60);
  transition: all 0.2s;
}

.social-icon svg {
  width: 16px;
  height: 16px;
}

.social-icon:hover {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--white);
  box-shadow: 0 0 20px var(--pink-glow);
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--white-30);
}

.footer-bottom-right {
  color: var(--white-30);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
  }

  .section-inner {
    padding: 80px 20px;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 8px;
    padding: 24px 20px;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.35s var(--ease), opacity 0.35s;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links .btn {
    width: 100%;
    justify-content: center;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero-headline {
    font-size: clamp(2rem, 8vw, 3.4rem);
  }

  .hero-stats {
    gap: 0;
  }

  .stat {
    padding: 0 20px 0 0;
  }

  .stat-divider {
    margin-right: 20px;
  }

  .stat-label {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .roast-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .whatsapp-window {
    margin: 0 auto;
    max-width: 100%;
  }

  .whatsapp-window:hover {
    transform: none;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card-inner {
    padding: 32px 24px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-cta-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-hero-primary {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat-divider {
    display: none;
  }

  .section-title {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: var(--pink);
  border-radius: 2px;
}