/* ==============================
   HOMEPAGE STYLES v2
   Matches React SaaS design
   ============================== */

/* ── CSS Custom Properties ── */
:root {
  --color-video: 340, 82%, 55%;
  --color-audio: 262, 80%, 60%;
  --color-social: 210, 90%, 55%;
  --color-ai: 160, 70%, 42%;
  --color-privacy: 32, 90%, 55%;
  --color-dev: 220, 70%, 50%;
  --color-screen: 190, 80%, 45%;

  --card-shadow: 0 1px 3px hsla(220, 20%, 14%, 0.06), 0 6px 16px hsla(220, 20%, 14%, 0.08);
  --card-shadow-hover: 0 12px 40px hsla(220, 20%, 14%, 0.14), 0 4px 12px hsla(220, 20%, 14%, 0.06);
  --card-shadow-lg: 0 4px 6px hsla(220, 20%, 14%, 0.04), 0 10px 24px hsla(220, 20%, 14%, 0.1);

  --hero-gradient: linear-gradient(135deg, hsl(340, 82%, 55%) 0%, hsl(262, 80%, 60%) 50%, hsl(210, 90%, 55%) 100%);
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --surface-0: 0, 0%, 100%;
  --surface-50: 210, 40%, 98%;
  --surface-100: 214, 32%, 91%;
  --surface-200: 214, 28%, 84%;
  --text-900: 222, 47%, 11%;
  --text-600: 215, 16%, 47%;
  --text-400: 215, 20%, 65%;
}

/* ── Typography ── */
.hero-title,
.section-title-v2,
.tool-card-title,
.why-card-v2 h3,
.seo-content-card h3,
.cta-card-v2 h2,
.faq-question span {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.hero-subtitle,
.tool-card-desc,
.section-subtitle-v2,
.why-card-v2 p,
.seo-content-card p {
  font-family: 'Inter', sans-serif;
}


/* ══════════════════════════════
   HERO SECTION
   ══════════════════════════════ */
.hero-content {
  text-align: center;
}

.hero-text-wrapper {
  max-width: 820px;
  margin: 0 auto;
}

.hero-subtitle {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  text-wrap: balance;
}

.hero-gradient-text {
  background: var(--hero-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.btn-primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: hsl(var(--color-video));
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px hsla(var(--color-video), 0.25);
  transition: all 0.3s ease;
}

.btn-primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px hsla(var(--color-video), 0.35);
  color: #fff;
  text-decoration: none;
}

.btn-secondary-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #1e293b;
  padding: 14px 28px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary-cta:hover {
  background: #f1f5f9;
  color: #1e293b;
  text-decoration: none;
}

.hero-trust-signals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
  color: #64748b;
}

.hero-trust-signals span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-badge i {
  margin-right: 4px;
}


/* ══════════════════════════════
   STATS SECTION
   ══════════════════════════════ */
.stats-section-v2 {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 56px 0;
}

.stats-grid-v2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item-v2 {
  text-align: center;
  flex: 1;
  min-width: 140px;
  padding: 0 24px;
}

.stat-value-v2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #1e293b;
}

.stat-label-v2 {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-top: 2px;
}

.stat-sub-v2 {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: #e2e8f0;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .stats-grid-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .stat-divider {
    display: none;
  }
}


/* ══════════════════════════════
   SECTION HEADERS
   ══════════════════════════════ */
.section-header-v2 {
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.section-title-v2 {
  font-size: 32px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.2;
}

.section-subtitle-v2 {
  font-size: 18px;
  color: #64748b;
  margin-top: 12px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  width: 100%;
  text-align: center;
  text-wrap: balance;
}

.section-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 16px;
}

.section-chip i {
  color: hsl(var(--color-video));
  font-size: 12px;
}

@media (min-width: 768px) {
  .section-title-v2 {
    font-size: 36px;
  }
}


/* ══════════════════════════════
   TOOLS GRID (Continuous)
   ══════════════════════════════ */
.section-tools-grid {
  padding: 80px 0;
}

.tools-continuous-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .tools-continuous-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tools-continuous-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .tools-continuous-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Tool Card v2 ── */
.tool-card-v2 {
  position: relative;
  display: block;
  padding: 24px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  text-decoration: none;
  color: inherit;
  cursor: default;
  transition: all 0.3s ease;
}

