/* ============================================
   Home Page — Red Theme Rebuild
   ============================================ */

/* --- Red Theme Overrides --- */
:root {
  --red-50: #FFEBEE;
  --red-100: #FFCDD2;
  --red-200: #EF9A9A;
  --red-300: #E57373;
  --red-400: #EF5350;
  --red-500: #e53935;
  --red-600: #D32F2F;
  --red-700: #C62828;
  --red-800: #B71C1C;
  --red-900: #7F0000;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
  background: linear-gradient(160deg, #ffffff 0%, #fef2f2 30%, #fce4ec 60%, #fff5f5 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(229,57,53,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(229,57,53,0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 560px;
}

.hero h1 {
  font-size: var(--fs-7xl);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.hero h1 .highlight {
  color: var(--red-500);
}

.hero-description {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-2xl);
  max-width: 480px;
}

/* Red Buttons */
.btn-red {
  background: linear-gradient(135deg, var(--red-500), var(--red-700));
  color: white;
  box-shadow: 0 4px 14px rgba(229,57,53,0.35);
}

.btn-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229,57,53,0.45);
}

.btn-outline-red {
  background: white;
  color: var(--red-500);
  border: 1.5px solid var(--red-200);
  box-shadow: var(--shadow-sm);
}

.btn-outline-red:hover {
  border-color: var(--red-400);
  background: var(--red-50);
  color: var(--red-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Hero Dashboard Mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-dashboard {
  width: 100%;
  max-width: 520px;
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-2xl), 0 0 60px rgba(229,57,53,0.08);
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}

.dashboard-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dashboard-dot.red { background: #ff5f57; }
.dashboard-dot.yellow { background: #ffbd2e; }
.dashboard-dot.green { background: #28c840; }

.dashboard-content {
  padding: 24px;
}

.dash-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.dash-card {
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
}

.dash-card .label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.dash-card .value {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--text-primary);
}

.dash-card .value.red-text { color: var(--red-500); }
.dash-card .value.green-text { color: var(--success); }

.dash-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 70px;
  padding: 14px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
}

.dash-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, var(--red-400), var(--red-500));
  min-height: 8px;
}

.dash-bar:nth-child(odd) {
  background: linear-gradient(to top, var(--red-200), var(--red-300));
}

/* Floating Cards */
.floating-card {
  position: absolute;
  padding: 10px 16px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  font-size: var(--fs-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
  animation: float 5s ease-in-out infinite;
}

.floating-card.card-1 {
  top: 8%;
  left: -25px;
  animation-delay: -1s;
}

.floating-card.card-2 {
  bottom: 12%;
  right: -15px;
  animation-delay: -3s;
}

.floating-card .icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.floating-card .icon.green { background: #d1fae5; color: #059669; }
.floating-card .icon.red-bg { background: var(--red-50); color: var(--red-500); }

/* --- Problem Section --- */
.problem-section {
  background: var(--gray-50);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg);
}

.problem-card {
  padding: var(--space-xl);
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.problem-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--red-100);
}

.problem-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--red-50);
  color: var(--red-500);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 20px;
}

.problem-card p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
  font-weight: 500;
}

/* --- Solution Section --- */
.solution-section {
  background: white;
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.solution-text p.desc {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: var(--lh-normal);
}

.solution-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.solution-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-base);
  color: var(--text-secondary);
  font-weight: 500;
}

.solution-list li .check {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: var(--red-50);
  color: var(--red-500);
  display: flex;
  align-items: center;
  justify-content: center;
}

.solution-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.solution-mockup {
  width: 100%;
  max-width: 440px;
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.mockup-header {
  padding: 12px 18px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  gap: 6px;
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-300);
}

.mockup-content {
  padding: 20px;
}

.mockup-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  font-size: var(--fs-sm);
}

.mockup-row .label { color: var(--text-secondary); font-weight: 500; }
.mockup-row .status-paid {
  color: var(--success);
  font-weight: 600;
  font-size: var(--fs-xs);
  background: #d1fae5;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.mockup-row .status-pending {
  color: var(--red-500);
  font-weight: 600;
  font-size: var(--fs-xs);
  background: var(--red-50);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* --- Features Section --- */
.features-section {
  background: var(--gray-50);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  padding: var(--space-2xl);
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red-400), var(--red-600));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--red-100);
}

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

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 22px;
  background: var(--red-50);
  color: var(--red-500);
}

.feature-card h3 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.feature-card p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
}

/* --- How It Works --- */
.how-it-works {
  background: white;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 44px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--red-100), var(--red-200), var(--red-100));
  z-index: 0;
}

.step-item {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, var(--red-500), var(--red-700));
  box-shadow: 0 6px 24px rgba(229,57,53,0.3);
  position: relative;
}

.step-number::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px dashed var(--red-200);
}

.step-item h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-xs);
}

.step-item p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  max-width: 220px;
  margin: 0 auto;
}

/* --- Pricing Section --- */
.pricing-section {
  background: var(--gray-50);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  align-items: start;
}

.pricing-card {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
  text-align: center;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
  border: 2px solid var(--red-500);
  box-shadow: var(--shadow-xl), 0 0 40px rgba(229,57,53,0.1);
  transform: scale(1.03);
}

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

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--red-500), var(--red-700));
  color: white;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-card .plan-name {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.pricing-card .plan-price {
  font-family: var(--font-heading);
  font-size: var(--fs-4xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.pricing-card .plan-price .currency {
  font-size: var(--fs-xl);
  vertical-align: super;
}

.pricing-card .plan-price .period {
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--text-muted);
}

.plan-desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: var(--lh-normal);
}

.plan-features {
  margin-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.plan-features li svg {
  width: 16px;
  height: 16px;
  color: var(--red-500);
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
}

.pricing-note {
  margin-top: var(--space-2xl);
  padding: var(--space-xl);
  background: white;
  border: 1px solid var(--red-100);
  border-radius: var(--radius-xl);
  text-align: center;
}

.pricing-note p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.8;
}

.pricing-note strong {
  color: var(--text-primary);
}

/* --- Trust Section --- */
.trust-section {
  background: white;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.trust-card {
  text-align: center;
  padding: var(--space-xl);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.trust-card:hover {
  border-color: var(--red-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.trust-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red-50);
  color: var(--red-500);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 22px;
}

.trust-card h4 {
  font-size: var(--fs-base);
  margin-bottom: var(--space-xs);
}

.trust-card p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* --- Final CTA --- */
.final-cta {
  background: linear-gradient(135deg, var(--red-500), var(--red-700), var(--red-800));
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 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'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%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");
  pointer-events: none;
}

.final-cta h2 {
  color: white;
  font-size: var(--fs-4xl);
  margin-bottom: var(--space-md);
}

.final-cta p {
  color: rgba(255,255,255,0.85);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-2xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta .btn-white {
  background: white;
  color: var(--red-600);
  border: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.final-cta .btn-white:hover {
  background: var(--red-50);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.final-cta .btn-ghost-white {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.4);
}

.final-cta .btn-ghost-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}

/* --- Section Badge Red --- */
.badge-red {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--red-50);
  color: var(--red-500);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--space-md);
  border: 1px solid var(--red-100);
}

/* --- Responsive --- */
@media (max-width: 1200px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-card.featured {
    transform: scale(1);
  }
  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero h1 {
    font-size: var(--fs-5xl);
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .btn-group {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .problem-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .solution-visual {
    order: -1;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid::before {
    display: none;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: var(--fs-4xl);
  }

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

  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }

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

@media (max-width: 576px) {
  .hero h1 {
    font-size: var(--fs-3xl);
  }

  .problem-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}
