/* Portal landing – futuristic signed-out hero + signed-in liquid cards */

/* —— Signed-out: full-viewport hero —— */
.portal-body {
  margin: 0;
  min-height: 100vh;
}

.portal-nav {
  background: rgba(8, 12, 28, 0.85) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.portal-main {
  padding: 0;
  min-height: calc(100vh - 56px);
  position: relative;
}

.portal-hero-wrap {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.portal-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.portal-hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.35), transparent),
    radial-gradient(ellipse 60% 40% at 90% 50%, rgba(99, 102, 241, 0.2), transparent),
    radial-gradient(ellipse 50% 30% at 10% 80%, rgba(139, 92, 246, 0.15), transparent),
    linear-gradient(180deg, #0a0e1a 0%, #0f172a 40%, #0c1222 100%);
}

.portal-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: portal-grid-pulse 8s ease-in-out infinite;
}

@keyframes portal-grid-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.portal-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: portal-glow-float 12s ease-in-out infinite;
}

.portal-hero-glow-1 {
  width: 400px;
  height: 400px;
  background: rgba(59, 130, 246, 0.25);
  top: -100px;
  left: -100px;
}

.portal-hero-glow-2 {
  width: 320px;
  height: 320px;
  background: rgba(99, 102, 241, 0.2);
  bottom: 10%;
  right: 5%;
  animation-delay: -4s;
}

.portal-hero-glow-3 {
  width: 280px;
  height: 280px;
  background: rgba(139, 92, 246, 0.15);
  bottom: 20%;
  left: 10%;
  animation-delay: -8s;
}

@keyframes portal-glow-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -15px) scale(1.05); }
  66% { transform: translate(-10px, 10px) scale(0.98); }
}

.portal-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 560px;
}

.portal-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.portal-hero-badge i {
  font-size: 1rem;
  color: rgba(96, 165, 250, 0.9);
}

.portal-hero-title {
  font-family: 'Space Grotesk', 'Outfit', sans-serif;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem;
  line-height: 1.15;
}

.portal-hero-title-line {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
}

.portal-hero-title-brand {
  display: block;
  font-size: clamp(2.5rem, 8vw, 4rem);
  background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.portal-hero-lead {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0 0 2rem;
}

.portal-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  border: none;
  padding: 0.9rem 1.75rem;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.portal-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.5);
  color: #fff;
}

.portal-hero-cta i {
  font-size: 1.25rem;
}

.portal-hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-hero-feature {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

.portal-hero-feature i {
  color: rgba(96, 165, 250, 0.8);
}

/* —— Signed-in: full-width liquid cards —— */
.landing-header {
  max-width: none;
}

.landing-greeting {
  font-size: 1.125rem;
  color: #6c757d;
}

.landing-question {
  font-size: 1.5rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 0;
}

.landing-cards {
  max-width: none;
}

.landing-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  color: inherit;
}

.landing-card:hover {
  border-color: var(--portal-primary, #0d6efd);
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  color: inherit;
}

.landing-card-icon {
  font-size: 1.75rem;
  color: var(--portal-primary, #0d6efd);
  margin-bottom: 0.5rem;
}

.landing-card .card-title {
  font-weight: 600;
  margin-bottom: 0.35rem;
}
