/* ===================================
   REVIEWRX - PREMIUM SAAS REDESIGN
   =================================== */

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

:root {
  /* Modern Color Palette */
  --primary: #2563EB;
  --accent: #06b6d4;
  --bg-dark: #0a0a0f;
  --bg-light: #fafafa;
  --text-on-dark: #e2e8f0;
  --border-subtle: rgba(255,255,255,0.08);
  --border-light: rgba(255,255,255,0.12);
  
  /* Legacy support */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-600: #64748b;
  --gray-900: #0f172a;
  
  --radius: 12px;
  --radius-lg: 16px;
}

/* Base */
body { 
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-900); 
  line-height: 1.6;
  background: var(--bg-dark);
  overflow-x: hidden;
}

.container { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 32px; 
}

/* ===================================
   GLASSMORPHISM NAVIGATION
   =================================== */
.nav { 
  position: fixed; 
  top: 0; 
  width: 100%; 
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: all 0.3s ease;
}

.nav-inner { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  height: 72px; 
}

.logo { 
  font-size: 1.5rem; 
  font-weight: 800; 
  text-decoration: none; 
  color: var(--text-on-dark);
  letter-spacing: -0.02em;
}

.logo span { 
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a { 
  text-decoration: none; 
  color: var(--text-on-dark);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover { 
  color: #fff;
}

.nav-link-subtle {
  opacity: 0.8;
}

/* ===================================
   BUTTONS
   =================================== */
.btn { 
  display: inline-block; 
  background: var(--primary);
  color: #fff; 
  padding: 14px 32px; 
  border-radius: var(--radius);
  text-decoration: none; 
  font-weight: 600; 
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn:hover { 
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn-sm { 
  padding: 10px 20px; 
  font-size: 0.9rem; 
}

.btn-lg { 
  padding: 18px 40px; 
  font-size: 1.1rem; 
}

.btn-full { 
  width: 100%; 
  text-align: center; 
}

.btn-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.btn-cta {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.btn-cta:hover {
  background: var(--text-on-dark);
}

/* ===================================
   DARK HERO with ANIMATED GRADIENT ORBS
   =================================== */
.hero { 
  position: relative;
  padding: 200px 0 140px;
  text-align: center; 
  background: var(--bg-dark);
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
}

/* Animated Gradient Orbs */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: -10%;
  left: -10%;
  animation: float-1 8s infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: 20%;
  right: -5%;
  animation: float-2 10s infinite;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  bottom: -10%;
  left: 30%;
  animation: float-3 12s infinite;
}

@keyframes float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 80px) scale(1.1); }
}

@keyframes float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, -50px) scale(1.15); }
}

@keyframes float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, -60px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title { 
  font-size: 5rem; 
  font-weight: 800; 
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-on-dark);
  margin-bottom: 24px;
}

/* Gradient Text Effect */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle { 
  font-size: 1.5rem; 
  margin: 20px 0 16px;
  color: var(--text-on-dark);
  opacity: 0.9;
}

.hero-desc { 
  max-width: 600px; 
  margin: 0 auto 40px;
  color: var(--text-on-dark);
  opacity: 0.8;
  font-size: 1.1rem;
  line-height: 1.7;
}

.fine { 
  margin-top: 20px; 
  font-size: 0.9rem;
  color: var(--text-on-dark);
  opacity: 0.6;
}

/* ===================================
   SOCIAL PROOF SECTION
   =================================== */
.social-proof {
  background: var(--bg-dark);
  padding: 80px 0 120px;
  text-align: center;
}

.social-proof-label {
  color: var(--text-on-dark);
  opacity: 0.6;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 40px;
}

.social-proof-stats {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}

.stat {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.stat.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-on-dark);
  opacity: 0.7;
  font-size: 0.95rem;
}

.social-proof-note {
  margin-top: 40px;
  color: var(--text-on-dark);
  opacity: 0.5;
  font-size: 0.85rem;
  font-style: italic;
}

/* ===================================
   HOW IT WORKS SECTION
   =================================== */
