/* ═══════════════════════════════════════════════════
   css/pages/security.css — Tenor Analytics Security Page
   ═══════════════════════════════════════════════════ */

/* ── TRUST BADGES ───────────────────────────────── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}
.trust-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0;
  height: 3px;
  background: var(--grad-primary);
  transition: width 0.4s var(--ease);
}
.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-blue);
  border-color: rgba(37,99,235,0.25);
}
.trust-card:hover::before { width: 100%; }

.trust-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-5);
}
.trust-icon svg { width: 28px; height: 28px; }
.trust-icon.icon-blue   { background: rgba(37,99,235,0.12);  color: var(--blue);    border: 1px solid rgba(37,99,235,0.2); }
.trust-icon.icon-violet { background: rgba(124,58,237,0.12); color: var(--violet);  border: 1px solid rgba(124,58,237,0.2); }
.trust-icon.icon-cyan   { background: rgba(6,182,212,0.12);  color: var(--cyan);    border: 1px solid rgba(6,182,212,0.2); }
.trust-icon.icon-green  { background: rgba(34,197,94,0.12);  color: var(--success); border: 1px solid rgba(34,197,94,0.2); }

.trust-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: var(--sp-2);
}
.trust-desc {
  font-size: 0.85rem;
  color: var(--text-3);
  line-height: 1.65;
}

/* ── DATA LIFECYCLE ─────────────────────────────── */
.lifecycle-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}
.lifecycle-header {
  position: sticky;
  top: calc(var(--nav-height) + var(--sp-10));
}
.lifecycle-header .eyebrow {
  margin-bottom: var(--sp-3);
}
.lifecycle-header h2 {
  margin-bottom: var(--sp-4);
}
.lifecycle-header p {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 480px;
}

.lifecycle-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.lifecycle-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 23px;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue), var(--violet), var(--cyan), transparent);
  z-index: 0;
}

.lifecycle-step {
  display: flex;
  gap: var(--sp-5);
  position: relative;
  z-index: 1;
  padding: var(--sp-5) 0;
}
.lifecycle-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}
.lifecycle-content {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: var(--sp-5) var(--sp-6);
  transition: border-color var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
}
.lifecycle-content:hover {
  border-color: rgba(37,99,235,0.25);
  box-shadow: var(--shadow-sm);
}
.lifecycle-step-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: var(--sp-2);
}
.lifecycle-step-desc {
  font-size: 0.85rem;
  color: var(--text-3);
  line-height: 1.65;
}
.lifecycle-step-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--sp-3);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
  color: var(--success);
  font-size: 0.72rem;
  font-weight: 600;
}
.lifecycle-step-tag svg { width: 12px; height: 12px; }

/* ── SHIELD CARD ────────────────────────────────── */
.shield-section {
  position: relative;
  overflow: hidden;
}
.shield-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(37,99,235,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.shield-card-lg {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: var(--sp-12) var(--sp-10);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}
.shield-card-lg::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-primary);
}
.shield-card-lg::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(37,99,235,0.04);
  pointer-events: none;
}
.shield-icon-lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-6);
  box-shadow: 0 8px 32px rgba(37,99,235,0.35);
  position: relative;
  z-index: 1;
}
.shield-icon-lg svg { width: 36px; height: 36px; color: #fff; }
.shield-title-lg {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 800;
  color: var(--text-1);
  line-height: 1.3;
  margin-bottom: var(--sp-4);
  position: relative;
  z-index: 1;
}
.shield-desc-lg {
  font-size: 0.95rem;
  color: var(--text-3);
  line-height: 1.7;
  margin-bottom: var(--sp-6);
  position: relative;
  z-index: 1;
}
.shield-pillars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  position: relative;
  z-index: 1;
}
.shield-pillar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
}
.shield-pillar svg { width: 14px; height: 14px; color: var(--success); }

/* ── COMPLIANCE ─────────────────────────────────── */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.compliance-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: border-color var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
}
.compliance-card:hover {
  border-color: rgba(37,99,235,0.25);
  box-shadow: var(--shadow-sm);
}
.compliance-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.compliance-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.compliance-icon svg { width: 20px; height: 20px; }
.compliance-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-1);
}
.compliance-desc {
  font-size: 0.85rem;
  color: var(--text-3);
  line-height: 1.65;
}

/* ── CONTACT CTA ────────────────────────────────── */
.contact-cta-card {
  background: var(--grad-primary);
  border: none;
  border-radius: var(--r-xl);
  padding: var(--sp-12) var(--sp-10);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}
.contact-cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}
.contact-cta-card::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.contact-cta-inner {
  position: relative;
  z-index: 1;
}
.contact-cta-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-5);
  color: #fff;
}
.contact-cta-icon svg { width: 24px; height: 24px; }
.contact-cta-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--sp-3);
}
.contact-cta-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.65;
  margin-bottom: var(--sp-6);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.contact-cta-actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 960px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lifecycle-layout {
    grid-template-columns: 1fr;
  }
  .lifecycle-header {
    position: static;
    text-align: center;
  }
  .lifecycle-header p {
    margin-left: auto;
    margin-right: auto;
  }
  .compliance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .compliance-grid {
    grid-template-columns: 1fr;
  }
  .lifecycle-step {
    gap: var(--sp-3);
  }
  .lifecycle-number {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
  .lifecycle-steps::before {
    left: 19px;
  }
  .lifecycle-content {
    padding: var(--sp-4);
  }
  .shield-card-lg {
    padding: var(--sp-8) var(--sp-6);
  }
  .contact-cta-card {
    padding: var(--sp-8) var(--sp-6);
  }
}
