/* =========================
   GLOBAL RESET
========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: #0B0F1A;
  color: #E5E7EB;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================
   HEADER
========================= */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  position: relative;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
}

/* Hamburger */
.menu-toggle {
  font-size: 1.8rem;
  cursor: pointer;
  display: block;
}

/* Nav (mobile hidden) */
nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 60px;
  right: 20px;
  background: #11162A;
  padding: 1rem;
  border-radius: 12px;
  gap: 1rem;
  min-width: 160px;
}

nav a {
  font-size: 0.95rem;
  opacity: 0.9;
}

nav a:hover {
  opacity: 1;
}

/* Show nav when active */
nav.active {
  display: flex;
}

/* Desktop nav */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: transparent;
    padding: 0;
    gap: 1.8rem;
  }
}

/* =========================
   HERO
========================= */

.hero {
  text-align: center;
  padding: 5rem 2rem 4rem 2rem;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 540px;
  margin: 0 auto 2rem auto;
}

/* =========================
   BUTTONS
========================= */

.btn {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.2s ease;
}

.primary {
  background: #5B8CFF;
  color: #0B0F1A;
}

.primary:hover {
  background: #4a78e0;
}

.secondary {
  border: 1px solid #5B8CFF;
  color: #5B8CFF;
}

.secondary:hover {
  background: #11162A;
}

/* =========================
   SECTIONS
========================= */

.section {
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: auto;
}

/* =========================
   GRID + CARDS
========================= */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #11162A;
  padding: 1.5rem;
  border-radius: 14px;
  transition: 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
}

.template-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.badge {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  text-align: center;
  padding: 2rem;
  opacity: 0.6;
  font-size: 0.9rem;
}