/* ════════════════════ ══════════ ══════════════════════ ══════════
   GALACTIBEAM — STYLESHEET
   Laser-linked futures across the solar system.
   ══════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════
   1. ROOT VARS & RESET
   ════════════════════════════════════════════════════════════ */

:root {
  --space-black: #020008;
  --space-deep: #080612;
  --midnight: #0f0e1a;
  --ocean-dark: #0a0d19;
  --void: #06000a;

  --star-white: #f0f0ff;
  --star-gray: #d0d0e0;

  --accent-cyan: #00bfff;
  --accent-cyan-dim: #0088aa;
  --accent-cyan-bright: #00ddff;

  --text-soft: #a0a0cc;
  --text-default: #d0d0ee;
  --text-bright: #f0f0ff;
  --text-glow: rgba(0, 255, 255, 0.5);

  --surface-soft: rgba(20, 18, 32, 0.6);
  --surface-border: rgba(255, 255, 255, 0.08);
  --surface-elevated: rgba(24, 22, 44, 0.75);

  --shadow-cyan: 0 0 20px rgba(0, 191, 255, 0.25);
  --shadow-cyan-glow: 0 0 40px rgba(0, 191, 255, 0.4);
  --shadow-dim: 0 0 12px rgba(0, 0, 0, 0.5);

  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Exo 2', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--space-black);
  color: var(--text-default);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ════════════════════════════════════════════════════════════
   2. STARFIELD BACKGROUND
   ════════════════════════════════════════════════════════════ */

#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

#laserfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.laser-streak {
  position: absolute;
  width: 50px;
  height: 4px;
  background: #531f11;
  opacity: 0.70;
  border-radius: 1px;
}

@keyframes laserMove {
  0% {
    transform: translateX(0) translateY(0) rotate(var(--laser-angle));
  }
  100% {
    transform: translateX(var(--laser-dx)) translateY(var(--laser-dy)) rotate(var(--laser-angle));
  }
}

/* ════════════════════════════════════════════════════════════
   3. ACCESSIBILITY & SCREEN READER
   ════════════════════════════════════════════════════════════ */

.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;
}

/* ════════════════════════════════════════════════════════════
   4. NAVIGATION
   ════════════════════════════════════════════════════════════ */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--surface-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--surface-border);
  transition: all 0.4s var(--ease-out);
}

.nav-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1rem 50px 1rem 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'WDXL Lubrifont TC', sans-serif;
  font-weight: 900;
  font-size: 1.125rem;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--text-bright);
  text-decoration: none;
  margin-left: 50px;
  transition: text-shadow 0.3s ease, color 0.3s ease;
}

.nav-logo:hover {
  text-shadow: 0 0 16px var(--text-glow);
  color: var(--accent-cyan);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.05);
}

.hamburger-line {
  width: 28px;
  height: 2px;
  background: var(--text-default);
  transition: all 0.3s var(--ease-out);
  border-radius: 1px;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translateY(6px);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translateY(-6px);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.25s ease, text-shadow 0.25s ease;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan-bright);
  box-shadow: 0 0 12px var(--text-glow);
  transition: width 0.3s var(--ease-out);
  border-radius: 1px;
}

.nav-link:hover, .nav-link:focus {
  color: var(--text-bright);
  outline: none;
}

.nav-link:hover::after, .nav-link:focus::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent-cyan-bright);
  text-shadow: 0 0 12px var(--text-glow);
}

.nav-link.active::after {
  width: 100%;
}

/* ════════════════════════════════════════════════════════════
   5. SECTION LAYOUT & CONTAINER
   ════════════════════════════════════════════════════════════ */

.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
}

.container {
  max-width: 1000px;
  width: 100%;
}

/* ════════════════════════════════════════════════════════════
   6. HERO SECTION
   ════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* overflow: hidden; */
  background: radial-gradient(ellipse 180vmax at 50% 0, var(--void) 0%, transparent 70%);
}

.hero-title-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  white-space: nowrap;
}

.hero-centered {
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  width: 100%;
}

