/* ============================================
   TRUST PILLARS + FOOTER V2  — ARISDEX
   trust-footer.css · Load after all other CSS
   ============================================ */

/* ─── TRUST PILLARS SECTION ─────────────────── */

.trust-pillars-section {
  padding: 96px 0;
  background: var(--black, #080808);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

/* Ambient top glow */
.trust-pillars-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 65% 40% at 50% 0%,
    rgba(224, 32, 32, 0.04) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}

/* ─── SECTION HEADER ─────────────────────────── */

.trust-pillars-header {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
  z-index: 1;
}

/* Center the label line + text */
.trust-pillars-header .section-label {
  justify-content: center;
}

/* Center the intro body text */
.trust-pillars-header .section-body {
  margin: 0 auto;
  text-align: center;
}

/* ─── BENTO GRID ─────────────────────────────── */

.trust-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  position: relative;
  z-index: 1;
}

/* ─── PILLAR CARD ────────────────────────────── */

.trust-pillar {
  background: rgba(18, 18, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 22px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  will-change: transform;
  transition:
    transform 0.38s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.35s ease,
    background 0.35s ease,
    box-shadow 0.38s ease;
}

/* Top accent line (red) */
.trust-pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(224, 32, 32, 0.45),
    transparent
  );
  pointer-events: none;
  z-index: 1;
}

