/* ============================================================
   TAPXTER LANDING — Main Stylesheet
   ============================================================ */

/* ── 1. Custom Properties ─────────────────────────────────── */
:root {
  --c-primary:       #6B48FF;
  --c-primary-dark:  #5035CC;
  --c-secondary:     #4F9CF9;
  --c-accent:        #D946EF;
  --c-success:       #22C55E;

  --g-brand:   linear-gradient(135deg, #6B48FF 0%, #4F9CF9 100%);
  --g-accent:  linear-gradient(135deg, #6B48FF 0%, #D946EF 100%);
  --g-hero-bg: linear-gradient(160deg, #08071A 0%, #0F0A30 50%, #150830 100%);
  --g-cta-bg:  linear-gradient(135deg, #1A0A3E 0%, #0F0D2E 100%);

  --dark-bg:      #08071A;
  --dark-surface: #0F0D2E;
  --dark-card:    #16133A;
  --dark-border:  rgba(107, 72, 255, 0.25);

  --light-bg:      #FFFFFF;
  --light-surface: #F6F5FF;
  --light-card:    #FFFFFF;

  --text-white: #FFFFFF;
  --text-light: #E2E8F0;
  --text-muted: #94A3B8;
  --text-dark:  #0F0D2E;
  --text-gray:  #64748B;
  --text-link:  #6B48FF;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   32px;
  --r-full: 9999px;

  --shadow-sm:   0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 24px rgba(0,0,0,0.14);
  --shadow-lg:   0 8px 48px rgba(107,72,255,0.20);
  --shadow-glow: 0 0 48px rgba(107,72,255,0.45);
  --shadow-card: 0 4px 32px rgba(107,72,255,0.12);

  --nav-h:      72px;
  --transition: 0.28s ease;
  --container:  1200px;
  --gap:        clamp(16px, 2.5vw, 32px);
}

/* ── 2. Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--light-bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input { font-family: var(--font); }

/* ── 3. Typography ────────────────────────────────────────── */
h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; line-height: 1.3; }
p  { line-height: 1.7; }

.headline--accent {
  background: var(--g-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── 4. Layout Utilities ──────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: rgba(107,72,255,0.1);
  padding: 6px 14px;
  border-radius: var(--r-full);
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.section-header p {
  color: var(--text-gray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 12px auto 0;
}

/* ── 5. Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--g-brand);
  color: var(--text-white);
  box-shadow: 0 4px 20px rgba(107,72,255,0.35);
}
.btn--primary:hover { box-shadow: 0 8px 32px rgba(107,72,255,0.5); }

.btn--outline {
  background: transparent;
  color: var(--text-white);
  border: 2px solid rgba(255,255,255,0.35);
}
.btn--outline:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.06);
}

.btn--dark-outline {
  background: transparent;
  color: var(--c-primary);
  border: 2px solid var(--c-primary);
}
.btn--dark-outline:hover {
  background: rgba(107,72,255,0.06);
}

.btn--ghost {
  background: rgba(255,255,255,0.08);
  color: var(--text-white);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn--ghost:hover { background: rgba(255,255,255,0.14); }

.btn--sm  { padding: 10px 20px; font-size: 0.875rem; }
.btn--lg  { padding: 16px 36px; font-size: 1rem; }
.btn--block { width: 100%; justify-content: center; }

/* ── 6. Navbar ────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(8, 7, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.35);
}

.navbar__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 40px;
}

.navbar__logo { flex-shrink: 0; }
.navbar__logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.navbar__links {
  display: flex;
  gap: 8px;
  flex: 1;
  justify-content: center;
}
.navbar__links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: color var(--transition), background var(--transition);
}
.navbar__links a:hover {
  color: var(--text-white);
  background: rgba(255,255,255,0.08);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 7px 12px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all var(--transition);
  background: transparent;
}
.lang-toggle:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-white);
  border-color: rgba(255,255,255,0.4);
}
.lang-toggle__separator { opacity: 0.35; }
.lang-toggle__current { color: var(--text-white); }

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: all var(--transition);
}
.navbar__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__hamburger.open span:nth-child(2) { opacity: 0; }
.navbar__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.navbar__mobile {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(8, 7, 26, 0.97);
  backdrop-filter: blur(16px);
  padding: 16px var(--gap) 24px;
  border-top: 1px solid var(--dark-border);
  flex-direction: column;
  gap: 8px;
}
.navbar__mobile.open { display: flex; }
.navbar__mobile li a {
  display: block;
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  transition: all var(--transition);
}
.navbar__mobile li a:hover {
  color: var(--text-white);
  background: rgba(255,255,255,0.08);
}
.navbar__mobile .btn { margin-top: 8px; justify-content: center; }

/* ── 7. Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--g-hero-bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.hero__glow--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(107,72,255,0.35) 0%, transparent 70%);
  top: -100px; right: -50px;
}
.hero__glow--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(217,70,239,0.25) 0%, transparent 70%);
  bottom: 100px; left: -80px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  flex: 1;
  padding: clamp(48px, 8vh, 96px) var(--gap) clamp(80px, 10vh, 120px);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  background: rgba(107,72,255,0.2);
  border: 1px solid rgba(107,72,255,0.35);
  padding: 8px 16px;
  border-radius: var(--r-full);
  margin-bottom: 20px;
}
.hero__badge::before {
  content: '';
  display: block;
  width: 8px; height: 8px;
  background: #22C55E;
  border-radius: 50%;
  box-shadow: 0 0 8px #22C55E;
  animation: pulse-dot 2s infinite;
}

.hero__headline {
  color: var(--text-white);
  margin-bottom: 20px;
}

.hero__subtitle {
  color: rgba(255,255,255,0.7);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero__trust {
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
}

/* Hero Visual */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* ══════════════════════════════════════════════════════════
   NFC HERO SCENE
   ══════════════════════════════════════════════════════════ */

/* Scene container */
.nfc-scene {
  position: relative;
  width: 490px;
  height: 500px;
  flex-shrink: 0;
}

/* Ambient background glows */
.ns-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}
.ns-glow--purple {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(107,72,255,0.45) 0%, transparent 70%);
  top: 60px; left: 10px;
}
.ns-glow--blue {
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(79,156,249,0.3) 0%, transparent 70%);
  bottom: 60px; right: 10px;
}

/* ── NFC Card ─────────────────────────────────────────────── */
.ns-card {
  position: absolute;
  left: 8px;
  top: 50%;
  width: 256px;
  height: 161px;
  z-index: 3;
  transform: translateY(-50%) perspective(1000px) rotateY(-22deg) rotateX(7deg);
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: ns-card-idle 4s ease-in-out infinite;
}

/* Idle float animation (overridden by state classes) */
@keyframes ns-card-idle {
  0%,100% { transform: translateY(-50%) perspective(1000px) rotateY(-22deg) rotateX(7deg); }
  50%      { transform: translateY(calc(-50% - 8px)) perspective(1000px) rotateY(-22deg) rotateX(7deg); }
}

.ns-card__face {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1C1548 0%, #0E0C30 55%, #1A0E40 100%);
  border: 1px solid rgba(107,72,255,0.6);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05) inset,
    0 20px 60px rgba(107,72,255,0.5),
    0 4px 20px rgba(0,0,0,0.6);
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Holographic shimmer */
.ns-card__shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 0%, transparent 35%,
    rgba(255,255,255,0.13) 48%,
    rgba(255,255,255,0.22) 50%,
    rgba(255,255,255,0.13) 52%,
    transparent 65%, transparent 100%
  );
  background-size: 250% 250%;
  animation: card-shimmer 3.5s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}
@keyframes card-shimmer {
  0%,100% { background-position: 150% 150%; }
  50%      { background-position: 0% 0%; }
}

/* Diagonal accent stripe */
.ns-card__stripe {
  position: absolute;
  bottom: -20px; right: -20px;
  width: 140px; height: 140px;
  background: linear-gradient(135deg, transparent 40%, rgba(107,72,255,0.12) 100%);
  border-radius: 50%;
  z-index: 0;
}

.ns-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.ns-card__logo {
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

/* NFC symbol (3 arcs on top-right) */
.ns-card__nfc-sym {
  position: relative;
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nfc-sym-arc {
  position: absolute;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(-45deg);
}
.nfc-sym-arc[style*="--a:1"] { width: 10px; height: 10px; }
.nfc-sym-arc[style*="--a:2"] { width: 17px; height: 17px; opacity: 0.7; }
.nfc-sym-arc[style*="--a:3"] { width: 24px; height: 24px; opacity: 0.4; }

/* Chip */
.ns-card__chip {
  position: relative;
  z-index: 2;
  width: 34px; height: 26px;
  background: linear-gradient(135deg, #C9A84C, #F0D060, #B8922A);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.25);
}
.chip-line {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.15);
  border-radius: 1px;
}
.chip-line[style*="--cl:0"] { width: 80%; height: 1px; margin-top: -4px; }
.chip-line[style*="--cl:1"] { width: 80%; height: 1px; }
.chip-line[style*="--cl:2"] { width: 80%; height: 1px; margin-top: 4px; }

/* Bottom: name + NFC icon */
.ns-card__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.ns-card__holder { display: flex; flex-direction: column; gap: 2px; }
.ns-card__name { font-size: 11px; font-weight: 700; color: #fff; letter-spacing: 0.03em; }
.ns-card__role { font-size: 9px; color: rgba(255,255,255,0.55); letter-spacing: 0.04em; text-transform: uppercase; }
.ns-card__tap-icon { width: 24px; height: 24px; opacity: 0.65; }
.ns-card__tap-icon svg { width: 100%; height: 100%; }

/* Signal waves (right edge of card, towards phone) */
.ns-card__signal {
  position: absolute;
  right: -2px; top: 50%;
  transform: translateY(-50%);
  width: 60px; height: 0;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.sig-wave {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  border: 1.5px solid var(--c-primary);
  border-radius: 50%;
  clip-path: inset(0 0 0 50%); /* show only right half */
  animation: sig-pulse 1.2s ease-out infinite;
  animation-play-state: paused;
}
.sig-wave[style*="--sw:1"] { width: 24px; height: 24px; animation-delay: 0s; }
.sig-wave[style*="--sw:2"] { width: 44px; height: 44px; animation-delay: 0.25s; border-color: rgba(107,72,255,0.65); }
.sig-wave[style*="--sw:3"] { width: 64px; height: 64px; animation-delay: 0.5s;  border-color: rgba(107,72,255,0.35); }

@keyframes sig-pulse {
  0%   { opacity: 0.9; transform: translateY(-50%) scale(0.6); }
  100% { opacity: 0;   transform: translateY(-50%) scale(1.1); }
}

/* ── Tap Impact ───────────────────────────────────────────── */
.tap-impact {
  position: absolute;
  /* Centered at phone left edge when card tapping */
  left: 322px; top: 50%;
  transform: translate(-50%, -50%);
  width: 0; height: 0;
  z-index: 10;
  pointer-events: none;
}
.tap-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  border: 2px solid var(--c-primary);
  opacity: 0;
}
.tap-ring[style*="--ti:1"] { width: 40px;  height: 40px;  border-color: rgba(255,255,255,0.9); }
.tap-ring[style*="--ti:2"] { width: 80px;  height: 80px;  border-color: rgba(107,72,255,0.7); }
.tap-ring[style*="--ti:3"] { width: 130px; height: 130px; border-color: rgba(107,72,255,0.4); }
.tap-ring[style*="--ti:4"] { width: 190px; height: 190px; border-color: rgba(79,156,249,0.25); }

.tap-flash {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 20px; height: 20px;
  border-radius: 50%;
  background: white;
  opacity: 0;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.8);
}

/* ── Data Stream ──────────────────────────────────────────── */
.data-stream {
  position: absolute;
  /* Start position: card center when tapping */
  left: 208px; top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  pointer-events: none;
}
.data-dot {
  position: absolute;
  top: 0; left: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--dc, #6B48FF);
  opacity: 0;
  box-shadow: 0 0 6px var(--dc, #6B48FF);
}

/* ── Phone Device ─────────────────────────────────────────── */
.ns-phone {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%) perspective(1000px) rotateY(12deg) rotateX(-3deg);
  z-index: 3;
  animation: ns-phone-idle 4s ease-in-out 0.7s infinite;
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes ns-phone-idle {
  0%,100% { transform: translateY(-50%) perspective(1000px) rotateY(12deg) rotateX(-3deg); }
  50%      { transform: translateY(calc(-50% - 6px)) perspective(1000px) rotateY(12deg) rotateX(-3deg); }
}

.ns-phone__frame {
  width: 158px;
  height: 320px;
  background: linear-gradient(170deg, #2A2840 0%, #1A1830 100%);
  border-radius: 36px;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 30px 80px rgba(0,0,0,0.7),
    0 0 0 1px rgba(0,0,0,0.5);
  position: relative;
  overflow: visible;
}

/* Side volume buttons */
.ns-phone__vol {
  position: absolute;
  left: -4px;
  width: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px 0 0 2px;
}
.ns-phone__vol[style*="--vb:1"] { top: 68px;  height: 24px; }
.ns-phone__vol[style*="--vb:2"] { top: 100px; height: 24px; }
/* Power button */
.ns-phone__power {
  position: absolute;
  right: -4px; top: 88px;
  width: 3px; height: 36px;
  background: rgba(255,255,255,0.12);
  border-radius: 0 2px 2px 0;
}

/* Screen */
.ns-phone__screen {
  position: absolute;
  inset: 8px 7px 8px 7px;
  border-radius: 28px;
  overflow: hidden;
  background: #0A0A18;
}

/* Dynamic island */
.ns-phone__island {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 48px; height: 12px;
  background: #000;
  border-radius: 8px;
  z-index: 20;
}


/* Phone receive glow */
.ns-phone__glow {
  position: absolute;
  inset: -20px;
  border-radius: 50px;
  background: radial-gradient(ellipse at center, rgba(107,72,255,0.0) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  transition: background 0.3s ease;
}

/* ── Screen States ────────────────────────────────────────── */
.screen-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  border-radius: inherit;
  overflow: hidden;
}

/* IDLE state */
.si-wallpaper {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #12104A 0%, #080620 60%, #0A0A1C 100%);
}
.si-wallpaper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 40% 30%, rgba(107,72,255,0.3) 0%, transparent 60%);
}
.si-time {
  position: relative;
  z-index: 1;
  margin-top: 60px;
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}
.si-hint {
  position: relative;
  z-index: 1;
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.6);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* RECEIVING state */
.sr-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #0A0825 0%, #100E35 100%);
}
.sr-icon-wrap {
  position: relative;
  z-index: 1;
  margin-top: 70px;
}
.sr-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: block;
  animation: sr-pulse 0.8s ease-in-out infinite alternate;
}
.sr-icon-ring {
  position: absolute;
  inset: -8px;
  border-radius: 22px;
  border: 2px solid rgba(107,72,255,0.5);
  animation: sr-ring 1s ease-out infinite;
}
@keyframes sr-pulse {
  from { transform: scale(0.95); box-shadow: 0 0 12px rgba(107,72,255,0.4); }
  to   { transform: scale(1.05); box-shadow: 0 0 28px rgba(107,72,255,0.7); }
}
@keyframes sr-ring {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.4); opacity: 0; }
}
.sr-bar {
  position: relative;
  z-index: 1;
  width: 90px; height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin-top: 24px;
  overflow: hidden;
}
.sr-bar__fill {
  height: 100%;
  background: var(--g-brand);
  border-radius: 2px;
  animation: sr-fill 1.2s ease-in-out forwards;
}
@keyframes sr-fill {
  from { width: 0%; }
  to   { width: 100%; }
}
.sr-label {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  font-size: 9px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
}

