/* ==========================================================================
   accueil.css — Erosophia homepage styles
   Sections:
   01. Utilities
   02. Animations / Keyframes
   03. Hero (.top-bg)
   04. Hero content & image
   05. CTA buttons & snake canvas
   06. Fixed signup button
   07. Section shared
   08. About-highlight section
   09. Video section
   10. Update banner
   11. Tests section
   12. Blog preview section
   13. FAQ accordion
   14. Platform stats
   15. CTA closing section
   16. Responsive overrides
   ========================================================================== */


/* ─────────────────────────────────────────────────────────────────────────
   01. UTILITIES
   ───────────────────────────────────────────────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ─────────────────────────────────────────────────────────────────────────
   02. ANIMATIONS / KEYFRAMES
   ───────────────────────────────────────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes ribbonShine {
  0%       { left: -75%; }
  60%, 100%{ left: 125%; }
}

/* Badge mise à jour sur les cartes test */
.ribbon-update {
  position: absolute;
  top: 22px;
  right: -26px;
  width: 120px;
  padding: .32rem 0;
  background: linear-gradient(135deg, #b8860b 0%, #ffd700 40%, #fffacd 55%, #ffd700 70%, #b8860b 100%);
  color: #3b2600;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(45deg);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .5);
  z-index: 3;
  overflow: hidden;
}

.ribbon-update::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
  animation: ribbonShine 2.8s ease-in-out infinite;
}

/* ─────────────────────────────────────────────────────────────────────────
   03. HERO — .top-bg
   ───────────────────────────────────────────────────────────────────────── */

.top-bg {
  margin-top: -2px;
  z-index: 1;
  width: 100%;
  height: 90vh;
  position: relative;
  box-sizing: border-box;
  padding: 0 5vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 50%, #0f0a3c 0, #0a0025 100%);
}


/* ─────────────────────────────────────────────────────────────────────────
   04. HERO CONTENT & IMAGE
   ───────────────────────────────────────────────────────────────────────── */

/* Left: text block */
.hero-content {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: fadeUp 1.2s ease-out both;
  color: #fff;
  z-index: 2;
  position: relative;
}

.hero-content img {
  max-height: clamp(6rem, 15vw, 12rem);
  width: auto;
}

.logo-hero {
  max-height: clamp(8rem, 20vw, 16rem);
  width: auto;
  min-height: 8rem;
  content-visibility: auto;
}

svg.logo-hero {
  max-width: clamp(12rem, 38vw, 28rem);
  width: 100%;
  height: auto;
  max-height: none;
  min-height: 0;
  margin-bottom: 0;  /* géré par le style inline du SVG */
}

@media (max-width: 900px) {
  svg.logo-hero {
    max-width: clamp(10rem, 55vw, 18rem);
    margin-bottom: 1rem !important;
  }
}

@media (max-width: 480px) {
  svg.logo-hero {
    max-width: clamp(10rem, 60vw, 16rem);
    max-height: none;
    min-height: 0;
    margin-bottom: 1rem !important;
  }
}

.slogan {
  margin: .5rem 0 2rem;
  font-size: clamp(1rem, 2vw, 1.5rem);
  text-shadow: 0 2px 6px rgba(0, 0, 0, .5);
  animation: fadeUp 1s ease-out both;
  animation-delay: .6s;
}

/* Right: student image */
.hero-right {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: auto;
  height: 100%;
  animation: fadeIn 1.5s ease-out both;
  animation-delay: .6s;
}

.student-image {
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  display: block;
  opacity: .5;
  mask-image: linear-gradient(
    to right,
    transparent 0,
    rgba(0, 0, 0, .05)  3%,
    rgba(0, 0, 0, .15)  6%,
    rgba(0, 0, 0, .30)  9%,
    rgba(0, 0, 0, .50) 12%,
    rgba(0, 0, 0, .70) 15%,
    rgba(0, 0, 0, .85) 18%,
    #000 22%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    rgba(0, 0, 0, .05)  3%,
    rgba(0, 0, 0, .15)  6%,
    rgba(0, 0, 0, .30)  9%,
    rgba(0, 0, 0, .50) 12%,
    rgba(0, 0, 0, .70) 15%,
    rgba(0, 0, 0, .85) 18%,
    #000 22%
  );
}

