/* ──────────────────────────────────────────
   PRICING MODULE — The Obsidian Noir (REVERT)
   Aesthetic: Deep Obsidian on Portal Cream
   Features: Subtle Lava + Opaque Typography
   ────────────────────────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* ──────────────────────────────────────────
   1. THE OBSIDIAN CARD
   ────────────────────────────────────────── */
.price-box {
  position: relative;
  background: #0d0d0f; /* High-Density Noir */
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 5rem 3.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  text-align: left;
  min-height: 720px;
  overflow: hidden;
  color: #FFFFFF;
}

.price-box:hover {
  transform: translateY(-12px);
  box-shadow: 0 80px 180px rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}

.price-box * { position: relative; z-index: 10; }

/* ──────────────────────────────────────────
   2. TYPOGRAPHY (Opaque & Sharp)
   ────────────────────────────────────────── */
.tier-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #FFFFFF;
  letter-spacing: 0.45em;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.tier-price {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.06em;
  margin-bottom: 2.5rem;
  color: #FFF;
  background-image: linear-gradient(90deg, #8E8E8E, #FFF, #8E8E8E);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: metalSweep 8s infinite linear;
}

.featured .tier-price {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  background-image: none !important;
  animation: impactSweep 2.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
}


@keyframes impactSweep {
  0% { background-position: -100% center; transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { background-position: 100% center; transform: scale(1); }
}


@keyframes metalSweep { to { background-position: 200% center; } }

.tier-price span { font-size: 1.5rem; opacity: 0.3; }

.tier-subtext {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 4rem;
  padding-left: 1.5rem;
  border-left: 2px solid rgba(255, 255, 255, 0.4);
}

/* ──────────────────────────────────────────
   3. INTERNAL ENGINES (Subtle Lava Flow)
   ────────────────────────────────────────── */
.liquid-sync {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.6;
  pointer-events: none;
  filter: blur(80px);
}

.liquid-sync::before, .liquid-sync::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  animation: lavaFlow 15s infinite ease-in-out alternate;
}

/* A. FREE TIER: Emerald Dopamine System */
.free-tier {
  background: #0d0d0f;
}

.free-dopamine {
  background: #0d0d0f;
}

/* Remove card border sweep — keep card clean */
.free-border { display: none; }
.free-dopamine::after { display: none; }

/* Tighter subtext → pill spacing */
.free-dopamine .tier-subtext {
  margin-bottom: 1rem;
}

/* ── FREE PILL: Nuclear Urgency Badge with Border Sweep ── */
.free-limited-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 2px; /* Border sweep padding */
  border-radius: 40px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
  background: conic-gradient(from 0deg, #00c850, #00ff88, #ffffff, #00ff88, #00c850, transparent);
  animation: pillBorderRotate 3s linear infinite;
  text-transform: uppercase;
  position: relative;
  z-index: 10;
  box-shadow: 
    0 0 20px rgba(0, 200, 80, 0.4),
    0 0 60px rgba(0, 200, 80, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.free-limited-pill::before {
  content: '';
  position: absolute;
  inset: 2px;
  background: linear-gradient(135deg, #0a2a15 0%, #0d1a10 40%, #081a0d 100%);
  border-radius: 38px;
  z-index: -1;
}

.free-pill-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.4rem;
  position: relative;
  z-index: 2;
  white-space: nowrap;
}

.free-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 10px #00ff88, 0 0 20px rgba(0, 255, 136, 0.4);
  animation: dotBlink 1.2s ease-in-out infinite;
  flex-shrink: 0;
}

.free-pill-text {
  background: linear-gradient(90deg, #fff 0%, #00ff88 40%, #fff 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pillTextShimmer 3s ease-in-out infinite;
}

@keyframes pillBorderRotate {
  0% { filter: hue-rotate(0deg); box-shadow: 0 0 20px rgba(0, 200, 80, 0.4), 0 0 60px rgba(0, 200, 80, 0.15); }
  50% { box-shadow: 0 0 30px rgba(0, 255, 136, 0.6), 0 0 80px rgba(0, 200, 80, 0.25); }
  100% { filter: hue-rotate(0deg); box-shadow: 0 0 20px rgba(0, 200, 80, 0.4), 0 0 60px rgba(0, 200, 80, 0.15); }
}

@keyframes pillTextShimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 10px #00ff88, 0 0 20px rgba(0, 255, 136, 0.4); }
  50% { opacity: 0.2; transform: scale(0.6); box-shadow: 0 0 4px #00ff88; }
}

/* Green checkmarks for free tier */
.free-dopamine .tier-features li svg { color: #00c850; }

/* Green-tinted CTA for free tier */
.free-dopamine .tier-btn {
  border-color: rgba(0, 200, 80, 0.25);
}
.free-dopamine .tier-btn:hover {
  border-color: #00c850;
  box-shadow: 0 15px 40px rgba(0, 200, 80, 0.15);
}
/* B. STARTER TIER: The Moving Grid Terminal */
.featured {
  background: radial-gradient(circle at center, #111116 0%, #0d0d0f 100%);
}

.featured::before {
  content: '';
  position: absolute;
  inset: -100%; /* Over-bleed for movement */
  background-image: 
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 1; /* Forced visible */
  z-index: 3; /* Above the ::after mask */
  animation: gridScroll 40s linear infinite;
  mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}


@keyframes gridScroll {
  from { transform: translate(0,0); }
  to { transform: translate(50px, 50px); }
}

.featured .liquid-sync {
  opacity: 0.1; /* Subdued interior for grid focus */
  filter: none;
}


/* ── STARTER CRIMSON-FLARE SYSTEM ($49) ── */
.starter-border {
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 0deg, transparent, #FF1A1A, #FFF, #FF1A1A, transparent);
  animation: zenithRotate 4s linear infinite;
  z-index: 1;
  border-radius: 30px;
  opacity: 0.8;
  filter: blur(8px);
}

.price-box.featured::after {
  content: '';
  position: absolute;
  inset: 5px;
  background: #0d0d0f;
  border-radius: 26px;
  z-index: 2;
}

/* ── HIGH-VIBRANCY LAVA LAMP SYSTEM (RED & WHITE) ── */
.ev2-morph-area {
  position: absolute;
  inset: 0;
  z-index: 3; /* Above the mask ::after */
  filter: url(#goo);
  -webkit-filter: url(#goo);
  opacity: 1;
  transform: translate3d(0,0,0);
  will-change: filter, transform;
}

.ev2-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
}

.featured .ev2-blob-1 {
  top: 30%;
  left: 35%;
  width: 38%;
  height: 38%;
  background: #FFFFFF; /* Pure White Liquid */
  animation: ev2Lava1 20s ease-in-out infinite alternate;
}

.featured .ev2-blob-2 {
  bottom: 30%;
  right: 35%;
  width: 42%;
  height: 42%;
  background: #FF0000; /* Deep Crimson Liquid */
  animation: ev2Lava2 25s ease-in-out infinite alternate;
}

.featured .ev2-blob-4 {
  top: 30%;
  right: 35%;
  width: 20%;
  height: 20%;
  background: rgba(255,255,255,0.4);
  animation: ev2Lava1 10s ease-in-out infinite alternate;
  mix-blend-mode: overlay;
  filter: blur(5px);
}


@keyframes ev2Lava1 {
  0%   { transform: translate(15%, 15%) scale(1.1); }
  50%  { transform: translate(-60%, -45%) scale(0.9); }
  100% { transform: translate(15%, 15%) scale(1.1); }
}

@keyframes ev2Lava2 {
  0%   { transform: translate(-15%, -15%) scale(1.2); }
  50%  { transform: translate(60%, 45%) scale(0.95); }
  100% { transform: translate(-15%, -15%) scale(1.2); }
}

@keyframes ev2Lava2 {
  0%   { transform: translate(-15%, -15%) scale(1.2); }
  50%  { transform: translate(60%, 45%) scale(0.95); }
  100% { transform: translate(-15%, -15%) scale(1.2); }
}

/* ── ZENITH GOLD ELITE SYSTEM ($165) ── */
.exclusive-tier.zenith-mode {
  background: radial-gradient(circle at center, #1a1605 0%, #0d0d0f 100%);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 80px 200px rgba(212, 175, 55, 0.1);
}

.zenith-border {
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 0deg, transparent, #FFDF00, #D4AF37, #8B4513, transparent);
  animation: zenithRotate 4s linear infinite;
  z-index: 1;
  border-radius: 30px;
  opacity: 0.6;
  filter: blur(8px);
}

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

.exclusive-tier.zenith-mode::after {
  content: '';
  position: absolute;
  inset: 5px;
  background: #0d0d0f;
  border-radius: 26px;
  z-index: 2;
}

.gold-zenith {
  position: absolute;
  inset: 0;
  z-index: 3;
  filter: url(#goo);
  opacity: 1;
}

.gold-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
  animation: goldFloat 20s infinite linear;
}

.gold-blob-1 { top: 20%; left: 20%; width: 45%; height: 45%; background: #FFEB3B; } /* Pure Solar Yellow */
.gold-blob-2 { bottom: 20%; right: 20%; width: 55%; height: 55%; background: #FF0000; animation-delay: -10s; } /* Crimson Red */

@keyframes goldFloat {
  0% { transform: rotate(0deg) translate(20%, 20%) rotate(0deg); }
  100% { transform: rotate(360deg) translate(20%, 20%) rotate(-360deg); }
}

.exclusive-tier.zenith-mode .tier-price {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  background-image: none !important;
  animation: auricImpact 3.5s infinite cubic-bezier(0.19, 1, 0.22, 1);
  text-shadow: 
    0 0 30px rgba(255, 215, 0, 0.4),
    0 10px 40px rgba(0, 0, 0, 0.9);
}

@keyframes auricImpact {
  0% { background-position: -150% center; transform: scale(1); filter: drop-shadow(0 0 0px transparent); }
  45% { transform: scale(1.04) translateY(-4px); filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5)); }
  55% { transform: scale(1.04) translateY(-4px); filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5)); }
  100% { background-position: 150% center; transform: scale(1); filter: drop-shadow(0 0 0px transparent); }
}

.exclusive-tier.zenith-mode .tier-btn { 
  background: linear-gradient(135deg, #FFEB3B 0%, #FFFF00 50%, #FFD700 100%); 
  color: #000; 
  border: none;
  box-shadow: 
    0 0 20px rgba(255, 235, 59, 0.4),
    0 10px 40px rgba(255, 215, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.exclusive-tier.zenith-mode .tier-btn:hover {
  background: #FFFFFF;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.6);
  transform: translateY(-2px) scale(1.02);
}




@keyframes lavaFlow {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(15%, 20%) scale(1.1); }
}

/* ──────────────────────────────────────────
   4. INTERACTIVE ELEMENTS
   ────────────────────────────────────────── */
.tier-features { list-style: none; margin-bottom: 4rem; flex: 1; }
.tier-features li {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #FFFFFF;
}

.tier-features li svg { width: 16px; height: 16px; color: #FFF; flex-shrink: 0; }
.featured .tier-features li svg { color: #FF0000; }

.tier-btn {
  position: relative;
  width: 100%;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFF;
  overflow: hidden;
  z-index: 10;
}

/* Button Magnetic Igniter Effect */
.tier-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0%;
  height: 300%;
  background: #FFF;
  transform: translate(-50%, -50%) rotate(45deg);
  transition: width 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: -1;
}

.tier-btn:hover {
  color: #000;
  letter-spacing: 0.3em;
  transform: translateY(-5px);
  border-color: #FFF;
}

.tier-btn:hover::before { width: 150%; }

.featured .tier-btn { background: #FF1A1A; border: none; }
.featured .tier-btn::before { background: #FFF; }
.featured .tier-btn:hover { background: #FF1A1A; color: #000; box-shadow: 0 15px 40px rgba(255, 0, 0, 0.4); }


@media (max-width: 900px) {
  .pricing-grid { 
    grid-template-columns: 1fr;
    gap: 2rem; 
    padding: 0 1.5rem; 
  }
  .price-box { 
    min-height: auto; 
    padding: 4rem 2.5rem; 
  }
}
