/* ============================================================================
   FLAME STORE - NEW HERO & LANDING UI
   Inspired by Shadcn UI & Modern Web Trends
   ============================================================================ */

:root {
  /* Colors - Matched with Header (#1C2128) */
  --bg-deep: #1C2128;       /* Dark Grey/Navy */
  --bg-surface: #24292F;    /* Slightly lighter for cards */
  --primary: #FF2E63;       /* Flame Pink */
  --primary-glow: rgba(255, 46, 99, 0.4);
  --text-main: #ffffff;
  --text-muted: #94a3b8;    /* Slate 400 */
  --border-dim: rgba(255, 255, 255, 0.08);
  
  /* Glassmorphism */
  --glass-bg: rgba(36, 41, 47, 0.6);
  --glass-border: 1px solid rgba(255, 255, 255, 0.05);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  
  /* Spacing */
  --section-gap: 8rem;
}

/* ================= HERO SECTION ================= */
.hero-section {
  position: relative;
  min-height: 90vh; /* Taller hero */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: var(--bg-deep);
  overflow: hidden; /* Restore hidden to prevent horizontal scroll */
  padding: 2rem;
  padding-bottom: 8rem; /* Add padding at bottom for icons space */
  isolation: isolate;
  z-index: 1;
}

/* Interactive Particles Canvas */
.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Behind content but above background */
  pointer-events: none; /* Let clicks pass through if needed, but we want hover */
}

/* Static Grid Overlay */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
  z-index: -2;
  pointer-events: none;
}

/* Path Icons Container (The Moving Emojis) */
.path-icons-container {
  position: absolute;
  top: 45%; 
  left: 0;
  width: 100%;
  height: 60%;
  pointer-events: none;
  z-index: 0;
  transform: translateY(-10%) scale(1.1);
  opacity: 0.6; 
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.path-icon {
  position: absolute;
  width: 70px; 
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 15px rgba(255, 46, 99, 0.3));
  transition: transform 0.1s linear;
  will-change: transform;
}

.path-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Badge */
.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.25rem;
  background: rgba(255, 46, 99, 0.1);
  border: 1px solid rgba(255, 46, 99, 0.2);
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
  box-shadow: 0 0 20px rgba(255, 46, 99, 0.1);
  backdrop-filter: blur(8px);
  animation: fadeDown 0.8s ease-out;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  animation: pulse 2s infinite;
}

/* Title */
.hero-title {
  font-size: clamp(3rem, 6vw, 5rem); 
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-main);
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: fadeUp 0.8s ease-out 0.2s backwards;
}

.title-accent {
  background: linear-gradient(135deg, #fff 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

/* Subtitle */
.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.6;
  animation: fadeUp 0.8s ease-out 0.4s backwards;
}

/* Buttons */
.hero-cta-group {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  animation: fadeUp 0.8s ease-out 0.6s backwards;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary-glow {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 0 0 rgba(255, 46, 99, 0.7);
}

.btn-primary-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 46, 99, 0.4);
  background: #ff4775;
}