/* BIOPAGE state */
.bp-header-bg {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 72px;
  background: linear-gradient(135deg, #6B48FF 0%, #4F9CF9 100%);
  z-index: 0;
}
.bp-header-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(255,255,255,0.15) 0%, transparent 60%);
}
.bp-avatar-wrap {
  position: relative;
  z-index: 1;
  margin-top: 44px;
  width: 52px; height: 52px;
  flex-shrink: 0;
}
.bp-avatar {
  width: 52px; height: 52px;
  border-radius: 14px;
  border: 3px solid #fff;
  display: block;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transform: scale(0);
  opacity: 0;
}
.bp-avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  border: 2px solid rgba(107,72,255,0.4);
  animation: ring-spin 4s linear infinite;
}
@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.bp-name {
  position: relative; z-index: 1;
  font-size: 11.5px; font-weight: 800;
  color: #fff; letter-spacing: -0.01em;
  margin-top: 10px;
  opacity: 0; transform: translateY(8px);
}
.bp-role {
  position: relative; z-index: 1;
  font-size: 8.5px; color: rgba(255,255,255,0.55);
  letter-spacing: 0.05em;
  margin-top: 3px;
  opacity: 0; transform: translateY(6px);
}
.bp-links {
  position: relative; z-index: 1;
  width: 100%;
  padding: 0 10px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.bp-link {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 9px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  opacity: 0;
  transform: translateX(-14px);
}
.bp-link__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.bp-powered {
  position: relative; z-index: 1;
  margin-top: 8px;
  opacity: 0;
}
.bp-powered img {
  height: 14px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.35;
}

/* Screen flash overlay */
.screen-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  z-index: 30;
  border-radius: inherit;
  pointer-events: none;
}

