/* ManjuLAB SaaS + cosmic landing shell — content starts at top (no hero gap) */
@import url('/portal/assets/portal-loop.css?v=11');

/* ── Page shell ───────────────────────────────────────────────────── */
body.landing-page,
body.portal-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* Never vertically center the whole page — fixes empty band above header */
  justify-content: flex-start;
  align-items: stretch;
}

.landing-header,
.portal-header {
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}

.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px clamp(14px, 3vw, 24px);
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

.manjulab-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.manjulab-mark .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.manjulab-mark .brand-text strong {
  font-size: 0.95rem;
  color: var(--text);
}

.manjulab-mark .brand-text span {
  font-size: 0.72rem;
  color: var(--muted);
}

.landing-main {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 6px clamp(14px, 3vw, 24px) 40px;
  min-height: 0;
  position: relative;
  z-index: 5;
}

.landing-tagline {
  width: 100%;
  text-align: center;
  margin: 0 0 10px;
}

.landing-tagline p {
  margin: 0 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-light, #67e8f9);
}

.landing-tagline h1 {
  margin: 0;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 700;
  color: #f8fafc;
}

.landing-footer {
  flex-shrink: 0;
  text-align: center;
  padding: 12px 20px 24px;
  font-size: 0.82rem;
  color: var(--muted);
  position: relative;
  z-index: 5;
}

.landing-footer a {
  color: var(--cyan-light, #67e8f9);
}

.portal-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(24px, 5vw, 48px);
  width: 100%;
  margin: 0 auto;
}

.portal-grid--hub {
  gap: clamp(28px, 6vw, 64px);
}

/* ── Orbital watermark: background only (must not steal vertical space) ── */
body.landing-page .brand-cosmos-watermark,
body.portal-page .brand-cosmos-watermark,
body.saas-hub-page .brand-cosmos-watermark {
  opacity: 0.18;
  pointer-events: none;
}

body.landing-page .brand-cosmos-core,
body.portal-page .brand-cosmos-core,
body.saas-hub-page .brand-cosmos-core {
  top: 10%;
  width: min(260px, 48vw);
  height: min(170px, 30vw);
}

body.landing-page .brand-watermark-logo,
body.portal-page .brand-watermark-logo,
body.saas-hub-page .brand-watermark-logo {
  opacity: 0.04;
  width: min(88px, 18vw);
}

body.landing-page .brand-orbit-ellipse,
body.portal-page .brand-orbit-ellipse,
body.saas-hub-page .brand-orbit-ellipse {
  opacity: 0.45;
}

/* ── Portal pages: compact top, content-first ─────────────────────── */
body.portal-page .portal-header {
  padding: 10px 16px;
  max-width: none;
}

body.portal-page .portal-main {
  padding: 8px 16px 32px;
}

body.portal-page .portal-hero {
  margin-bottom: 20px;
}

body.education-compact .portal-header {
  padding: 8px 16px;
}

body.education-compact .portal-main {
  padding: 4px 16px 28px;
}

@media (max-width: 600px) {
  .landing-header { padding-top: 6px; }
  .landing-main { padding-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-orbit-ellipse,
  .brand-cosmos-glow {
    animation: none !important;
  }
}