.btn-secondary-glass {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.btn-secondary-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ================= BUYING PROCESS (Timeline) ================= */
.steps-section {
  position: relative;
  /* Use linear gradient to have transparent top for icons to show through */
  background: linear-gradient(to bottom, transparent 0%, var(--bg-deep) 200px); 
  padding: var(--section-gap) 2rem;
  z-index: 20; /* Keep it high for interactivity */
  overflow: hidden;
  margin-top: -150px; /* Pull up to cover bottom of hero */
  padding-top: calc(var(--section-gap) + 150px);
}

.steps-container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-header-modern {
  text-align: center;
  margin-bottom: 5rem;
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title-modern {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
}

.text-gradient {
  background: linear-gradient(to right, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Vertical Timeline */
.process-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-line {
  position: absolute;
  top: 0;
  right: 28px; /* Aligned with icon center (rtl) */
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, 
    var(--primary) 0%, 
    rgba(255,255,255,0.1) 15%, 
    rgba(255,255,255,0.1) 85%, 
    var(--primary) 100%
  );
  z-index: 0;
}

.process-step {
  display: flex;
  gap: 2rem;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s forwards;
  align-items: flex-start;
}

/* Stagger animation */
.process-step:nth-child(2) { animation-delay: 0.1s; }
.process-step:nth-child(3) { animation-delay: 0.2s; }
.process-step:nth-child(4) { animation-delay: 0.3s; }
.process-step:nth-child(5) { animation-delay: 0.4s; }
.process-step:nth-child(6) { animation-delay: 0.5s; }

.step-marker {
  font-family: 'Monaco', monospace;
  font-size: 0.9rem;
  color: var(--text-muted);
  opacity: 0.5;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  margin-top: 1rem;
}

.step-content {
  flex: 1;
  background: var(--glass-bg);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  direction: rtl;
}

.step-content:hover {
  border-color: rgba(255, 46, 99, 0.4);
  transform: translateX(-5px);
  background: rgba(36, 41, 47, 0.8);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.3);
}

.step-icon-box {
  width: 56px;
  height: 56px;
  background: rgba(255, 46, 99, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  border: 4px solid var(--bg-deep); /* Gap effect */
  box-shadow: 0 0 0 2px var(--border-dim);
}

.step-content:hover .step-icon-box {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.step-text {
  text-align: right;
  flex: 1;
  min-width: 0;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.step-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ================= STATS SECTION (Modern Cards) ================= */
.stats-section-modern {
  padding: var(--section-gap) 2rem;
  background: var(--bg-deep);
  position: relative;
  border-top: 1px solid var(--border-dim);
}

.stats-header-wrapper {
  text-align: center;
  margin-bottom: 4rem;
}

.section-desc-modern {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.stats-cards-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-card {
  background: var(--glass-bg);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 2rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.stat-card:hover {
  background: rgba(255,255,255,0.03);
  border-color: var(--primary);
  transform: translateY(-5px);
}

.stat-value {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
  background: linear-gradient(180deg, #fff 20%, #ccc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 46, 99, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 46, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 46, 99, 0); }
}

/* ================= RESPONSIVE DESIGN (FIXES) ================= */

@media (max-width: 1024px) {
  .hero-title { font-size: 4rem; }
  .stats-cards-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* HERO MOBILE */
  .hero-section { min-height: 85vh; padding: 1rem; }
  .hero-title { font-size: 2.8rem; line-height: 1.2; }
  .hero-subtitle { font-size: 1rem; padding: 0 1rem; }
  .hero-cta-group { flex-direction: column; width: 100%; gap: 1rem; }
  .btn-hero { width: 100%; padding: 0.9rem; }
  
  /* ICONS MOBILE */
  .path-icons-container { 
    opacity: 0.5; 
    top: 55%; /* Raised slightly from 60% */
    height: 50%;
    transform: translateY(0);
  }
  .path-icon { 
    width: 45px; /* Smaller icons on mobile */
    height: 45px; 
  }
  
  /* TIMELINE MOBILE */
  .timeline-line { right: 22px; } /* Adjust line position */
  .process-step { gap: 1rem; }
  .step-marker { display: none; } /* Hide marker on small screens */
  .step-content { 
    flex-direction: column; 
    text-align: center; 
    padding: 1.5rem 1rem;
    gap: 1rem;
  }
  .step-text { text-align: center; }
  .step-icon-box { 
    width: 48px; 
    height: 48px; 
    margin: 0 auto; /* Center icon */
  }
  
  /* STATS MOBILE */
  .stats-cards-container { 
    grid-template-columns: 1fr; /* Stack vertically */
    gap: 1rem;
  }
  .section-title-modern { font-size: 2rem; }
  
  /* GENERAL */
  :root { --section-gap: 5rem; }
}
