/* Mobile-First Landing Page CSS */
:root {
  --primary-orange: #d1670e;
  --secondary-orange: #ff8c42;
  --text-white: #ffffff;
  --text-dark: #1a1a1a;
  --bg-gradient: linear-gradient(135deg, #d1670e, #b8590c);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-gradient) fixed;
  color: var(--text-white);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Prevent scrolling */
}

/* Background matching other pages - solar panel image overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/static/solar-panels-sunrise-renewable-energy.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 1;
  pointer-events: none;
}

/* Header */
.topbar {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.logo {
  height: 28px;
  border-radius: 4px;
}

.nav-link {
  color: var(--text-white);
  text-decoration: none;
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  transition: all 0.2s;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Main Content - Mobile First */
.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  position: relative;
  min-height: calc(100vh - 100px); /* Account for topbar and footer */
}

/* Background */
.main-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/static/solar-panels-sunrise-renewable-energy.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 1;
}

.content-container {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 95%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 0.5rem 0;
}

/* Typography - Mobile First */
.main-headline {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1rem 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-family: 'Playfair Display', serif;
}

.description-box {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 1rem;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.description-text {
  font-size: 0.85rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
}

/* CTA Button - Mobile First */
.cta-section {
  margin-top: auto;
  margin-bottom: 0.5rem;
}

.primary-cta {
  background: linear-gradient(135deg, var(--secondary-orange), var(--primary-orange));
  color: var(--text-white);
  border: none;
  padding: 0.9rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  max-width: 280px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.primary-cta:hover {
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.75rem 1rem;
  text-align: center;
  flex-shrink: 0;
}

.footer-container {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-links {
  margin-top: 0.25rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.75rem;
}

.footer-links a:hover {
  color: var(--text-white);
}

/* Tablet (768px and up) */
@media (min-width: 768px) {
  .topbar {
    padding: 1rem 2rem;
  }
  
  .logo {
    height: 40px !important; /* Match other pages */
  }
  
  .nav-link {
    font-size: 1.1rem !important; /* Bigger member login button */
    padding: 0.8rem 1.5rem !important;
    font-weight: 500;
  }
  
  .main-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  
  .content-container {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
  }
  
  .main-headline {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-align: center;
  }
  
  .description-box {
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  
  .description-text {
    font-size: 1.1rem;
  }
  
  .primary-cta {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    max-width: 320px;
  }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
  .main-content {
    padding: 3rem;
  }
  
  .content-container {
    max-width: 800px;
  }
  
  .main-headline {
    font-size: 4rem;
    white-space: nowrap;
  }
  
  .description-box {
    padding: 2rem;
    margin-bottom: 2.5rem;
  }
  
  .description-text {
    font-size: 1.2rem;
  }
  
  .primary-cta {
    padding: 1.3rem 3rem;
    font-size: 1.2rem;
    max-width: 350px;
  }
}

/* Large Desktop (1440px and up) */
@media (min-width: 1440px) {
  .main-headline {
    font-size: 4.5rem;
  }
  
  .description-text {
    font-size: 1.3rem;
  }
}

/* Animation */
.content-container > * {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.main-headline {
  animation-delay: 0.1s;
}

.description-box {
  animation-delay: 0.2s;
}

.cta-section {
  animation-delay: 0.3s;
}

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