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

:root {
  --navy: #1B2A4A;
  --blue: #2E6B9E;
  --slate: #5A6577;
  --cloud: #F8FAFC;
  --mist: #E2E8F0;
  --steel: #94A3B8;
  --packed: #059669;
  --packed-light: #D1FAE5;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--navy);
  background: var(--cloud);
  min-height: 100vh;
  padding: 0;
}

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 5rem 2rem 4rem;
  background: white;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background: var(--packed-light);
  color: var(--packed);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--packed);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.logo {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.logo span { color: var(--packed); }

.tagline {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

.description {
  font-size: 1rem;
  color: var(--slate);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- How it works ---- */
.how-it-works {
  padding: 4rem 2rem;
  background: var(--cloud);
}

.section-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--slate);
  margin-bottom: 3rem;
  font-size: 1rem;
}

.steps {
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 180px;
  max-width: 200px;
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--packed);
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.8125rem;
  color: var(--slate);
  line-height: 1.6;
}

/* ---- Features ---- */
.features-section {
  padding: 4rem 2rem;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}

.category-header {
  max-width: 1000px;
  margin: 0 auto 1.25rem;
}

.category-header:not(:first-of-type) {
  margin-top: 3rem;
}

.category-label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--packed);
  margin-bottom: 0.25rem;
}

.category-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

.feature-card {
  padding: 1.5rem;
  background: var(--cloud);
  border: 1px solid var(--mist);
  border-radius: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.feature-card h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-card h4::before {
  content: '\2713';
  color: var(--packed);
  font-weight: 800;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.feature-card p {
  font-size: 0.8125rem;
  color: var(--slate);
  line-height: 1.6;
}

/* ---- Use cases ---- */
.use-cases {
  padding: 4rem 2rem;
  background: var(--cloud);
}

.use-case-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  max-width: 700px;
  margin: 0 auto;
}

.use-case {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: white;
  border: 1px solid var(--mist);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
}

.use-case-icon {
  font-size: 1.125rem;
}

/* ---- Template Gallery ---- */
.template-gallery {
  padding: 4rem 2rem;
  background: white;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.filter-pill {
  padding: 0.5rem 1.125rem;
  border-radius: 9999px;
  border: 1px solid var(--mist);
  background: white;
  color: var(--navy);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill:hover {
  border-color: var(--packed);
  color: var(--packed);
}

.filter-pill.active {
  background: var(--packed);
  border-color: var(--packed);
  color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery-card {
  padding: 1.5rem;
  background: var(--cloud);
  border: 1px solid var(--mist);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.gallery-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.gallery-card-emoji {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
}

.gallery-card-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  line-height: 1.3;
}

.gallery-card-meta {
  font-size: 0.75rem;
  color: var(--steel);
  font-weight: 500;
}

.gallery-card-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.2rem 0.625rem;
  border-radius: 9999px;
  background: var(--packed-light);
  color: var(--packed);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: capitalize;
  margin-bottom: 0.75rem;
}

.gallery-card-preview {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  flex: 1;
}

.gallery-card-preview li {
  font-size: 0.8125rem;
  color: var(--slate);
  padding: 0.25rem 0;
  line-height: 1.5;
}

.gallery-card-preview li::before {
  content: '\2713';
  color: var(--packed);
  font-weight: 700;
  font-size: 0.75rem;
  margin-right: 0.5rem;
}

.gallery-card-preview li.more {
  color: var(--steel);
  font-style: italic;
}

.gallery-card-preview li.more::before {
  content: '';
  margin-right: 0;
}

.gallery-card-cta {
  display: block;
  text-align: center;
  padding: 0.625rem 1rem;
  border-radius: 8px;
  background: var(--packed);
  color: white;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}

.gallery-card-cta:hover {
  background: #047857;
}

/* ---- Footer ---- */
.footer {
  text-align: center;
  padding: 3rem 2rem;
  font-size: 0.75rem;
  color: var(--steel);
  background: white;
  border-top: 1px solid var(--mist);
}

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

.footer a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .logo { font-size: 2.5rem; }
  .tagline { font-size: 1.125rem; }
  .steps { flex-direction: column; align-items: center; }
}

.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; z-index: 9999; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; width: auto; height: auto; padding: 8px 16px; background: #1B2A4A; color: #fff; font-size: 14px; font-weight: 600; border-radius: 4px; z-index: 9999; outline: 2px solid #2E6B9E; }