/* Mouse-follow radial glow (JS feeds --cx / --cy) */
.trust-pillar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: radial-gradient(
    circle at var(--cx, 50%) var(--cy, 35%),
    rgba(224, 32, 32, 0.08) 0%,
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.trust-pillar:hover {
  transform: translateY(-6px);
  border-color: rgba(224, 32, 32, 0.22);
  background: rgba(24, 24, 26, 0.92);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(224, 32, 32, 0.08),
    0 0 28px rgba(224, 32, 32, 0.06);
}

.trust-pillar:hover::after { opacity: 1; }

/* Content layer above glow overlay */
.trust-pillar__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ─── ICON ───────────────────────────────────── */

.trust-pillar__icon {
  width: 50px;
  height: 50px;
  background: rgba(224, 32, 32, 0.08);
  border: 1px solid rgba(224, 32, 32, 0.2);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  flex-shrink: 0;
  color: rgba(220, 55, 55, 0.85);
  transition:
    transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
    background 0.3s ease,
    border-color 0.3s ease;
}

.trust-pillar__icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-pillar:hover .trust-pillar__icon {
  transform: scale(1.1) translateY(-2px);
  background: rgba(224, 32, 32, 0.14);
  border-color: rgba(224, 32, 32, 0.34);
}

/* ─── NUMBER ─────────────────────────────────── */

.trust-pillar__num {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(200, 168, 75, 0.38);
  margin-bottom: 10px;
}

/* ─── TITLE ──────────────────────────────────── */

.trust-pillar__title {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #ededf0;
  margin-bottom: 14px;
  transition: color 0.3s ease;
}

.trust-pillar:hover .trust-pillar__title { color: #ffffff; }

/* ─── DESCRIPTION ────────────────────────────── */

.trust-pillar__desc {
  font-family: 'Inter', 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.78;
  color: var(--text-muted, #888);
  flex-grow: 1;
  margin-bottom: 22px;
}

/* ─── TAG ────────────────────────────────────── */

.trust-pillar__tag {
  display: inline-flex;
  align-self: flex-start;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold, #c8a84b);
  border: 1px solid rgba(200, 168, 75, 0.26);
  background: rgba(200, 168, 75, 0.05);
  padding: 5px 12px;
  border-radius: 999px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.trust-pillar:hover .trust-pillar__tag {
  background: rgba(200, 168, 75, 0.11);
  border-color: rgba(200, 168, 75, 0.4);
}

/* ─── STAGGER REVEAL ─────────────────────────── */

/*
 * transition-delay on pre-visible .reveal state.
 * Browser reads this delay when .is-visible is added,
 * creating a cascade entrance for the 3 cards.
 */
.trust-pillars-grid .trust-pillar.reveal:nth-child(1) { transition-delay: 0.28s; }
.trust-pillars-grid .trust-pillar.reveal:nth-child(2) { transition-delay: 0.38s; }
.trust-pillars-grid .trust-pillar.reveal:nth-child(3) { transition-delay: 0.48s; }

/* ============================================
   FOOTER V2
   ============================================ */

/* Override old footer background from style.css */
footer {
  background: var(--primary-bg, #0D0D0F);
  border-top: none;
}

/* Gradient top rule */
.ftr-top-rule {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(200, 168, 75, 0.2) 25%,
    rgba(224, 32, 32, 0.18) 75%,
    transparent 100%
  );
}

/* ─── INNER GRID ─────────────────────────────── */

.ftr-inner {
  max-width: var(--max, 1360px);
  margin: 0 auto;
  padding: 72px 48px 56px;
  display: grid;
  grid-template-columns: 2.2fr 1.6fr 1.8fr;
  gap: 52px;
  align-items: start;
}

/* ─── BRAND COLUMN ───────────────────────────── */

.ftr-wordmark {
  height: 26px;
  width: auto;
  object-fit: contain;
  margin-bottom: 18px;
  display: block;
}

/* Text-based wordmark (when logo image not used) */
.ftr-wordmark-text {
  display: block;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(245, 243, 238, 0.9);
  text-decoration: none;
  margin-bottom: 18px;
  transition: color 0.24s ease;
}

.ftr-wordmark-text:hover { color: #ffffff; }

.ftr-tagline {
  font-family: 'Inter', 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.82;
  color: var(--text-muted, #888);
  max-width: 300px;
  margin-bottom: 24px;
}

.ftr-tagline em {
  font-style: italic;
  color: rgba(200, 168, 75, 0.65);
}

/* Contact rows */
.ftr-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.ftr-contact-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 300;
  color: rgba(245, 243, 238, 0.45);
  text-decoration: none;
  transition: color 0.24s ease;
  line-height: 1.5;
}

a.ftr-contact-row:hover { color: var(--gold, #c8a84b); }

.ftr-contact-row svg {
  width: 13px;
  height: 13px;
  stroke-width: 1.5;
  fill: none;
  stroke: rgba(200, 168, 75, 0.45);
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: stroke 0.24s ease;
}

a.ftr-contact-row:hover svg { stroke: var(--gold, #c8a84b); }

/* Korean language tile */
.ftr-korean {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(200, 168, 75, 0.05);
  border: 1px solid rgba(200, 168, 75, 0.16);
  border-radius: 10px;
  padding: 9px 14px;
  text-decoration: none;
  transition:
    background 0.28s ease,
    border-color 0.28s ease;
  width: fit-content;
}

.ftr-korean:hover {
  background: rgba(200, 168, 75, 0.1);
  border-color: rgba(200, 168, 75, 0.38);
}

.ftr-korean-main {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(200, 168, 75, 0.75);
  letter-spacing: 0.02em;
  transition: color 0.24s ease;
}

.ftr-korean-sub {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 300;
  color: rgba(200, 168, 75, 0.4);
  letter-spacing: 0.3px;
  transition: color 0.24s ease;
}

.ftr-korean:hover .ftr-korean-main { color: var(--gold, #c8a84b); }
.ftr-korean:hover .ftr-korean-sub  { color: rgba(200, 168, 75, 0.65); }

/* ─── NAV COLUMN ─────────────────────────────── */

.ftr-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;
  align-items: start;
}

.ftr-col-title {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold, #c8a84b);
  margin-bottom: 14px;
}

.ftr-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ftr-links a {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 300;
  color: rgba(245, 243, 238, 0.42);
  text-decoration: none;
  transition: color 0.22s ease, padding-left 0.22s ease;
  display: block;
}

.ftr-links a:hover {
  color: rgba(245, 243, 238, 0.82);
  padding-left: 4px;
}

/* ─── CREDENTIALS COLUMN ─────────────────────── */

/* Credential chips */
.ftr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}

.ftr-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 6px 11px;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(245, 243, 238, 0.5);
  text-decoration: none;
  transition:
    border-color 0.26s ease,
    color 0.26s ease,
    background 0.26s ease;
}

.ftr-chip:hover {
  border-color: rgba(200, 168, 75, 0.38);
  color: var(--gold, #c8a84b);
  background: rgba(200, 168, 75, 0.06);
}

.ftr-chip-dot {
  width: 5px;
  height: 5px;
  background: rgba(224, 32, 32, 0.45);
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.26s ease;
}

.ftr-chip:hover .ftr-chip-dot { background: var(--gold, #c8a84b); }

/* Credential links */
.ftr-cred-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.ftr-cred-links a {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: rgba(245, 243, 238, 0.38);
  text-decoration: none;
  transition: color 0.22s ease;
  display: flex;
  align-items: center;
  gap: 7px;
}

.ftr-cred-links a::before {
  content: '→';
  font-size: 10px;
  color: rgba(224, 32, 32, 0.38);
  flex-shrink: 0;
  transition: color 0.22s ease, transform 0.22s ease;
}

.ftr-cred-links a:hover {
  color: rgba(245, 243, 238, 0.75);
}

.ftr-cred-links a:hover::before {
  color: var(--red, #e02020);
  transform: translateX(3px);
}

/* Badge images */
.ftr-badges {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ftr-badge-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  opacity: 0.62;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ftr-badge-img:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

.ftr-badge-img.ea {
  height: 28px;
  filter: invert(1) brightness(0.82);
}

/* ─── FOOTER COLUMN STAGGER REVEAL ──────────── */

.ftr-brand.reveal { transition-delay: 0s;    }
.ftr-nav.reveal   { transition-delay: 0.12s; }
.ftr-creds.reveal { transition-delay: 0.22s; }

/* ─── DIVIDER ────────────────────────────────── */

.ftr-divider {
  max-width: var(--max, 1360px);
  margin: 0 auto;
  padding: 0 48px;
}

.ftr-divider-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
}

/* ─── BOTTOM BAR ─────────────────────────────── */

.ftr-bottom {
  max-width: var(--max, 1360px);
  margin: 0 auto;
  padding: 18px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ftr-copy {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 300;
  color: rgba(245, 243, 238, 0.28);
  line-height: 1.6;
}

.ftr-copy b {
  font-weight: 500;
  color: rgba(245, 243, 238, 0.44);
}

.ftr-copy em {
  font-style: italic;
  color: rgba(200, 168, 75, 0.52);
}

.ftr-meta {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.8px;
  color: rgba(245, 243, 238, 0.22);
}

.ftr-meta b {
  font-weight: 600;
  color: rgba(200, 168, 75, 0.42);
}

/* ─── RESPONSIVE ─────────────────────────────── */

@media (max-width: 1100px) {
  .ftr-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 60px 48px 48px;
  }
  /* Brand spans full width at this breakpoint */
  .ftr-brand { grid-column: 1 / -1; }
  .ftr-tagline { max-width: 520px; }
}

@media (max-width: 820px) {
  /* Trust pillars stack vertically */
  .trust-pillars-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .trust-pillars-section { padding: 72px 0; }
  .trust-pillars-header  { margin-bottom: 48px; }
  .trust-pillar          { padding: 30px 24px; border-radius: 18px; }

  /* Trust pillar stagger reset for mobile (single column, faster) */
  .trust-pillars-grid .trust-pillar.reveal:nth-child(2) { transition-delay: 0.08s; }
  .trust-pillars-grid .trust-pillar.reveal:nth-child(3) { transition-delay: 0.14s; }
}

@media (max-width: 700px) {
  .ftr-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 52px 20px 44px;
  }
  .ftr-brand  { grid-column: auto; }
  .ftr-nav    { grid-template-columns: 1fr 1fr; }
  .ftr-bottom {
    padding-left: 20px;
    padding-right: 20px;
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  .ftr-divider { padding: 0 20px; }
}

@media (max-width: 440px) {
  .ftr-nav { grid-template-columns: 1fr; }
}
