/**
 * pn_herosection – pn_herosection.css
 * Standalone dark hero section for PrestaShop homepage.
 * All selectors are namespaced with .pn-hero to avoid conflicts.
 */

/* ─── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=JetBrains+Mono:wght@400;500&family=DM+Sans:wght@300;400;500&display=swap');

/* ─── Custom properties (scoped to section) ────────────────── */
.pn-hero {
  --pn-bg:        #08090d;
  --pn-accent:    #5be3a0;
  --pn-accent2:   #3dc9ff;
  --pn-text:      #e8eaf2;
  --pn-muted:     #6b7280;
  --pn-border:    rgba(255, 255, 255, .07);
  --pn-tag-bg:    rgba(91, 227, 160, .10);
  --pn-tag-text:  #5be3a0;
}

/* ─── Section wrapper ───────────────────────────────────────── */
.pn-hero {
  position: relative;
  background: var(--pn-bg);
  padding: 7rem 1.5rem 5.5rem;
  overflow: hidden;
  isolation: isolate;
  /* Full-bleed if the theme constrains width */
  width: 100%;
  box-sizing: border-box;
}

/* ─── Ambient glow orbs ─────────────────────────────────────── */
.pn-hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.pn-hero__glow--tl {
  top: -10%;
  left: -5%;
  width: 55%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(91, 227, 160, .07) 0%, transparent 70%);
}
.pn-hero__glow--br {
  bottom: -15%;
  right: -5%;
  width: 50%;
  height: 65%;
  background: radial-gradient(ellipse at center, rgba(61, 201, 255, .05) 0%, transparent 65%);
}

/* Subtle noise texture */
.pn-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ─── Inner container ───────────────────────────────────────── */
.pn-hero__container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

/* ─── Badge ─────────────────────────────────────────────────── */
.pn-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--pn-tag-bg);
  border: 1px solid rgba(91, 227, 160, .2);
  color: var(--pn-tag-text);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: .72rem;
  line-height: 1;
  padding: .35rem .9rem;
  border-radius: 99px;
  margin-bottom: 2rem;
  letter-spacing: .01em;
}
.pn-hero__badge-icon {
  font-size: .55rem;
  opacity: .85;
}

/* ─── Headline ──────────────────────────────────────────────── */
.pn-hero__title {
  font-family: 'Syne', sans-serif !important;
  font-weight: 800 !important;
  font-size: clamp(2.6rem, 6vw, 5rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -.04em !important;
  color: var(--pn-text) !important;
  margin: 0 0 1.5rem !important;
  max-width: 780px;
}
.pn-hero__title-accent {
  /* gradient left → right: green → cyan */
  background: linear-gradient(90deg, var(--pn-accent) 0%, var(--pn-accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
  .pn-hero__title-accent {
    color: var(--pn-accent);
    background: none;
  }
}

/* ─── Subtitle ──────────────────────────────────────────────── */
.pn-hero__sub {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--pn-muted);
  max-width: 560px;
  margin: 0 0 2.5rem;
}

/* ─── CTA buttons ───────────────────────────────────────────── */
.pn-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.pn-hero__btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  padding: .8rem 2rem;
  border-radius: 8px;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1;
}

/* Primary – green */
.pn-hero__btn--primary {
  background: var(--pn-accent);
  color: #000 !important;
  box-shadow: 0 0 28px rgba(91, 227, 160, .30);
}
.pn-hero__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 44px rgba(91, 227, 160, .48);
  background: #6aeaaa;
}

/* Ghost – outlined */
.pn-hero__btn--ghost {
  background: transparent;
  color: var(--pn-text) !important;
  border-color: var(--pn-border);
}
.pn-hero__btn--ghost:hover {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .04);
}

/* ─── Stats row ─────────────────────────────────────────────── */
.pn-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--pn-border);
}

.pn-hero__stat {
  display: flex;
  flex-direction: column;
}
.pn-hero__stat-value {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--pn-text);
  line-height: 1;
}
.pn-hero__stat-label {
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  color: var(--pn-muted);
  margin-top: .3rem;
}

/* ─── Entrance animations ───────────────────────────────────── */
@keyframes pnFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pn-hero [data-pn-anim] {
  opacity: 0;
  animation: pnFadeUp .6s ease both;
}
.pn-hero [data-pn-anim="0"] { animation-delay: .00s; }
.pn-hero [data-pn-anim="1"] { animation-delay: .10s; }
.pn-hero [data-pn-anim="2"] { animation-delay: .20s; }
.pn-hero [data-pn-anim="3"] { animation-delay: .30s; }
.pn-hero [data-pn-anim="4"] { animation-delay: .42s; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .pn-hero {
    padding: 5rem 1.25rem 4rem;
  }
  .pn-hero__title {
    font-size: clamp(2.2rem, 8vw, 3.2rem) !important;
  }
  .pn-hero__stats {
    gap: 1.5rem 2rem;
  }
}

@media (max-width: 480px) {
  .pn-hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .pn-hero__btn {
    width: 100%;
    justify-content: center;
  }
}