/* Promo text overlay on the image */
.hero-promo-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 95%;
  padding: 1.5rem;
  z-index: 3;
}

.promo-main {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 600;
  margin: 10rem 0 2rem;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .5);
  line-height: 1.4;
}

.promo-sub {
  font-size: clamp(.9rem, 1.75vw, 1.35rem);
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .5);
  line-height: 1.4;
}

/* Breakpoints for hero image fade */
@media (max-width: 1400px) { .hero-content { max-width: 500px; } }

@media (max-width: 1200px) {
  .hero-content  { max-width: 450px; }
  .hero-right    { max-width: 400px; }
  .student-image {
    max-width: 400px;
    mask-image: linear-gradient(
      to right,
      transparent 0,
      rgba(0,0,0,.10)  5%,
      rgba(0,0,0,.25) 10%,
      rgba(0,0,0,.50) 15%,
      rgba(0,0,0,.75) 20%,
      #000 25%
    );
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0,
      rgba(0,0,0,.10)  5%,
      rgba(0,0,0,.25) 10%,
      rgba(0,0,0,.50) 15%,
      rgba(0,0,0,.75) 20%,
      #000 25%
    );
  }
}

@media (max-width: 1024px) {
  .hero-content { max-width: 400px; }
  .hero-right   { max-width: 350px; }
  .student-image {
    max-width: 350px;
    mask-image: linear-gradient(
      to right,
      transparent 0,
      rgba(0,0,0,.15)  7%,
      rgba(0,0,0,.35) 14%,
      rgba(0,0,0,.60) 21%,
      #000 28%
    );
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0,
      rgba(0,0,0,.15)  7%,
      rgba(0,0,0,.35) 14%,
      rgba(0,0,0,.60) 21%,
      #000 28%
    );
  }
  .promo-main { font-size: clamp(1.125rem, 2vw, 1.375rem); }
  .promo-sub  { font-size: clamp(.9rem, 1.5vw, 1.125rem); }
}

@media (max-width: 900px) {
  .top-bg {
    height: auto !important;
    min-height: auto !important;
    padding: 3rem 0 0 !important;
    align-items: center !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 2rem !important;
  }

  .hero-content {
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0 !important;
    padding: 0 4vw !important;
    order: 1 !important;
    flex-shrink: 0 !important;
  }

  .cta-button { align-self: center !important; }

  .hero-right {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    right: auto !important;
    height: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    animation: fadeIn 1s ease-out both !important;
    order: 2 !important;
    flex-shrink: 0 !important;
  }

  .student-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 0 !important;
    display: block !important;
    mask-image: linear-gradient(
      to bottom,
      transparent 0,
      rgba(0,0,0,.05)  3%,
      rgba(0,0,0,.15)  6%,
      rgba(0,0,0,.30)  9%,
      rgba(0,0,0,.50) 12%,
      rgba(0,0,0,.70) 15%,
      rgba(0,0,0,.85) 18%,
      #000 22%
    ) !important;
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0,
      rgba(0,0,0,.05)  3%,
      rgba(0,0,0,.15)  6%,
      rgba(0,0,0,.30)  9%,
      rgba(0,0,0,.50) 12%,
      rgba(0,0,0,.70) 15%,
      rgba(0,0,0,.85) 18%,
      #000 22%
    ) !important;
  }

  .hero-promo-text {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin-top: 0 !important;
    padding: 1rem !important;
  }

  .slogan      { text-align: center !important; }
  .logo-hero   { margin: 0 auto !important; }
  .video-section    { margin-top: 0 !important; }
}


/* ─────────────────────────────────────────────────────────────────────────
   05. CTA BUTTONS & SNAKE CANVAS
   ───────────────────────────────────────────────────────────────────────── */

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #1f7cff 0, #0052cc 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .2);
  position: relative;
  overflow: hidden;
}

  .cta-button:hover { background: #ffffff; color: #1f7cff;}

/* Snake border wrapper around hero CTA */
.cta-snake-wrap {
  position: relative;
  display: inline-block;
}

.snake-canvas-hero {
  position: absolute;
  border-radius: 50px;
  pointer-events: none;
  z-index: 0;
}

.cta-snake-wrap .cta-button {
  position: relative;
  z-index: 1;
}

/* Deux boutons hero côte à côte */
.cta-hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Variante outline pour le second bouton hero */
.cta-button--secondary {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, .7);
  box-shadow: none;
}

