/* Homepage Vanta Team banner.
   Vanta brand: Purple #AC55FF on deep purple #240642, editorial Fraunces serif
   + Hanken Grotesk sans (same faces as the /vanta prep pages). Hidden until
   /js/vanta-banner.js confirms the viewer holds the `vanta_team` role. */

@font-face {
  font-family: 'Fraunces'; src: url('/fonts/vanta/fraunces.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk'; src: url('/fonts/vanta/hanken.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
}

/* Never let a stray display rule defeat the hidden attribute. */
.vt-banner[hidden] { display: none !important; }

.vt-banner {
  --vt-purple: #AC55FF;
  --vt-ink: #240642;
  position: relative;
  margin: 4px 0 34px;
  padding: 30px 32px;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(172, 85, 255, 0.22), transparent 60%),
    linear-gradient(135deg, #2c0a52 0%, #240642 45%, #170330 100%);
  border: 1px solid rgba(172, 85, 255, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 18px 48px rgba(36, 6, 66, 0.30);
}

/* fine grid texture, very subtle, for depth */
.vt-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(110% 110% at 90% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(110% 110% at 90% 0%, #000 0%, transparent 70%);
}

/* blurred purple orb, top-right */
.vt-banner-glow {
  position: absolute; z-index: -1; top: -90px; right: -60px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(172, 85, 255, 0.55), transparent 65%);
  filter: blur(14px); pointer-events: none;
}

.vt-banner-inner { position: relative; max-width: 760px; }

.vt-banner-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: #d6a8ff; margin-bottom: 14px;
}
.vt-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px;
  font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1rem; color: #1a0430;
  background: linear-gradient(150deg, #c98bff, var(--vt-purple));
  box-shadow: 0 4px 14px rgba(172, 85, 255, 0.45);
}

.vt-banner-title {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 500; font-size: clamp(1.55rem, 1.1rem + 1.8vw, 2.15rem);
  line-height: 1.1; letter-spacing: -0.02em; color: #fbf7ff; margin: 0 0 10px;
}
.vt-banner-sub {
  font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  font-size: 0.97rem; line-height: 1.6; color: rgba(255, 255, 255, 0.74);
  margin: 0 0 22px; max-width: 620px;
}

.vt-banner-actions { display: flex; flex-wrap: wrap; gap: 11px; }

.vt-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Hanken Grotesk', system-ui, sans-serif; font-size: 0.9rem; font-weight: 600;
  padding: 11px 18px; border-radius: 12px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
}
.vt-btn-primary {
  color: #1a0430;
  background: linear-gradient(150deg, #c98bff, var(--vt-purple));
  box-shadow: 0 8px 22px rgba(172, 85, 255, 0.40);
}
.vt-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(172, 85, 255, 0.55); }
.vt-btn-ghost {
  color: #ede4fb; background: rgba(255, 255, 255, 0.04); border-color: rgba(214, 168, 255, 0.30);
}
.vt-btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(172, 85, 255, 0.16); border-color: rgba(172, 85, 255, 0.55); color: #fff;
}
.vt-btn-ic { font-size: 0.95em; }
.vt-arrow { transition: transform .16s ease; }
.vt-btn-primary:hover .vt-arrow { transform: translateX(3px); }

/* entrance once revealed */
.vt-banner.is-shown { animation: vtBannerIn .5s cubic-bezier(.21, .61, .35, 1) both; }
@keyframes vtBannerIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .vt-banner { padding: 24px 22px; border-radius: 18px; }
  .vt-banner-actions { gap: 9px; }
  .vt-btn { flex: 1 1 100%; justify-content: center; }
  .vt-btn-primary { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  .vt-banner.is-shown { animation: none; }
  .vt-btn, .vt-arrow { transition: none; }
}