/* ── Floating Badges ──────────────────────────────────────── */
.ns-badge {
  position: absolute;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 100px;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  z-index: 5;
  opacity: 0;
  transform: scale(0.7) translateY(6px);
  pointer-events: none;
  letter-spacing: 0.02em;
}
.ns-badge--1 { top: 34px;  left: 20px; }
.ns-badge--2 { top: 34px;  right: 20px; }
.ns-badge--3 { bottom: 44px; right: 30px; }

/* ══ SCENE STATE CLASSES (set by JS) ══════════════════════ */

/* APPROACHING: card moves right, signals start */
.nfc-scene.state-approaching .ns-card {
  animation: none;
  transform: translateX(58px) translateY(-50%) perspective(1000px) rotateY(-13deg) rotateX(5deg);
}
.nfc-scene.state-approaching .ns-phone {
  animation: none;
  transform: translateY(-50%) perspective(1000px) rotateY(12deg) rotateX(-3deg);
}
.nfc-scene.state-approaching .ns-card__signal { opacity: 1; }
.nfc-scene.state-approaching .sig-wave { animation-play-state: running; }

/* TAPPING: card touches phone, full face-on */
.nfc-scene.state-tapping .ns-card {
  animation: none;
  transform: translateX(80px) translateY(-50%) perspective(1000px) rotateY(-3deg) rotateX(2deg);
  transition: transform 0.22s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.nfc-scene.state-tapping .ns-card__signal { opacity: 1; }
.nfc-scene.state-tapping .sig-wave { animation-play-state: running; }

/* RECEIVING: phone glows, card stays close */
.nfc-scene.state-receiving .ns-card {
  animation: none;
  transform: translateX(72px) translateY(-50%) perspective(1000px) rotateY(-8deg) rotateX(3deg);
}

/* RETREATING: card goes back */
.nfc-scene.state-retreating .ns-card {
  animation: none;
  transform: translateX(0) translateY(-50%) perspective(1000px) rotateY(-22deg) rotateX(7deg);
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}
.nfc-scene.state-retreating .ns-card__signal { opacity: 0; }

/* Screen state visibility */
.nfc-scene.state-idle      #stateIdle      { opacity: 1; }
.nfc-scene.state-receiving #stateReceiving { opacity: 1; }
.nfc-scene.state-loaded    #stateBiopage   { opacity: 1; }

/* Badges appear on loaded */
.nfc-scene.state-loaded .ns-badge {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.nfc-scene.state-loaded .ns-badge--1 { transition: all 0.5s cubic-bezier(0.34,1.3,0.64,1) 0.2s; }
.nfc-scene.state-loaded .ns-badge--2 { transition: all 0.5s cubic-bezier(0.34,1.3,0.64,1) 0.5s; }
.nfc-scene.state-loaded .ns-badge--3 { transition: all 0.5s cubic-bezier(0.34,1.3,0.64,1) 0.8s; }

/* Wave divider */

/* ── 8. PUV Section ───────────────────────────────────────── */
.puv-section {
  background: var(--light-bg);
  padding: clamp(64px, 8vw, 100px) 0;
  text-align: center;
}
.puv-section h2 { max-width: 700px; margin: 0 auto 20px; }
.puv-section p {
  color: var(--text-gray);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto;
}

/* ── 9. How It Works ──────────────────────────────────────── */
.how-section {
  background: var(--light-surface);
  padding: clamp(64px, 8vw, 96px) 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
  margin-top: clamp(32px, 4vw, 48px);
}

.step-card {
  background: var(--light-card);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3vw, 40px);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--g-brand);
}

