/* 
 * Home Page Styles - Rosewood Ridge Site
 * Web 3.0 Premium Design System
 * Glassmorphism, Glow Effects, Smooth Animations
 */

@import url('variables.css');

/* ==============================
   HOMEPAGE LAYOUT
   ============================== */
body.home-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.home-page main {
  padding-top: var(--header-height);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* ==============================
   SCROLL-TRIGGERED ANIMATIONS
   ============================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.4; }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ==============================
   HERO SECTION
   ============================== */
body.home-page .hero {
  height: calc(100vh - var(--header-height));
  min-height: unset;
}

body.home-page .hero-content {
  margin-top: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  max-width: 800px;
  padding: 2rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--highlight-color);
  border: 1px solid rgba(204, 116, 89, 0.4);
  border-radius: 50px;
  margin-bottom: 1.5rem;
  background: rgba(204, 116, 89, 0.08);
  backdrop-filter: blur(4px);
  animation: fadeInUp 0.8s ease-out both;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 0.75rem;
  color: var(--text-color);
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
  animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-secondary-color);
  font-weight: 300;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-logo {
  display: block;
  margin: 0 auto 1.5rem;
  animation: fadeIn 1s ease-out 0.5s both;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.4));
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-secondary-color);
  opacity: 0.8;
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.45s both;
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Global Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.btn-primary {
  background: linear-gradient(135deg, #cc7459 0%, #a85d42 50%, #cc7459 100%);
  background-size: 200% 200%;
  color: #fff !important;
  border: none;
  box-shadow: 0 4px 20px rgba(204, 116, 89, 0.35);
}

.btn-primary:hover {
  background-position: 100% 0;
  transform: translateY(-3px);
  color: #fff !important;
  box-shadow: 0 8px 30px rgba(204, 116, 89, 0.55),
              0 0 50px rgba(204, 116, 89, 0.25),
              0 0 80px rgba(204, 116, 89, 0.1);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
  color: #fff !important;
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.08),
              0 0 40px rgba(255, 255, 255, 0.05);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.15rem;
}

.btn-icon {
  font-size: 0.7em;
}

/* Hero Stats Bar */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  animation: fadeInUp 0.8s ease-out 0.75s both;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--highlight-color), var(--bright-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary-color);
  opacity: 0.7;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: fadeIn 1s ease-out 1.5s both;
}

.scroll-indicator span {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator span::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}

/* ==============================
   HOMEPAGE SECTIONS (Common)
   ============================== */
.hp-section {
  position: relative;
  padding: 6rem 2rem;
  overflow: hidden;
}

.hp-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  padding: 0.3rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--highlight-color);
  border: 1px solid rgba(204, 116, 89, 0.3);
  border-radius: 50px;
  margin-bottom: 1.2rem;
  background: rgba(204, 116, 89, 0.06);
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary-color);
  opacity: 0.8;
  max-width: 680px;
  margin: 0 auto;
}

/* ==============================
   FEATURES SECTION
   ============================== */
.hp-features {
  background: linear-gradient(180deg, var(--bg-color-darker) 0%, var(--bg-color) 50%, var(--bg-color-darker) 100%);
}

.hp-features .section-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(204, 116, 89, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  position: relative;
  background: rgba(30, 30, 30, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  text-align: center;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--highlight-color), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(204, 116, 89, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
              0 0 40px rgba(204, 116, 89, 0.05);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card .feature-glow {
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(204, 116, 89, 0.04) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.feature-card:hover .feature-glow {
  opacity: 1;
}

.feature-icon {
  font-size: 2.2rem;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(204, 116, 89, 0.1);
  border: 1px solid rgba(204, 116, 89, 0.15);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary-color);
  opacity: 0.8;
}

/* ==============================
   HOW TO JOIN SECTION
   ============================== */
.hp-join {
  background: var(--bg-color);
}

.steps-grid {
  display: flex;
  align-items: stretch;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
}

.step-card {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  padding: 2rem 1.5rem;
  background: rgba(30, 30, 30, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.step-card:hover {
  transform: translateY(-6px);
  background: rgba(40, 40, 40, 0.6);
  border-color: rgba(204, 116, 89, 0.2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.step-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--highlight-color), var(--bright-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  line-height: 1;
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.6rem;
}

.step-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary-color);
  opacity: 0.8;
}

.step-card a {
  color: var(--highlight-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.step-card a:hover {
  border-bottom-color: var(--highlight-color);
}

.step-connector {
  display: flex;
  align-items: center;
  width: 40px;
  justify-content: center;
}

.step-connector::before {
  content: '';
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, rgba(204, 116, 89, 0.3), rgba(204, 116, 89, 0.1));
  border-radius: 1px;
}

/* ==============================
   WHY CHOOSE US SECTION
   ============================== */
.hp-why {
  background: linear-gradient(180deg, var(--bg-color-darker) 0%, var(--bg-color) 100%);
}

.why-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.why-text .section-tag {
  margin-bottom: 1rem;
}

.why-text h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.why-text > p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary-color);
  opacity: 0.85;
  margin-bottom: 2rem;
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.why-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1rem;
  color: var(--text-color);
  opacity: 0.9;
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 8px;
  background: rgba(204, 116, 89, 0.12);
  color: var(--highlight-color);
  font-size: 0.8rem;
  font-weight: 700;
}

/* Glow CTA Card */
.glow-card {
  position: relative;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(204, 116, 89, 0.4), rgba(242, 205, 160, 0.15), rgba(204, 116, 89, 0.4));
  background-size: 300% 300%;
  animation: gradientShift 6s ease infinite;
}

.glow-card-inner {
  background: rgba(20, 20, 20, 0.95);
  border-radius: 22px;
  padding: 3rem 2rem;
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.glow-card-inner img {
  margin-bottom: 1.5rem;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.4));
}

.glow-card-text h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.glow-card-text p {
  font-size: 0.9rem;
  color: var(--text-secondary-color);
  opacity: 0.7;
  margin-bottom: 1.5rem;
}

/* ==============================
   CTA SECTION
   ============================== */
.hp-cta {
  background: linear-gradient(135deg, rgba(20, 20, 20, 1) 0%, rgba(40, 25, 20, 0.95) 100%);
  text-align: center;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cta-shape {
  position: absolute;
  border-radius: 50%;
  animation: glowPulse 4s ease-in-out infinite;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(204, 116, 89, 0.08) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(242, 205, 160, 0.06) 0%, transparent 70%);
  bottom: -80px;
  left: -60px;
  animation-delay: 2s;
}

.hp-cta h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.hp-cta p {
  font-size: 1.1rem;
  color: var(--text-secondary-color);
  opacity: 0.8;
  max-width: 550px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.hp-cta .btn {
  position: relative;
  z-index: 1;
}

/* ==============================
   FOOTER (Homepage Override)
   ============================== */
body.home-page footer {
  background: rgba(14, 14, 14, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 1rem;
}

/* ==============================
   SCROLL ANIMATION OBSERVER
   ============================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 1024px) {
  .why-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .glow-card {
    max-width: 380px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hp-section {
    padding: 4rem 1.2rem;
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .steps-grid {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .step-connector {
    width: auto;
    height: 30px;
    transform: rotate(90deg);
  }

  .step-card {
    max-width: 100%;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-badge {
    font-size: 0.6rem;
    letter-spacing: 2px;
  }
  
  .hp-section {
    padding: 3rem 1rem;
  }
  
  .section-header {
    margin-bottom: 2.5rem;
  }
}