/* ════════════════════════════════════════════════════════════════════════
   SPACEEDU — GLOBAL DESIGN SYSTEM & SHARED STYLES
   ════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@300;400;500;600;700&family=Poppins:wght@500;600;700&family=Prata&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-deep: #04101f;
  --bg-space: #06152b;
  --bg-card: rgba(12, 27, 54, 0.72);
  --bg-card-hover: rgba(18, 38, 76, 0.85);
  --bg-glass: rgba(8, 20, 42, 0.82);

  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.88);
  --ink-muted: rgba(255, 255, 255, 0.65);
  --ink-dim: rgba(255, 255, 255, 0.4);

  --cyan: #79dce8;
  --cyan-logo: #5fd0e1;
  --cyan-glow: rgba(121, 220, 232, 0.25);
  --cyan-border: rgba(121, 220, 232, 0.35);

  --rule: rgba(255, 255, 255, 0.16);
  --btn-ink: #071227;

  --font-serif: 'Prata', Georgia, serif;
  --font-body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-logo: 'Poppins', sans-serif;

  --max-w: 1240px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --nav-height: 86px;
}

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

body {
  background-color: var(--bg-deep);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Background Cosmic Nebula Ambient Glow */
body::before {
  content: "";
  position: fixed;
  top: -20vh;
  right: -10vw;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(121, 220, 232, 0.08) 0%, rgba(4, 16, 31, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  bottom: -20vh;
  left: -10vw;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 115, 214, 0.09) 0%, rgba(4, 16, 31, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* ════════════════════════════════════════════════════════════════════════
   GLOBAL NAVBAR
   ════════════════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(4, 16, 31, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--rule);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(4, 16, 31, 0.94);
  border-bottom: 1px solid rgba(121, 220, 232, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: var(--max-w);
  height: var(--nav-height);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.2px;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 3px;
  z-index: 10;
  transition: opacity 0.2s;
}

.logo:hover {
  opacity: 0.9;
}

.logo i {
  font-style: normal;
  color: var(--cyan-logo);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  position: relative;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 4px;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a[aria-current="page"] {
  color: #fff;
  font-weight: 500;
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  background: var(--cyan);
  border-radius: 2px;
}

.nav-links a.enroll-pill {
  width: auto;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  color: var(--btn-ink);
  background: linear-gradient(180deg, #ffffff 0%, #d8ecfe 9%, #dceefe 72%, #f4f9ff 100%);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2), inset 0 0 0 1.5px rgba(255, 255, 255, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-links a.enroll-pill::after {
  content: none;
}

.nav-links a.enroll-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(121, 220, 232, 0.4), inset 0 0 0 1.5px #fff;
  color: var(--btn-ink);
}

/* Burger Button */
.burger-btn {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 10;
}

.burger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.18s ease;
}

.nav-container[data-open="true"] .burger-btn span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-container[data-open="true"] .burger-btn span:nth-child(2) {
  opacity: 0;
}
.nav-container[data-open="true"] .burger-btn span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ════════════════════════════════════════════════════════════════════════
   SHARED BUTTONS & ACCENTS
   ════════════════════════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  color: var(--btn-ink);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, #ffffff 0%, #d6e8f8 4%, #d9ecfe 72%, #ffffff 100%);
  box-shadow: 0 10px 24px -6px rgba(255, 255, 255, 0.45), 0 0 20px rgba(121, 220, 232, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(121, 220, 232, 0.5), 0 0 28px rgba(121, 220, 232, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(121, 220, 232, 0.15);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.eyebrow-tag::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--cyan);
  border-radius: 1px;
}

/* ════════════════════════════════════════════════════════════════════════
   GLOBAL FOOTER
   ════════════════════════════════════════════════════════════════════════ */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--rule);
  background: rgba(3, 10, 22, 0.85);
  backdrop-filter: blur(16px);
  position: relative;
  z-index: 10;
}

.footer-top {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 24px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-col ul a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-newsletter p {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.footer-input-row {
  display: flex;
  gap: 8px;
}

.footer-input-row input {
  flex: 1;
  height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.footer-input-row input:focus {
  border-color: var(--cyan);
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-dim);
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agency-credit {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.agency-credit:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--cyan);
}

.agency-email {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}

.agency-email:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--cyan);
  text-decoration: underline;
}

.brand-credit {
  position: absolute;
  bottom: calc(24 * var(--u));
  right: calc(28 * var(--u));
  z-index: 10;
  font-size: calc(12 * var(--u));
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-body);
  letter-spacing: calc(0.5 * var(--u));
  pointer-events: auto;
}

.brand-credit a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.brand-credit a:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--cyan);
}

@media (max-width: 579px) {
  .brand-credit {
    bottom: calc(14 * var(--u));
    right: 50%;
    transform: translateX(50%);
    white-space: nowrap;
    font-size: calc(11 * var(--u));
  }
}


.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #39d98a;
  box-shadow: 0 0 10px #39d98a;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN (GLOBAL)
   ════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .burger-btn {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: var(--nav-height);
    right: 24px;
    width: min(340px, calc(100vw - 48px));
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: rgba(9, 21, 42, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.28s;
    gap: 0;
  }

  .nav-container[data-open="true"] .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 14px 16px;
    font-size: 17px;
    border-radius: var(--radius-md);
  }

  .nav-links a + a {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links a[aria-current="page"]::after {
    left: 16px;
    right: auto;
    width: 28px;
    bottom: 8px;
  }

  .nav-links a.enroll-pill {
    margin-top: 12px;
    text-align: center;
    justify-content: center;
    padding: 14px;
    border-radius: var(--radius-pill);
    border-top: 0;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 580px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
