:root {
  --bg: #03040b;
  --panel: rgba(9, 13, 30, 0.62);
  --panel-strong: rgba(10, 16, 38, 0.82);
  --text: #f5f8ff;
  --muted: #a9b6d6;
  --cyan: #22d8ff;
  --blue: #2d78ff;
  --pink: #ff4fd8;
  --violet: #8d5cff;
  --green: #8cffc8;
  --line: rgba(178, 219, 255, 0.22);
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(45, 120, 255, 0.2), transparent 32rem),
    radial-gradient(circle at 82% 12%, rgba(255, 79, 216, 0.16), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.space-field,
.space-field span {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.space-field {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.82) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(34, 216, 255, 0.62) 0 1px, transparent 1.5px);
  background-position: 0 0, 80px 120px;
  background-size: 170px 170px, 260px 260px;
  opacity: 0.38;
  animation: driftStars 36s linear infinite;
}

.space-field span:nth-child(1) {
  background: radial-gradient(circle at 22% 32%, rgba(34, 216, 255, 0.18), transparent 18rem);
  animation: pulseGlow 7s ease-in-out infinite;
}

.space-field span:nth-child(2) {
  background: radial-gradient(circle at 76% 52%, rgba(255, 79, 216, 0.14), transparent 20rem);
  animation: pulseGlow 9s ease-in-out infinite reverse;
}

.space-field span:nth-child(3) {
  background: linear-gradient(110deg, transparent 0 42%, rgba(141, 92, 255, 0.12), transparent 58% 100%);
  transform: translateX(-30%);
  animation: scanLight 12s ease-in-out infinite;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: min(1160px, calc(100% - 32px));
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(199, 232, 255, 0.18);
  border-radius: 999px;
  background: rgba(4, 7, 18, 0.54);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px);
}

.site-header.is-scrolled {
  background: rgba(4, 7, 18, 0.82);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 28px rgba(34, 216, 255, 0.46);
}

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

.nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 14px;
  color: rgba(245, 248, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.nav .nav-pill {
  color: #05101d;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  box-shadow: 0 0 26px rgba(255, 79, 216, 0.28);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--text);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 140px max(24px, calc((100vw - 1160px) / 2)) 80px;
  overflow: hidden;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image: url("assets/multiscatmoon.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: heroFloat 18s ease-in-out infinite;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(3, 4, 11, 0.94) 0%, rgba(3, 4, 11, 0.68) 36%, rgba(3, 4, 11, 0.2) 72%, rgba(3, 4, 11, 0.78) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%, rgba(3, 4, 11, 0.25) 100%);
}

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

.orb-cyan {
  width: 220px;
  height: 220px;
  left: 8%;
  top: 22%;
  background: rgba(34, 216, 255, 0.16);
  animation: floatOrb 8s ease-in-out infinite;
}

.orb-pink {
  width: 180px;
  height: 180px;
  right: 12%;
  bottom: 20%;
  background: rgba(255, 79, 216, 0.16);
  animation: floatOrb 9s ease-in-out infinite reverse;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(4.8rem, 12vw, 9.8rem);
  line-height: 0.83;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 0 30px rgba(34, 216, 255, 0.34), 0 0 70px rgba(255, 79, 216, 0.24);
}

h2 {
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.18rem;
}

.hero-subtitle {
  margin: 22px 0 0;
  color: #d8f7ff;
  font-size: clamp(1.25rem, 3vw, 2.1rem);
  font-weight: 800;
}

.hero-copy,
.section-copy p,
.feature-card p,
.cto-card p,
.info-card p,
.footer p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy {
  max-width: 610px;
  margin: 16px 0 0;
  font-size: 1.08rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.cta-row.center {
  justify-content: center;
}

.btn,
.mini-actions a,
.copy-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0 20px;
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover,
.mini-actions a:hover,
.copy-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.42);
}

.btn-primary {
  background: linear-gradient(135deg, #1dd9ff, #2d78ff);
  box-shadow: 0 0 34px rgba(34, 216, 255, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.09);
}

.btn-accent {
  color: #08101f;
  background: linear-gradient(135deg, #ff4fd8, #22d8ff);
  box-shadow: 0 0 34px rgba(255, 79, 216, 0.3);
}

.btn-ghost {
  background: rgba(8, 12, 28, 0.7);
}

.glass {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.hero-panel {
  position: absolute;
  right: max(24px, calc((100vw - 1160px) / 2));
  bottom: 82px;
  z-index: 3;
  width: min(360px, calc(100% - 48px));
  border-radius: 26px;
  padding: 18px;
}

.signal-label,
.contract-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.signal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.signal-grid a {
  min-height: 96px;
  display: grid;
  align-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.07);
}

.signal-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.signal-grid strong {
  font-size: 1.15rem;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  width: 30px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-cue span {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text);
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}

.section {
  position: relative;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 110px 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 34px;
  align-items: center;
}

.section-copy p {
  max-width: 650px;
  margin: 18px 0 0;
}

.centered {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 32px;
}

.centered p {
  margin-left: auto;
  margin-right: auto;
}

.feature-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 26px;
  align-items: center;
  border-radius: 30px;
  padding: 22px;
}

.feature-card img {
  width: 190px;
  aspect-ratio: 1;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 0 38px rgba(34, 216, 255, 0.24);
}

.feature-card p {
  margin-bottom: 0;
}

.cto-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 26px;
  align-items: center;
}

.cto-visual {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.cto-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(34, 216, 255, 0.16), rgba(255, 79, 216, 0.18));
  mix-blend-mode: screen;
}

