/* ═══════════════════════════════════════════════════════════════
   SAFETY PAGE — Scoped Styles
   All selectors prefixed with .safety-* to avoid global collisions.
   ═══════════════════════════════════════════════════════════════ */

/* ─── HERO ──────────────────────────────────────────────────── */
.safety-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #F5F7FA 0%, #EAF2FF 50%, #D6E8FF 100%);
  overflow: hidden;
  padding: 160px 24px 100px;
}

.safety-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(47,128,237,.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(86,204,242,.06) 0%, transparent 50%);
  pointer-events: none;
}

.safety-hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  animation: safetyFadeUp .7s ease-out both;
}

.safety-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(47,128,237,.08);
  border: 1px solid rgba(47,128,237,.15);
  color: #2F80ED;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.safety-hero__badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.safety-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  color: #111;
  margin: 0 0 18px;
  letter-spacing: -.02em;
}

.safety-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #555;
  line-height: 1.65;
  margin: 0 0 36px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.safety-hero__stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.safety-hero__stat {
  text-align: center;
}

.safety-hero__stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: #2F80ED;
  letter-spacing: -.01em;
}

.safety-hero__stat-label {
  display: block;
  font-size: .82rem;
  color: #777;
  font-weight: 500;
  margin-top: 4px;
}

/* ─── SECTION — HOW WE PROTECT YOU (4 cards) ───────────────── */
.safety-protect {
  padding: 100px 24px;
  background: #fff;
}

.safety-protect__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.safety-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #2F80ED;
  margin-bottom: 14px;
}

.safety-section-label::before {
  content: '';
  width: 28px;
  height: 2px;
  background: #2F80ED;
  border-radius: 2px;
}

.safety-section-heading {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #111;
  margin: 0 0 14px;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.safety-section-sub {
  font-size: 1.05rem;
  color: #666;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 0 52px;
}

.safety-protect__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.safety-protect__card {
  background: #F8FAFC;
  border: 1px solid #EDF2F7;
  border-radius: 20px;
  padding: 36px 28px 32px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
}

.safety-protect__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(47,128,237,.10);
  border-color: rgba(47,128,237,.18);
}