.cta-button--secondary:hover {
  background-color: #ffffff !important;
  color: #120A3B !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
}

@media (max-width: 600px) {
  .cta-hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-hero-buttons .cta-button {
    text-align: center;
  }
}


/* ─────────────────────────────────────────────────────────────────────────
   06. FIXED SIGNUP BUTTON
   ───────────────────────────────────────────────────────────────────────── */

.fixed-signup-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.75rem;
  background: rgba(10, 0, 37, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-weight: 700;
  font-size: clamp(.875rem, 1.25vw, 1rem);
  text-decoration: none;
  border-radius: 50px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(16px) scale(.97);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease, box-shadow .3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .35);
}

.fixed-signup-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.fixed-signup-btn:hover {
  box-shadow: 0 6px 30px rgba(31, 124, 255, .45);
  transform: translateY(-2px) scale(1.02);
}

.fixed-signup-btn span {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.snake-canvas {
  position: absolute;
  inset: -4px;
  border-radius: 50px;
  pointer-events: none;
}

@media (max-width: 480px) {
  .fixed-signup-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    padding: .75rem 1.25rem;
    font-size: .85rem;
  }
}


/* ─────────────────────────────────────────────────────────────────────────
   07. SECTION — SHARED
   ───────────────────────────────────────────────────────────────────────── */

main {
  position: relative;
  z-index: 1;
  margin-bottom: 0 !important;
}

main section {
  position: relative;
  background-color: #f8f8f8;
  z-index: 1;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: #0a0025;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -.02em;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #1f7cff, #0052cc);
  margin: 1rem auto 0;
  border-radius: 2px;
}

#footer-placeholder {
  position: relative;
  width: 100%;
  z-index: 1;
}

footer {
  position: relative;
  background-color: #0a0025;
}


/* ─────────────────────────────────────────────────────────────────────────
   08. ABOUT-HIGHLIGHT SECTION
   ───────────────────────────────────────────────────────────────────────── */

.about-highlight-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(2rem, 5vw, 3.5rem);
  position: relative;
}

.about-highlight-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.about-highlight-eyebrow {
  display: inline-block;
  font-size: clamp(.72rem, 1.1vw, .8rem);
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #1f7cff;
  background: rgba(31, 124, 255, .08);
  padding: .28rem .8rem;
  border-radius: 50px;
  width: fit-content;
}

.about-highlight-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: #0a0025;
  margin: 0;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.about-highlight-title::after { display: none; }

.about-highlight-desc {
  font-size: clamp(.9rem, 1.5vw, 1rem);
  color: #666;
  line-height: 1.75;
  margin: 0;
  max-width: 480px;
}

.about-highlight-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  width: fit-content;
  padding: .8rem 1.75rem;
  background: linear-gradient(135deg, #1f7cff 0%, #0052cc 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(.9rem, 1.4vw, 1rem);
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(31, 124, 255, .25);
  transition: transform .25s ease, box-shadow .25s ease;
  margin-top: .4rem;
}