.cto-visual img {
  width: 100%;
  min-height: 360px;
  object-fit: cover;
}

.cto-card {
  border-radius: 30px;
  padding: clamp(24px, 4vw, 46px);
}

.cto-card p:last-of-type {
  margin-bottom: 0;
}

.mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.mini-actions a {
  min-height: 42px;
  background: rgba(255, 255, 255, 0.08);
}

.contract-card {
  width: min(920px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border-radius: 26px;
  padding: 24px;
}

.contract-card code {
  display: block;
  margin-top: 10px;
  color: #e6fbff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.8rem, 2.1vw, 1.08rem);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.copy-btn {
  border: 0;
  color: #06101d;
  background: linear-gradient(135deg, var(--cyan), var(--green));
}

.cards-grid,
.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-card,
.link-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border-radius: 26px;
  padding: 24px;
}

.info-card::before,
.link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34, 216, 255, 0.18), transparent 46%, rgba(255, 79, 216, 0.16));
  opacity: 0;
  transition: opacity 180ms ease;
}

.info-card:hover::before,
.link-card:hover::before {
  opacity: 1;
}

.info-card > *,
.link-card > * {
  position: relative;
  z-index: 1;
}

.card-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 44px;
  border-radius: 16px;
  color: #06101d;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  font-size: 0.9rem;
  font-weight: 900;
}

.info-card p {
  margin-bottom: 0;
}

.gallery-band {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 0.7fr 0.7fr;
  gap: 14px;
  padding: 60px 24px;
}

.gallery-band img {
  width: 100%;
  height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.link-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.link-card {
  min-height: 190px;
  display: grid;
  align-content: space-between;
}

.link-card span {
  color: var(--muted);
  font-weight: 800;
}

.link-card strong {
  font-size: 1.35rem;
}

.link-card.featured {
  border-color: rgba(255, 79, 216, 0.44);
  box-shadow: 0 24px 90px rgba(255, 79, 216, 0.18);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 52px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer p {
  margin: 0;
}

@keyframes driftStars {
  from {
    background-position: 0 0, 80px 120px;
  }
  to {
    background-position: 170px 170px, 340px 380px;
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

@keyframes scanLight {
  0% {
    transform: translateX(-40%);
    opacity: 0;
  }
  45%,
  55% {
    opacity: 1;
  }
  100% {
    transform: translateX(40%);
    opacity: 0;
  }
}

@keyframes heroFloat {
  0%,
  100% {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.08) translate3d(-1.2%, -1%, 0);
  }
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(24px, -22px, 0);
  }
}

@keyframes scrollDot {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 18px);
  }
}

@media (max-width: 940px) {
  .site-header {
    border-radius: 28px;
  }

  .menu-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .nav {
    position: fixed;
    top: 86px;
    left: 16px;
    right: 16px;
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    background: rgba(4, 7, 18, 0.94);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-16px);
    pointer-events: none;
    backdrop-filter: blur(18px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav a {
    width: 100%;
    justify-content: center;
  }

  .hero {
    align-items: center;
    padding: 128px 16px 120px;
  }

  .hero-bg {
    background-position: 58% center;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, var(--bg) 0%, rgba(3, 4, 11, 0.72) 38%, rgba(3, 4, 11, 0.5) 100%),
      rgba(3, 4, 11, 0.36);
  }

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 28px;
  }

  .split-section,
  .cto-section {
    grid-template-columns: 1fr;
  }

  .feature-card {
    grid-template-columns: 1fr;
  }

  .feature-card img {
    width: 100%;
    max-height: 360px;
    aspect-ratio: 16 / 10;
  }

  .cards-grid,
  .link-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 62px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  h1 {
    font-size: clamp(4rem, 21vw, 5.6rem);
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .hero {
    min-height: 100svh;
    padding-top: 108px;
  }

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

  .btn,
  .mini-actions a,
  .copy-btn {
    width: 100%;
  }

  .section {
    width: calc(100% - 24px);
    padding: 78px 0;
  }

  .contract-card {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .cards-grid,
  .link-grid,
  .signal-grid {
    grid-template-columns: 1fr;
  }

  .info-card,
  .link-card {
    min-height: 210px;
  }

  .gallery-band {
    padding-left: 12px;
    padding-right: 12px;
  }

  .gallery-band img {
    height: 280px;
  }

  .footer {
    width: calc(100% - 24px);
  }
}

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