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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #02040a;
  color: white;
  overflow: hidden;
}

/* SCROLL SNAP */
.snap-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
}

.scene {
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 0 20px;
}

/* NAVBAR */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 20, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 168px;
  height: 50px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: #aaa;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: white;
}

.nav-btn,
.btn-primary {
  background: linear-gradient(135deg, #6c63ff, #8b7cff);
  padding: 14px 24px;
  border-radius: 30px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.nav-btn:hover,
.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(108,99,255,0.5);
}

/* POSTER HERO */
.poster-hero {
  justify-content: flex-start;
  padding-top: 130px;
  padding-bottom: 60px;
  gap: 30px;
}

.poster-wrapper {
  width: 100%;
  max-width: 900px;
}

.poster-wrapper img {
  width: 100%;
  display: block;
  border-radius: 24px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.7);
}

.hero-content {
  text-align: center;
}

.hero h1 {
  font-size: 56px;
  text-align: center;
  max-width: 900px;
}

.hero p {
  color: #aaa;
  margin-top: 16px;
  font-size: 18px;
}

.btn-primary {
  display: inline-block;
  margin-top: 30px;
}

/* GLASS UI */
.glass {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 0 40px rgba(108,99,255,0.1);
}

/* DEMO */
.split {
  display: flex;
  gap: 40px;
  align-items: center;
}

.panel {
  width: 320px;
}

.panel h3 {
  margin-bottom: 15px;
}

pre {
  font-size: 14px;
  color: #aaa;
  white-space: pre-wrap;
}

.ai-arrow {
  font-size: 40px;
  color: #8b7cff;
  animation: pulseAI 2s infinite;
}

@keyframes pulseAI {
  0% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.4; transform: scale(0.9); }
}

/* ECOSYSTEM */
.center {
  text-align: center;
}

.flow {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  align-items: center;
}

.box {
  padding: 20px 50px;
}

.stream {
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #6c63ff, transparent);
  animation: flow 1.5s infinite;
}

@keyframes flow {
  0% { transform: translateX(-20px); opacity: 0.4; }
  50% { opacity: 1; }
  100% { transform: translateX(20px); opacity: 0.4; }
}

/* CURSOR + PARTICLES */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(108,99,255,0.2), transparent);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 999;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}

/* HAMBURGER */
.hamburger {
  display: none;
  width: 30px;
  height: 22px;
  position: relative;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1002;
}

.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 10px;
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 80px;
  right: 16px;
  width: 220px;
  background: rgba(10,10,20,0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 1001;
}

.mobile-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu a {
  color: white;
  text-decoration: none;
}

.mobile-download {
  margin-top: 10px;
  background: linear-gradient(135deg, #6c63ff, #8b7cff);
  padding: 10px;
  border-radius: 20px;
  text-align: center;
}

/* MOBILE */
@media (max-width: 768px) {
  .nav-links,
  .nav-btn {
    display: none !important;
  }

  .hamburger {
    display: block;
  }

  .nav {
    padding: 20px;
  }

  .poster-hero {
    padding-top: 110px;
  }

  .hero h1 {
    font-size: 36px;
  }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .split {
    flex-direction: column;
  }

  .panel {
    width: 100%;
  }
}