.tool-card-v2:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  text-decoration: none;
  color: inherit;
}

.tool-card-v2:active {
  transform: scale(0.98);
}

/* Category badge */
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: absolute;
  top: 12px;
  left: 12px;
}

.badge-video { background: hsla(var(--color-video), 0.1); color: hsl(var(--color-video)); }
.badge-social { background: hsla(var(--color-social), 0.1); color: hsl(var(--color-social)); }
.badge-ai { background: hsla(var(--color-ai), 0.1); color: hsl(var(--color-ai)); }
.badge-privacy { background: hsla(var(--color-privacy), 0.1); color: hsl(var(--color-privacy)); }
.badge-dev { background: hsla(var(--color-dev), 0.1); color: hsl(var(--color-dev)); }
.badge-screen { background: hsla(var(--color-screen), 0.1); color: hsl(var(--color-screen)); }

/* Icon wrap */
.tool-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin-top: 16px;
  margin-bottom: 12px;
  font-size: 20px;
}

.icon-video { background: hsla(var(--color-video), 0.12); color: hsl(var(--color-video)); }
.icon-social { background: hsla(var(--color-social), 0.12); color: hsl(var(--color-social)); }
.icon-ai { background: hsla(var(--color-ai), 0.12); color: hsl(var(--color-ai)); }
.icon-privacy { background: hsla(var(--color-privacy), 0.12); color: hsl(var(--color-privacy)); }
.icon-dev { background: hsla(var(--color-dev), 0.12); color: hsl(var(--color-dev)); }
.icon-screen { background: hsla(var(--color-screen), 0.12); color: hsl(var(--color-screen)); }

.tool-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px 0;
}

.tool-card-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

.tool-card-link {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: hsl(var(--color-video));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tool-card-v2:hover .tool-card-link {
  opacity: 1;
}


/* ══════════════════════════════
   AD SLOT READY SECTION
   ══════════════════════════════ */
.section-ad-slot {
  padding: 12px 0 36px;
  background: transparent;
}

.section-ad-slot-secondary {
  padding: 0 0 36px;
}

.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 132px;
  padding: 24px 28px;
  border-radius: var(--radius-xl);
  border: 1px dashed hsla(var(--color-dev), 0.24);
  background: linear-gradient(180deg, hsl(var(--surface-0)) 0%, hsl(var(--surface-50)) 100%);
  box-shadow: var(--card-shadow);
  text-align: center;
}

.ad-slot-secondary {
  border-color: hsla(var(--color-social), 0.24);
}

.ad-slot-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: hsla(var(--color-dev), 0.08);
  color: hsl(var(--color-dev));
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ad-slot-secondary .ad-slot-label {
  background: hsla(var(--color-social), 0.08);
  color: hsl(var(--color-social));
}

.ad-slot-copy {
  max-width: 720px;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: hsl(var(--text-600));
}


/* ══════════════════════════════
   WHY CHOOSE SECTION
   ══════════════════════════════ */
.section-why-choose {
  padding: 80px 0;
  background: #f8fafc;
}

.why-grid-v2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .why-grid-v2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .why-grid-v2 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-card-v2 {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.why-card-v2:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 20px;
  margin-bottom: 16px;
}

.why-card-v2 h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px 0;
}

.why-card-v2 p {
  font-size: 13px;
  line-height: 1.7;
  color: #64748b;
  margin: 0;
}


/* ══════════════════════════════
   SEO CONTENT SECTION
   ══════════════════════════════ */
.section-seo-content {
  padding: 80px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.seo-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1024px) {
  .seo-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.seo-content-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.seo-content-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.seo-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.seo-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
  font-size: 20px;
  flex-shrink: 0;
}

.seo-card-header-text h3 {
  font-size: 17px;
  font-weight: 800;
  color: #1e293b;
  margin: 4px 0 0 0;
  line-height: 1.3;
}

.seo-content-card > p {
  font-size: 14px;
  line-height: 1.7;
  color: #64748b;
  margin: 0 0 16px 0;
}

/* Feature pills */
.seo-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
}