.step-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--c-primary);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.step-card h3 { margin-bottom: 10px; }
.step-card p { color: var(--text-gray); font-size: 0.95rem; }

/* ── 10. Benefits Section ─────────────────────────────────── */
.benefits-section {
  background: var(--light-bg);
  padding: clamp(64px, 8vw, 96px) 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap);
}

.benefit-card {
  background: var(--light-card);
  border: 1px solid rgba(107,72,255,0.1);
  border-radius: var(--r-lg);
  padding: clamp(24px, 2.5vw, 36px);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(107,72,255,0.3);
}

.benefit-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: rgba(107,72,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.benefit-icon svg { width: 26px; height: 26px; }

.benefit-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.benefit-card p  { color: var(--text-gray); font-size: 0.92rem; line-height: 1.65; }

/* ── 11. Products Section ─────────────────────────────────── */
.products-section {
  background: var(--dark-bg);
  padding: clamp(64px, 8vw, 96px) 0;
  position: relative;
  overflow: hidden;
}
.products-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(107,72,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.products-section .section-label { background: rgba(107,72,255,0.2); }
.products-section .section-header h2 { color: var(--text-white); }
.products-section .section-header p  { color: var(--text-muted); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap);
  position: relative;
  z-index: 1;
}

.product-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--r-xl);
  padding: clamp(28px, 3vw, 40px);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(107,72,255,0.5);
}
.product-card.featured {
  border-color: rgba(107,72,255,0.6);
  background: linear-gradient(145deg, #1E1A4A 0%, #16133A 100%);
  box-shadow: var(--shadow-card);
}

.product-emoji {
  font-size: 2.5rem;
  line-height: 1;
}

.product-card h3 { color: var(--text-white); font-size: 1.25rem; }
.product-card p  { color: var(--text-muted); font-size: 0.93rem; line-height: 1.65; flex: 1; }

.product-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.product-variant {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--r-full);
  border: 1px solid var(--dark-border);
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
}