.about-highlight-btn svg       { transition: transform .25s ease; }
.about-highlight-btn:hover     { background:#ffffff;color:#1067E6; transform:translateY(-2px); box-shadow: 0 7px 20px rgba(31, 124, 255, .38); }
.about-highlight-btn:hover svg { transform: translateX(4px); }

/* ── Déco : logo tournant + loupe ── */

.about-highlight-deco {
  flex-shrink: 0;
  width: clamp(120px, 15vw, 180px);
  height: clamp(120px, 15vw, 180px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-highlight-deco svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

@media (max-width: 768px) {
  .about-highlight-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.75rem;
  }

  .about-highlight-eyebrow,
  .about-highlight-btn { margin: 0 auto; }

  .about-highlight-desc { max-width: 100%; }

  .about-highlight-deco {
    width: clamp(100px, 30vw, 140px);
    height: clamp(100px, 30vw, 140px);
  }
}

@media (max-width: 480px) {
  .about-highlight-inner   { padding: 2rem 1.25rem; }
}

/* ─────────────────────────────────────────────────────────────────────────
   09. VIDEO SECTION
   ───────────────────────────────────────────────────────────────────────── */

.video-section {
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 5vw, 3rem) clamp(3rem, 6vw, 5rem);
  background: linear-gradient(to bottom, #0a0025 0, #1a1450 100%);
  position: relative;
  overflow: hidden;
  margin-top: -2px;
}

.video-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(31, 124, 255, .08) 0, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(31, 124, 255, .05) 0, transparent 50%);
  pointer-events: none;
}

.video-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.video-title {
  text-align: center;
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -.02em;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  animation: fadeUp 1s ease-out both;
}

.video-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #1f7cff, #0052cc);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 255, 255, .1);
  background: #000;
  animation: fadeUp 1s ease-out both;
  animation-delay: .3s;
}

/* 16:9 aspect-ratio box */
.video-wrapper::before {
  content: '';
  display: block;
  padding-bottom: 56.25%;
}

.promotional-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
}

.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s ease, opacity .3s ease;
  opacity: .95;
  padding: 0;
}

.video-play-overlay:hover {
  transform: translate(-50%, -50%) scale(1.1);
  opacity: 1;
}

.video-play-overlay svg { filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .3)); }

.video-play-overlay:focus {
  outline: 3px solid #1f7cff;
  outline-offset: 4px;
  border-radius: 50%;
}

@media (max-width: 768px) {
  .video-section {
    padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 4vw, 1.5rem) clamp(2rem, 5vw, 3rem);
  }
  .video-title {
    font-size: clamp(1.75rem, 6vw, 2rem);
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  }
  .video-play-overlay svg { width: 60px; height: 60px; }
}

@media (max-width: 480px) {
  .video-section { padding: clamp(2.5rem, 7vw, 4rem) clamp(.75rem, 3vw, 1rem) clamp(1.5rem, 4vw, 2.5rem); }
  .video-play-overlay svg { width: 50px; height: 50px; }
}

/* ─────────────────────────────────────────────────────────────────────────
   11. TESTS SECTION
   ───────────────────────────────────────────────────────────────────────── */

.tests-section {
  padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 5vw, 3rem);
  background: linear-gradient(160deg, #0a0025 0%, #111444 60%, #0d0035 100%);
}

.tests-section .section-title {
  color: #fff;
}

.tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  max-width: 1200px;
  margin: 0 auto;
}

.test-card {
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 1.75rem);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
  position: relative;
  overflow: hidden;
}

.test-card:hover {
  background: rgba(31, 124, 255, .10);
  border-color: rgba(31, 124, 255, .35);
  box-shadow: 0 8px 20px rgba(31, 124, 255, .12);
}

/* Neutralisation des fonds colorés — fond bleu unifié */
.blue-card, .green-card, .red-card {
  background: rgba(255, 255, 255, .04);
  color: inherit;
  box-shadow: none;
}

.blue-card:hover, .green-card:hover, .red-card:hover {
  background: rgba(31, 124, 255, .10);
  border-color: rgba(31, 124, 255, .35);
  box-shadow: 0 8px 20px rgba(31, 124, 255, .12);
}

.test-card h3 {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  margin: 0 0 .875rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.015em;
  line-height: 1.25;
}

.test-card p {
  line-height: 1.65;
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, .72);
  font-size: .9375rem;
  text-align: left;
}

/* Pricing inside test cards */
.card-pricing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
  padding: .6rem .85rem;
  background: rgba(255, 255, 255, .06);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .10);
}

.card-pricing-item {
  font-size: .82rem;
  color: rgba(255, 255, 255, .80);
  white-space: nowrap;
}

.card-pricing-item strong {
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
}

.card-pricing-sep {
  color: rgba(255, 255, 255, .30);
  font-size: .75rem;
  user-select: none;
}

.test-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  font-weight: 500;
  font-size: .875rem;
  transition: gap .18s, color .18s;
}

