/**
 * Proxy Grove — Trust & credibility section
 * Continues Hero surface · Grove brand tokens only
 */

.pg-trust {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 1.5rem 0 5rem;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgb(19 0 154 / 0.05), transparent 55%),
    radial-gradient(ellipse 40% 35% at 0% 60%, rgb(19 127 21 / 0.04), transparent 50%),
    radial-gradient(ellipse 45% 40% at 100% 80%, rgb(0 0 174 / 0.04), transparent 50%),
    var(--color-surface-body);
}

.pg-trust__grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgb(19 0 154 / 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgb(19 0 154 / 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 15%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 15%, transparent 80%);
}

.pg-trust__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.pg-trust__glow--1 {
  width: 24rem;
  height: 24rem;
  top: 8%;
  right: -8rem;
  background: rgb(19 0 154 / 0.1);
  animation: pg-trust-drift 14s ease-in-out infinite;
}

.pg-trust__glow--2 {
  width: 20rem;
  height: 20rem;
  bottom: 12%;
  left: -6rem;
  background: rgb(19 127 21 / 0.09);
  animation: pg-trust-drift 16s ease-in-out infinite reverse;
}

.pg-trust__inner {
  position: relative;
  z-index: 1;
}

/* —— Shared glass card —— */
.pg-glass {
  position: relative;
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--color-surface-raised) 90%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow: var(--shadow-glass);
  transition:
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.28s ease;
}

.pg-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    145deg,
    rgb(19 0 154 / 0.18),
    rgb(255 255 255 / 0.5) 40%,
    rgb(19 127 21 / 0.16)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.pg-glass:hover {
  transform: translateY(-4px);
  box-shadow:
    0 8px 16px rgb(19 0 154 / 0.06),
    0 28px 56px rgb(19 0 154 / 0.12);
}

/* —— Reveal —— */
.pg-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.pg-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— Section headers —— */
.pg-trust__header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.25rem;
}

.pg-trust__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-heading);
  background: var(--color-surface-raised);
  border: 1px solid rgb(19 0 154 / 0.12);
  box-shadow: 0 4px 20px rgb(19 0 154 / 0.05);
  margin-bottom: 1rem;
}

.pg-trust__eyebrow-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--color-button-primary-bg);
  box-shadow: 0 0 0 0 rgb(19 127 21 / 0.4);
  animation: pg-trust-pulse 2.2s ease-out infinite;
}

.pg-trust__title {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--color-text-heading);
}

.pg-trust__subtitle {
  margin: 0.85rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text-body);
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.pg-trust-bar {
  margin-bottom: 4.5rem;
}

.pg-trust-bar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .pg-trust-bar__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.875rem;
  }
}

@media (min-width: 1100px) {
  .pg-trust-bar__list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

.pg-trust-bar__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 1rem 1.05rem;
  height: 100%;
  text-align: left;
}

.pg-trust-bar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(145deg, rgb(19 0 154 / 0.1), rgb(19 127 21 / 0.08));
  color: var(--color-text-heading);
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.25s ease;
}

.pg-trust-bar__item:hover .pg-trust-bar__icon {
  transform: scale(1.08);
  background: linear-gradient(145deg, rgb(19 0 154 / 0.14), rgb(19 127 21 / 0.12));
}

.pg-trust-bar__icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.pg-trust-bar__label {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text-heading);
  letter-spacing: -0.01em;
}

.pg-trust-bar__desc {
  margin: 0.2rem 0 0;
  font-size: 0.6875rem;
  line-height: 1.45;
  color: var(--color-text-body);
  opacity: 0.78;
}

/* ============================================================
   LIVE STATS
   ============================================================ */
.pg-stats {
  margin-bottom: 4.75rem;
}

.pg-stats__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.875rem;
}

@media (min-width: 768px) {
  .pg-stats__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1100px) {
  .pg-stats__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.pg-stats__card {
  padding: 1.35rem 1.15rem;
  text-align: center;
  min-height: 8.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pg-stats__value {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text-heading);
}

.pg-stats__value--accent {
  color: var(--color-button-primary-bg);
}

.pg-stats__label {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text-body);
  opacity: 0.8;
}

.pg-stats__live {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.55rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-button-primary-bg);
  background: rgb(19 127 21 / 0.1);
}

.pg-stats__live-dot {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--color-button-primary-bg);
  animation: pg-trust-pulse 2s ease-out infinite;
}

/* ============================================================
   WORLD MAP
   ============================================================ */
.pg-map {
  margin-bottom: 4.75rem;
}

.pg-map__frame {
  position: relative;
  padding: 1.25rem 1rem 1.5rem;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 520px;
}

@media (min-width: 768px) {
  .pg-map__frame {
    padding: 1.75rem 1.5rem 2rem;
  }
}