/* ── 12. Social Proof Section ─────────────────────────────── */
.social-section {
  background: var(--light-bg);
  padding: clamp(64px, 8vw, 96px) 0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  background: var(--g-brand);
  border-radius: var(--r-xl);
  padding: clamp(32px, 4vw, 48px);
  margin-bottom: clamp(48px, 6vw, 72px);
  text-align: center;
}
.stat-item { color: var(--text-white); }
.stat-value {
  display: block;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 0.9rem; opacity: 0.85; font-weight: 500; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap);
}

.testimonial-card {
  background: var(--light-surface);
  border: 1px solid rgba(107,72,255,0.1);
  border-radius: var(--r-xl);
  padding: clamp(24px, 2.5vw, 36px);
  transition: transform var(--transition), box-shadow var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.testimonial-stars {
  color: #FBBF24;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.testimonial-text {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--g-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-white);
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: 0.92rem; }
.testimonial-role { font-size: 0.8rem; color: var(--text-muted); }

/* ── 13. Pricing Section ──────────────────────────────────── */
.pricing-section {
  background: var(--light-surface);
  padding: clamp(64px, 8vw, 96px) 0;
}

.pricing-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-gray);
}

.toggle-switch {
  width: 44px; height: 24px;
  background: rgba(107,72,255,0.2);
  border-radius: var(--r-full);
  position: relative;
  transition: background var(--transition);
  cursor: pointer;
  flex-shrink: 0;
}
.toggle-switch.active { background: var(--c-primary); }
.toggle-switch__thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle-switch.active .toggle-switch__thumb { transform: translateX(20px); }