.test-link:hover { gap: .5rem; color: #fff; }


/* ─────────────────────────────────────────────────────────────────────────
   12. BLOG PREVIEW SECTION
   ───────────────────────────────────────────────────────────────────────── */

.blog-preview-section {
  padding: 4rem 2rem;
  background: #f8f9fa;
}

.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 2rem auto 0;
}

.blog-preview-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: transform .2s, box-shadow .2s;
}

.blog-preview-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
}

/* Card image */
.blog-preview-img-link {
  display: block;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  margin: -1.5rem -1.5rem 0;
}

.blog-preview-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.blog-preview-card:hover .blog-preview-img { transform: scale(1.03); }

/* Meta row */
.blog-preview-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.blog-preview-category {
  background: #1f7cff;
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.blog-preview-date {
  color: #999;
  font-size: .8rem;
}

.blog-preview-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: break-word;
}

.blog-preview-excerpt {
  font-size: .9rem;
  color: #555;
  line-height: 1.6;
  flex-grow: 1;
  margin: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.blog-preview-link {
  color: #1f7cff;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  align-self: flex-start;
  transition: color .2s;
}

.blog-preview-link:hover { color: #0056d2; text-decoration: underline; }

.blog-preview-all-link {
  display: inline-block;
  border: 2px solid #1f7cff;
  color: #1f7cff;
  padding: .6rem 1.6rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.blog-preview-all-link:hover { background: #1f7cff; color: #fff; }

@media (max-width: 900px) { .blog-preview-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-preview-grid { grid-template-columns: 1fr; } }


/* ─────────────────────────────────────────────────────────────────────────
   13. FAQ ACCORDION
   ───────────────────────────────────────────────────────────────────────── */

.faq-section {
  padding: clamp(3rem, 5vw, 4.5rem) clamp(1.5rem, 5vw, 3rem);
  background: linear-gradient(160deg, #f4f7ff 0%, #ffffff 50%, #f0f4ff 100%);
  position: relative;
  overflow: hidden;
}

.faq-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(31, 124, 255, .06) 0%, transparent 70%);
  pointer-events: none;
}

.faq-section::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 82, 204, .05) 0%, transparent 70%);
  pointer-events: none;
}

.faq-section .section-title {
  position: relative;
  z-index: 1;
}

/* Accordion list */
.faq-container {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(10, 0, 37, .08), 0 1px 4px rgba(10, 0, 37, .04);
  border: 1px solid #e0e8f5;
}

.faq-item {
  background: #fff;
  border-radius: 0;
  margin-bottom: 0;
  border: none;
  border-bottom: 1px solid #e8edf5;
  overflow: hidden;
  position: relative;
}

.faq-item:first-child { border-radius: 16px 16px 0 0; }
.faq-item:last-child  { border-radius: 0 0 16px 16px; border-bottom: none; }
.faq-item:only-child  { border-radius: 16px; }

.faq-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s ease;
  list-style: none;
}

.faq-item-header:hover { background: #f7faff; }

.faq-item-header h3 {
  color: #0a0025;
  font-size: clamp(1rem, 1.75vw, 1.2rem);
  font-weight: 600;
  margin: 0;
  line-height: 1.45;
  flex: 1;
}

.faq-chevron {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s ease, transform .35s cubic-bezier(.4, 0, .2, 1);
  color: #1f7cff;
}

.faq-chevron svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  background: #1f7cff;
  color: #fff;
}

.faq-item-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.4, 0, .2, 1), padding .3s ease;
  padding: 0 clamp(1.25rem, 3vw, 2rem);
}

.faq-item.open .faq-item-body {
  max-height: 4000px;
  padding-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

.faq-item-body p,
.faq-item-body ul {
  color: #444;
  line-height: 1.85;
  font-size: clamp(.9rem, 1.4vw, 1rem);
  margin: 0 0 1rem;
}

.faq-item-body p:last-child,
.faq-item-body ul:last-child { margin-bottom: 0; }

.faq-item-body ul {
  padding-left: 0;
  list-style: none;
}

.faq-item-body ul li {
  padding: .5rem 0 .5rem 1.75rem;
  position: relative;
  border-bottom: 1px solid #f0f0f5;
}

.faq-item-body ul li:last-child { border-bottom: none; }

.faq-item-body ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #1f7cff;
  font-weight: 700;
}

