/* ============================================================
   SYNAPSES ACADEMY HOME
   Launch cover
   ============================================================ */

:root {
  --nav-height: 76px;
}

html {
  background: var(--bg-void);
  overflow-x: hidden;
  max-width: 100%;
}

html.no-js .launch-shell {
  opacity: 1;
  transform: none;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
  background:
    radial-gradient(ellipse 80% 58% at 50% 0%, rgba(0, 229, 255, 0.11), transparent 70%),
    linear-gradient(180deg, #04040e 0%, #070714 52%, #04040e 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.54), transparent 88%);
  opacity: 0.36;
}

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

a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.launch-page,
.launch-hero {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.launch-hero {
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: var(--sp-6);
  isolation: isolate;
}

.launch-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.launch-bg::before,
.launch-bg::after {
  content: "";
  position: absolute;
  inset: 0;
}

.launch-bg::before {
  background:
    radial-gradient(ellipse 58% 42% at 56% 38%, rgba(0, 229, 255, 0.09), transparent 66%),
    radial-gradient(ellipse 36% 42% at 80% 18%, rgba(124, 58, 237, 0.12), transparent 68%),
    radial-gradient(ellipse 40% 36% at 15% 82%, rgba(57, 255, 20, 0.055), transparent 70%);
}

.launch-bg::after {
  background:
    linear-gradient(180deg, rgba(4, 4, 14, 0.12) 0%, rgba(4, 4, 14, 0.54) 70%, rgba(4, 4, 14, 0.9) 100%),
    radial-gradient(ellipse 82% 80% at 50% 50%, transparent 0%, transparent 48%, rgba(4, 4, 14, 0.72) 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.58;
}

.orb-cyan {
  top: 12%;
  right: 10%;
  width: min(520px, 56vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.2), transparent 66%);
  animation: driftOrb 12s ease-in-out infinite;
}

.orb-violet {
  left: 4%;
  bottom: 4%;
  width: min(460px, 64vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18), transparent 68%);
  animation: driftOrb 15s ease-in-out 1.4s infinite reverse;
}

.grid-horizon {
  position: absolute;
  left: 50%;
  bottom: -18%;
  width: min(1200px, 110vw);
  height: 48%;
  transform: translateX(-50%) perspective(700px) rotateX(64deg);
  transform-origin: center top;
  background:
    linear-gradient(rgba(0, 229, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.13) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), transparent 78%);
  opacity: 0.22;
}

@keyframes driftOrb {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(18px, -22px, 0) scale(1.06); }
}

.launch-shell {
  width: min(1180px, 100%);
  max-width: 100%;
  opacity: 0;
  transform: translateY(18px);
  animation: shellIn 720ms var(--ease-out) 80ms forwards;
}

@keyframes shellIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.launch-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: clamp(2rem, 5vh, 4rem);
}

.brand-lockup,
.nav-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-subtle);
  background: rgba(4, 4, 14, 0.52);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.brand-lockup {
  gap: var(--sp-3);
  min-width: 0;
  padding: 8px 14px 8px 8px;
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 800;
}

.brand-lockup img {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.65));
}

.brand-lockup strong {
  color: var(--cyan);
  font-weight: 800;
}

.nav-pill {
  min-height: 44px;
  padding: 0 var(--sp-5);
  border-radius: var(--radius-full);
  color: var(--cyan);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 800;
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base), background var(--dur-base);
}

.nav-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.42);
  background: var(--cyan-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.74fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  min-width: 0;
}

.hero-copy {
  max-width: 730px;
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cta-green);
  box-shadow: 0 0 14px rgba(57, 255, 20, 0.8);
  animation: pulseDot 2.2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.68); }
}

