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

html {
  scroll-padding-top: 72px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  padding-top: 64px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #fff;
  color: #111827;
  line-height: 1.6;
}

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

/* ──────────────────────────────────
   Navigation
   ────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
  transition: box-shadow 0.2s;
}

.nav.scrolled {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 32px;
  width: auto;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #374151;
  border-radius: 1px;
  transition: all 0.2s;
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background-color: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 20px;
  flex-direction: column;
  gap: 4px;
}

.nav-links.nav-open {
  display: flex;
}

.nav-link {
  display: block;
  padding: 10px 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.15s;
}

.nav-link:hover {
  background-color: #f3f4f6;
  color: #111827;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background-color: #f97316;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s;
  margin-top: 8px;
}

.nav-cta:hover {
  background-color: #ea580c;
}

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

  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 0;
  }

  .nav-cta {
    margin-top: 0;
    margin-left: 12px;
  }
}

/* ──────────────────────────────────
   Buttons
   ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background-color: #f97316;
  color: #fff;
}

.btn-primary:hover {
  background-color: #ea580c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

.btn-outline {
  background-color: transparent;
  color: #374151;
  border: 1.5px solid #d1d5db;
}

.btn-outline:hover {
  border-color: #111827;
  transform: translateY(-1px);
}

.btn-large {
  padding: 14px 32px;
  font-size: 1rem;
}

/* ──────────────────────────────────
   Hero Section
   ────────────────────────────────── */
.hero {
  text-align: center;
  padding: 64px 0 80px;
  background-color: #fafaf8;
}

.hero .container {
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ecfdf5;
  color: #059669;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 28px;
  border: 1px solid rgba(5, 150, 105, 0.15);
}

h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }
}

.subtitle {
  font-size: 1.125rem;
  color: #4b5563;
  margin: 0 0 36px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Trust Indicators */
.trust-indicators {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #4b5563;
}

.check-icon {
  width: 18px;
  height: 18px;
  color: #22c55e;
  flex-shrink: 0;
}

/* ──────────────────────────────────
   Section Headings (shared)
   ────────────────────────────────── */
h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  h2 {
    font-size: 2.25rem;
  }
}

.section-subtitle {
  font-size: 1.0625rem;
  color: #6b7280;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

/* ──────────────────────────────────
   Features Section
   ────────────────────────────────── */
.features {
  padding: 80px 0;
  background-color: #fff;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background-color: #fafaf8;
  transition: all 0.25s;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: #f97316;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.icon-orange {
  background-color: #fff7ed;
  color: #f97316;
}

.icon-green {
  background-color: #ecfdf5;
  color: #059669;
}

.icon-indigo {
  background-color: #eef2ff;
  color: #6366f1;
}

.icon-amber {
  background-color: #fffbeb;
  color: #d97706;
}

.icon-purple {
  background-color: #faf5ff;
  color: #9333ea;
}

.icon-emerald {
  background-color: #ecfdf5;
  color: #10b981;
}

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px;
}

.feature-card p {
  font-size: 0.9375rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

/* ──────────────────────────────────
   Widget Showcase Section
   ────────────────────────────────── */
.widget-showcase {
  padding: 80px 0;
  background-color: #fafaf8;
}

.showcase-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 64px;
}

.showcase-row:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .showcase-row {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }

  .showcase-row-reverse .showcase-image {
    order: 2;
  }

  .showcase-row-reverse .showcase-text {
    order: 1;
  }
}

.showcase-image img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.showcase-badge-icon {
  width: 14px;
  height: 14px;
}

.badge-orange {
  background-color: #fff7ed;
  color: #ea580c;
}

.badge-blue {
  background-color: #eff6ff;
  color: #2563eb;
}

.showcase-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px;
  text-align: left;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .showcase-text h3 {
    font-size: 1.75rem;
  }
}

.showcase-body {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.7;
  margin: 0 0 20px;
}

.showcase-checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.showcase-checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: #4b5563;
  line-height: 1.5;
}