.faq-item-body p.note {
  background: #f0f8ff;
  border-left: 3px solid #1f7cff;
  border-radius: 0 8px 8px 0;
  padding: .75rem 1rem;
  font-size: clamp(.85rem, 1.3vw, .95rem);
  color: #333;
  margin-top: 1rem;
}

/* Comparison table embedded inside FAQ */
.comparison-table-container {
  background: #fff;
  border-top: 1px solid #e8edf5;
  border-bottom: 1px solid #e8edf5;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 2rem);
}

.comparison-title {
  text-align: center;
  color: #0a0025;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
}

.comparison-title::before,
.comparison-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d0dff5);
  max-width: 80px;
}

.comparison-title::after {
  background: linear-gradient(90deg, #d0dff5, transparent);
}

.table-responsive {
  overflow-x: auto;
  border-radius: 12px;
  width: 100%;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: clamp(.82rem, 1.3vw, .95rem);
}

.comparison-table thead tr th {
  background: #0a0025;
  color: #fff;
  font-weight: 700;
  padding: .85rem 1rem;
  text-align: center;
  letter-spacing: .03em;
  font-size: clamp(.85rem, 1.3vw, .95rem);
}

.comparison-table thead tr th:first-child  { text-align: left; border-radius: 12px 0 0 0; }
.comparison-table thead tr th:last-child   { border-radius: 0 12px 0 0; }
.comparison-table thead tr th:nth-child(2) { background: #1256a8; }
.comparison-table thead tr th:nth-child(3) { background: #0a3d7a; }

.comparison-table tbody tr { transition: background .15s; }
.comparison-table tbody tr:hover           { background: #f5f8ff !important; }
.comparison-table tbody tr:nth-child(even) { background: #fafbff; }

.comparison-table tbody tr td {
  padding: .75rem 1rem;
  border-bottom: 1px solid #edf0f8;
  vertical-align: middle;
  line-height: 1.5;
}

.comparison-table tbody tr td:first-child      { text-align: left; font-weight: 600; color: #0a0025; }
.comparison-table tbody tr td:not(:first-child) { text-align: center; color: #333; }

.comparison-table tbody tr:last-child td             { border-bottom: none; }
.comparison-table tbody tr:last-child td:first-child { border-radius: 0 0 0 12px; }
.comparison-table tbody tr:last-child td:last-child  { border-radius: 0 0 12px 0; }

/* Pricing row highlight */
.pricing-row { background: linear-gradient(90deg, #f0f6ff, #e8f2ff) !important; }
.pricing-row td { border-top: 2px solid #1f7cff !important; border-bottom: 2px solid #1f7cff !important; }
.pricing-row td:first-child { font-weight: 700; color: #1f7cff !important; }

.pricing-cell   { text-align: center !important; padding: 1.25rem !important; }
.pricing-content { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.pricing-text   { color: #0a0025; font-weight: 600; font-size: clamp(.88rem, 1.4vw, .98rem); }

.table-note {
  margin-top: .85rem;
  font-size: .82rem;
  color: #888;
  font-style: italic;
  text-align: center;
}

/* FAQ bottom CTA */
.faq-link-container {
  max-width: 860px;
  margin: 2.5rem auto 0;
  text-align: center;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
  border-top: 1px solid rgba(31, 124, 255, .15);
  position: relative;
  z-index: 1;
}

.faq-link-container p {
  color: #444;
  font-size: clamp(1rem, 1.75vw, 1.15rem);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.faq-link-button {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  width: fit-content;
  padding: .8rem 1.75rem;
  background: linear-gradient(135deg, #1f7cff 0%, #0052cc 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(.9rem, 1.4vw, 1rem);
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(31, 124, 255, .25);
  transition: transform .25s ease, box-shadow .25s ease;
}

.faq-link-button svg       { transition: transform .25s ease; }
.faq-link-button:hover     { background: #ffffff; color: #1067E6; transform: translateY(-2px); box-shadow: 0 7px 20px rgba(31, 124, 255, .38); }
.faq-link-button:hover svg { transform: translateX(4px); }

@media (max-width: 768px) {
  .faq-item-header               { padding: 1rem 1.25rem; }
  .faq-item.open .faq-item-body  { padding: 0 1.25rem 1rem; }
  .comparison-table-container    { padding: 1.25rem; }
  .comparison-table              { font-size: .78rem; }
  .comparison-table thead tr th,
  .comparison-table tbody tr td  { padding: .6rem .5rem; }
  .pricing-content               { gap: .5rem; }
}

@media (max-width: 480px) {
  .faq-section { padding: 2.5rem 1rem; }
}


/* ─────────────────────────────────────────────────────────────────────────
   15. PLATFORM STATS
   ───────────────────────────────────────────────────────────────────────── */

.platform-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
  max-width: 1100px;
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: clamp(1.75rem, 3vw, 2.25rem) clamp(1.25rem, 2.5vw, 1.75rem);
  background: rgba(255, 255, 255, .04);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .09);
  transition: background .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease;
  position: relative;
  overflow: hidden;
}

.stat-item:hover {
  background: rgba(31, 124, 255, .10);
  border-color: rgba(31, 124, 255, .35);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(31, 124, 255, .12);
}

/* Decorative corner glyphs */
.stat-item:nth-child(1)::after { content: '✦'; }
.stat-item:nth-child(2)::after { content: '◈'; }
.stat-item:nth-child(3)::after { content: '⚡'; }
.stat-item:nth-child(4)::after { content: '◉'; }

.stat-item::after {
  position: absolute;
  bottom: .85rem;
  right: 1rem;
  font-size: 1.1rem;
  color: rgba(31, 124, 255, .25);
  line-height: 1;
  pointer-events: none;
  transition: color .3s ease;
}

.stat-item:hover::after { color: rgba(31, 124, 255, .5); }

.stat-number {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -.01em;
  color: #fff;
  margin-bottom: .5rem;
  line-height: 1.2;
}

.stat-label {
  color: rgba(255, 255, 255, .55);
  font-size: clamp(.8rem, 1.3vw, .9rem);
  line-height: 1.5;
  font-weight: 400;
}

@media (max-width: 768px) {
  .platform-stats { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

@media (max-width: 480px) {
  .platform-stats { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .stat-item      { padding: 1.25rem 1rem; }
  .stat-number    { font-size: clamp(.95rem, 3.5vw, 1.1rem); }
}


/* ─────────────────────────────────────────────────────────────────────────
   16. CTA CLOSING SECTION
   ───────────────────────────────────────────────────────────────────────── */

.cta-section {
  margin-bottom: -2px;
  padding: clamp(5rem, 10vw, 7rem) clamp(1.5rem, 5vw, 3rem);
  background: linear-gradient(135deg, #0a0025 0, #1a1450 100%);
  text-align: center;
  color: #fff;
}

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: -.02em;
}

.cta-section p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 2.5rem;
  opacity: .9;
}


/* ─────────────────────────────────────────────────────────────────────────
   17. RESPONSIVE OVERRIDES — shared, small-screen
   ───────────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  /* Shared section padding */
  .faq-section,
  .tests-section,
  .video-section {
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 3vw, 1.5rem);
  }

  .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 1rem 2rem;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .2);
  }

  .hero-content,
  .slogan { animation: none !important; }

}

@media (max-width: 480px) {
  .section-title {
    font-size: clamp(1.75rem, 6vw, 2rem);
  }

  .logo-hero {
    max-height: clamp(4.5rem, 12vw, 7rem);
    min-height: 4.5rem;
  }

  .cta-button {
    padding: 1rem 1.5rem;
    font-size: clamp(.95rem, 1.3vw, 1rem);
  }

  .cta-section,
  .tests-section {
    padding: clamp(3rem, 8vw, 4rem) clamp(1rem, 4vw, 1.5rem);
  }

  .faq-section,
  .video-section {
    padding: clamp(2rem, 5vw, 3rem) clamp(.75rem, 2.5vw, 1rem);
  }
}
