/* ============================================
   Hero Section Styles
   ============================================ */

.hero {
  padding: clamp(var(--space-10), 7vw, var(--space-16));
  border-radius: clamp(var(--radius-xl), 3vw, var(--radius-3xl));
  background: radial-gradient(circle at 20% 20%, rgba(10, 54, 114, 0.16), transparent 55%),
              linear-gradient(135deg, rgba(18, 20, 28, 0.92) 0%, rgba(8, 9, 14, 0.94) 55%, rgba(18, 20, 28, 0.92) 100%);
  border: 1px solid rgba(246, 247, 250, 0.12);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: clamp(320px, 40vw, 480px);
  height: clamp(320px, 40vw, 520px);
  background: radial-gradient(circle, rgba(10, 54, 114, 0.18) 0%, transparent 65%);
  opacity: 0.35;
  filter: blur(2px);
  pointer-events: none;
  transform: rotate(15deg);
}
.hero__inner {
  position: relative;
  display: grid;
  gap: clamp(var(--space-8), 4vw, var(--space-12));
}
.hero__header {
  display: grid;
  gap: var(--space-3);
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  width: fit-content;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(246, 247, 250, 0.1);
  border: 1px solid rgba(246,247,250,0.18);
  font-size: var(--font-size-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(246, 247, 250, 0.68);
}
.hero__title {
  font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-4xl));
  font-weight: var(--font-weight-extrabold);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-on-dark);
}
.hero__subtitle {
  max-width: 62ch;
  color: rgba(246, 247, 250, 0.8);
  font-size: clamp(var(--font-size-base), 2.2vw, var(--font-size-lg));
}
.hero__grid {
  display: grid;
  gap: clamp(var(--space-5), 3vw, var(--space-6));
  grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
}
.hero__card {
  position: relative;
  padding: clamp(var(--space-6), 3.4vw, var(--space-8));
  border-radius: clamp(var(--radius-lg), 2vw, var(--radius-2xl));
  border: 1px solid rgba(246, 247, 250, 0.12);
  background: linear-gradient(160deg, rgba(28, 30, 40, 0.78) 0%, rgba(18, 19, 28, 0.5) 100%);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
  color: var(--color-text-on-dark);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: clamp(var(--space-3), 1.6vw, var(--space-4));
  min-height: clamp(236px, 28vw, 300px);
  justify-content: space-between;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.hero__card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.16);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.hero__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.5);
  border-color: rgba(246, 247, 250, 0.18);
}
.hero__card:hover::after {
  opacity: 1;
}
.hero__card-label {
  font-size: var(--font-size-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 247, 250, 0.55);
}
.hero__card-title {
  font-size: clamp(var(--font-size-lg), 2.3vw, var(--font-size-xl));
  font-weight: var(--font-weight-semibold);
}
.hero__card-meta {
  font-size: var(--font-size-sm);
  color: rgba(246, 247, 250, 0.68);
}
.hero__card-action {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--font-size-sm);
  color: rgba(246, 247, 250, 0.86);
}
.hero__footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
}
.hero__note {
  font-size: var(--font-size-sm);
  color: rgba(246, 247, 250, 0.68);
}
.hero__button {
  align-self: stretch;
  display: inline-flex;
  justify-content: center;
}
@media (min-width: 768px) {
  .hero__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .hero__inner {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
  }
  .hero__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
  }
  .hero__footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    grid-column: 1;
  }
  .hero__header { grid-column: 1; }
  .hero__grid { grid-column: 2; }
  .hero__trust { grid-column: 2; align-self: center; justify-self: end; }
  .hero__button {
    width: auto;
    min-width: 220px;
  }
}

/* Trust badges under cards, aligned with footer on desktop */
.hero__trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.hero__trust-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  font-size: clamp(var(--font-size-xs), 2.4vw, var(--font-size-sm));
  line-height: 1.2;
  color: rgba(246, 247, 250, 0.92);
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(246,247,250,0.10);
  box-shadow: 0 -1px 0 rgba(255,255,255,0.06) inset, 0 6px 18px rgba(0,0,0,0.35);
}

/* New trust rows (stars + labels and text links) */
.hero__trust-row { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-2); }
.hero__trust-row:first-child { margin-top: 0; }
.hero__stars { display: inline-flex; gap: 4px; line-height: 0; }
.hero__trust-label, .hero__trust-text, .hero__trust-link {
  font-size: var(--font-size-sm);
  color: rgba(246, 247, 250, 0.86);
}
.hero__trust-link { text-decoration: none; border-bottom: 1px dashed rgba(246,247,250,0.28); }
.hero__trust-link:hover { color: var(--color-white); border-bottom-color: rgba(246,247,250,0.5); }

/* Trust box: horizontal with layered depth and dividers */
.hero__trust-box {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-4), 2.5vw, var(--space-6));
  padding: clamp(var(--space-3), 1.6vw, var(--space-4)) clamp(var(--space-4), 2vw, var(--space-6));
  border-radius: clamp(var(--radius-lg), 2vw, var(--radius-xl));
  /* Color Layering for Depth */
  --trust-layer-0: #0b0d12; /* deepest */
  --trust-layer-1: #10131a; /* +0.1 */
  --trust-layer-2: #161b24; /* +0.2 */
  --trust-layer-3: #1c2330; /* +0.3 */
  background:
    linear-gradient(180deg, var(--trust-layer-3) 0%, var(--trust-layer-2) 100%),
    radial-gradient(60% 140% at 10% 0%, rgba(255,255,255,0.06), transparent 60%);
  /* Two-Layer Shadows (light top + dark bottom) */
  box-shadow: 0 -1px 0 rgba(255,255,255,0.08) inset, 0 12px 32px rgba(0,0,0,0.45);
}
.hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  position: relative;
  padding-inline: clamp(var(--space-1), 1vw, var(--space-3));
}
.hero__trust-item + .hero__trust-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06));
  opacity: 0.7;
}
.hero__stars svg { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35)); }

@media (max-width: 767px) {
  .hero__trust-box { flex-wrap: wrap; gap: var(--space-3); }
  .hero__trust-item + .hero__trust-item::before { display: none; }
}