.hero-satellite {
  position: absolute;
  right: -5%;
  top: 40%;
  transform: translateY(-50%);
  width: min(67.5vw, 900px);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.hero-satellite img {
  width: 100%;
  height: auto;
  display: block;
  animation: satellitePulse 7s ease-in-out infinite;
  user-select: none;
}

@keyframes satellitePulse {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(0, 191, 255, 0.15));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(0, 191, 255, 0.25));
  }
}

.satellite-inner {
  animation: hover 12s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes hover {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(15px);
  }
  100% {
    transform: translateY(0);
  }
}

.hero-title {
  font-family: "Rubik Glitch", system-ui;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(4.5rem, 11vw, 9rem);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--text-bright);
  margin-bottom: 1rem;
  position: relative;
  text-shadow: 0 0 20px rgba(8, 6, 24, 0.8), 0 0 20px rgba(8, 6, 24, 0.5);
  user-select: none;
}

#hero-heading.hero-title {
  font-family: "Rubik Glitch", system-ui;
}

.hero-title span {
  display: inline-block;
  white-space: nowrap;
  transition: transform 3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-tagline {
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-bright);
  max-width: 720px;
  margin: 0 auto 1.5rem;
  text-shadow: 0 0 40px rgba(8, 6, 24, 0.8);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-decoration: none;
  padding: 0.8rem 2rem;
  border-radius: 9999px;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  background: rgba(0, 191, 255, 0.1);
  color: var(--accent-cyan-bright);
  cursor: pointer;
}

.btn:focus {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 4px;
}

.btn-primary {
  background: rgba(0, 191, 255, 0.15);
  box-shadow: 0 0 20px var(--shadow-cyan), inset 0 0 20px rgba(0, 191, 255, 0.05);
  border: 1px solid var(--accent-cyan-dim);
}

.btn-primary:hover {
  background: rgba(0, 191, 255, 0.25);
  box-shadow: 0 0 32px var(--shadow-cyan-glow), inset 0 0 20px rgba(0, 191, 255, 0.08);
  border-color: var(--accent-cyan-bright);
  transform: translateY(-1px);
  text-shadow: 0 0 8px var(--text-glow);
}

.btn-ghost {
  background: rgba(128, 128, 128, 0.3);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-default);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-bright);
  color: var(--text-bright);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* ════════════════════════════════════════════════════════════
   7. HERO VISUAL
   ════════════════════════════════════════════════════════════ */

.hero-visual {
  position: absolute;
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: min(30vw, 280px);
  height: min(20vw, 186px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation-timeline: scroll(root);
  animation-range: 0vh 100vh;
  animation-name: slideSatellite;
  animation-fill: both;
  animation-timing-function: linear;
}

@keyframes slideSatellite {
  0% {
    opacity: 1;
    transform: translateY(-50%) translateX(0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-50%) translateX(-150%) rotate(-15deg);
  }
}

.nebula-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0, rgba(0, 191, 255, 0.12) 0%, transparent 65%);
  filter: blur(24px);
  z-index: -1;
  animation: nebulaPulse 6s ease-in-out infinite;
}

#satellite-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 16px var(--shadow-cyan));
  animation: orbitFloat 20s linear infinite;
  animation-play-state: paused;
}

/* ════════════════════════════════════════════════════════════
   8. MISSION SECTION
   ════════════════════════════════════════════════════════════ */

.mission-body {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 400;
  line-height: 1.95;
  color: var(--text-soft);
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 1s var(--ease-out);
}

.mission-body p {
  margin-bottom: 1.5rem;
}

/* ════════════════════════════════════════════════════════════
   9. TECHNOLOGY SECTION
   ════════════════════════════════════════════════════════════ */

.technology .section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  color: var(--text-bright);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: start;
}

.card {
  background: var(--surface-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.3s var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  background: var(--surface-elevated);
  border-color: rgba(0, 191, 255, 0.2);
  box-shadow: 0 8px 32px var(--shadow-dim), 0 0 20px rgba(0, 191, 255, 0.15);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent-cyan-bright);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-bright);
  margin-bottom: 1rem;
}

.card-body {
  font-family: 'Exo 2', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-default);
}