.annual-badge {
  background: rgba(34,197,94,0.12);
  color: var(--c-success);
  border: 1px solid rgba(34,197,94,0.25);
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
  align-items: start;
  margin-top: clamp(32px, 4vw, 48px);
}

.pricing-card {
  background: var(--light-card);
  border: 2px solid rgba(107,72,255,0.12);
  border-radius: var(--r-xl);
  padding: clamp(28px, 3vw, 40px);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.pricing-card.highlighted {
  border-color: var(--c-primary);
  background: linear-gradient(145deg, #F8F5FF 0%, #FFFFFF 100%);
  transform: scale(1.04);
  box-shadow: var(--shadow-lg);
  z-index: 1;
}
.pricing-card.highlighted:hover { transform: scale(1.04) translateY(-4px); }

.pricing-badge {
  display: inline-block;
  background: var(--g-brand);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: var(--r-full);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.pricing-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.pricing-desc { font-size: 0.85rem; color: var(--text-gray); margin-bottom: 20px; }

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 24px;
}
.pricing-currency { font-size: 1.25rem; font-weight: 700; color: var(--text-dark); }
.pricing-amount  { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; line-height: 1; color: var(--text-dark); }
.pricing-period  { font-size: 0.85rem; color: var(--text-gray); margin-left: 2px; }

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(107,72,255,0.1);
}
.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-gray);
}
.pricing-feature-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(34,197,94,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.pricing-feature-check svg {
  width: 10px; height: 10px;
  stroke: var(--c-success);
  stroke-width: 3;
}

/* ── 14. CTA Section ──────────────────────────────────────── */
.cta-section {
  background: var(--g-cta-bg);
  padding: clamp(64px, 8vw, 96px) 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(107,72,255,0.3) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(217,70,239,0.2) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.cta-section__text h2 { color: var(--text-white); margin-bottom: 16px; }
.cta-section__text > p { color: var(--text-muted); font-size: 1rem; margin-bottom: 32px; }

.cta-variations { display: flex; flex-direction: column; gap: 12px; }
.cta-variation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  padding: 14px 18px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  text-align: left;
  width: 100%;
}
.cta-variation:hover {
  background: rgba(107,72,255,0.15);
  border-color: rgba(107,72,255,0.4);
}
.cta-variation-text { font-size: 0.9rem; font-weight: 600; color: var(--text-white); }
.cta-variation-sub  { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.cta-variation-arrow { color: rgba(255,255,255,0.4); font-size: 1.1rem; flex-shrink: 0; }

/* Signup Form */
.signup-form-container {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-xl);
  padding: clamp(28px, 3vw, 40px);
  backdrop-filter: blur(10px);
}

.form-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 24px;
  text-align: center;
}

