* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
  background: #f8fafc;
  color: #0f172a;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Sticky header */
.sticky-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  padding: 0.8rem 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo a {
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: -0.5px;
  color: #2563eb;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-menu a {
  text-decoration: none;
  font-weight: 600;
  color: #1e293b;
  padding: 0.5rem 0.25rem;
  border-bottom: 2px solid transparent;
  transition: 0.2s;
}

.nav-menu a:hover {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

@media (max-width: 600px) {
  .sticky-header {
    padding: 0.8rem 1rem;
  }
  .nav-container {
    flex-direction: column;
    gap: 0.5rem;
  }
  .nav-menu {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Main layout */
main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
  width: 100%;
}

section {
  margin-bottom: 5rem;
  scroll-margin-top: 90px;
}

h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #0f172a;
  border-left: 8px solid #2563eb;
  padding-left: 1.5rem;
}

/* Promo section */
.promo-card {
  background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
  border-radius: 2rem;
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 30px -10px rgba(0, 20, 80, 0.15);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
}

.promo-text {
  flex: 2 1 300px;
}

.promo-text h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #0f172a;
}

.promo-text p {
  font-size: 1.3rem;
  color: #334155;
  margin: 1.5rem 0 2rem;
}

.cta-button {
  display: inline-block;
  background: #2563eb;
  color: white;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 60px;
  text-decoration: none;
  font-size: 1.25rem;
  box-shadow: 0 8px 16px -6px #2563eb80;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background: #1d4ed8;
  transform: scale(1.02);
  box-shadow: 0 12px 20px -8px #1d4ed8;
}

.promo-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
}

.badge {
  background: #2563eb10;
  color: #2563eb;
  font-weight: 600;
  border-radius: 30px;
  padding: 0.3rem 1rem;
  display: inline-block;
  margin-bottom: 1rem;
}

/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.blog-card {
  background: white;
  border-radius: 1.5rem;
  padding: 1.8rem;
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #e9eef3;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 30px -16px #2563eb50;
}

.blog-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.blog-date {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1rem;
  border-bottom: 1px dashed #cbd5e1;
  padding-bottom: 0.8rem;
}

.blog-content {
  color: #1e293b;
  margin-bottom: 1rem;
  flex: 1;
}

.blog-image {
  width: 100%;
  border-radius: 1rem;
  margin: 1rem 0 0.5rem;
}

/* FAQ */
.faq-list {
  background: white;
  border-radius: 2rem;
  padding: 2rem;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,0.1);
}

.faq-item {
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.faq-question::before {
  content: "Q:";
  color: #2563eb;
  font-weight: 800;
  font-size: 1.8rem;
}

.faq-answer {
  margin-top: 0.8rem;
  padding-left: 2.5rem;
  color: #334155;
}

.faq-answer::before {
  content: "A:";
  color: #16a34a;
  font-weight: 700;
  margin-right: 0.6rem;
}

/* Footer */
footer {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  text-align: center;
  padding: 2rem;
  font-size: 1.1rem;
  border-top: 4px solid #2563eb;
}

footer p {
  max-width: 1200px;
  margin: 0 auto;
}
/* ---------- Mobile menu toggle ---------- */
.menu-toggle {
  display: none; /* hidden on desktop */
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #2563eb;
  padding: 0 0.5rem;
  line-height: 1;
  transition: color 0.2s;
}

.menu-toggle:hover {
  color: #1d4ed8;
}

@media (max-width: 600px) {
  .menu-toggle {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1100;
  }

  .nav-container {
    position: relative;
    min-height: 60px;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: white;
    position: absolute;
    top: 60px;
    left: 0;
    padding: 1rem 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 0 0 1rem 1rem;
    z-index: 1000;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    text-align: center;
    margin: 0.5rem 0;
  }
}

/* ---------- Back to top button ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #2563eb;
  color: white;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
  opacity: 0.9;
}

.back-to-top:hover {
  transform: scale(1.1);
  opacity: 1;
}

@media (max-width: 600px) {
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}

/* Touch-friendly hover fix for iOS */
.js-enabled .blog-card,
.js-enabled .cta-button {
  -webkit-tap-highlight-color: transparent;
}