.seo-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: hsl(var(--color-video));
  text-decoration: none;
  transition: color 0.2s ease;
}

.seo-card-link:hover {
  text-decoration: underline;
  color: hsl(var(--color-video));
}

.seo-card-link i {
  font-size: 12px;
}


/* ── Privacy Trust Banner ── */
.privacy-trust-banner {
  margin-top: 56px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  text-align: center;
  box-shadow: var(--card-shadow);
}

.trust-banner-icon {
  font-size: 20px;
  color: hsl(var(--color-video));
  margin-bottom: 8px;
}

.trust-banner-label {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--color-video));
  margin-bottom: 12px;
}

.privacy-trust-banner p {
  font-size: 15px;
  line-height: 1.7;
  color: #64748b;
  max-width: 640px;
  margin: 0 auto;
}

.privacy-trust-banner p strong {
  color: #1e293b;
}


/* ══════════════════════════════
   CTA SECTION
   ══════════════════════════════ */
.section-cta {
  padding: 80px 0;
}

.cta-card-v2 {
  position: relative;
  overflow: hidden;
  background: var(--hero-gradient);
  border-radius: var(--radius-2xl);
  padding: 64px 40px;
  text-align: center;
}

.cta-blob {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(40px);
  pointer-events: none;
}

.cta-blob-1 {
  width: 240px;
  height: 240px;
  top: -80px;
  right: -80px;
}

.cta-blob-2 {
  width: 200px;
  height: 200px;
  bottom: -80px;
  left: -80px;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}

.cta-card-v2 h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-card-v2 p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin: 0 auto 32px auto;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #1e293b;
  padding: 14px 32px;
  border-radius: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  color: #1e293b;
  text-decoration: none;
}

@media (min-width: 768px) {
  .cta-card-v2 h2 {
    font-size: 36px;
  }
  .cta-card-v2 {
    padding: 80px 60px;
  }
}


/* ══════════════════════════════
   FAQ SECTION
   ══════════════════════════════ */
.section-faq {
  padding: 80px 0;
  background: linear-gradient(180deg, hsl(var(--surface-50)) 0%, hsl(var(--surface-0)) 100%);
}

.faq-wrapper {
  max-width: 760px;
  margin: 0 auto;
}

.faq-accordion {
  display: grid;
  gap: 16px;
}

.faq-item {
  background: linear-gradient(180deg, hsl(var(--surface-0)) 0%, hsl(var(--surface-50)) 100%);
  border: 1px solid hsla(var(--color-video), 0.14);
  border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow);
  overflow: visible;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
  border-color: hsla(var(--color-video), 0.22);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 28px;
  background: transparent;
  border: none;
  cursor: default;
  text-align: left;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: hsl(var(--text-900));
  transition: background 0.2s ease;
}

.faq-question span {
  flex: 1;
  padding-right: 16px;
}

.faq-item.open .faq-question,
.faq-question:hover {
  background: linear-gradient(180deg, hsla(var(--color-video), 0.04) 0%, transparent 100%);
}

.faq-chevron {
  font-size: 12px;
  color: hsl(var(--color-video));
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
  
}
.faq-chevron {
  display: none;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: none;
  overflow: visible;
  padding: 0 28px 24px 28px;
}



.faq-answer p {
  font-size: 14px;
  line-height: 1.7;
  color: hsl(var(--text-600));
  margin: 0;
}

@media (min-width: 640px) {
  .faq-question {
    font-size: 15px;
    padding: 22px 32px;
  }
  .faq-answer {
    padding: 0 32px 24px 32px;
  }
  
}

/* 🔥 FORCE FAQ VISIBILITY FIX */
.section-faq .faq-answer {
  display: block !important;
  max-height: none !important;
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  overflow: visible !important;
  padding: 0 28px 24px 28px !important;
}


/* ══════════════════════════════
   LEGACY OVERRIDES (keep existing landing-page.css compat)
   ══════════════════════════════ */
.hero-content {
  text-align: center;
}

.hero-text-wrapper {
  max-width: 820px;
  margin: 0 auto;
}

/* Remove old tools grid styles when using new v2 cards */
.tools-continuous-grid .tool-card,
.tools-continuous-grid .feature-card {
  all: unset;
}