/* --- 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 {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center; /* Vertically center content */
  padding: 1.5rem;
}

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

.landing__container {
  width: 100%;
  max-width: var(--max-width);
  text-align: center;
  /* Subtle animation on load */
  animation: fadeUp 0.6s ease-out;
}

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

.main-logo {
  width: 140px;
  height: 140px;
  border-radius: 50%; /* Circular Logo */
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  border: 4px solid var(--surface-color);
}

.landing__tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 80%;
  margin: 0 auto;
}

/* --- 5. GRID NAVIGATION (THE LOGOS ON TOP) --- */
.nav-grid {
  display: grid;
  /* Creates 2 equal columns */
  grid-template-columns: 1fr 1fr; 
  gap: 1rem;
  margin-bottom: 3rem;
}

.nav-card {
  display: flex;
  flex-direction: column; /* Stacks Icon on top of Text */
  align-items: center;
  justify-content: center;
  background-color: var(--surface-color);
  color: var(--text-primary);
  text-decoration: none;
  padding: 1.5rem 1rem;
  border-radius: var(--card-radius);
  transition: transform 0.2s, background-color 0.2s;
  border: 1px solid rgba(255,255,255,0.05);
}

/* Icon Setup inside the Link */
.nav-card__icon {
  width: var(--icon-size);
  height: var(--icon-size);
  margin-bottom: 0.75rem;
  object-fit: contain;
  /* Fallback visibility if image is missing */
  background-color: rgba(255,255,255,0.1); 
  border-radius: 8px;
}

.nav-card__label {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

/* Hover Effects */
.nav-card:hover {
  background-color: var(--surface-hover);
  transform: translateY(-4px); /* Little pop up effect */
  border-color: rgba(255,255,255,0.2);
}

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

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

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

/* --- Responsive Tweak for very small phones --- */
@media (max-width: 350px) {
  .nav-grid {
    grid-template-columns: 1fr; /* Switch to 1 column on tiny screens */
  }
}
