/* ========================================
   SPRIN WORLD — Landing Page Styles
   ======================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a1a;
  --bg-card: #12122a;
  --bg-card-hover: #1a1a3a;
  --text: #f0f0f8;
  --text-muted: #8888aa;
  --accent: #4ade80;
  --accent-2: #2dd4bf;
  --gold: #fbbf24;
  --purple: #a78bfa;
  --pink: #f472b6;
  --gradient: linear-gradient(135deg, #4ade80, #2dd4bf);
  --gradient-warm: linear-gradient(135deg, #fbbf24, #f472b6);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 60px rgba(74, 222, 128, 0.15);
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-2);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.15s; }
.reveal:nth-child(6) { transition-delay: 0.25s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient);
  color: #0a0a1a;
  box-shadow: 0 4px 20px rgba(74, 222, 128, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(74, 222, 128, 0.5);
  color: #0a0a1a;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.125rem;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 24px;
  transition: background 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}

.nav-logo:hover { color: var(--text); }

.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 24px 0 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-mobile a {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 500;
}

.nav-mobile.open {
  display: flex;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 24px 60px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(74, 222, 128, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(167, 139, 250, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(45, 212, 191, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-title-line {
  display: block;
}

.hero-title .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-desc {
  margin-top: 24px;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-platforms {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.hero-creature {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-creature-img {
  width: 100%;
  max-width: 500px;
  filter: drop-shadow(0 0 40px rgba(74, 222, 128, 0.2));
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Floating orbs */
.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.floating-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  animation: orbFloat linear infinite;
}

.orb-1 {
  width: 80px;
  top: 15%;
  left: 8%;
  animation-duration: 18s;
  animation-delay: 0s;
}

.orb-2 {
  width: 60px;
  top: 60%;
  right: 10%;
  animation-duration: 22s;
  animation-delay: -4s;
}

.orb-3 {
  width: 70px;
  bottom: 20%;
  left: 15%;
  animation-duration: 20s;
  animation-delay: -8s;
}

.orb-4 {
  width: 50px;
  top: 25%;
  right: 25%;
  animation-duration: 24s;
  animation-delay: -12s;
}

.orb-5 {
  width: 65px;
  top: 70%;
  left: 40%;
  animation-duration: 19s;
  animation-delay: -6s;
}

@keyframes orbFloat {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  25% {
    transform: translateY(-30px) translateX(20px) rotate(90deg);
  }
  50% {
    transform: translateY(-10px) translateX(-15px) rotate(180deg);
  }
  75% {
    transform: translateY(-40px) translateX(10px) rotate(270deg);
  }
  100% {
    transform: translateY(0) translateX(0) rotate(360deg);
  }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  opacity: 0.5;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Section Titles ---------- */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 56px;
}

/* ---------- Features ---------- */
.features {
  padding: 120px 24px;
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.2), transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-8px);
  border-color: rgba(74, 222, 128, 0.15);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Gameplay Screenshots ---------- */
.gameplay {
  padding: 120px 24px;
  background: linear-gradient(180deg, var(--bg) 0%, #0d0d24 50%, var(--bg) 100%);
}

.phone-gallery {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.phone-frame {
  flex: 0 0 auto;
  text-align: center;
}

.phone-screen {
  width: 220px;
  height: 440px;
  border-radius: 28px;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.1);
  background: #111;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-screen:hover {
  border-color: rgba(74, 222, 128, 0.3);
  transform: translateY(-8px);
  box-shadow: var(--shadow), 0 12px 40px rgba(74, 222, 128, 0.15);
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-label {
  margin-top: 16px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ---------- Creatures ---------- */
.creatures {
  padding: 120px 24px;
  position: relative;
}

.creature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.creature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.creature-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(74, 222, 128, 0.2);
  box-shadow: var(--shadow-glow);
}

.creature-img-wrap {
  aspect-ratio: 1;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
}

.creature-img-wrap img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.creature-card:hover .creature-img-wrap img {
  transform: scale(1.1);
}

.creature-info {
  padding: 16px 20px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.creature-info h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

.type-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.type-nature { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.type-light { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.type-fire { background: rgba(251, 113, 80, 0.15); color: #fb7150; }
.type-electric { background: rgba(250, 204, 21, 0.15); color: #facc15; }
.type-water { background: rgba(96, 165, 250, 0.15); color: #60a5fa; }
.type-dark { background: rgba(167, 139, 250, 0.15); color: #a78bfa; }

.creature-more {
  text-align: center;
  margin-top: 48px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-muted);
}

/* ---------- Collectors ---------- */
.collectors {
  padding: 120px 24px;
  background: linear-gradient(180deg, var(--bg) 0%, #0e0e20 50%, var(--bg) 100%);
}

.collectors-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.collector-card {
  width: 220px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.collector-card:hover {
  transform: translateY(-12px);
}

.collector-card img {
  width: 100%;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
}

/* ---------- CTA Section ---------- */
.cta {
  position: relative;
  padding: 160px 24px;
  text-align: center;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(74, 222, 128, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cta-creature {
  position: absolute;
  width: 300px;
  opacity: 0.06;
  filter: blur(1px);
}

.cta-creature-left {
  left: -50px;
  bottom: -30px;
  transform: rotate(-15deg);
}

.cta-creature-right {
  right: -50px;
  top: -30px;
  transform: rotate(15deg);
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-content p {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

.cta-content .hero-ctas {
  justify-content: center;
  margin-top: 40px;
}

/* ---------- Footer ---------- */
.footer {
  padding: 48px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.footer-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-creators {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-creators a {
  color: var(--accent);
  font-weight: 500;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-creature-img {
    max-width: 350px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .creature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 100px 20px 40px;
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(2.8rem, 12vw, 4.5rem);
  }

  .hero-tagline {
    font-size: 1.1rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .hero-creature-img {
    max-width: 280px;
  }

  .hero-scroll-hint {
    display: none;
  }

  .features, .gameplay, .creatures, .collectors {
    padding: 80px 20px;
  }

  .section-subtitle {
    margin-bottom: 40px;
  }

  .phone-gallery {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
    gap: 20px;
  }

  .phone-frame {
    scroll-snap-align: center;
    flex: 0 0 auto;
  }

  .phone-screen {
    width: 200px;
    height: 400px;
  }

  .creature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .collectors-row {
    gap: 24px;
  }

  .collector-card {
    width: 160px;
  }

  .cta {
    padding: 100px 20px;
  }

  .cta-creature {
    width: 180px;
  }
}

@media (max-width: 480px) {
  .creature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .creature-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px 16px;
  }

  .collector-card {
    width: 130px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
  }
}

/* ---------- Subtle Noise Texture ---------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}
