/* Security & compliance section — 4 capability cards + CTA strip.
   Loaded after styles-cg.css to share design tokens. */

.cg-theme .security-section {
  padding: 96px 24px;
  background:
    radial-gradient(
      900px 380px at 15% 0%,
      rgba(17, 166, 183, 0.12),
      transparent 60%
    ),
    linear-gradient(180deg, #f4fbff 0%, #ffffff 100%);
}

.cg-theme .security-section .section-heading {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.cg-theme .security-section .section-heading h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.18;
  color: var(--ink);
  margin: 10px 0 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.cg-theme .security-section .section-heading p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}

.cg-theme .security-grid {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.cg-theme .security-card {
  padding: 28px 24px 24px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.cg-theme .security-card:hover {
  transform: translateY(-4px);
  border-color: rgba(28, 115, 255, 0.32);
  box-shadow: 0 24px 60px rgba(22, 74, 136, 0.18);
}

.cg-theme .security-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(28, 115, 255, 0.12),
    rgba(17, 166, 183, 0.12)
  );
  font-size: 24px;
  line-height: 1;
}

.cg-theme .security-card h3 {
  margin: 4px 0 0;
  font-size: 18px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.005em;
}

.cg-theme .security-card > p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.cg-theme .security-card ul {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.cg-theme .security-card li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
}

.cg-theme .security-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(31, 191, 131, 0.16);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.cg-theme .security-cta {
  margin: 36px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.cg-theme .security-cta .secondary-button {
  min-width: 200px;
  text-align: center;
}

/* ── Dark theme ── */
.cg-theme.dark .security-section {
  background:
    radial-gradient(
      900px 380px at 15% 0%,
      rgba(17, 166, 183, 0.18),
      transparent 60%
    ),
    linear-gradient(180deg, #0c1730 0%, #0a1426 100%);
}

.cg-theme.dark .security-section .section-heading h2 {
  color: #f1f6ff;
}

.cg-theme.dark .security-section .section-heading p {
  color: #9bb3d6;
}

.cg-theme.dark .security-card {
  background: rgba(19, 30, 56, 0.78);
  border-color: rgba(120, 150, 200, 0.22);
  color: #d7e8ff;
}

.cg-theme.dark .security-card:hover {
  border-color: rgba(28, 115, 255, 0.42);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

.cg-theme.dark .security-card h3 {
  color: #f1f6ff;
}

.cg-theme.dark .security-card > p {
  color: #9bb3d6;
}

.cg-theme.dark .security-card li {
  color: #d7e8ff;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .cg-theme .security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .cg-theme .security-section {
    padding: 72px 16px;
  }

  .cg-theme .security-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cg-theme .security-card {
    padding: 22px 18px 18px;
  }

  .cg-theme .security-cta .secondary-button {
    width: 100%;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cg-theme .security-card {
    transition: none;
  }

  .cg-theme .security-card:hover {
    transform: none;
  }
}