.signup-form { display: flex; flex-direction: column; gap: 14px; }

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-md);
  color: var(--text-white);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}
.form-input::placeholder { color: rgba(255,255,255,0.35); }
.form-input:focus {
  border-color: var(--c-primary);
  background: rgba(107,72,255,0.1);
}
.form-input.error { border-color: #EF4444; }

.form-terms {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
.form-terms a { color: rgba(255,255,255,0.65); text-decoration: underline; }
.form-terms a:hover { color: var(--text-white); }

/* ── 15. Footer ───────────────────────────────────────────── */
.footer {
  background: var(--dark-bg);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: clamp(48px, 6vw, 72px) 0 clamp(24px, 3vw, 32px);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: var(--gap);
  padding-bottom: clamp(40px, 5vw, 60px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 24px;
}

.footer__brand { padding-right: 20px; }
.footer__brand img { height: 32px; width: auto; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer__brand p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; margin-bottom: 20px; }

.footer__social { display: flex; gap: 10px; }
.footer__social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
  font-size: 0.85rem;
}
.footer__social-link:hover {
  background: rgba(107,72,255,0.2);
  border-color: var(--c-primary);
  color: var(--text-white);
}

.footer__col-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-white);
  margin-bottom: 16px;
}
.footer__col-links { display: flex; flex-direction: column; gap: 10px; }
.footer__col-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer__col-links a:hover { color: var(--text-white); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer__bottom p { color: rgba(255,255,255,0.3); font-size: 0.82rem; }

/* ── 16. Scroll Reveal ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── 17. Animations ───────────────────────────────────────── */
@keyframes card-float {
  0%, 100% { transform: perspective(800px) rotateY(-12deg) rotateX(6deg) translateY(0); }
  50%       { transform: perspective(800px) rotateY(-12deg) rotateX(6deg) translateY(-12px); }
}
@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes wave-expand {
  0%   { opacity: 0.6; transform: scale(0.7); }
  100% { opacity: 0;   transform: scale(1.6); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px #22C55E; }
  50%       { opacity: 0.5; box-shadow: 0 0 4px #22C55E; }
}
@keyframes connection {
  0%, 100% { opacity: 0; transform: scaleY(0); }
  40%, 60% { opacity: 1; transform: scaleY(1); }
}
@keyframes count-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 18. Toast Notification ───────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--dark-surface);
  color: var(--text-white);
  border: 1px solid rgba(107,72,255,0.3);
  border-radius: var(--r-md);
  padding: 14px 20px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(120%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  max-width: 320px;
}
.toast.show { transform: translateX(0); }
.toast--success { border-color: rgba(34,197,94,0.4); }
.toast--success .toast-icon { color: var(--c-success); }

/* ── 19. Biopages Slider ──────────────────────────────────── */

.bps-section {
  background: var(--light-bg);
  padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 104px);
  overflow: hidden;
}

.bps-header {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.bps-header h2 { margin: 8px auto 12px; }
.bps-header p {
  color: var(--text-gray);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Stage (full-width overflow area) */
.bps-stage {
  position: relative;
  width: 100%;
}

/* Left/right fade masks */
.bps-stage::before,
.bps-stage::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 10;
  pointer-events: none;
}
.bps-stage::before {
  left: 0;
  background: linear-gradient(to right, var(--light-bg) 0%, transparent 100%);
}
.bps-stage::after {
  right: 0;
  background: linear-gradient(to left, var(--light-bg) 0%, transparent 100%);
}

/* ── Track */
.bps-track-wrap {
  overflow: hidden;
  width: 100%;
  padding: 32px 0 40px; /* vertical room for scale-up shadow */
}
.bps-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 20px;
  will-change: transform;
  /* Transition gestionada por JS: se activa/desactiva para el salto silencioso */
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Individual card */
.bps-card {
  flex-shrink: 0;
  width: 240px;
  height: 420px;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  /* Default: far state */
  transform: scale(0.72);
  opacity: 0.38;
  filter: blur(2.5px);
  transition:
    transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity   0.6s ease,
    filter    0.6s ease,
    box-shadow 0.6s ease;
  box-shadow: none;
  outline: none;
}
.bps-card.is-adj {
  transform: scale(0.84);
  opacity: 0.62;
  filter: blur(1px);
}
.bps-card.is-active {
  transform: scale(1);
  opacity: 1;
  filter: none;
  box-shadow:
    0 28px 70px rgba(0,0,0,0.14),
    0 10px 28px rgba(107,72,255,0.16);
  cursor: default;
}

/* ── Scrolling biopage content inside card */
.bps-card__inner {
  width: 100%;
  /* Taller than card so scroll animation has range */
  min-height: 140%;
  display: flex;
  flex-direction: column;
  animation: bps-preview-scroll 9s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.bps-card.is-active .bps-card__inner {
  animation-play-state: running;
}

@keyframes bps-preview-scroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-22%); }
}

