/* ═══════════════════════════════════════════════════
   Atomi — Trust Section
   ═══════════════════════════════════════════════════ */

.trust-section {
  position: relative;
  scroll-margin-top: calc(var(--space-64) + var(--space-24));
  padding: clamp(var(--space-64), 10vh, var(--space-96)) clamp(var(--space-24), 5vw, var(--space-96));
  background:
    radial-gradient(ellipse 56% 48% at 28% 42%, oklch(0.72 0.16 294 / 0.07), transparent 62%),
    radial-gradient(ellipse 42% 38% at 78% 56%, oklch(0.84 0.12 72 / 0.08), transparent 58%),
    linear-gradient(180deg, var(--rhythm-paper) 0%, var(--ivory-clean) 52%, var(--ivory) 100%);
  overflow: hidden;
}

.trust-section-inner {
  width: min(1480px, 100%);
  margin: 0 auto;
}

.trust-section .section-head {
  margin-bottom: clamp(var(--space-48), 7vh, var(--space-64));
  text-align: center;
}

/* ── Two-column layout ────────────────────────────── */
.trust-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

/* ── Left: feature list ───────────────────────────── */
.trust-features {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.8vw, 28px);
}

.trust-feature {
  position: relative;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 22px;
  border: 1px solid oklch(0.78 0.04 76 / 0.14);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 8% 18%, oklch(0.99 0.01 84 / 0.36), transparent 38%),
    linear-gradient(155deg, oklch(0.994 0.01 82 / 0.36), oklch(0.966 0.018 76 / 0.1));
  backdrop-filter: blur(12px) saturate(1.04);
  -webkit-backdrop-filter: blur(12px) saturate(1.04);
  box-shadow:
    0 8px 28px oklch(0.32 0.05 288 / 0.03),
    inset 0 1px 0 oklch(0.99 0.01 82 / 0.38);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.trust-feature:hover {
  transform: translateX(4px);
  border-color: oklch(0.78 0.1 74 / 0.32);
  box-shadow:
    0 16px 42px oklch(0.32 0.05 288 / 0.07),
    0 0 18px oklch(0.78 0.12 72 / 0.08),
    inset 0 1px 0 oklch(0.99 0.01 82 / 0.52);
}

/* ── Feature icon ─────────────────────────────────── */
.trust-feature-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, oklch(0.99 0.01 84), transparent 34%),
    linear-gradient(145deg, oklch(0.98 0.012 82 / 0.8), oklch(0.86 0.075 300 / 0.2));
  box-shadow:
    0 0 0 1px oklch(0.66 0.15 294 / 0.18),
    0 6px 18px oklch(0.5 0.12 294 / 0.1),
    inset 0 1px 0 oklch(0.99 0.01 84 / 0.56);
  color: oklch(0.3 0.13 292);
}

.trust-feature-icon svg {
  width: 24px; height: 24px;
  filter: drop-shadow(0 2px 4px oklch(0.32 0.11 292 / 0.1));
}

/* ── Feature text ─────────────────────────────────── */
.trust-feature-text h4 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 4px;
}

.trust-feature-text p {
  font-size: 0.85rem;
  line-height: 1.48;
  color: var(--ink-soft);
}

/* ── Right: Glass Shield ──────────────────────────── */
.trust-shield {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: clamp(36px, 5vw, 56px);
  border: 1px solid oklch(0.78 0.04 76 / 0.2);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 62% 54% at 50% 42%, oklch(0.99 0.01 84 / 0.52), transparent 58%),
    radial-gradient(circle at 44% 38%, oklch(0.88 0.11 72 / 0.07), transparent 48%),
    linear-gradient(160deg, oklch(0.994 0.01 82 / 0.48), oklch(0.966 0.018 76 / 0.16)),
    oklch(0.99 0.012 82 / 0.28);
  backdrop-filter: blur(20px) saturate(1.06);
  -webkit-backdrop-filter: blur(20px) saturate(1.06);
  box-shadow:
    0 24px 64px oklch(0.32 0.05 288 / 0.08),
    0 0 0 1px oklch(0.99 0.01 82 / 0.24) inset,
    0 0 48px oklch(0.82 0.13 72 / 0.06);
  overflow: hidden;
}

.trust-shield::before {
  content: "";
  position: absolute; inset: 1px; border-radius: inherit;
  background:
    linear-gradient(145deg, oklch(0.99 0.01 82 / 0.38), transparent 52%),
    linear-gradient(90deg, transparent 0 78%, oklch(0.86 0.1 72 / 0.1));
  pointer-events: none;
}

/* ── Orbit lines in shield ────────────────────────── */
.trust-shield-orbits {
  position: absolute;
  inset: -10% -5% -10% -5%;
  width: 110%;
  height: 120%;
  color: oklch(0.68 0.14 294 / 0.09);
  pointer-events: none;
}

.trust-shield-orbits ellipse {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.7;
  stroke-dasharray: 380;
  animation: trust-orbit-draw 2.4s var(--ease) forwards;
}

