/*!
 * Homepage hero — index.html only (.hero.hero--modern)
 * Scoped so styles.min.css / other pages are unaffected.
 */

/* ── Section wrapper — dark canvas like reference (#05070a) ─ */
.hero.hero--modern {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(4rem, 6vw, 4.35rem) clamp(1rem, 2.4vw, 2rem) 0;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--primary-dark);
}

/* Ambient neon glows */
.hero.hero--modern::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 62% 48% at 9% 13%, rgba(58, 90, 254, 0.22), transparent 58%),
    radial-gradient(ellipse 48% 38% at 84% 36%, rgba(108, 140, 255, 0.2), transparent 62%),
    radial-gradient(ellipse 42% 34% at 82% 86%, rgba(37, 99, 235, 0.28), transparent 64%);
}

/* Faint dotted vignette on the right (reference-style depth) */
.hero.hero--modern::after {
  content: "";
  position: absolute;
  top: 10%;
  right: -5%;
  width: min(55vw, 520px);
  height: 70%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: radial-gradient(rgba(148, 163, 184, 0.28) 1px, transparent 1px);
  background-size: 14px 14px;
  mask-image: radial-gradient(ellipse at center, black 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 10%, transparent 72%);
}

/* ── Layout grid ─────────────────────────────────────────── */
.hero.hero--modern .hero-content {
  width: min(100%, 1320px);
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-container--modern {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(510px, 0.92fr);
  align-items: center;
  gap: clamp(2.4rem, 4vw, 3.8rem);
  width: 100%;
}

/* ── Left: hero text ─────────────────────────────────────── */
.hero-text--modern {
  display: flex;
  flex-direction: column;
  gap: 0.92rem;
  min-width: 0;
  max-width: 700px;
}

/* Eyebrow badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.42rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0;
  color: rgba(203, 213, 225, 0.95);
  background: rgba(13, 24, 55, 0.72);
  border: 1px solid rgba(96, 165, 250, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hero-badge__spark {
  font-size: 0.95rem;
  line-height: 1;
  color: #7aa2ff;
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.5));
}

/* Headline */
.hero.hero--modern .hero-text--modern h1 {
  margin: 0;
  font-size: clamp(2.35rem, 3.6vw, 3.45rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #f8fafc;
  /* defeat any global gradient applied to .hero h1 */
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

/* Gradient span inside H1 */
.hero-gradient-text {
  display: block;
  background: linear-gradient(95deg, #6c8cff 0%, #3a5afe 42%, #2563eb 78%, #6c8cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.15;
}

/* Lead paragraphs — three lines like reference */
.hero-lead {
  margin: 0;
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.42;
  color: rgba(241, 245, 249, 0.94);
  max-width: 36rem;
}

.hero-lead--line2.hero-tier-note {
  margin: 0;
}

.hero-lead--line3 {
  color: rgba(226, 232, 240, 0.92);
}

/* Free vs AI note */
.hero-tier-note {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.42;
  color: rgba(203, 213, 225, 0.88);
}

.hero-tier-note .tier-free {
  color: #4ade80;
  text-shadow: 0 0 24px rgba(74, 222, 128, 0.25);
}
.hero-tier-note .tier-ai {
  color: #e879f9;
  text-shadow: 0 0 24px rgba(232, 121, 249, 0.2);
}

/* ── CTA buttons ─────────────────────────────────────────── */
.hero-cta-buttons--modern {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-self: flex-start;
  gap: 1.25rem;
  margin-top: 0.7rem;
  width: 100%;
}

.hero-cta {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.22rem;
  min-height: 76px;
  padding: 0.9rem 1.45rem;
  border-radius: 9px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  min-width: 248px;
}

.hero-cta__label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.hero-cta__sub {
  font-size: 0.77rem;
  font-weight: 500;
  opacity: 0.82;
  padding-left: 1.6rem; /* align under text past icon */
}

/* Primary — solid electric blue (reference left button) */
.hero-cta--primary {
  color: #fff;
  background: var(--primary-gradient);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 10px 36px rgba(58, 90, 254, 0.42),
    0 1px 0 rgba(255, 255, 255, 0.1) inset;
}
.hero-cta--primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    0 14px 48px rgba(58, 90, 254, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

/* Secondary — site-blue alternate */
.hero-cta--secondary {
  color: #fff;
  background: var(--secondary-gradient);
  border: 1px solid rgba(108, 140, 255, 0.36);
  box-shadow:
    0 10px 38px rgba(37, 99, 235, 0.34),
    0 1px 0 rgba(255, 255, 255, 0.1) inset;
}
.hero-cta--secondary:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow:
    0 14px 50px rgba(58, 90, 254, 0.42),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

/* Light mode buttons */
.light-mode .hero-cta--primary { box-shadow: 0 6px 22px rgba(58,90,254,0.35); }
.light-mode .hero-cta--secondary { box-shadow: 0 6px 22px rgba(37,99,235,0.3); }

/* ── Trust badges ────────────────────────────────────────── */
.hero-trust-badges {
  list-style: none;
  margin: 0.95rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-trust-badges li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 64px;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background: rgba(15, 25, 56, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.hero-trust-badges li:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

.hero-trust-badges li:nth-child(1) i {
  color: #3b82f6;
}
.hero-trust-badges li:nth-child(2) i {
  color: #22c55e;
}
.hero-trust-badges li:nth-child(3) i {
  color: #a855f7;
}

.hero-trust-badges i {
  font-size: 1.28rem;
  flex-shrink: 0;
}

.hero-trust-badge__text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.hero-trust-badge__title {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(241, 245, 249, 0.96);
  line-height: 1.2;
}

.hero-trust-badge__desc {
  font-size: 0.69rem;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.9);
  line-height: 1.2;
}

/* ── Popular tools column + orbit decoration ─────────────── */
.hero-popular-wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  min-width: 0;
  justify-self: end;
  width: min(100%, 525px);
}

@media (min-width: 900px) {
  .hero.hero--modern {
    min-height: max(100vh, 786px);
    padding-top: clamp(6.9rem, 7.5vw, 7.9rem);
  }

  .hero-popular-wrap {
    grid-template-columns: 445px 72px;
    gap: 0.35rem;
    align-items: center;
  }
}

@media (min-width: 1180px) {
  .hero-container--modern {
    grid-template-columns: minmax(620px, 1fr) 525px;
  }
}

@media (min-width: 1280px) {
  .hero-gradient-text {
    white-space: nowrap;
  }
}

@media (max-width: 1179px) {
  .hero-container--modern {
    grid-template-columns: 1fr;
  }

  .hero-text--modern {
    max-width: 760px;
  }

  .hero-popular-wrap {
    justify-self: center;
    order: 2;
  }

  .hero-gradient-text {
    white-space: normal;
  }

  .hero-stats-strip__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 641px) and (max-width: 1179px) {
  .hero.hero--modern {
    padding-top: clamp(6.2rem, 10vw, 7.1rem);
  }

  .hero-container--modern {
    gap: 2.2rem;
  }

  .hero-text--modern {
    width: min(100%, 760px);
    justify-self: center;
    align-items: center;
    text-align: center;
  }

  .hero.hero--modern .hero-badge {
    align-self: center;
  }

  .hero-cta-buttons--modern {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 560px);
    max-width: 560px;
    align-self: center;
    gap: 1rem;
  }

  .hero-cta {
    min-width: 0;
    width: 100%;
    max-width: none;
  }

  .hero-trust-badges {
    width: min(100%, 680px);
    justify-content: center;
    gap: 0.75rem;
  }

  .hero-trust-badges li {
    flex: 1 1 0;
    min-width: 0;
  }

  .hero-popular-wrap {
    width: min(100%, 600px);
    justify-self: center;
    margin-top: 0.35rem;
  }
}

.hero-popular {
  min-width: 0;
}

.hero-popular-deco {
  position: relative;
  width: 72px;
  height: 260px;
  pointer-events: none;
  margin-right: -0.35rem;
}

.hero-popular-deco__arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-popular-deco__orb {
  position: absolute;
  width: 47px;
  height: 47px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.98rem;
  font-weight: 900;
  color: #fff;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  animation: hero-orbit-float 5s ease-in-out infinite;
}

.hero-popular-deco__orb i {
  opacity: 0.95;
}

.hero-popular-deco__orb--1 {
  top: 6%;
  right: 6%;
  background: linear-gradient(135deg, #8155f7, #6d28d9);
  animation-delay: 0s;
}
.hero-popular-deco__orb--2 {
  top: 48%;
  right: 0%;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  animation-delay: 0.6s;
}
.hero-popular-deco__orb--3 {
  bottom: 4%;
  right: 9%;
  background: linear-gradient(135deg, #34d399, #059669);
  animation-delay: 1.2s;
}

@keyframes hero-orbit-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 899px) {
  .hero-popular-deco {
    display: none;
  }
}

.hero-popular-card {
  position: relative;
  height: 100%;
  min-height: 466px;
  padding: 1.25rem 1.15rem 1rem;
  border-radius: 16px;
  background: rgba(10, 17, 48, 0.76);
  border: 1.5px solid rgba(108, 140, 255, 0.58);
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, 0.18) inset,
    0 26px 65px rgba(0, 0, 0, 0.44),
    0 0 68px rgba(58, 90, 254, 0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}

/* Subtle glow ring at top */
.hero-popular-card::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 120px;
  background: radial-gradient(ellipse, rgba(108, 140, 255, 0.16), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-popular-card__header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-popular-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-popular-card__title i { color: #6c8cff; }

.hero-popular-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.72rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 0.75rem;
  font-weight: 600;
  color: #f8fafc;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.hero-popular-card__link:hover { color: #e0e7ff; }

/* ── Tool tiles 3-column grid ────────────────────────────── */
.hero-popular-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.82rem;
}

.hero-popular-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  min-height: 142px;
  padding: 1.15rem 0.55rem 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  background: rgba(17, 28, 63, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.23);
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-popular-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(129, 140, 248, 0.45);
  background: rgba(99, 102, 241, 0.12);
}

/* Large centered icon */
.hero-popular-tile__icon {
  width: 47px;
  height: 47px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.28rem;
  color: #fff;
  flex-shrink: 0;
}

.hero-popular-tile__icon--pdf  { background: linear-gradient(135deg, #f87171, #dc2626); }
.hero-popular-tile__icon--img  { background: linear-gradient(135deg, #34d399, #059669); }
.hero-popular-tile__icon--seo  { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.hero-popular-tile__icon--text { background: linear-gradient(135deg, #c084fc, #9333ea); }
.hero-popular-tile__icon--util { background: linear-gradient(135deg, #fb923c, #ea580c); }
.hero-popular-tile__icon--ai   { background: linear-gradient(135deg, #a78bfa, #7c3aed); }

.hero-popular-tile__name {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.97);
  line-height: 1.25;
}

.hero-popular-tile__desc {
  font-size: 0.64rem;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.9);
  line-height: 1.3;
}

/* AI badge on Talk to PDF tile */
.hero-popular-tile__badge-ai {
  position: absolute;
  top: 0.48rem;
  right: 0.48rem;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.32rem;
  border-radius: 5px;
  background: rgba(124, 58, 237, 0.55);
  border: 1px solid rgba(196, 181, 253, 0.4);
  color: #e9d5ff;
}

/* Footnote strip inside card */
.hero-popular-footnote {
  position: relative;
  z-index: 1;
  min-height: 52px;
  margin: 1rem 0 0;
  padding: 0.6rem 0.78rem;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.85);
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.22);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-popular-footnote i { color: #fbbf24; flex-shrink: 0; }

/* Footnote credits link style */
.hero-popular-footnote__cta {
  color: #38bdf8;
  font-weight: 800;
  text-decoration: none;
  text-shadow: 0 0 18px rgba(56, 189, 248, 0.35);
}
.hero-popular-footnote__cta:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

/* ── Stats strip ─────────────────────────────────────────── */
.hero.hero--modern .hero-badge,
.hero.hero--modern .hero-lead,
.hero.hero--modern .hero-popular-footnote {
  opacity: 1;
  max-width: none;
}

.hero.hero--modern .hero-badge {
  margin: 0;
  font-size: 0.82rem;
}

.hero.hero--modern .hero-lead {
  margin: 0;
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.42;
  max-width: 36rem;
}

.hero.hero--modern .hero-tier-note {
  font-size: 1rem;
  line-height: 1.42;
}

.hero.hero--modern .hero-popular-footnote {
  margin: 1rem 0 0;
  font-size: 0.74rem;
  line-height: 1.45;
}

.hero-stats-strip {
  width: min(100%, 1320px);
  max-width: 1320px;
  margin: 2.55rem auto 0;
  padding: 0 0 3.15rem;
  position: relative;
  z-index: 2;
}

.hero-stats-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  min-height: 108px;
  padding: 0;
  border-radius: 8px;
  background: rgba(11, 19, 46, 0.82);
  border: 1px solid rgba(108, 140, 255, 0.2);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.25),
    0 0 38px rgba(58, 90, 254, 0.08) inset;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-stats-item {
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  justify-content: center;
  column-gap: 0.95rem;
  row-gap: 0.05rem;
  color: rgba(226, 232, 240, 0.9);
  text-align: left;
  padding: 1.15rem 1.25rem;
}

.hero-stats-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 24px;
  right: 0;
  bottom: 24px;
  width: 1px;
  background: rgba(108, 140, 255, 0.22);
}

.hero-stats-item i {
  grid-row: 1 / 3;
  font-size: 2rem;
  line-height: 1;
}

.hero-stats-item strong {
  display: block;
  grid-column: 2;
  font-size: 1.52rem;
  font-weight: 900;
  line-height: 1.1;
}

.hero-stats-item span {
  grid-column: 2;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(241, 245, 249, 0.95);
}

.hero-stats-item--users i {
  color: #3b82f6;
}
.hero-stats-item--users strong {
  color: #3b82f6;
}
.hero-stats-item--shield i {
  color: #22c55e;
}
.hero-stats-item--shield strong {
  color: #34d399;
}
.hero-stats-item--tools i {
  color: #a855f7;
}
.hero-stats-item--tools strong {
  color: #9b5cff;
}
.hero-stats-item--star i {
  color: #fbbf24;
}
.hero-stats-item--star strong {
  color: #fbbf24;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-container--modern {
    grid-template-columns: 1fr;
  }
  .hero-popular-wrap {
    order: 2;
  }
  .hero-text--modern { order: 1; }
  .hero-stats-strip__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* Widen card on tablet */
  .hero-popular-card {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero.hero--modern {
    padding: calc(5.2rem + 2vw) 1rem 0;
  }
  .hero.hero--modern .hero-content,
  .hero-stats-strip {
    width: min(100%, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
  }
  .hero-container--modern,
  .hero-cta-buttons--modern,
  .hero-trust-badges,
  .hero-popular-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .hero-text--modern {
    width: min(100%, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
    min-width: 0;
    justify-self: start;
  }
  .hero.hero--modern .hero-badge {
    max-width: 100%;
    white-space: normal;
  }
  .hero.hero--modern .hero-text--modern h1 {
    
    font-size: clamp(2.0rem, 6.8vw, 1.9rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }
  .hero.hero--modern .hero-lead {
    
    font-size: 1rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  .hero-cta-buttons--modern {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.7rem;
    
    
  }
  .hero-cta {
    min-width: 0;
    width: 100%;
    min-height: 56px;
    padding: 0.65rem 0.95rem;
    border-radius: 8px;
    align-items: flex-start;
    text-align: left;
  }
  .hero-cta__label {
    font-size: 0.9rem;
    gap: 0.45rem;
  }
  .hero-cta__label i,
  .hero-trust-badges i {
    display: inline-flex;
  }
  .hero-cta__sub {
    padding-left: 1.35rem;
    font-size: 0.68rem;
  }
  .hero-trust-badges li {
    flex: 0 0 100%;
    width: 100%;
    min-height: 56px;
    padding: 0.62rem 0.85rem;
    justify-content: flex-start;
    text-align: left;
  }
  .hero-trust-badges {
    width: min(100%, calc(100vw - 3rem));
    max-width: calc(100vw - 3rem);
    gap: 0.55rem;
  }
  .hero-trust-badge__title {
    font-size: 0.78rem;
  }
  .hero-trust-badge__desc {
    font-size: 0.66rem;
  }
  .hero-popular-wrap {
    width: min(100%, calc(100vw - 3rem));
    max-width: calc(100vw - 3rem);
  }
  .hero-popular-card {
    min-height: auto;
    padding: 1rem;
  }
  .hero-popular-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }
  .hero-stats-strip__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: auto;
  }
  .hero-stats-item {
    padding: 1rem 0.75rem;
  }
  .hero-stats-item:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 400px) {
  .hero.hero--modern {
    padding-top: 5rem;
  }
  .hero.hero--modern .hero-content,
  .hero-stats-strip,
  .hero-text--modern,
  .hero-cta-buttons--modern,
  .hero-trust-badges,
  .hero-popular-wrap {
    width: min(100%, calc(100vw - 3rem));
    max-width: calc(100vw - 3rem);
  }
  .hero.hero--modern .hero-text--modern h1 {
    font-size: clamp(1.45rem, 6.8vw, 1.7rem);
  }
  .hero-popular-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats-strip__inner {
    grid-template-columns: 1fr;
  }
  .hero-stats-item {
    justify-content: start;
  }
}

/* ── Light mode ──────────────────────────────────────────── */
.light-mode .hero.hero--modern {
  background:
    var(--body-bg-gradient);
  color: #0f172a;
}

.light-mode .hero.hero--modern::before {
  background:
    radial-gradient(ellipse 58% 42% at 8% 12%, rgba(58, 90, 254, 0.14), transparent 62%),
    radial-gradient(ellipse 48% 38% at 84% 26%, rgba(108, 140, 255, 0.16), transparent 64%),
    radial-gradient(ellipse 42% 32% at 82% 88%, rgba(37, 99, 235, 0.12), transparent 68%);
}

.light-mode .hero.hero--modern::after {
  opacity: 0.42;
  background-image: radial-gradient(rgba(59, 130, 246, 0.22) 1px, transparent 1px);
}

.light-mode .hero-badge {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(59, 130, 246, 0.24);
  color: #172033;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.12);
}

.light-mode .hero.hero--modern .hero-text--modern h1 {
  color: #101827;
  text-shadow: none;
}

.light-mode .hero.hero--modern .hero-lead,
.light-mode .hero.hero--modern .hero-tier-note {
  color: rgba(15, 23, 42, 0.76);
}

.light-mode .hero.hero--modern .hero-lead--line3 {
  color: rgba(15, 23, 42, 0.72);
}

.light-mode .hero-trust-badges li {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(96, 165, 250, 0.2);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}
.light-mode .hero-trust-badge__title { color: #0f172a; }
.light-mode .hero-trust-badge__desc  { color: #53647b; }

.light-mode .hero-popular-card {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(58, 90, 254, 0.34);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.9) inset,
    0 28px 70px rgba(58, 90, 254, 0.13),
    0 0 55px rgba(108, 140, 255, 0.1);
}
.light-mode .hero-popular-card__title { color: #0f172a; }
.light-mode .hero-popular-card__link  {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.12);
  color: #3156e7;
}

.light-mode .hero-popular-tile {
  background: rgba(248, 250, 252, 0.92);
  border-color: rgba(96, 165, 250, 0.18);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}
.light-mode .hero-popular-tile__name { color: #0f172a; }
.light-mode .hero-popular-tile__desc { color: #4b5c72; }

.light-mode .hero-popular-footnote {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.16);
  color: #22324a;
}

.light-mode .hero-stats-strip__inner {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(58, 90, 254, 0.18);
  box-shadow:
    0 24px 60px rgba(58, 90, 254, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.75) inset;
}
.light-mode .hero-stats-item { color: #1e293b; }
.light-mode .hero-stats-item span {
  color: #516075;
}
.light-mode .hero-stats-item:not(:last-child)::after {
  background: rgba(58, 90, 254, 0.14);
}
.light-mode .hero-stats-item--users i {
  color: #2563eb;
}
.light-mode .hero-stats-item--shield i {
  color: #16a34a;
}
.light-mode .hero-stats-item--tools i {
  color: #9333ea;
}
.light-mode .hero-stats-item--star i {
  color: #d97706;
}