/* ════════════════════════════════════════════════════════════
   10. INVESTORS SECTION
   ════════════════════════════════════════════════════════════ */

.investors-inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  animation: fadeInUp 1.2s var(--ease-out);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--text-bright);
}

.investors-body {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.9;
  color: var(--text-soft);
  margin-bottom: 2.5rem;
}

/* ════════════════════════════════════════════════════════════
    11. MODAL (PROSPECTUS POPUP)
    ════════════════════════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 6, 18, 0.6);
  backdrop-filter: blur(50%);
  -webkit-backdrop-filter: blur(50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--surface-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  max-width: 450px;
  width: 100%;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s var(--ease-out);
  text-align: center;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  transition: color 0.25s ease;
}

.modal-close:hover {
  color: var(--text-bright);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-bright);
  margin-bottom: 1.25rem;
}

.modal-body {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-default);
}

/* ════════════════════════════════════════════════════════════
    12. CONTACT SECTION
    ════════════════════════════════════════════════════════════ */

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--surface-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  animation: fadeInUp 1.4s var(--ease-out);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: var(--text-soft);
}

.form-input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-bright);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-input::placeholder {
  color: rgba(208, 208, 238, 0.4);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-cyan-bright);
  box-shadow: 0 0 16px var(--shadow-cyan);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

.btn-lg {
  width: 100%;
  padding: 1rem 2.5rem;
  margin-top: 1rem;
  font-size: 1rem;
}

/* ════════════════════════════════════════════════════════════
   12. FOOTER
   ════════════════════════════════════════════════════════════ */

.site-footer {
  position: relative;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  background: linear-gradient(to top, var(--void) 0%, transparent 100%);
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-brand {
  text-align: center;
}

.footer-logo {
  display: block;
  font-family: 'WDXL Lubrifont TC', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.4;
  color: var(--text-soft);
  max-width: 400px;
  white-space: nowrap;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-link:hover, .footer-link:focus {
  color: var(--accent-cyan-bright);
  text-shadow: 0 0 8px var(--text-glow);
  outline: none;
}

.footer-copy {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(208, 208, 238, 0.35);
}

/* ════════════════════════════════════════════════════════════
   13. ANIMATIONS
   ════════════════════════════════════════════════════════════ */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes orbitFloat {
  from { transform: rotate(0deg) translateX(5%) rotate(0deg); }
  to { transform: rotate(360deg) translateX(5%) rotate(-360deg); }
}

@keyframes nebulaPulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.fade-in {
  animation: fadeIn 0.9s var(--ease-out);
}

/* ════════════════════════════════════════════════════════════
   14. RESPONSIVE BREAKPOINTS
   ════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    gap: 1rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {

  .cards-grid {
    justify-content: center;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    z-index: -1;
    flex-direction: column;
    gap: 0;
    background: var(--surface-soft);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--surface-border);
    padding: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
    max-height: 0;
    overflow: hidden;
  }

  .nav-links[aria-expanded="true"] {
    transform: translateY(0);
    opacity: 1;
    max-height: 70vh;
    overflow-y: auto;
    padding-bottom: 1.5rem;
  }

  .nav-link {
    padding: 1rem 0;
    width: 100%;
    text-align: center;
  }

  .nav-link::after {
    display: none;
  }

  .hero-title-wrap {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    text-align: left;
    z-index: 20;
  }

  .hero-title {
    font-size: clamp(2.5rem, 7vw, 4rem);
  }

  .hero-title::after {
    left: 0;
    right: auto;
    transform: none;
  }

  .hero-satellite {
    right: -10%;
    top: 45%;
    width: min(90vw, 700px);
    z-index: 5;
  }

  .hero-centered {
    top: 75%;
    padding: 0 1rem;
  }

  .hero-ctas {
    width: 100%;
  }

  .btn {
    flex: 1;
    text-align: center;
  }

  .nebula-bg {
    border-radius: 50%;
  }

  .site-footer {
    padding: 2.5rem 1.5rem 1.5rem;
  }

}

@media (max-width: 480px) {

  .hamburger-line {
    width: 24px;
  }

}