/* ============================================================================
   05 · LANDING CHROME & UTILITIES

   The landing-only navbar, the responsive grid helpers, landing sections and
   the spacing utilities.

   Part of the dashboard stylesheet, split out of the former single style.css.
   LOAD ORDER IS LOAD-BEARING (later parts intentionally override earlier
   ones) — the canonical order is dashboard/views/partials/_app_styles.ejs.
   ========================================================================== */

/* ===== NAVBAR (landing only) ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,18,32,0.80);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.navbar-inner {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--blurple);
  cursor: pointer;
}

.navbar-links {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
@media (min-width: 768px) { .navbar-links { display: flex; } }
.navbar-links a:hover { color: var(--text); }
.navbar-links a.nav-active { color: var(--text); font-weight: 600; }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ===== GRID ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.grid-6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.75rem; }

/* max-width breakpoints must cascade largest → smallest: at phone widths
   BOTH queries match, so the narrower one has to come last to win. */
@media (max-width: 1024px) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  /* 2-col stays dense on phones rather than a tall single stack; only the
     widest grids drop further. */
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .grid-5, .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 340px) {
  .grid-3, .grid-4, .grid-5, .grid-6 { grid-template-columns: 1fr; }
}

.guild-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
}
@media (min-width: 640px) { .guild-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .guild-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== LANDING ===== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(220, 38, 38,0.3) 0%, transparent 60%);
}

.hero-inner {
  max-width: 76rem;
  margin: 0 auto;
  padding: 6rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}
@media (min-width: 768px) {
  .hero-inner { grid-template-columns: 1fr 1fr; padding: 9rem 1.5rem; }
}

.hero-mock {
  display: none;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
}
@media (min-width: 768px) { .hero-mock { display: block; } }

.stat-grid {
  max-width: 76rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }

.section-content {
  max-width: 76rem;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.cta-bg {
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(220, 38, 38,0.15) 0%, transparent 70%);
}

/* ===== SPACING HELPERS ===== */
.p-page { padding: 1.75rem 2rem; }
.page-inner { padding: 1.75rem 2rem; }
.flex-row { display: flex; align-items: center; gap: 0.5rem; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.space-y > * + * { margin-top: 1rem; }
.space-y-sm > * + * { margin-top: 0.5rem; }
.space-y-lg > * + * { margin-top: 1.5rem; }
