/* Root variables */
:root {
  --primary: #3B82F6;
  --primary-dark: #2563EB;
  --secondary: #10B981;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text: #1E293B;
  --text-light: #64748B;
  --border: #E2E8F0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

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

/* Header */
header {
  background: var(--surface);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo svg {
  width: 40px;
  height: 40px;
  color: var(--primary);
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
}

.mobile-menu-btn svg {
  width: 28px;
  height: 28px;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 73px;
  left: 0;
  right: 0;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  z-index: 99;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* Main content */
main {
  padding: 3rem 0;
}

/* Sections */
section {
  margin-bottom: 4rem;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 5rem 0;
  text-align: center;
  border-radius: 1rem;
  margin-bottom: 4rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0.95;
}

/* Buttons */
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.cta-btn {
  background: var(--primary);
  color: white;
}

.cta-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.cta-floating {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  box-shadow: var(--shadow-lg);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Cards */
.card {
  background: var(--surface);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: var(--primary);
  color: white;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-icon svg {
  width: 32px;
  height: 32px;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

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

/* Typography */
h1, h2, h3, h4 {
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }

p {
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  background: var(--text);
  color: white;
  padding: 4rem 0 2rem;
  margin-top: 6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.footer a {
  display: block;
  color: #94A3B8;
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

.footer a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #334155;
  text-align: center;
  color: #94A3B8;
  font-size: 0.875rem;
}

/* FAQ */
.faq-item {
  background: var(--surface);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}

.faq-question svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-question.active svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
  padding: 0 1.5rem 1.5rem;
  max-height: 1000px;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Blog */
.blog-meta {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.blog-excerpt {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.blog-list {
  display: grid;
  gap: 2rem;
}

.blog-card {
  background: var(--surface);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card-content {
  padding: 2rem;
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

.breadcrumb a {
  color: var(--text-light);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-floating {
    bottom: 1rem;
    right: 1rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: 3rem 0;
  }

   .footer-grid {
     grid-template-columns: 1fr;
   }
}

/* Utility classes for inline style replacement */
.section-white {
  background: var(--surface);
  border-radius: 1rem;
}

.section-padded {
  padding: 3rem;
}

.section-padded-lg {
  padding: 4rem;
}


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

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

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

.btn-secondary {
  background: var(--secondary);
}

.section-gradient {
  background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
  color: white;
  padding: 4rem;
  border-radius: 1rem;
}

.text-white {
  color: white;
}

.card-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
}

.quote {
  font-style: italic;
  margin-bottom: 1rem;
}

.footer-text {
  color: #94A3B8;
  line-height: 1.8;
}

/* CTA box */
.cta-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  color: white;
}

.opacity-95 {
  opacity: 0.95;
}

.btn-light {
  background: white;
  color: var(--primary);
}

/* Lists */
.list-spaced {
  margin-left: 2rem;
  margin-bottom: 2rem;
}


.info-box {
  margin-top: 3rem;
  padding: 2rem;
  background: #F8FAFC;
  border-radius: 0.75rem;
  border-left: 4px solid var(--primary);
}

/* Step content */
.step-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.step-text {
  flex: 1;
}

/* Feature icons */
.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--primary);
  color: white;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

/* List indent */
.list-indent {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

/* Horizontal centering */
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Testimonials */
.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-name {
  margin-bottom: 0;
}

.testimonial-meta {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 0;
}

.small-text {
  font-size: 0.875rem;
}

.mb-0 {
  margin-bottom: 0;
}

/* CTA gradient variations */
.cta-gradient-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, #059669 100%);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  color: white;
}

.btn-secondary-light {
  background: white;
  color: var(--secondary);
}

.divider {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.unstyled-list {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

/* Additional utilities */
.my-1-5 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.bg-light {
  background: var(--bg);
}

.list-indent-sm {
  margin-left: 1.5rem;
  margin-bottom: 0;
}

/* Blog */
.blog-title-link {
  color: var(--text);
  text-decoration: none;
}

.blog-title-link:hover {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--primary);
}

.nav-links a:hover {
  text-decoration: underline;
}

/* Safety tips */
.tip-content {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.tip-icon {
  width: 48px;
  height: 48px;
  background: var(--secondary);
  color: white;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}


/* Utility spacing */
.mb-3 { margin-bottom: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-1-5 { margin-bottom: 1.5rem; }
.mb-1 { margin-bottom: 1rem; }
.mt-3 { margin-top: 3rem; }
.mt-2 { margin-top: 2rem; }

/* Text utilities */
.text-light { color: var(--text-light); }
.large-text { font-size: 1.25rem; }
.medium-text { font-size: 1.125rem; }
.max-width-700 { max-width: 700px; }
.max-width-600 { max-width: 600px; }

/* Section specific */
.community-cta {
  background: var(--surface);
  padding: 3rem;
  border-radius: 1rem;
  text-align: center;
}

.community-cta p {
  margin: 1.5rem auto 2rem;
  max-width: 600px;
}

