:root {
  color-scheme: light;
  --breezy-blue: #5371ec;
  --breezy-blue-dark: #2c48b3;
  --breezy-yellow: #ecce53;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --body-bg: #f8fafc;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  margin: 0;
  color: var(--slate-900);
  background: var(--body-bg);
  font-family: inherit;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(1200px, 100%);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 1.5rem);
}

.section {
  padding-block: clamp(3.5rem, 6vw, 5rem);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: rgba(83, 113, 236, 0.85);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--slate-600);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
  border: 1px solid #f1f5f9;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  inset-inline: 0;
  background: var(--breezy-blue);
  color: #fff;
  box-shadow: 0 12px 30px rgba(83, 113, 236, 0.25);
  z-index: 10;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-weight: 500;
}

.primary-nav a {
  color: #fff;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a.is-active {
  opacity: 1;
  transform: translateY(-2px);
}

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

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--breezy-blue);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
}

.btn-primary {
  background: var(--breezy-yellow);
  color: var(--breezy-blue);
  box-shadow: 0 15px 30px rgba(236, 206, 83, 0.45);
}

.btn-primary:hover {
  background: #ffe177;
}

.menu-toggle {
  display: none;
  padding: 0.35rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.menu-toggle svg {
  width: 1.75rem;
  height: 1.75rem;
}

.mobile-panel {
  display: none;
  background: var(--breezy-blue);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.mobile-panel.open {
  display: block;
  animation: fade-down 0.25s ease;
}

.mobile-panel nav {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 0 1.75rem;
}

.mobile-panel a {
  color: #fff;
  padding: 0.35rem 0;
  font-weight: 500;
}

.mobile-panel .auth-actions {
  flex-direction: column;
  padding-top: 1rem;
}

@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero */
.hero {
  background: linear-gradient(120deg, var(--breezy-blue), var(--breezy-blue-dark));
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.35), transparent 50%);
  opacity: 0.4;
  pointer-events: none;
}

.hero-content {
  position: relative;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-image {
  justify-self: center;
}

.hero-image img {
  border-radius: 1.5rem;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.25);
  border: 3px solid rgba(255, 255, 255, 0.4);
}

.stats-row {
  margin-top: 2.5rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stat {
  min-width: 180px;
  border-left: 3px solid rgba(255, 255, 255, 0.7);
  padding-left: 1rem;
}

.stat strong {
  font-size: 2rem;
  display: block;
}

/* Categories */
.categories {
  background: #fff;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.category-card {
  position: relative;
  border-radius: 1.25rem;
  padding: 1.75rem;
  background: var(--body-bg);
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.07);
}

.category-icon {
  font-size: 2.5rem;
  display: inline-flex;
  margin-bottom: 1rem;
}

.category-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  font-weight: 600;
  color: var(--slate-600);
}

.category-link {
  color: var(--breezy-blue);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Featured images */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.featured-card {
  background: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.1);
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.featured-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.featured-card .card-body {
  padding: 1.75rem;
  flex: 1;
}

/* How it works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
  position: relative;
}

.step-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--breezy-blue);
  background: rgba(83, 113, 236, 0.08);
}

.section-faq {
  background: #fff;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.faq-item {
  background: var(--body-bg);
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.faq-item h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.faq-item p {
  margin: 0;
  color: var(--slate-600);
}

/* Newsletter */
.newsletter {
  background: var(--breezy-blue);
  color: #fff;
  border-radius: 1.75rem;
  padding: clamp(2.5rem, 4vw, 3.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.25), transparent 50%);
  opacity: 0.6;
}

.newsletter-content {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.newsletter h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.newsletter p {
  margin-bottom: 1.75rem;
  opacity: 0.95;
}

.newsletter form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter input {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.15);
  padding: 0.85rem 1.25rem;
  color: #fff;
}

.newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.newsletter small {
  display: block;
  margin-top: 1rem;
  opacity: 0.75;
}

.form-message {
  margin-top: 0.75rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-column h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  color: var(--slate-600);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-column a {
  color: var(--slate-600);
}

.footer-column a:hover {
  color: var(--breezy-blue);
}

.social-links {
  display: flex;
  gap: 0.85rem;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  display: grid;
  place-items: center;
  color: var(--slate-600);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
  border-color: var(--breezy-blue);
  color: var(--breezy-blue);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid #e2e8f0;
  margin-top: 2.5rem;
  padding: 1.5rem 0;
  text-align: center;
  color: var(--slate-600);
  font-size: 0.95rem;
}

/* Interior pages */
.page-hero {
  padding: clamp(4rem, 6vw, 5rem) 0 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(83, 113, 236, 0.12), rgba(83, 113, 236, 0.02));
}

.page-hero h1 {
  font-size: clamp(2.25rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.page-content {
  padding-block: 2rem 4rem;
}

.page-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid #f1f5f9;
}

.page-card p,
.page-card li {
  color: var(--slate-700);
}

.page-card ul {
  padding-left: 1.5rem;
}

.page-card li + li {
  margin-top: 0.75rem;
}

.page-card h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.not-found {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.not-found a {
  color: var(--breezy-blue);
  font-weight: 600;
  text-decoration: underline;
}

/* Responsive tweaks */
@media (max-width: 960px) {
  .primary-nav,
  .auth-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-content {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .category-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .stats-row {
    flex-direction: column;
  }

  .newsletter {
    border-radius: 1.25rem;
  }
}

@media (min-width: 640px) {
  .newsletter form {
    flex-direction: row;
    align-items: center;
  }

  .newsletter input {
    flex: 1 1 auto;
  }

  .newsletter button {
    flex: none;
    padding-inline: 2rem;
  }
}
