/* Homepage — enriched backgrounds & layout */

.ah-home {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(47, 111, 143, 0.12), transparent 55%),
    var(--ah-surface);
}

.ah-home .ah-mast {
  background: rgba(246, 248, 251, 0.75);
}

/* —— Hero —— */
.ah-hero--home {
  min-height: clamp(520px, 88vh, 720px);
  padding: clamp(4rem, 10vw, 6rem) 0 clamp(5rem, 8vw, 6.5rem);
  display: flex;
  align-items: center;
}

.ah-hero--home .ah-hero__overlay {
  background:
    linear-gradient(125deg, rgba(15, 28, 46, 0.94) 0%, rgba(15, 28, 46, 0.72) 45%, rgba(26, 51, 80, 0.5) 100%),
    linear-gradient(to top, rgba(15, 28, 46, 0.85) 0%, transparent 40%);
}

.ah-hero__decor {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.ah-hero__mesh {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(200, 164, 92, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 164, 92, 0.15) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 80% at 30% 50%, #000 20%, transparent 75%);
}

.ah-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}

.ah-hero__orb--1 {
  width: 320px;
  height: 320px;
  top: 10%;
  right: 8%;
  background: rgba(200, 164, 92, 0.35);
  animation: ah-float 14s ease-in-out infinite;
}

.ah-hero__orb--2 {
  width: 240px;
  height: 240px;
  bottom: 15%;
  left: 5%;
  background: rgba(47, 111, 143, 0.45);
  animation: ah-float 18s ease-in-out infinite reverse;
}

.ah-hero__orb--3 {
  width: 160px;
  height: 160px;
  top: 40%;
  left: 40%;
  background: rgba(255, 255, 255, 0.08);
  animation: ah-float 11s ease-in-out infinite 2s;
}

.ah-hero__line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--ah-accent) 20%, var(--ah-teal) 50%, var(--ah-accent) 80%, transparent);
  opacity: 0.7;
}

.ah-hero__layout {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2rem;
  align-items: end;
}

@media (min-width: 960px) {
  .ah-hero__layout {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
  }
}

.ah-hero--home .ah-hero__content {
  max-width: none;
}

.ah-hero--home h1 {
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.25);
}

.ah-hero__eyebrow {
  padding: 0.4rem 0.85rem;
  background: rgba(200, 164, 92, 0.15);
  border: 1px solid rgba(200, 164, 92, 0.35);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.ah-hero__panel {
  display: none;
}

@media (min-width: 960px) {
  .ah-hero__panel {
    display: block;
  }
}

.ah-hero__panel-inner {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: calc(var(--ah-radius) + 4px);
  padding: 1.5rem 1.6rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.ah-hero__panel-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ah-accent), var(--ah-teal));
}

.ah-hero__panel-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ah-accent);
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.ah-hero__panel-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.45;
  margin: 0 0 1rem;
}

.ah-hero__panel-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.ah-hero__panel-list li {
  color: #c5d3e2;
  font-size: 0.9rem;
  padding: 0.35rem 0 0.35rem 1.25rem;
  position: relative;
}

.ah-hero__panel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ah-accent);
  transform: translateY(-50%);
}

.ah-hero__panel-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ah-ink);
  background: var(--ah-accent);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

/* Trust marquee */
.ah-trust {
  position: relative;
  z-index: 5;
  background: var(--ah-ink);
  border-block: 1px solid rgba(200, 164, 92, 0.25);
  overflow: hidden;
  padding: 0.85rem 0;
  isolation: isolate;
}

.ah-trust__viewport {
  overflow: hidden;
  width: 100%;
}

.ah-trust__track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: ah-marquee var(--marquee-duration, 36s) linear infinite;
  will-change: transform;
  opacity: 0;
}

.ah-trust__track.is-ready {
  opacity: 1;
}

.ah-trust__group {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-shrink: 0;
}

.ah-trust__group span {
  color: #b8c5d6;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ah-trust__group span:nth-child(odd) {
  color: var(--ah-accent);
}

.ah-trust__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.ah-trust__fade--left {
  left: 0;
  background: linear-gradient(90deg, var(--ah-ink), transparent);
}

.ah-trust__fade--right {
  right: 0;
  background: linear-gradient(270deg, var(--ah-ink), transparent);
}

/* Section backgrounds */
.ah-home .ah-section {
  position: relative;
  overflow: hidden;
}

.ah-section__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ah-home .ah-section > .ah-wrap {
  position: relative;
  z-index: 1;
}

.ah-section__bg--dots {
  background-image: radial-gradient(circle, rgba(47, 111, 143, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.8;
}

.ah-section__bg--mesh {
  background:
    radial-gradient(circle at 10% 20%, rgba(200, 164, 92, 0.08), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(47, 111, 143, 0.1), transparent 45%),
    linear-gradient(180deg, transparent, rgba(15, 28, 46, 0.02));
}

.ah-section__bg--gradient {
  background:
    linear-gradient(135deg, rgba(232, 242, 247, 0.9) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 0%, rgba(200, 164, 92, 0.12), transparent 50%);
}

.ah-section__bg--lines {
  background: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 40px,
    rgba(15, 28, 46, 0.03) 40px,
    rgba(15, 28, 46, 0.03) 41px
  );
}

.ah-section__bg--blob {
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(47, 111, 143, 0.14), transparent),
    radial-gradient(ellipse 50% 60% at 100% 30%, rgba(200, 164, 92, 0.1), transparent);
}

.ah-section__bg--quote {
  background:
    radial-gradient(circle at 50% 0%, rgba(200, 164, 92, 0.06), transparent 55%);
}

