/* =============================================================
   Landing overhaul — bento hero, metric cards, frosted marquee
   Charge APRÈS layout.css / ds-public-v2-chrome.css
   ============================================================= */

.hero {
  position: relative;
  padding-top: clamp(5.5rem, 11vw, 8.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background: radial-gradient(ellipse at top, rgba(0, 128, 255, 0.16), transparent 62%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: stretch;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: rgba(var(--color-action-rgb), 0.1);
  border: 1px solid rgba(var(--color-action-rgb), 0.32);
  color: var(--color-action);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(var(--color-action-rgb), 0.18);
}

.hero__cta .btn--primary {
  background: var(--grad-action);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 0 24px rgba(var(--color-action-rgb), 0.35);
  animation: hero-cta-pulse 2.8s ease-out infinite;
}

.hero__cta .btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@keyframes hero-cta-pulse {
  0%, 100% { box-shadow: 0 0 18px rgba(var(--color-action-rgb), 0.28); }
  50% { box-shadow: 0 0 32px rgba(var(--color-action-rgb), 0.5); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__cta .btn--primary { animation: none; }
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.hero__meta > div {
  position: relative;
  padding: 1.05rem 1rem 0.95rem;
  overflow: hidden;
}

.hero__meta > div::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-action), transparent);
  box-shadow: 0 0 12px var(--color-glow);
}

.hero-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.hero-preview::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #0080FF, transparent);
  box-shadow: 0 0 16px rgba(0, 128, 255, 0.55);
}

.hero-preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.hero-preview__live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #34d399;
}

.hero-preview__live .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  animation: hero-live 1.6s ease-in-out infinite;
}

@keyframes hero-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero-preview__rating {
  font-size: 0.78rem;
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
}

.hero-preview__logo-wrap {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 1.25rem 0.5rem;
  position: relative;
}

.hero-preview__logo-wrap::after {
  content: "";
  position: absolute;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(0, 128, 255, 0.22), transparent 68%);
  pointer-events: none;
}

.hero-preview__logo {
  width: min(58%, 220px);
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 28px rgba(0, 128, 255, 0.35));
}

.hero-preview__rows {
  display: grid;
  gap: 0.55rem;
  position: relative;
  z-index: 1;
}

.hero-preview__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-preview__row strong {
  color: var(--text-0);
  font-size: 0.9rem;
}

.hero-preview__row span {
  color: var(--text-1);
  font-size: 0.78rem;
}

.hero-preview__cta {
  margin-top: 0.85rem;
  width: 100%;
  justify-content: center;
}

@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero-preview {
    min-height: 0;
    order: -1;
  }
  .hero__meta {
    grid-template-columns: 1fr;
  }
}

/* Frosted marquee ribbon */
.marquee-ribbon {
  padding-block: 1.05rem;
  margin: 0;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.marquee-ribbon .marquee__track span + span::before {
  content: "•";
  color: var(--color-action);
  margin-inline: 1.1rem;
  text-shadow: 0 0 8px var(--color-glow);
}

/* Pourquoi bento */
.pourquoi-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.9rem;
}

.pourquoi-bento > .card:nth-child(1),
.pourquoi-bento > .card:nth-child(2) {
  grid-column: span 3;
}

.pourquoi-bento > .card:nth-child(n + 3) {
  grid-column: span 2;
}

.pourquoi-bento > .card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  border-radius: 1rem;
  transition: all 200ms ease-out;
}

.pourquoi-bento > .card:hover {
  border-color: rgba(0, 128, 255, 0.4);
  box-shadow: 0 0 24px rgba(0, 128, 255, 0.16);
  transform: translateY(-3px);
}

@media (max-width: 900px) {
  .pourquoi-bento {
    grid-template-columns: 1fr;
  }
  .pourquoi-bento > .card:nth-child(n) {
    grid-column: span 1;
  }
}
