/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== Variables ===== */
:root {
  --crimson: #8b0000;
  --crimson-bright: #c62828;
  --gold: #f5a623;
  --gold-dim: #c48a1a;
  --bg-dark: #1a1a1a;
  --bg-darker: #111111;
  --bg-card: #242424;
  --text-primary: #f0f0f0;
  --text-secondary: #aaaaaa;
  --text-muted: #777777;
  --font-heading: "Georgia", "Times New Roman", serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ===== Body ===== */
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-dark);
  line-height: 1.6;
  min-height: 100vh;
}

/* ===== Container ===== */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Navbar ===== */
.navbar {
  background: var(--bg-darker);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--crimson);
}

.brand {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-dot {
  color: var(--gold);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--crimson) 0%, #5a0000 100%);
  padding: 5rem 0 4rem;
  text-align: center;
  border-bottom: 3px solid var(--gold);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.hero-divider {
  width: 80px;
  height: 3px;
  background: var(--gold);
  margin: 2rem auto 0;
  opacity: 0.7;
}

/* ===== Tagline Section ===== */
.tagline-section {
  padding: 3rem 0;
  text-align: center;
  background: var(--bg-darker);
  border-bottom: 1px solid #333333;
}

.tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}

.tagline-emphasis {
  color: var(--gold);
  font-weight: 600;
  font-size: 1.1rem;
}

/* ===== Category Cards ===== */
.categories {
  padding: 4rem 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid #333333;
  border-top: 3px solid var(--crimson-bright);
  border-radius: 4px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-top-color: var(--gold);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--crimson-bright);
}

.card:hover .card-icon {
  color: var(--gold);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.card-badge {
  display: inline-block;
  background: var(--crimson);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 3.5rem 0;
  text-align: center;
  background: var(--bg-darker);
  border-top: 1px solid #333333;
  border-bottom: 1px solid #333333;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.cta-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-darker);
  color: var(--text-muted);
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin-top: 0;
  font-size: 0.85rem;
  line-height: 2;
  border-top: 2px solid var(--crimson);
}

.footer a {
  color: var(--gold-dim);
  text-decoration: none;
}

.footer a:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .tagline {
    font-size: 1.05rem;
  }

  .cta-title {
    font-size: 1.4rem;
  }
}
