/* =====================================================
   APEX IP — sections/about.css
   Section 4 — Security & Ownership
   Left copy (465px) · Right 2×2 card grid (628px)
   ===================================================== */

/* ---------- Section shell ---------- */
.apx-security {
  width: 100%;
  max-width: var(--apx-canvas);
  margin: 0 auto;
  padding: 160px var(--apx-pad-x);
  background: #000;
  display: flex;
  flex-direction: column;
  gap: 160px;
}

/* ---------- Main row ---------- */
.apx-security-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* ---------- Left col — 465px ---------- */
.apx-security-intro {
  width: 465px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.apx-security-copy {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.apx-security-title {
  color: #F2F2F2;
  font-size: 56px;
  font-weight: 400;
  line-height: 1.2;   /* Figma 120% */
}

.apx-security-body {
  color: #F2F2F2;
  font-size: 18px;
  font-weight: 300;
  line-height: 27px;
}

/* ---------- Right col — 2×2 CSS grid ---------- */
.apx-security-grid {
  width: 628px;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Card base */
.apx-security-card {
  padding: 40px;
  border-radius: 24px;
  border: 1px solid rgba(51, 51, 51, 0.40);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Unique radial glow per corner — Figma positions */
.apx-security-grid .apx-security-card:nth-child(1) {
  background:
    radial-gradient(ellipse 70.71% 80.65% at 100% 100%,
      rgba(229, 48, 11, 0.10) 0%, rgba(229, 48, 11, 0) 100%),
    #0A0A0A;
}
.apx-security-grid .apx-security-card:nth-child(2) {
  background:
    radial-gradient(ellipse 70.71% 80.65% at 0% 100%,
      rgba(229, 48, 11, 0.10) 0%, rgba(229, 48, 11, 0) 100%),
    #0A0A0A;
}
.apx-security-grid .apx-security-card:nth-child(3) {
  background:
    radial-gradient(ellipse 70.71% 80.65% at 100% 0%,
      rgba(229, 48, 11, 0.10) 0%, rgba(229, 48, 11, 0) 100%),
    #0A0A0A;
}
.apx-security-grid .apx-security-card:nth-child(4) {
  background:
    radial-gradient(ellipse 69.07% 78.43% at 2% 0%,
      rgba(229, 48, 11, 0.10) 0%, rgba(229, 48, 11, 0) 100%),
    #0A0A0A;
}

.apx-security-card-title {
  color: #F2F2F2;
  font-size: 28px;
  font-weight: 500;
}

.apx-security-card-text {
  color: #F2F2F2;
  font-size: 18px;
  font-weight: 300;
  line-height: 27px;
}

/* =====================================================
   SCROLL ANIMATION — cascade
   JS adds .is-visible to .apx-security
   ===================================================== */

@keyframes apx-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* Hidden states */
.apx-security .apx-badge,
.apx-security-title,
.apx-security-body,
.apx-security-card {
  opacity: 0;
  transform: translateY(20px);
}

/* Animate on .is-visible */
.apx-security.is-visible .apx-badge,
.apx-security.is-visible .apx-security-title,
.apx-security.is-visible .apx-security-body,
.apx-security.is-visible .apx-security-card {
  animation: apx-fade-up 0.60s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Staggered delays */
.apx-security.is-visible .apx-badge                               { animation-delay: 0.00s; }
.apx-security.is-visible .apx-security-title                      { animation-delay: 0.15s; }
.apx-security.is-visible .apx-security-body                       { animation-delay: 0.30s; }
.apx-security.is-visible .apx-security-card:nth-child(1)          { animation-delay: 0.45s; }
.apx-security.is-visible .apx-security-card:nth-child(2)          { animation-delay: 0.60s; }
.apx-security.is-visible .apx-security-card:nth-child(3)          { animation-delay: 0.75s; }
.apx-security.is-visible .apx-security-card:nth-child(4)          { animation-delay: 0.90s; }

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

/* Laptop (≤ 1440px) */
@media (max-width: 1440px) {
  .apx-security {
    padding-top: 120px;
    padding-bottom: 120px;
  }

  .apx-security-intro {
    width: 380px;
    gap: 56px;
  }

  .apx-security-title {
    font-size: 48px;
  }

  .apx-security-grid {
    width: auto;
    flex: 1;
    min-width: 0;
    margin-left: 80px;
  }
}

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
  .apx-security {
    padding-top: 80px;
    padding-bottom: 80px;
    gap: 80px;
  }

  .apx-security-row {
    flex-direction: column;
    gap: 56px;
  }

  .apx-security-intro {
    width: 100%;
    gap: 40px;
  }

  .apx-security-title {
    font-size: 40px;
  }

  .apx-security-grid {
    width: 100%;
    margin-left: 0;
  }
}

/* Mobile (≤ 640px) */
@media (max-width: 640px) {
  .apx-security {
    padding-top: 64px;
    padding-bottom: 64px;
    gap: 56px;
  }

  .apx-security-intro {
    gap: 28px;
  }

  .apx-security-title {
    font-size: 30px;
  }

  .apx-security-body {
    font-size: 15px;
  }

  .apx-security-grid {
    grid-template-columns: 1fr;
  }

  .apx-security-card {
    padding: 28px;
  }

  .apx-security-card-title {
    font-size: 22px;
  }
}