.safety-protect__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.safety-protect__icon--blue   { background: rgba(47,128,237,.1);  color: #2F80ED; }
.safety-protect__icon--green  { background: rgba(39,174,96,.1);   color: #27AE60; }
.safety-protect__icon--purple { background: rgba(155,89,182,.1);  color: #9B59B6; }
.safety-protect__icon--orange { background: rgba(243,156,18,.1);  color: #F39C12; }

.safety-protect__icon svg {
  width: 24px;
  height: 24px;
}

.safety-protect__card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 10px;
}

.safety-protect__card-text {
  font-size: .92rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* ─── SECTION — OUR STANDARDS PROCESS (Timeline) ──────────── */
.safety-standards {
  padding: 100px 24px;
  background: linear-gradient(180deg, #F5F7FA 0%, #fff 100%);
}

.safety-standards__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.safety-standards__header {
  text-align: center;
  margin-bottom: 64px;
}

.safety-standards__header .safety-section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* Horizontal timeline */
.safety-timeline {
  display: flex;
  position: relative;
  gap: 0;
}

.safety-timeline::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 36px;
  right: 36px;
  height: 3px;
  background: linear-gradient(90deg, #2F80ED, #56CCF2);
  border-radius: 2px;
  z-index: 0;
}

.safety-timeline__step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 12px;
}

.safety-timeline__dot {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #2F80ED;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.3rem;
  font-weight: 800;
  color: #2F80ED;
  box-shadow: 0 4px 16px rgba(47,128,237,.12);
  transition: background .25s, color .25s;
}

.safety-timeline__step:hover .safety-timeline__dot {
  background: #2F80ED;
  color: #fff;
}

.safety-timeline__title {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 8px;
}

.safety-timeline__text {
  font-size: .85rem;
  color: #777;
  line-height: 1.55;
  max-width: 200px;
  margin: 0 auto;
}

/* ─── SECTION — CUSTOMER PROTECTION GUARANTEE (Split) ──────── */
.safety-guarantee {
  padding: 100px 24px;
  background: #fff;
}

.safety-guarantee__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.safety-guarantee__visual {
  position: relative;
}

.safety-guarantee__image-wrap {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.08);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #EAF2FF, #D6E8FF);
  display: flex;
  align-items: center;
  justify-content: center;
}

.safety-guarantee__image-wrap svg {
  width: 120px;
  height: 120px;
  color: #2F80ED;
  opacity: .35;
}

.safety-guarantee__floating-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: #fff;
  border-radius: 16px;
  padding: 16px 22px;
  box-shadow: 0 8px 32px rgba(0,0,0,.10);
  display: flex;
  align-items: center;
  gap: 12px;
}

.safety-guarantee__floating-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(39,174,96,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #27AE60;
}

.safety-guarantee__floating-icon svg {
  width: 22px;
  height: 22px;
}

.safety-guarantee__floating-text {
  font-size: .85rem;
  font-weight: 700;
  color: #111;
}

.safety-guarantee__floating-sub {
  font-size: .75rem;
  color: #888;
  font-weight: 500;
}

.safety-guarantee__content {
  /* right column text */
}

.safety-guarantee__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.safety-guarantee__list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.safety-guarantee__check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(47,128,237,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.safety-guarantee__check svg {
  width: 16px;
  height: 16px;
  color: #2F80ED;
}

.safety-guarantee__list-title {
  font-size: .95rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 4px;
}

.safety-guarantee__list-text {
  font-size: .88rem;
  color: #666;
  line-height: 1.55;
  margin: 0;
}

/* ─── SECTION — REPORT & SUPPORT ──────────────────────────── */
.safety-report {
  padding: 100px 24px;
  background: linear-gradient(180deg, #F5F7FA 0%, #FAFBFC 100%);
}

.safety-report__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.safety-report__inner .safety-section-label {
  justify-content: center;
}

.safety-report__inner .safety-section-heading {
  text-align: center;
}

.safety-report__inner .safety-section-sub {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.safety-report__channels {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.safety-report__channel {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #EDF2F7;
  border-radius: 16px;
  padding: 20px 28px;
  min-width: 240px;
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease;
}

.safety-report__channel:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,.06);
}

.safety-report__channel-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(47,128,237,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #2F80ED;
}

.safety-report__channel-icon svg {
  width: 20px;
  height: 20px;
}

.safety-report__channel-title {
  font-size: .9rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 3px;
}

.safety-report__channel-detail {
  font-size: .82rem;
  color: #888;
  margin: 0;
}

.safety-report__cta {
  margin-top: 40px;
}

.safety-report__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2F80ED;
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 12px;
  text-decoration: none;
  transition: background .2s ease, transform .15s ease;
}

.safety-report__btn:hover {
  background: #1a6bd4;
  transform: translateY(-2px);
}

.safety-report__btn svg {
  width: 18px;
  height: 18px;
}

/* ─── SECTION — PRE-FOOTER TRANSITION ─────────────────────── */
.safety-prefooter {
  padding: 80px 24px 0;
}

.safety-prefooter__inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.safety-prefooter__trust {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.safety-prefooter__trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: #555;
  font-weight: 500;
}

.safety-prefooter__trust-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(47,128,237,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2F80ED;
}

.safety-prefooter__trust-icon svg {
  width: 16px;
  height: 16px;
}

/* ─── ANIMATIONS ──────────────────────────────────────────── */
@keyframes safetyFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.safety-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.safety-animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE — TABLET ─────────────────────────────────── */
@media (max-width: 900px) {
  .safety-hero {
    min-height: 420px;
    padding: 140px 20px 80px;
  }

  .safety-hero__stats {
    gap: 32px;
  }

  .safety-protect__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Timeline → vertical on tablet */
  .safety-timeline {
    flex-direction: column;
    gap: 32px;
    padding-left: 48px;
  }

  .safety-timeline::before {
    top: 0;
    bottom: 0;
    left: 36px;
    right: auto;
    width: 3px;
    height: auto;
  }

  .safety-timeline__step {
    text-align: left;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 0;
  }

  .safety-timeline__dot {
    width: 56px;
    height: 56px;
    font-size: 1.1rem;
    margin: 0;
    flex-shrink: 0;
  }

  .safety-timeline__text {
    max-width: none;
  }

  .safety-guarantee__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .safety-guarantee__floating-badge {
    bottom: -12px;
    right: 12px;
  }
}

/* ─── RESPONSIVE — MOBILE ─────────────────────────────────── */
@media (max-width: 600px) {
  .safety-hero {
    padding: 130px 16px 64px;
    min-height: auto;
  }

  .safety-hero__stats {
    flex-direction: column;
    gap: 16px;
  }

  .safety-hero__stat-number {
    font-size: 1.5rem;
  }

  .safety-protect {
    padding: 64px 16px;
  }

  .safety-protect__grid {
    grid-template-columns: 1fr;
  }

  .safety-standards {
    padding: 64px 16px;
  }

  .safety-timeline {
    padding-left: 40px;
  }

  .safety-timeline::before {
    left: 28px;
  }

  .safety-timeline__dot {
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }

  .safety-guarantee {
    padding: 64px 16px;
  }

  .safety-guarantee__inner {
    gap: 36px;
  }

  .safety-report {
    padding: 64px 16px;
  }

  .safety-report__channels {
    flex-direction: column;
    align-items: center;
  }

  .safety-report__channel {
    width: 100%;
    max-width: 360px;
  }

  .safety-prefooter {
    padding: 64px 16px 0;
  }

  .safety-prefooter__trust {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}