.ah-section__bg--quote::after {
  content: "\201C";
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--ah-font-display);
  font-size: clamp(8rem, 20vw, 14rem);
  color: rgba(15, 28, 46, 0.04);
  line-height: 1;
  pointer-events: none;
}

/* Stats — below trust strip, no overlap */
.ah-section--stats {
  margin-top: 0;
  padding-top: clamp(2rem, 5vw, 3.25rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(15, 28, 46, 0.04) 0%,
    var(--ah-surface) 48px,
    var(--ah-surface) 100%
  );
}

/* AOS fade-up — do not override opacity; library handles visibility */
.ah-stats--glass .ah-stat[data-aos].aos-init {
  will-change: transform, opacity;
}

.ah-stats--glass .ah-stat.ah-stat--revealed,
.ah-stats--glass .ah-stat.aos-animate {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.ah-stats--glass .ah-stat {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--ah-line);
  color: var(--ah-ink-soft);
  box-shadow: var(--ah-shadow);
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ah-stats--glass .ah-stat.aos-animate:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(15, 28, 46, 0.12);
}

.ah-stats--glass .ah-stat strong {
  color: var(--ah-ink);
  background: linear-gradient(135deg, var(--ah-accent-deep), var(--ah-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ah-stats--glass .ah-stat span {
  color: var(--ah-ink-muted);
}

/* Framed images */
.ah-split__media--framed {
  position: relative;
  border-radius: var(--ah-radius);
  box-shadow: none;
}

.ah-split__media--framed img {
  border-radius: var(--ah-radius);
  position: relative;
  z-index: 1;
}

.ah-split__frame {
  position: absolute;
  inset: -12px -12px 12px 12px;
  border: 2px solid var(--ah-accent);
  border-radius: var(--ah-radius);
  opacity: 0.55;
  z-index: 0;
}

.ah-split__frame--alt {
  inset: 12px -12px -12px 12px;
  border-color: var(--ah-teal);
}

.ah-split__cta {
  margin-top: 1.5rem;
}

/* Cards lift & featured */
.ah-card--lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ah-card--lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(15, 28, 46, 0.12);
  border-color: rgba(200, 164, 92, 0.4);
}

.ah-card--featured {
  background: linear-gradient(160deg, var(--ah-surface-elevated) 0%, #fafbfc 100%);
  border-color: rgba(200, 164, 92, 0.35);
  position: relative;
}

.ah-card--featured::before {
  content: "Phare";
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ah-ink);
  background: var(--ah-accent);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.ah-card--featured .ah-card__icon {
  background: linear-gradient(135deg, var(--ah-ink), #1a3350);
  color: var(--ah-accent);
}

/* Connected steps */
.ah-steps--connected {
  position: relative;
}

@media (min-width: 768px) {
  .ah-steps--connected::before {
    content: "";
    position: absolute;
    top: 2.5rem;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, var(--ah-line), var(--ah-accent), var(--ah-teal), var(--ah-line));
    z-index: 0;
  }

  .ah-steps--connected .ah-step {
    position: relative;
    z-index: 1;
    text-align: center;
  }

  .ah-steps--connected .ah-step__num {
    display: inline-block;
    background: var(--ah-surface-elevated);
    padding: 0 0.5rem;
  }
}

.ah-section--process .ah-step {
  border-color: rgba(47, 111, 143, 0.2);
}

/* Styled quotes */
.ah-quote--styled {
  background: var(--ah-surface-elevated);
  border: 1px solid var(--ah-line);
  border-left: none;
  border-radius: var(--ah-radius);
  padding: 1.75rem 1.75rem 1.5rem 2rem;
  box-shadow: var(--ah-shadow-soft);
  position: relative;
}

.ah-quote__mark {
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  font-family: var(--ah-font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--ah-accent);
  opacity: 0.35;
}

.ah-quote--styled p {
  position: relative;
  z-index: 1;
  font-size: 1.02rem;
}

/* Rich CTA */
.ah-section--cta {
  padding-bottom: clamp(4rem, 8vw, 5.5rem);
}

.ah-cta-band--rich {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ah-cta-band__glow {
  position: absolute;
  width: 400px;
  height: 400px;
  right: -100px;
  top: -150px;
  background: radial-gradient(circle, rgba(200, 164, 92, 0.35), transparent 65%);
  pointer-events: none;
}

.ah-cta-band__content {
  position: relative;
  z-index: 1;
}

.ah-cta-band--rich .ah-btn--primary {
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Kicker accent on home */
.ah-home .ah-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.ah-home .ah-kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--ah-accent), var(--ah-teal));
  border-radius: 2px;
}

.ah-section__head--center .ah-kicker::before {
  display: none;
}

.ah-section__head--center .ah-kicker::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--ah-accent), var(--ah-teal));
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* Article cards image zoom */
.ah-home .ah-article-card {
  overflow: hidden;
}

.ah-home .ah-article-card img {
  transition: transform 0.5s ease;
}

.ah-home .ah-article-card:hover img {
  transform: scale(1.04);
}

/* Animations */
@keyframes ah-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(12px, -18px) scale(1.05); }
  66% { transform: translate(-8px, 10px) scale(0.98); }
}

@keyframes ah-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(var(--marquee-shift, -50%), 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ah-hero__orb,
  .ah-trust__track {
    animation: none;
  }

  .ah-card--lift:hover,
  .ah-stats--glass .ah-stat:hover {
    transform: none;
  }

  .ah-stats--glass .ah-stat[data-aos],
  .ah-stats--glass .ah-stat.aos-animate {
    opacity: 1;
    transform: none;
  }
}
