/* ==========================================================================
   MyManageRH — Landing Page Styles
   Aesthetics: Clean, Professional, High Whitespace, Premium SaaS.
   ========================================================================== */

.landing-page {
  --landing-primary: var(--brand-700);
  --landing-dark: var(--brand-900);
  --landing-accent: var(--brand-600);
  --landing-bg-soft: var(--brand-50);
  
  display: flex;
  flex-direction: column;
  gap: 120px;
  padding-bottom: 120px;
  color: var(--slate-800);
  overflow-x: hidden;
}

/* Scroll Reveal Classes (Triggered by landing.js IntersectionObserver) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
  transition: all 0.8s var(--ease-spring);
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Sections Base */
.landing-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-block;
  padding: 6px 16px;
  background: var(--brand-100);
  color: var(--brand-700);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.5);
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--slate-950);
}

.section-subtitle {
  font-size: 18px;
  color: var(--slate-500);
  max-width: 650px;
  line-height: 1.6;
}

/* 1. HERO - Aurora Gradient */
.hero-section {
  padding: 100px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -20%; left: -10%; right: -10%; bottom: 0;
  background: 
    radial-gradient(circle at 20% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  z-index: -1;
  filter: blur(40px);
}

.hero-title {
  font-size: 72px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--slate-950) 0%, var(--slate-700) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: 24px;
  color: var(--brand-700);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.hero-subtext {
  font-size: 18px;
  color: var(--slate-500);
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.hero-actions .btn {
  padding: 12px 32px;
  font-size: 16px;
  border-radius: var(--radius-pill);
}

.hero-footer {
  margin-top: 60px;
  font-size: 13px;
  color: var(--slate-400);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* 2. PROBLEM */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  width: 100%;
  margin-top: 48px;
}

.problem-item {
  padding: 24px;
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-lg);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-smooth) var(--ease-spring);
}

.problem-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(239, 68, 68, 0.2);
}

.problem-icon {
  width: 48px;
  height: 48px;
  background: var(--error-bg);
  color: var(--error-solid);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.problem-text {
  font-weight: 600;
  font-size: 15px;
  color: var(--slate-800);
}

/* 4. PRODUCT & 6. VALUE */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  width: 100%;
  margin-top: 60px;
}

.feature-card {
  text-align: left;
  padding: 40px;
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-xl);
  transition: all var(--duration-smooth) var(--ease-spring);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brand-gradient);
  opacity: 0;
  transition: opacity var(--duration-smooth);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  border-color: rgba(99, 102, 241, 0.2);
}

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

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--brand-50) 0%, var(--brand-100) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--brand-700);
  font-size: 24px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 800;
  color: var(--slate-900);
}

.feature-card p {
  color: var(--slate-500);
  line-height: 1.6;
}

/* 5. FLOW */
.flow-container {
  width: 100%;
  margin-top: 80px;
  position: relative;
}

/* Connector Line */
.flow-container::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-100) 0%, var(--brand-400) 50%, var(--brand-100) 100%);
  z-index: 1;
}

.flow-steps {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.flow-step {
  flex: 1;
  padding: 32px 24px;
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--duration-smooth) var(--ease-spring);
}

.flow-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  border-color: rgba(99, 102, 241, 0.2);
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--brand-gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
  border: 4px solid var(--white);
}

.flow-step h4 {
  margin-bottom: 12px;
  font-weight: 800;
  font-size: 18px;
  color: var(--slate-900);
}

.flow-step p {
  font-size: 14px;
  color: var(--slate-500);
  line-height: 1.6;
}

/* 7. AUDIENCE */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  width: 100%;
  margin-top: 60px;
}

.audience-card {
  padding: 48px;
  background: linear-gradient(180deg, var(--white) 0%, var(--slate-50) 100%);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-xl);
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-smooth) var(--ease-spring);
}

.audience-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--slate-300);
  transform: translateY(-2px);
}

.audience-card h3 {
  font-size: 24px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 800;
}

.audience-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-weight: 600;
  color: var(--slate-700);
}

.audience-list li svg {
  color: var(--brand-600);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

/* 8. SECURITY - Dark Mesh Glow */
.security-section {
  background: var(--slate-950);
  position: relative;
  overflow: hidden;
  color: white;
  border-radius: var(--radius-xl);
  padding: 100px 40px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.security-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(circle at 10% 10%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(139, 92, 246, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.security-section h2 {
  color: white;
}

.security-section .section-subtitle {
  color: var(--slate-400);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-top: 60px;
  position: relative;
  z-index: 1;
}

.security-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: all var(--duration-smooth) var(--ease-spring);
}

.security-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(99, 102, 241, 0.2);
}

.security-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--brand-400);
}

.security-item h4 {
  color: white;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 18px;
}

.security-item p {
  color: var(--slate-400);
  font-size: 14px;
  line-height: 1.6;
}

/* 9. DOCS */
.docs-section {
  text-align: center;
}

.docs-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 32px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .hero-title { font-size: 48px; }
  .audience-grid { grid-template-columns: 1fr; }
  .flow-steps { flex-direction: column; }
  .flow-container::before { display: none; }
  .landing-page { gap: 80px; padding-bottom: 80px; }
  .feature-grid { grid-template-columns: 1fr; }
  .security-section { padding: 60px 24px; }
}

/* Initial Load Animations (Hero Only) */
.hero-section > * {
  animation: fadeInUp 0.8s var(--ease-spring) both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section .section-label { animation-delay: 0s; }
.hero-section .hero-title { animation-delay: 0.1s; }
.hero-section .hero-tagline { animation-delay: 0.2s; }
.hero-section .hero-subtext { animation-delay: 0.3s; }
.hero-section .hero-actions { animation-delay: 0.4s; }
.hero-section .hero-footer  { animation-delay: 0.5s; }



