* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #0a0a0d;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  overflow: hidden;
}

#grid-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* --- Nav --- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
  opacity: 0;
  transform: translateY(-16px);
  animation: navIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

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

.nav__backdrop {
  position: absolute;
  inset: 0 0 auto 0;
  height: 130px;
  background: linear-gradient(to bottom, rgba(10, 10, 13, 0.92) 0%, rgba(10, 10, 13, 0.6) 55%, rgba(10, 10, 13, 0) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: -1;
  pointer-events: none;
}

.nav__logo {
  color: #f5f5f7;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.nav__links {
  display: flex;
  gap: 34px;
}

.nav__links a {
  color: rgba(245, 245, 247, 0.65);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.nav__links a:hover {
  color: #f5f5f7;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav__login {
  color: rgba(245, 245, 247, 0.75);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav__login:hover {
  color: #f5f5f7;
}

.nav__enter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #8b5cf6;
  color: #0a0a0d;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav__enter:hover {
  background: #a78bfa;
  transform: translateY(-1px);
}

.nav__arrow {
  transition: transform 0.2s ease;
}

.nav__enter:hover .nav__arrow {
  transform: translateX(3px);
}

/* --- Hero --- */

.hero {
  position: relative;
  z-index: 5;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40px;
}

.hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1100px, 130vw);
  height: min(1100px, 130vw);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(139, 92, 246, 0.16) 0%, rgba(139, 92, 246, 0.05) 45%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  animation: glowIn 1.6s ease 0.2s forwards;
}

@keyframes glowIn {
  to { opacity: 1; }
}

.hero__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  line-height: 0.92;
  font-size: clamp(2.6rem, 9vw, 8.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;

  opacity: 0;
  transform: translateX(-90px);
  will-change: transform, opacity;
}

.hero__title.is-visible {
  opacity: 1;
  transform: translateX(0);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s ease;
}

.hero__title.is-visible.hero__title--eject {
  transform: translateY(-140vh);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97), opacity 0.4s ease-in;
}

.hero__line {
  display: block;
}

.hero__line--accent {
  color: #8b5cf6;
}

.hero__line--outline {
  color: transparent;
  -webkit-text-stroke: 2px rgba(150, 150, 158, 0.9);
  text-stroke: 2px rgba(150, 150, 158, 0.9);
}

.hero__line--solid {
  color: #f5f5f7;
}

@keyframes metaIn {
  to {
    opacity: 1;
  }
}

body.is-scrolled .hero__scroll {
  opacity: 0 !important;
  pointer-events: none;
}

.hero__scroll {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: translateX(-50%);
  color: rgba(245, 245, 247, 0.45);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  opacity: 0;
  animation: metaIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards;
  transition: opacity 0.3s ease;
}

.hero__scroll-chevron {
  font-size: 15px;
  animation: scrollBounce 1.6s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(5px); opacity: 0.9; }
}

@media (max-width: 640px) {
  .nav {
    padding: 20px;
  }
  .nav__links {
    display: none;
  }
  .hero {
    padding: 0 20px;
  }
}

/* --- Footer --- */

.site-footer {
  position: relative;
  z-index: 5;
  background: #08080a;
  border-top: 1px solid rgba(139, 92, 246, 0.15);
  padding: 50px 40px 24px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto 32px;
}

.site-footer__logo {
  display: block;
  color: #f5f5f7;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.site-footer__brand p {
  color: rgba(245, 245, 247, 0.45);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  max-width: 260px;
}

.site-footer__col h3 {
  color: rgba(245, 245, 247, 0.85);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}

.site-footer__col a,
.site-footer__soon {
  display: block;
  color: rgba(245, 245, 247, 0.5);
  text-decoration: none;
  font-size: 13.5px;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.site-footer__col a:hover {
  color: #c4b5fd;
}

.site-footer__soon {
  opacity: 0.6;
}

.site-footer__bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.site-footer__bottom span {
  color: rgba(245, 245, 247, 0.35);
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
}

@media (max-width: 640px) {
  .site-footer {
    padding: 40px 20px 20px;
  }
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
}
