@use "../../../../styles/abstracts/variables" as *;

/* ======================================================
   SECTION BASE
====================================================== */

.section {
  position: relative;
  overflow: hidden;
  padding: 7.5rem 1.5rem;
  background: linear-gradient(to bottom, #0b0d12, #05060a);
  color: #e5e7eb;
  font-family: $font-onest, sans-serif;
}

/* ======================================================
   SHARED HERO BACKGROUND SYSTEM (SYNCED)
====================================================== */

.bgGlow {
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(
      circle at top right,
      rgba(247,147,26,0.16),
      transparent 45%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(247,147,26,0.06),
      transparent 50%
    );
  z-index: 0;
}

.bgGrid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  z-index: 0;
}

.bgLines {
  position: absolute;
  inset: 0;
  z-index: 0;

  span {
    position: absolute;
    width: 220%;
    height: 1px;
    left: -60%;
    background: linear-gradient(
      to right,
      transparent,
      rgba(255,183,3,0.12),
      transparent
    );
    transform: rotate(-14deg);
    animation: lineDrift 16s linear infinite;

    &:nth-child(1) { top: 28%; }
    &:nth-child(2) { top: 52%; animation-delay: 5s; }
    &:nth-child(3) { top: 76%; animation-delay: 10s; }
  }
}

@keyframes lineDrift {
  from {
    transform: translateX(-35%) rotate(-14deg);
  }
  to {
    transform: translateX(35%) rotate(-14deg);
  }
}

/* ======================================================
   CONTENT WRAPPER
====================================================== */

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

/* ======================================================
   HEADER (INSTITUTIONAL)
====================================================== */

.header {
  max-width: 680px;
  margin-bottom: 4.8rem;

  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.35px;
    color: #ffb703;
    background: rgba(255,183,3,0.14);
    border: 1px solid rgba(255,183,3,0.28);
    margin-bottom: 1.2rem;
  }

  h2 {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    line-height: 1.12;
    font-weight: 700;

    span {
      color: #ffb703;
    }
  }

  p {
    margin-top: 1.2rem;
    color: #cbd5e1;
    line-height: 1.75;
    font-size: 1rem;
  }
}

/* ======================================================
   FRAMEWORK GRID
====================================================== */

.framework {
  display: grid;
  gap: 1.8rem;

  @media (min-width: 920px) {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ======================================================
   CORE CARD (ANCHOR)
====================================================== */

.core {
  position: relative;
  border-radius: 26px;
  padding: 2.6rem 2.2rem;
  text-align: center;

  background:
    linear-gradient(
      180deg,
      rgba(255,183,3,0.22),
      rgba(255,183,3,0.06)
    );

  border: 1px solid rgba(255,183,3,0.35);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 24px 60px rgba(255,183,3,0.15);

  svg {
    font-size: 3rem;
    color: #ffb703;
    margin-bottom: 1.2rem;
  }

  h4 {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
  }

  p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #fff3cd;
  }
}

/* ======================================================
   RISK LAYERS (MATCH HERO CARDS)
====================================================== */

.layer {
  display: flex;
  gap: 1.4rem;
  padding: 1.9rem;
  border-radius: 22px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.06),
      rgba(255,255,255,0.025)
    );

  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(18px);

  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;

  &:hover {
    transform: translateY(-4px);
    border-color: rgba(255,183,3,0.45);
    box-shadow: 0 18px 45px rgba(255,183,3,0.18);
  }

  h4 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
  }

  p {
    font-size: 0.88rem;
    color: #d1d5db;
    line-height: 1.7;
  }
}

/* ======================================================
   ICON BLOCK
====================================================== */

.icon {
  min-width: 48px;
  height: 48px;
  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      rgba(255,183,3,0.35),
      rgba(255,183,3,0.15)
    );

  color: #ffb703;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 8px 20px rgba(255,183,3,0.25);
}

/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width: 768px) {
  .header {
    margin-bottom: 3.8rem;
  }

  .framework {
    grid-template-columns: 1fr;
  }

  .core {
    order: -1;
  }
}
