/**
 * YPYM Observatory — Base CSS & Ambient Background
 */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Screen Reader Accessible Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Atmospheric Ambient Glow Backdrop */
.ambient-glow-mesh {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.65;
  transition: transform 0.8s var(--ease-smooth);
}

.ambient-orb-top-right {
  top: -120px;
  right: -80px;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.22) 0%, rgba(168, 85, 247, 0.12) 50%, transparent 75%);
}

.ambient-orb-center {
  top: 25%;
  left: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
}

.ambient-cursor-glow {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.14) 0%, rgba(147, 197, 253, 0.05) 50%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

/* Page Layout Wrappers */
.page-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-bottom: 120px;
}

.container {
  width: 100%;
  max-width: 1100px;
  padding: 0 24px;
  margin: 0 auto;
}

/* Standard Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

button {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
  cursor: pointer;
}

input {
  font-family: inherit;
  border: none;
  outline: none;
}

/* ==========================================================================
   Bottom Exit Section & Administrator Access Onboarding
   ========================================================================== */
.cta-exit-section {
  text-align: center;
  max-width: 640px;
  margin: 70px auto 80px;
  padding: 0 24px;
}

.cta-exit-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #059669;
  background: #d1fae5;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.cta-exit-title {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 14px;
}

.cta-exit-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.cta-input-group {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: none;
  max-width: 520px;
  margin: 0 auto 14px;
}

.cta-input-field {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: transparent;
  outline: none;
}

.btn-cta-submit {
  padding: 11px 24px;
  font-size: 0.875rem;
}

.cta-input-field::placeholder {
  color: #94a3b8;
}

.cta-note {
  font-size: 0.775rem;
  color: #64748b;
  line-height: 1.5;
}

.cta-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.cta-note a:hover {
  color: #0f172a;
}

.site-footer {
  padding: 36px 24px 24px;
  font-size: 0.8125rem;
  color: #64748b;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  width: 100%;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.footer-copy {
  margin: 0;
  line-height: 1.5;
  color: #64748b;
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .cta-exit-section {
    margin: 50px auto 60px;
    padding: 0 16px;
  }

  .cta-exit-title {
    font-size: 1.7rem;
  }

  .cta-input-group {
    flex-direction: column;
    padding: 10px;
    border-radius: 20px;
    gap: 8px;
  }

  .cta-input-field {
    width: 100%;
    padding: 8px 12px;
    text-align: center;
  }

  .btn-cta-submit {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .site-footer {
    padding: 28px 16px 20px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