.hero-copy h1 {
  max-width: 720px;
  margin-bottom: var(--sp-6);
  font-family: var(--font-heading);
  font-size: clamp(3.6rem, 7vw, 6.35rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-wrap: balance;
  background: linear-gradient(135deg, #fff 0%, #f0f7ff 36%, var(--cyan) 62%, var(--violet-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 48px rgba(0, 229, 255, 0.16);
}

.hero-lead,
.hero-note {
  max-width: 650px;
  color: var(--text-secondary);
  font-size: clamp(1.02rem, 1.45vw, 1.18rem);
  line-height: 1.7;
}

.hero-note {
  margin-top: var(--sp-4);
  color: var(--text-primary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}

.launch-cta {
  min-height: 58px;
  padding-inline: var(--sp-8) !important;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 var(--sp-4);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.08);
  color: #f8d18a;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ecosystem-panel {
  position: relative;
  overflow: hidden;
  padding: var(--sp-5);
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow:
    0 30px 110px rgba(0, 0, 0, 0.48),
    0 0 80px rgba(0, 229, 255, 0.08);
  transform: translateZ(0);
}

.ecosystem-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(ellipse 70% 48% at 80% 0%, rgba(0, 229, 255, 0.12), transparent 68%),
    radial-gradient(ellipse 60% 42% at 10% 100%, rgba(124, 58, 237, 0.12), transparent 70%);
  pointer-events: none;
}

.panel-status {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 var(--sp-4);
  border: 1px solid rgba(0, 229, 255, 0.24);
  border-radius: var(--radius-full);
  background: rgba(4, 4, 14, 0.68);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ecosystem-panel h2 {
  position: relative;
  z-index: 1;
  margin: var(--sp-4) 0 var(--sp-3);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 2.8vw, 2.65rem);
  line-height: var(--leading-tight);
  letter-spacing: -0.025em;
}

.ecosystem-panel > p {
  position: relative;
  z-index: 1;
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.ecosystem-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}

.ecosystem-item {
  display: block;
  padding: var(--sp-3);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: rgba(4, 4, 14, 0.48);
}

.ecosystem-item span {
  display: inline-flex;
  margin-bottom: var(--sp-2);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ecosystem-item strong {
  display: block;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
}

.ecosystem-item p {
  margin-top: var(--sp-2);
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.55;
}

.ecosystem-item-link {
  border-color: rgba(57, 255, 20, 0.22);
  background:
    linear-gradient(135deg, rgba(57, 255, 20, 0.08), transparent 44%),
    rgba(4, 4, 14, 0.62);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base), background var(--dur-base);
}

.ecosystem-item-link span {
  color: var(--cta-green);
}

.ecosystem-item-link:hover {
  transform: translateY(-3px);
  border-color: rgba(57, 255, 20, 0.42);
  background:
    linear-gradient(135deg, rgba(57, 255, 20, 0.12), transparent 44%),
    rgba(4, 4, 14, 0.74);
}

@media (max-width: 980px) {
  .launch-hero {
    align-items: start;
    padding: var(--sp-4);
  }

  .launch-shell {
    padding-top: var(--sp-2);
  }

  .launch-nav {
    margin-bottom: var(--sp-10);
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
  }

  .ecosystem-panel {
    max-width: 760px;
  }
}

@media (max-width: 680px) {
  .launch-hero {
    min-height: 100svh;
    padding: var(--sp-4);
    display: block;
  }

  .launch-shell,
  .hero-grid,
  .hero-actions,
  .launch-cta,
  .status-chip,
  .ecosystem-panel {
    width: min(calc(100vw - 2rem), 358px);
    max-width: calc(100vw - 2rem);
    min-width: 0;
  }

  .launch-shell {
    margin-inline: 0;
    padding-top: var(--sp-2);
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-8);
  }

  .hero-copy,
  .hero-actions {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .launch-nav {
    margin-bottom: var(--sp-10);
  }

  .brand-lockup {
    max-width: 100%;
  }

  .brand-lockup span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-pill {
    display: none;
  }

  .eyebrow {
    align-items: flex-start;
    max-width: 310px;
    line-height: var(--leading-snug);
  }

  .eyebrow span {
    margin-top: 5px;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.6rem, 12vw, 3.15rem);
    line-height: 0.93;
    letter-spacing: -0.035em;
    overflow-wrap: break-word;
  }

  .hero-lead,
  .hero-note {
    width: 100%;
    max-width: 100%;
    font-size: 0.98rem;
    overflow-wrap: break-word;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .launch-cta {
    width: 100%;
    min-height: 58px;
  }

  .status-chip {
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  .ecosystem-panel {
    padding: var(--sp-5);
  }

  .grid-horizon {
    bottom: -24%;
    opacity: 0.16;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