.showcase-check {
  width: 20px;
  height: 20px;
  color: #22c55e;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ──────────────────────────────────
   How It Works Section
   ────────────────────────────────── */
.how-it-works {
  padding: 80px 0;
  background-color: #fafaf8;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  padding: 32px;
  border-radius: 14px;
  background-color: #fff;
  border: 1px solid #e5e7eb;
  transition: all 0.25s;
}

.step-card:hover {
  border-color: #f97316;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: #fff7ed;
  color: #f97316;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px;
}

.step-card p {
  font-size: 0.9375rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

/* ──────────────────────────────────
   Code Preview Section
   ────────────────────────────────── */
.code-preview {
  padding: 80px 0;
  background-color: #fff;
}

.code-window {
  max-width: 640px;
  margin: 0 auto;
  background-color: #0f1923;
  border-radius: 14px;
  overflow: hidden;
}

.code-dots {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background-color: #ff5f57; }
.dot-yellow { background-color: #febc2e; }
.dot-green { background-color: #28c840; }

.code-content {
  padding: 24px;
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo,
    Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  overflow-x: auto;
}

.code-comment { color: rgba(255, 255, 255, 0.25); }
.code-tag { color: #f97316; }
.code-attr { color: #fbbf24; }
.code-string { color: #4ade80; }

/* ──────────────────────────────────
   Pricing Section
   ────────────────────────────────── */
.pricing {
  padding: 80px 0;
  background-color: #fafaf8;
}

.pricing-comparison {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pricing-comparison {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }
}

.pricing-card {
  border-radius: 16px;
  background-color: #fff;
  overflow: hidden;
  position: relative;
}

.pricing-them {
  border: 1px solid #e5e7eb;
}

.pricing-us {
  border: 2px solid #f97316;
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.12);
}

@media (min-width: 768px) {
  .pricing-us {
    transform: scale(1.03);
  }
}

.pricing-badge {
  position: absolute;
  top: 0;
  right: 24px;
  background-color: #f97316;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 0 0 8px 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card-header {
  padding: 32px 32px 0;
}

.pricing-card-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
  margin: 0 0 8px;
  text-align: left;
}

.pricing-us .pricing-card-header h3 {
  color: #111827;
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: #111827;
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-amount span {
  font-size: 1rem;
  font-weight: 500;
  color: #6b7280;
}

.pricing-features {
  list-style: none;
  padding: 24px 32px 32px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.pricing-feature.negative {
  color: #9ca3af;
}

.pricing-feature.negative span {
  text-decoration: line-through;
}

.pricing-feature.positive {
  color: #111827;
}

.pricing-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-feature.negative .pricing-icon {
  color: #d1d5db;
}

.pricing-feature.positive .pricing-icon {
  color: #22c55e;
}

.pricing-cta {
  display: block;
  margin: 0 32px 32px;
  text-align: center;
  width: calc(100% - 64px);
}

/* ──────────────────────────────────
   FAQ Section
   ────────────────────────────────── */
.faq-section {
  padding: 80px 0;
  background-color: #fff;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-section h2 {
  margin-bottom: 48px;
}

.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item[open] {
  border-color: #f97316;
}

.faq-question {
  display: block;
  padding: 18px 22px;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  background-color: #fff;
  transition: background-color 0.15s;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  float: right;
  font-size: 1.25rem;
  font-weight: 400;
  color: #f97316;
  transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
  content: '\2212';
}

.faq-question:hover {
  background-color: #fff7ed;
}

.faq-answer {
  padding: 0 22px 18px;
  font-size: 0.9375rem;
  color: #4b5563;
  line-height: 1.7;
  margin: 0;
}

/* ──────────────────────────────────
   Final CTA Section
   ────────────────────────────────── */
.final-cta {
  padding: 80px 0;
  background-color: #0f1923;
  text-align: center;
}

.final-cta h2 {
  color: #fff;
  max-width: 680px;
  margin: 0 auto 16px;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.0625rem;
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* ──────────────────────────────────
   Footer
   ────────────────────────────────── */
.footer {
  border-top: 1px solid #e5e7eb;
  padding: 24px 20px;
  text-align: center;
}

.powered-by {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 12px;
}

.powered-by a {
  color: #f97316;
  text-decoration: none;
  font-weight: 500;
}

.powered-by a:hover {
  text-decoration: underline;
}

.footer-links {
  font-size: 0.875rem;
}

.footer-links a {
  color: #6b7280;
  text-decoration: none;
}

.footer-links a:hover {
  color: #f97316;
}

.separator {
  color: #d1d5db;
  margin: 0 12px;
}