@keyframes trust-orbit-draw {
  from { stroke-dashoffset: 380; opacity: 0; }
  to { stroke-dashoffset: 0; opacity: 1; }
}

/* ── Shield center content ────────────────────────── */
.trust-shield-core {
  position: relative;
  z-index: 2;
  text-align: center;
}

.trust-shield-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px; height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 26%, oklch(0.99 0.01 84 / 0.9), transparent 28%),
    linear-gradient(145deg, oklch(0.85 0.14 52 / 0.36), oklch(0.72 0.17 294 / 0.18));
  box-shadow:
    0 0 0 1px oklch(0.84 0.14 73 / 0.30),
    0 0 48px oklch(0.82 0.16 62 / 0.30),
    0 0 80px oklch(0.72 0.17 304 / 0.14);
  color: oklch(0.99 0.01 82);
}

.trust-shield-mark svg {
  width: 36px; height: 36px;
  filter: drop-shadow(0 2px 8px oklch(0.32 0.11 292 / 0.18));
}

.trust-shield-core h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 8px;
}

.trust-shield-core p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 320px;
  margin: 0 auto;
}

/* ── Shield pipeline dots ─────────────────────────── */
.trust-shield-pipeline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 0.78rem;
  color: var(--muted);
}

.trust-shield-pipeline span {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.trust-shield-pipeline span:last-child {
  width: auto;
  height: auto;
  border-radius: 0;
  white-space: nowrap;
}

.trust-shield-pipeline .ts-dot--done {
  background: oklch(0.56 0.08 158);
  box-shadow: 0 0 10px oklch(0.56 0.08 158 / 0.3);
}

.trust-shield-pipeline .ts-dot--active {
  background: oklch(0.66 0.15 294);
  box-shadow: 0 0 12px oklch(0.66 0.15 294 / 0.4);
  animation: ts-dot-pulse 2s ease-in-out infinite;
}

@keyframes ts-dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.trust-shield-pipeline .ts-line {
  width: 20px; height: 1px;
  background: oklch(0.6 0.03 76 / 0.3);
}

/* Premium proof centerpiece */
@media (min-width: 1121px) {
  .trust-section {
    padding: clamp(58px, 7.4vh, 86px) clamp(24px, 5vw, 96px) clamp(64px, 8vh, 96px);
    background:
      radial-gradient(ellipse 48% 70% at 74% 50%, oklch(0.72 0.16 294 / 0.07), transparent 68%),
      radial-gradient(ellipse 38% 46% at 48% 60%, oklch(0.84 0.12 72 / 0.11), transparent 62%),
      linear-gradient(180deg, var(--ivory-clean) 0%, var(--ivory) 58%, var(--rhythm-paper) 100%);
  }

  .trust-section-inner {
    width: min(1240px, 100%);
  }

  .trust-section .section-head {
    display: block;
    width: min(900px, 100%);
    margin: 0 auto clamp(30px, 4.4vh, 46px);
    text-align: center;
  }

  .trust-section .section-label {
    font-size: 0.58rem;
    letter-spacing: 0.24em;
  }

  .trust-section .section-title {
    font-size: clamp(2.2rem, 2.72vw, 3rem);
    line-height: 1.02;
    text-wrap: balance;
  }

  .trust-section .section-note {
    max-width: 520px;
    margin: 12px auto 0;
    font-size: 0.9rem;
    line-height: 1.56;
  }

  .trust-body {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.72fr);
    min-height: 430px;
    gap: clamp(36px, 5.6vw, 78px);
    align-items: center;
  }

  .trust-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-column: 1;
    grid-row: 1;
    gap: 18px;
    counter-reset: trust-proof;
    align-self: center;
    padding-bottom: 0;
  }

  .trust-feature {
    counter-increment: trust-proof;
    min-height: 178px;
    padding: 22px 22px 21px;
    border: 1px solid oklch(0.74 0.052 70 / 0.18);
    border-radius: 20px;
    background:
      radial-gradient(circle at 12% 16%, oklch(0.99 0.012 82 / 0.54), transparent 38%),
      linear-gradient(145deg, oklch(0.994 0.01 82 / 0.58), oklch(0.966 0.018 76 / 0.2));
    box-shadow:
      0 14px 34px oklch(0.34 0.04 286 / 0.045),
      inset 0 1px 0 oklch(0.99 0.01 82 / 0.5);
    backdrop-filter: saturate(1.04);
    -webkit-backdrop-filter: saturate(1.04);
  }

  .trust-feature::before {
    content: "0" counter(trust-proof);
    position: absolute;
    top: 18px;
    right: 18px;
    font-family: var(--font-ui);
    font-size: 0.64rem;
    font-weight: 650;
    letter-spacing: 0.14em;
    color: oklch(0.56 0.09 50 / 0.52);
  }

  .trust-feature:hover {
    transform: translateY(-4px);
    border-color: oklch(0.78 0.1 74 / 0.32);
    box-shadow:
      0 20px 46px oklch(0.34 0.04 286 / 0.07),
      0 0 24px oklch(0.84 0.12 72 / 0.09),
      inset 0 1px 0 oklch(0.99 0.01 82 / 0.56);
  }

  .trust-feature-icon {
    width: 38px;
    height: 38px;
    margin: 0 0 18px;
    color: var(--violet-deep);
    box-shadow:
      0 0 0 1px oklch(0.66 0.15 294 / 0.16),
      0 10px 24px oklch(0.5 0.12 294 / 0.1),
      inset 0 1px 0 oklch(0.99 0.01 84 / 0.56);
  }

  .trust-feature-icon svg {
    width: 18px;
    height: 18px;
  }

  .trust-feature-text h4 {
    font-size: 1rem;
    line-height: 1.18;
    margin-bottom: 7px;
  }

  .trust-feature-text p {
    max-width: 250px;
    font-size: 0.76rem;
    line-height: 1.5;
  }

  .trust-shield {
    grid-column: 2;
    grid-row: 1;
    min-height: 430px;
    width: min(410px, 100%);
    justify-self: center;
    align-self: center;
    padding: clamp(34px, 4vw, 48px);
    border: 1px solid oklch(0.74 0.052 70 / 0.2);
    border-radius: 30px;
    background:
      radial-gradient(ellipse 62% 52% at 50% 36%, oklch(0.99 0.012 82 / 0.66), transparent 58%),
      radial-gradient(circle at 50% 48%, oklch(0.84 0.12 72 / 0.14), transparent 48%),
      linear-gradient(155deg, oklch(0.994 0.01 82 / 0.66), oklch(0.966 0.018 76 / 0.26));
    box-shadow:
      0 30px 76px oklch(0.35 0.06 292 / 0.1),
      0 0 0 1px oklch(0.99 0.01 82 / 0.28) inset,
      0 0 56px oklch(0.82 0.13 72 / 0.08);
    backdrop-filter: saturate(1.08);
    -webkit-backdrop-filter: saturate(1.08);
  }

  .trust-shield::before {
    display: block;
    inset: 1px;
    background:
      linear-gradient(142deg, oklch(0.99 0.01 82 / 0.42), transparent 48%),
      radial-gradient(circle at 80% 16%, oklch(0.84 0.12 72 / 0.16), transparent 28%);
  }

  .trust-shield::after {
    content: "";
    position: absolute;
    inset: 24px;
    border-radius: 26px;
    pointer-events: none;
    background:
      radial-gradient(circle at 18% 28%, oklch(0.72 0.16 294 / 0.24) 0 2px, transparent 3px),
      radial-gradient(circle at 82% 24%, oklch(0.84 0.12 72 / 0.22) 0 3px, transparent 4px),
      radial-gradient(circle at 74% 76%, oklch(0.72 0.16 294 / 0.18) 0 2px, transparent 3px);
    opacity: 0.88;
  }

  .trust-shield-orbits {
    inset: -8% -12%;
    width: 124%;
    height: 116%;
    color: oklch(0.72 0.14 42 / 0.18);
  }

  .trust-shield-mark {
    width: 118px;
    height: 118px;
    margin-bottom: 24px;
    border-radius: 30px;
    background:
      radial-gradient(circle at 38% 24%, oklch(0.99 0.01 84 / 0.92), transparent 28%),
      linear-gradient(145deg, oklch(0.73 0.16 294 / 0.44), oklch(0.92 0.1 62 / 0.22));
    color: oklch(0.99 0.01 82);
    box-shadow:
      0 0 0 1px oklch(0.84 0.14 73 / 0.22),
      0 16px 48px oklch(0.72 0.17 304 / 0.14),
      0 0 80px oklch(0.82 0.16 62 / 0.16);
    transform: rotate(-6deg);
  }

  .trust-shield-mark svg {
    width: 50px;
    height: 50px;
  }

  .trust-shield-core h3 {
    display: block;
    font-size: clamp(1.32rem, 1.7vw, 1.66rem);
    line-height: 1.15;
    margin-bottom: 10px;
  }

  .trust-shield-core p {
    display: block;
    max-width: 300px;
    font-size: 0.86rem;
    line-height: 1.54;
  }

  .trust-shield-pipeline {
    display: flex;
    margin-top: 28px;
    padding: 11px 14px;
    border: 1px solid oklch(0.74 0.052 70 / 0.16);
    border-radius: var(--radius-full);
    background: oklch(0.99 0.012 82 / 0.42);
    box-shadow: inset 0 1px 0 oklch(0.99 0.01 82 / 0.46);
  }
}

@media (min-width: 769px) and (max-width: 1120px) {
  .trust-section .section-head .section-title {
    font-size: clamp(2.18rem, 4.6vw, 2.68rem);
    line-height: 1.04;
    text-wrap: balance;
  }

  .trust-section .trust-body {
    gap: 26px;
  }

  .trust-section .trust-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .trust-section .trust-feature {
    min-height: 136px;
  }

  .trust-section .trust-shield {
    max-width: 620px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .trust-section {
    scroll-margin-top: calc(var(--space-48) + var(--space-24));
  }

  .trust-section .trust-feature {
    transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
  }
}