/* ── Screenshot-only variant ─────────────────────────────────
   Activo cuando item.image es una ruta local de archivo.
   La imagen tiene height:auto → su altura natural (> card)
   habilita la animación de scroll sin necesitar min-height fijo.
───────────────────────────────────────────────────────────── */
.bps-card__inner--screenshot {
  display: block;       /* override flex del modo mock */
  min-height: unset;    /* la imagen determina la altura */
  height: auto;
  line-height: 0;       /* elimina espacio bajo la imagen */
  background: #e8e6f0;  /* placeholder visible mientras carga */
}
.bps-screenshot {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* ── Mock biopage elements inside .bps-card__inner */
.bpc-cover {
  width: 100%;
  height: 180px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 20px;
  position: relative;
}
.bpc-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.18) 100%);
}
.bpc-avatar {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  border: 3px solid rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.bpc-body {
  flex: 1;
  background: #fff;
  padding: 18px 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.bpc-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 3px;
}
.bpc-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 14px;
  font-weight: 500;
}
.bpc-links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.bpc-link {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--light-surface);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  border: 1px solid rgba(0,0,0,0.05);
}
.bpc-link__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.bpc-link__arrow {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.75rem;
}
.bpc-powered {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.bpc-powered img {
  height: 14px;
  opacity: 0.3;
  filter: grayscale(1);
}

/* ── CTA floating button on active card */
.bps-cta {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease 0.1s;
  white-space: nowrap;
}
.bps-card.is-active .bps-cta {
  opacity: 1;
  pointer-events: auto;
}
.bps-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6B48FF, #4F9CF9);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow:
    0 6px 20px rgba(107,72,255,0.45),
    0 2px 6px rgba(0,0,0,0.15);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bps-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(107,72,255,0.55), 0 3px 8px rgba(0,0,0,0.15);
}
.bps-cta__btn svg {
  width: 13px; height: 13px;
}

/* Bottom fade on card to blend CTA button */
.bps-card.is-active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 72px;
  background: linear-gradient(to top, rgba(255,255,255,0.92) 0%, transparent 100%);
  pointer-events: none;
  z-index: 15;
  border-radius: 0 0 30px 30px;
}

/* ── Navigation dots */
.bps-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.bps-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(107,72,255,0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease, width 0.3s ease;
}
.bps-dot.is-active {
  background: var(--c-primary);
  width: 24px;
  border-radius: 4px;
  transform: none;
}

/* ── 20. Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

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

  .navbar__links { display: none; }
  .navbar__actions .btn { display: none; }
  .navbar__hamburger { display: flex; }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-bottom: 60px;
  }
  .hero__subtitle { margin: 0 auto 32px; }
  .hero__actions { justify-content: center; }
  .hero__trust { text-align: center; }
  .hero__visual { display: none; }

  .stats-row { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .stat-value { font-size: 1.75rem; }

  .cta-section__inner { grid-template-columns: 1fr; }
  .cta-section__text { text-align: center; }
  .cta-variations { align-items: center; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }

  .pricing-card.highlighted { transform: scale(1.02); }
  .pricing-card.highlighted:hover { transform: scale(1.02) translateY(-4px); }
}

@media (max-width: 520px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }

  .stats-row { grid-template-columns: 1fr; gap: 24px; padding: 24px; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }

  .toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }

  /* Biopages slider — small screens */
  .bps-stage::before,
  .bps-stage::after { width: 48px; }
}
