.longform-page {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  background: #f8fafc;
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.longform-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 6vw, 4rem);
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 35%, #0f766e 100%);
  color: #f8fafc;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.longform-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(59, 130, 246, 0.35) 0%, transparent 55%),
    radial-gradient(circle at 80% 75%, rgba(16, 185, 129, 0.25) 0%, transparent 55%);
  pointer-events: none;
  opacity: 0.85;
}

.longform-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.longform-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(15, 118, 110, 0.25);
  color: #bbf7d0;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.longform-hero__content h1 {
  margin: 0;
  font-size: clamp(2.6rem, 4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 24px 48px rgba(15, 23, 42, 0.35);
}

.longform-hero__content p {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: #e2e8f0;
}

.longform-hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.longform-hero__actions .btn {
  min-width: 160px;
  text-decoration: none;
}

.longform-hero__media {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 660px;
  justify-self: center;
}

.longform-hero__image,
.longform-hero__image img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 32px 60px rgba(15, 23, 42, 0.35);
  display: block;
}

.longform-hero__note {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  color: #e0f2fe;
}

.longform-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 0 clamp(1.5rem, 5vw, 3rem);
}

.longform-stat {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 45px -18px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.longform-stat__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1d4ed8;
}

.longform-stat strong {
  font-size: 1.3rem;
  color: #0f172a;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.5rem);
  color: #0f172a;
}

.longform-value__grid,
.longform-offerings__grid,
.longform-proof__grid,
.longform-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  justify-content: center;
  justify-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.longform-value__card,
.longform-offering,
.longform-proof__card,
.longform-related__card {
  background: #fff;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  padding: 1.75rem;
  box-shadow: 0 24px 50px -18px rgba(15, 23, 42, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.longform-value__card h3,
.longform-offering h3,
.longform-proof__card h3,
.longform-related__card h3 {
  margin: 0;
  font-size: 1.35rem;
  color: #0f172a;
}

.longform-value__card p,
.longform-offering p,
.longform-related__card p {
  margin: 0;
  line-height: 1.6;
  color: #475569;
}

.longform-offering ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.5rem;
  color: #334155;
}

.longform-process__timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  justify-content: center;
  justify-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.longform-process__step {
  background: #fff;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 28px 55px -20px rgba(15, 23, 42, 0.25);
}

.longform-process__step-number {
  background: #0f766e;
  color: #ecfdf5;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 1.25rem 0 0 1.25rem;
}

.longform-process__step h3 {
  margin: 1rem 1.5rem 0.5rem;
  font-size: 1.2rem;
  color: #0f172a;
}

.longform-process__step p {
  margin: 0 1.5rem 1.5rem;
  color: #475569;
  line-height: 1.6;
}

.longform-proof__card {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 60%, #2563eb 100%);
  color: #f8fafc;
  text-align: left;
}

.longform-proof__card p {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.longform-related__card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.longform-related__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 55px -12px rgba(59, 130, 246, 0.3);
}

@media (max-width: 1024px) {
  .longform-hero {
    grid-template-columns: 1fr;
  }

  .longform-hero__media {
    order: -1;
  }
  
  .longform-value__grid,
  .longform-offerings__grid,
  .longform-proof__grid,
  .longform-related__grid,
  .longform-process__timeline {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .longform-hero__actions {
    flex-direction: column;
  }

  .longform-hero {
    padding: 3rem 1.5rem;
  }
  
  .longform-value__grid,
  .longform-offerings__grid,
  .longform-proof__grid,
  .longform-related__grid,
  .longform-process__timeline {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 0.5rem;
  }
  
  .longform-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 0 1rem;
  }
}

/* FAQ Section Integration */
.faq-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.faq-section h2 {
  text-align: center;
  font-size: clamp(2rem, 3vw, 2.5rem);
  color: #0f172a;
  margin-bottom: 2rem;
}

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

.faq-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 0.75rem;
}

.faq-section p {
  color: #475569;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .faq-section > div {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .longform-related__card,
  .longform-process__step,
  .longform-stat {
    transition: none;
  }
}