.pg-map__canvas {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  aspect-ratio: 2 / 1;
  min-height: 220px;
}

.pg-map__svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pg-map__ocean {
  fill: rgb(19 0 154 / 0.03);
}

.pg-map__land {
  fill: rgb(19 0 154 / 0.07);
  stroke: rgb(19 0 154 / 0.1);
  stroke-width: 0.4;
  transition: fill 0.35s ease;
}

.pg-map__land--active {
  fill: rgb(19 0 154 / 0.14);
}

.pg-map__land.is-hot,
.pg-map__region:hover .pg-map__land,
.pg-map__region:focus-visible .pg-map__land {
  fill: rgb(19 127 21 / 0.18);
  stroke: rgb(19 127 21 / 0.25);
}

.pg-map__region {
  cursor: pointer;
  outline: none;
}

.pg-map__glow {
  fill: var(--color-button-primary-bg);
  opacity: 0.2;
  filter: blur(4px);
  animation: pg-map-glow 3.2s ease-in-out infinite;
  pointer-events: none;
}

.pg-map__node {
  fill: var(--color-button-primary-bg);
  pointer-events: none;
}

.pg-map__ring {
  fill: none;
  stroke: var(--color-button-primary-bg);
  stroke-width: 1.2;
  opacity: 0.5;
  pointer-events: none;
  animation: pg-map-ring-out 2.8s ease-out infinite;
}

.pg-map__link {
  fill: none;
  stroke: url(#pg-map-link-grad);
  stroke-width: 1;
  stroke-dasharray: 4 6;
  opacity: 0.55;
  pointer-events: none;
  animation: pg-map-dash 18s linear infinite;
}

.pg-map__hub {
  fill: var(--color-text-heading);
  pointer-events: none;
}

.pg-map__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.pg-map__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-text-heading);
  background: var(--color-surface-raised);
  border: 1px solid rgb(19 0 154 / 0.1);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pg-map__legend-item:hover,
.pg-map__legend-item.is-active,
.pg-map__legend-item:focus-visible {
  background: rgb(19 0 154 / 0.06);
  border-color: rgb(19 0 154 / 0.22);
  transform: translateY(-1px);
  outline: none;
}

.pg-map__legend-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--color-button-primary-bg);
  flex-shrink: 0;
}

.pg-map__tooltip {
  position: absolute;
  z-index: 5;
  padding: 0.5rem 0.75rem;
  border-radius: 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-heading);
  background: var(--color-surface-raised);
  border: 1px solid rgb(19 0 154 / 0.12);
  box-shadow: 0 12px 32px rgb(19 0 154 / 0.12);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -120%) scale(0.96);
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.pg-map__tooltip.is-visible {
  opacity: 1;
  transform: translate(-50%, -130%) scale(1);
}

.pg-map__tooltip-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--color-text-body);
  opacity: 0.75;
}

/* ============================================================
   WHY TRUST FEATURES
   ============================================================ */
.pg-why {
  margin-bottom: 0.5rem;
}

.pg-why__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .pg-why__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .pg-why__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.pg-why__card {
  padding: 1.5rem 1.4rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pg-why__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  margin-bottom: 1rem;
  background: linear-gradient(145deg, rgb(19 0 154 / 0.1), rgb(19 127 21 / 0.08));
  color: var(--color-text-heading);
  transition: transform 0.28s ease, background 0.28s ease;
}

.pg-why__card:hover .pg-why__icon {
  transform: scale(1.08) rotate(-3deg);
  background: linear-gradient(145deg, rgb(19 0 154 / 0.14), rgb(19 127 21 / 0.12));
}

.pg-why__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.pg-why__card-title {
  margin: 0 0 0.5rem;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--color-text-heading);
}

.pg-why__card-desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-body);
  flex: 1;
}

/* —— Keyframes —— */
@keyframes pg-trust-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10px, -14px) scale(1.05); }
}

@keyframes pg-trust-pulse {
  0% { box-shadow: 0 0 0 0 rgb(19 127 21 / 0.45); }
  70% { box-shadow: 0 0 0 6px rgb(19 127 21 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(19 127 21 / 0); }
}

@keyframes pg-map-glow {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.15); }
}

@keyframes pg-map-ring-out {
  0% { r: 3; opacity: 0.55; }
  100% { r: 12; opacity: 0; }
}

@keyframes pg-map-dash {
  to { stroke-dashoffset: -200; }
}

@media (prefers-reduced-motion: reduce) {
  .pg-trust__glow,
  .pg-trust__eyebrow-dot,
  .pg-stats__live-dot,
  .pg-map__glow,
  .pg-map__ring,
  .pg-map__link {
    animation: none !important;
  }

  .pg-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .pg-glass:hover,
  .pg-trust-bar__item:hover .pg-trust-bar__icon,
  .pg-why__card:hover .pg-why__icon {
    transform: none;
  }
}
