body {
  background:
    radial-gradient(circle at 14% 12%, rgba(55, 128, 255, 0.14), transparent 20%),
    radial-gradient(circle at 84% 18%, rgba(241, 194, 74, 0.1), transparent 18%),
    linear-gradient(180deg, #050b15 0%, #08111f 40%, #091423 100%);
}

body::after {
  background:
    radial-gradient(circle at 20% 14%, rgba(55, 128, 255, 0.14), transparent 18%),
    radial-gradient(circle at 82% 16%, rgba(241, 194, 74, 0.1), transparent 16%),
    linear-gradient(180deg, transparent 18%, rgba(2, 5, 11, 0.36) 50%, rgba(2, 5, 11, 0.76) 100%);
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(390px, 1fr);
}

.hero h1,
.title,
.cta-title {
  font-family: "Nunito", "Segoe UI", sans-serif;
  font-weight: 900;
}

.hero-actions .btn,
.actions .btn,
.portal-actions .btn,
.cta-actions .btn {
  min-height: 54px;
  border-radius: 18px;
}

.btn.primary {
  background: linear-gradient(135deg, #f5cf5c 0%, #efb424 100%);
}

.btn.secondary,
.btn.ghost {
  background: rgba(255, 255, 255, 0.05);
}

.panel,
.portal-card,
.reference-summary,
.map-shell,
.site-panel,
.cta-box {
  border-radius: 30px;
}

.portal-grid {
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 20px;
}

.portal-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.portal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(55, 128, 255, 0.08), transparent 34%),
    radial-gradient(circle at 82% 16%, rgba(241, 194, 74, 0.12), transparent 22%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.portal-card:hover,
.portal-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.32);
  border-color: rgba(255, 255, 255, 0.14);
}

.portal-card:hover::before,
.portal-card:focus-within::before {
  opacity: 1;
}

.portal-card > * {
  position: relative;
  z-index: 1;
}

.portal-card h3 {
  font-size: 1.38rem;
}

.portal-state,
.portal-kicker {
  border-radius: 14px;
}

.cta-box {
  overflow: hidden;
  position: relative;
}

.cta-box::before {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(55, 128, 255, 0.12), transparent 65%);
}

.cta-box::after {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(241, 194, 74, 0.12), transparent 68%);
}

.transition-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(55, 128, 255, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(5, 11, 21, 0.96), rgba(10, 18, 34, 0.98));
  opacity: 1;
  clip-path: circle(140% at 50% 50%);
  transition: clip-path 0.95s cubic-bezier(.2,.8,.2,1), opacity 0.5s ease;
}

.transition-screen.is-ready {
  opacity: 0;
  clip-path: circle(0% at 92% 10%);
}

.transition-screen.is-leaving {
  opacity: 1;
  clip-path: circle(140% at 12% 84%);
}

body.transition-active {
  overflow: hidden;
}

body.transition-active main,
body.transition-active header,
body.transition-active footer,
body.transition-active .dock {
  filter: blur(4px);
}

@media (max-width: 1100px) {
  .hero-grid,
  .portal-grid {
    grid-template-columns: 1fr;
  }
}
