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

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --accent: #ec4899;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text-dark: #1e293b;
  --text-medium: #475569;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 12px;
  --radius-sm: 8px;
}

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-dark);
  background: var(--bg-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
  position: relative;
}

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

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

nav {
  display: flex;
  gap: 32px;
}

nav a {
  text-decoration: none;
  color: var(--text-medium);
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

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

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

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

/* Main Content */
main {
  flex: 1;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 80px 0 100px;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
}

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

/* CTA Buttons */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.15), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.cta-btn:active {
  transform: translateY(0);
}

/* Standard button style for internal actions */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.15), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.btn:active {
  transform: translateY(0);
}

.cta-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 18px 32px;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  z-index: 99;
  animation: pulse 2s infinite;
}

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

/* Sections */
section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-medium);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 60px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.card {
  background: var(--bg-white);
  padding: 32px;
  border-radius: var(--radius);
  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: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: white;
}

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

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

.card p {
  color: var(--text-medium);
  line-height: 1.7;
}

/* Features */
.features {
  background: var(--bg-white);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
}

.feature-item svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-item h4 {
  font-size: 1.125rem;
  margin-bottom: 6px;
}

.feature-item p {
  color: var(--text-medium);
  font-size: 0.95rem;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.blog-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  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: 24px;
}

.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card p {
  color: var(--text-medium);
  font-size: 0.95rem;
  line-height: 1.6;
}

.blog-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 16px;
  text-decoration: none;
}

.blog-card .read-more:hover {
  text-decoration: underline;
}

/* Article Page */
.article {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
  margin-top: 32px;
}

.article h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  line-height: 1.2;
}

.article-meta {
  color: var(--text-medium);
  font-size: 0.9rem;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.article h2 {
  font-size: 1.75rem;
  margin: 40px 0 20px;
}

.article h3 {
  font-size: 1.35rem;
  margin: 32px 0 16px;
}

.article p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: var(--text-medium);
}

.article ul, .article ol {
  margin-bottom: 20px;
  padding-left: 24px;
  color: var(--text-medium);
}

.article li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.article .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 24px;
  text-decoration: none;
}

.article .back-link:hover {
  text-decoration: underline;
}

.related-articles {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.related-articles h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.related-articles ul {
  list-style: none;
  padding: 0;
}

.related-articles li {
  margin-bottom: 12px;
}

.related-articles a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.related-articles a:hover {
  text-decoration: underline;
}

/* Page Content */
.page-content {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
  margin-top: 32px;
}

.page-content h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.page-content h2 {
  font-size: 1.75rem;
  margin: 40px 0 20px;
}

.page-content h3 {
  font-size: 1.35rem;
  margin: 32px 0 16px;
}

.page-content p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: var(--text-medium);
}

.page-content ul, .page-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
  color: var(--text-medium);
}

.page-content li {
  margin-bottom: 10px;
  line-height: 1.7;
}

/* Contact Form */
.contact-form {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

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

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

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

.faq-question:hover {
  color: var(--primary);
}

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

.faq-question[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px 20px;
  color: var(--text-medium);
  line-height: 1.7;
  display: none;
}

.faq-answer.active {
  display: block;
}



/* Footer */
footer {
  background: var(--text-dark);
  color: white;
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 1.125rem;
  margin-bottom: 20px;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 12px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

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

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: var(--shadow);
  }

  nav.active {
    display: flex;
  }

  .section-title {
    font-size: 2rem;
  }

  .page-content, .article {
    padding: 24px;
  }
}

/* Utility */
.text-center { text-align: center; }
.mt-5 { margin-top: 32px; }
.mt-6 { margin-top: 40px; }
.mt-7 { margin-top: 48px; }
.mt-8 { margin-top: 60px; }
.mb-6 { margin-bottom: 40px; }
.mb-8 { margin-bottom: 60px; }

.bg-white-section {
  background: var(--bg-white);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 80px 0;
  text-align: center;
}

.cta-section .section-title {
  color: white;
  margin-bottom: 20px;
}

.cta-section .cta-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 30px;
}

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

.cta-section--small {
  padding: 60px 0;
}

.cta-section--small .section-title {
  font-size: 2rem;
  margin-bottom: 16px;
}

.cta-section--small .cta-text {
  max-width: 500px;
}

/* Large Button */
.btn-large {
  padding: 18px 48px;
  font-size: 1.2rem;
}

/* Testimonials */
.testimonial-quote {
  font-style: italic;
  margin-bottom: 16px;
}

.testimonial-author {
  color: var(--text-dark);
}

/* Footer Text */
.footer-text {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}