.how-it-works {
  background: var(--bg-dark);
  padding: 120px 0 160px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 80px;
  color: var(--text-on-dark);
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.section-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.step {
  flex: 1;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.step.visible {
  opacity: 1;
  transform: translateY(0);
}

.step:nth-child(2).visible {
  transition-delay: 0.2s;
}

.step:nth-child(4).visible {
  transition-delay: 0.4s;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.step-content h3 {
  color: var(--text-on-dark);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-content p {
  color: var(--text-on-dark);
  opacity: 0.7;
  line-height: 1.6;
}

.step-connector {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  margin-top: 40px;
  opacity: 0.3;
  flex-shrink: 0;
}

/* ===================================
   FEATURES with DOT PATTERN BACKGROUND
   =================================== */
.features { 
  padding: 140px 0 160px;
  background: var(--bg-light);
  position: relative;
}

.features-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, rgba(37, 99, 235, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
  pointer-events: none;
}

.features .section-title {
  color: var(--gray-900);
}

.grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 32px;
  position: relative;
  z-index: 1;
}

.card { 
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card:nth-child(2).visible {
  transition-delay: 0.15s;
}

.card:nth-child(3).visible {
  transition-delay: 0.3s;
}

.card:hover { 
  transform: translateY(-8px);
  border-color: var(--border-light);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.2);
}

.card-icon { 
  font-size: 2.5rem; 
  margin-bottom: 20px;
}

.card h3 { 
  margin-bottom: 12px;
  color: var(--text-on-dark);
  font-size: 1.3rem;
  font-weight: 700;
}

.card p { 
  color: var(--text-on-dark);
  opacity: 0.8;
  font-size: 1rem;
  line-height: 1.7;
}

/* ===================================
   PRICING SECTION
   =================================== */
.pricing { 
  padding: 140px 0 160px;
  background: var(--bg-dark);
  text-align: center;
}

.price-card { 
  max-width: 460px; 
  margin: 0 auto;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.2);
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.price-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.price-card:hover {
  border-color: var(--primary);
  box-shadow: 0 24px 80px rgba(37, 99, 235, 0.3);
}

.popular-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-header { 
  margin-bottom: 32px;
}

.price-label { 
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}

.price-amount { 
  font-size: 4rem;
  font-weight: 800;
  color: var(--text-on-dark);
  letter-spacing: -0.02em;
}

.price-amount sup { 
  font-size: 1.8rem;
  vertical-align: super;
}

.price-amount span { 
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-on-dark);
  opacity: 0.6;
}

.price-features { 
  list-style: none;
  text-align: left;
  margin: 32px 0;
}

.price-features li { 
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-on-dark);
  font-size: 1rem;
}

.price-features li:last-child {
  border-bottom: none;
}

/* ===================================
   CTA SECTION with GRADIENT BACKGROUND
   =================================== */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.5; }
}

.cta-content {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.cta-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.cta h2 {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.cta p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-fine {
  margin-top: 20px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

/* ===================================
   FOOTER
   =================================== */
.footer { 
  padding: 60px 0;
  text-align: center;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
}

.footer p {
  color: var(--text-on-dark);
  opacity: 0.6;
  font-size: 0.95rem;
}

/* ===================================
   FADE-IN ANIMATION BASE
   =================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
  .hero-title { font-size: 4rem; }
  .grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .steps { flex-direction: column; gap: 60px; }
  .step-connector { display: none; }
  .social-proof-stats { gap: 50px; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .hero { padding: 140px 0 100px; min-height: auto; }
  .hero-title { font-size: 2.8rem; }
  .subtitle { font-size: 1.2rem; }
  .section-title { font-size: 2rem; }
  .cta h2 { font-size: 2rem; }
  .nav-links a:not(.btn) { display: none; }
  .nav-inner { height: 64px; }
  
  .orb-1, .orb-2, .orb-3 {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .btn-lg { padding: 16px 32px; font-size: 1rem; }
  .social-proof-stats { flex-direction: column; gap: 40px; }
  .stat-number { font-size: 2.5rem; }
}