/* --- 1. CONFIGURATION & VARIABLES --- */
:root {
  /* "Digital Campfire" Palette */
  --bg-color: #121212;
  --surface-color: #1e1e1e;
  --surface-hover: #2c2c2c;
  --text-primary: #f5f5f5;
  --text-secondary: #a3a3a3;
  --accent-color: #eab308; /* Fire/Scout Yellow */
  
  /* Dimensions & Spacing */
  --max-width: 480px; /* Keeps grid tight */
  --card-radius: 16px;
  --icon-size: 48px;
}

/* --- 2. RESET --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* --- 3. LAYOUT CONTAINER --- */
.landing {
  width: 100%;
  padding: 2rem 1.5rem;
  display: flex;
  justify-content: center;
}

.landing__container {
  width: 100%;
  max-width: var(--max-width);
  text-align: center;
  animation: fadeUp 0.8s ease-out;
}

/* --- 4. HEADER & LOGO --- */
.landing__header {
  margin-bottom: 1.5rem;
}

.main-logo {
  /* Responsive logic for the main logo */
  width: 60vw;      
  max-width: 280px; 
  height: auto;     
  object-fit: contain;
  /* Visual polish */
  border-radius: 12px; 
  filter: drop-shadow(0 0 15px rgba(234, 179, 8, 0.15));
}

/* --- 5. TEXT CONTENT (Tagline & Description) --- */
.landing__tagline {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.landing__description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 90%;
  
  /* Default Desktop Margin */
  margin: 0 auto 2.5rem auto; 
}

/* --- 6. NAVIGATION GRID --- */
.nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 Columns */
  gap: 1rem;
  margin-bottom: 3rem;
}

/* --- 7. CARDS --- */
.nav-card {
  background-color: var(--surface-color);
  border-radius: var(--card-radius);
  padding: 1.5rem 1rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  
  /* Transitions */
  transition: transform 0.2s ease, background-color 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-card:hover {
  background-color: var(--surface-hover);
  transform: translateY(-4px);
  border-color: var(--accent-color);
}

.nav-card:active {
  transform: scale(0.98);
}

.nav-card__icon {
  width: var(--icon-size);
  height: var(--icon-size);
  object-fit: contain;
  margin-bottom: 0.25rem;
}

.nav-card__label {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
}

/* --- 8. FOOTER --- */
.landing__footer {
  color: var(--text-secondary);
  font-size: 0.8rem;
  opacity: 0.6;
}

/* --- 9. UTILITIES & ANIMATION --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- 10. RESPONSIVE TWEAKS --- */

/* Mobile Enhancements */
@media (max-width: 480px) {
  
  /* Adds extra space between text and buttons on mobile */
  .landing__description {
    margin-bottom: 2rem; 
  }

  /* Single column for very small devices if needed */
  @media (max-width: 350px) {
    .nav-grid {
      grid-template-columns: 1fr; 
    }
  }
}
