@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Streamplay.ai Inspired Color Palette */
  --bg-primary: #020f2b;
  --bg-secondary: #0a1333;
  --bg-tertiary: #0a1232;
  --bg-glass: rgba(10, 18, 50, 0.7);
  --bg-glass-hover: rgba(20, 30, 70, 0.85);
  
  --violet-primary: #822aee;
  --violet-light: #a855f7;
  --violet-dark: #3b0764;
  --fuchsia-glow: #d946ef;
  --cyan-accent: #38bdf8;
  
  --gradient-btn: linear-gradient(135deg, #571b86 0%, #3d0866 100%);
  --gradient-btn-hover: linear-gradient(135deg, #a855f7 0%, #d946ef 100%);
  --gradient-text: linear-gradient(90deg, #c084fc, #d946ef, #38bdf8);
  
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-faint: rgba(255, 255, 255, 0.4);
  
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(130, 42, 238, 0.5);
  --shadow-glow: 0 0 30px rgba(130, 42, 238, 0.35);
  
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-main);
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
  background-image: 
    radial-gradient(ellipse at top left, rgba(87, 27, 134, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(56, 189, 248, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at center, #0a1333 0%, #020f2b 100%);
  background-attachment: fixed;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #020f2b;
}
::-webkit-scrollbar-thumb {
  background: #571b86;
  border-radius: 5px;
  border: 2px solid #020f2b;
}
::-webkit-scrollbar-thumb:hover {
  background: #822aee;
}

/* Typography & Glows */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shine 6s linear infinite;
}

@keyframes shine {
  to { background-position: 200% center; }
}

.glow-text-cyan {
  color: var(--cyan-accent);
  text-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
}

.glow-text-magenta {
  color: var(--fuchsia-glow);
  text-shadow: 0 0 15px rgba(217, 70, 239, 0.6);
}

/* Background Grid Overlay */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
}

/* FLOATING PILL NAVBAR */
header {
  position: fixed;
  top: 1.5rem;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 1.5rem;
}

.navbar {
  width: 100%;
  max-width: 1100px;
  background: rgba(2, 15, 43, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 60px;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(130, 42, 238, 0.15);
  transition: all 0.3s ease;
}

.navbar:hover {
  border-color: var(--border-glow);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(130, 42, 238, 0.3);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
}

.logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(130, 42, 238, 0.8));
  transition: transform 0.3s ease;
}

.logo:hover .logo-img {
  transform: rotate(10deg) scale(1.1);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--violet-primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.special-cta {
  background: var(--gradient-btn);
  color: var(--text-main) !important;
  padding: 0.6rem 1.6rem;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(130, 42, 238, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.special-cta::after {
  display: none !important;
}

.special-cta:hover {
  background: var(--gradient-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 70, 239, 0.6);
  border-color: rgba(255, 255, 255, 0.3);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.2rem;
}

/* HERO SECTION - SPLIT ALIGNMENT */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 9rem 5% 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero-container {
  width: 100%;
  max-width: 1300px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(130, 42, 238, 0.15);
  border: 1px solid rgba(130, 42, 238, 0.4);
  padding: 0.45rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #c084fc;
  margin-bottom: 1.8rem;
  box-shadow: 0 0 20px rgba(130, 42, 238, 0.2);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

.btn-primary {
  background: var(--gradient-btn);
  color: var(--text-main);
  box-shadow: 0 8px 25px rgba(130, 42, 238, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background: var(--gradient-btn-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(217, 70, 239, 0.7);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* HERO RIGHT - FLOATING MULTIVERSE STAGE */
.hero-visual {
  position: relative;
  width: 100%;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.multiverse-stack {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 400px;
}

.stack-card {
  position: absolute;
  width: 320px;
  height: 380px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stack-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stack-card-1 {
  top: 10%;
  left: 5%;
  transform: rotate(-8deg) scale(0.9);
  z-index: 1;
  opacity: 0.75;
}

.stack-card-2 {
  top: 5%;
  right: 5%;
  transform: rotate(8deg) scale(0.9);
  z-index: 2;
  opacity: 0.85;
}

.stack-card-3 {
  top: 0;
  left: 50%;
  transform: translateX(-50%) rotate(0deg) scale(1);
  z-index: 3;
  border-color: var(--violet-primary);
  box-shadow: 0 25px 60px rgba(130, 42, 238, 0.4);
}

.multiverse-stack:hover .stack-card-1 {
  transform: translate(-30px, 10px) rotate(-14deg) scale(0.95);
  opacity: 0.9;
}

.multiverse-stack:hover .stack-card-2 {
  transform: translate(30px, 10px) rotate(14deg) scale(0.95);
  opacity: 0.9;
}

.multiverse-stack:hover .stack-card-3 {
  transform: translateX(-50%) translateY(-15px) scale(1.05);
  box-shadow: 0 30px 70px rgba(217, 70, 239, 0.6);
}

.stack-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(2, 15, 43, 0.85);
  backdrop-filter: blur(12px);
  padding: 0.8rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stack-badge span {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
}

.stack-badge small {
  color: var(--cyan-accent);
  font-weight: 600;
  font-size: 0.75rem;
}

/* GAMES SHOWCASE - BENTO GRID & FILTER TABS */
.games-section {
  position: relative;
  padding: 6rem 5%;
  z-index: 2;
  background: #060b1e;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--violet-light);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--text-main);
  margin-bottom: 1rem;
}

.section-title-underline {
  display: inline-block;
  border-bottom: 3px solid rgba(130, 42, 238, 0.6);
  padding-bottom: 0.2rem;
}

/* Filter Tabs Bar */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.7rem 1.8rem;
  border-radius: 40px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.25);
}

.filter-btn.active {
  background: var(--gradient-btn);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(130, 42, 238, 0.5);
}

/* Bento Showcase Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

/* Feature first and last games to span 2 columns for balanced Bento diagonal symmetry */
.game-card:nth-child(1),
.game-card:nth-child(7) {
  grid-column: span 2;
}

.game-card {
  position: relative;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  min-height: 440px;
}

.game-card:hover {
  transform: translateY(-8px);
  border-color: var(--violet-light);
  box-shadow: 0 20px 45px rgba(130, 42, 238, 0.35);
}

.game-card-img-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.game-card:nth-child(1) .game-card-img-wrapper,
.game-card:nth-child(7) .game-card-img-wrapper {
  height: 320px;
}

.game-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card:hover .game-card-img {
  transform: scale(1.08);
}

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-tertiary) 0%, rgba(10, 18, 50, 0.2) 60%, transparent 100%);
}

.game-card-content {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  z-index: 2;
  margin-top: -30px;
}

.game-tag {
  align-self: flex-start;
  background: rgba(130, 42, 238, 0.25);
  color: #e9d5ff;
  border: 1px solid rgba(130, 42, 238, 0.5);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
  backdrop-filter: blur(8px);
}

.game-title {
  font-size: 1.6rem;
  color: var(--text-main);
  margin-bottom: 0.7rem;
}

.game-card:nth-child(1) .game-title,
.game-card:nth-child(7) .game-title {
  font-size: 2.2rem;
}

.game-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

.game-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.9rem 1.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.game-cta svg {
  transition: transform 0.3s ease;
  color: var(--cyan-accent);
}

.game-card:hover .game-cta {
  background: var(--gradient-btn);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(130, 42, 238, 0.4);
}

.game-card:hover .game-cta svg {
  transform: translateX(5px);
  color: var(--text-main);
}

/* WHY XELTA - ECOSYSTEM FEATURES */
.features-section {
  position: relative;
  padding: 6rem 5%;
  z-index: 2;
  background: var(--bg-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1250px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 28px;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-btn);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(130, 42, 238, 0.4);
  box-shadow: 0 15px 35px rgba(130, 42, 238, 0.2);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  background: var(--gradient-btn);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.8rem;
  box-shadow: 0 8px 20px rgba(130, 42, 238, 0.4);
}

.feature-title {
  font-size: 1.4rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* CTA BANNER SECTION */
.cta-section {
  position: relative;
  padding: 4rem 5% 7rem;
  z-index: 2;
}

.cta-box {
  max-width: 1200px;
  margin: 0 auto;
  background: radial-gradient(circle at center, rgba(130, 42, 238, 0.35) 0%, rgba(10, 19, 51, 0.9) 70%);
  border: 1px solid rgba(130, 42, 238, 0.5);
  border-radius: 36px;
  padding: 5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(130, 42, 238, 0.25);
  backdrop-filter: blur(20px);
}

.cta-box::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--text-main);
  margin-bottom: 1.2rem;
}

.cta-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* FOOTER */
.footer {
  background: #00040f;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3rem 5%;
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer-content p {
  color: var(--text-faint);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-content {
    align-items: center;
    text-align: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .game-card:nth-child(1) {
    grid-column: span 2;
  }
  
  .game-card:nth-child(7) {
    grid-column: span 1;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid .feature-card:nth-child(3) {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  header {
    top: 1rem;
    padding: 0 1rem;
  }
  
  .navbar {
    padding: 0.6rem 1.2rem;
  }
  
  .nav-links, .nav-right .special-cta {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .nav-links.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 1rem;
    right: 1rem;
    background: rgba(2, 15, 43, 0.98);
    border: 1px solid var(--border-glow);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    gap: 1.5rem;
  }
  
  .hero {
    padding: 7rem 1.5rem 4rem;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .game-card:nth-child(1),
  .game-card:nth-child(7) {
    grid-column: span 1;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid .feature-card:nth-child(3) {
    grid-column: span 1;
  }
  
  .cta-box {
    padding: 3rem 1.5rem;
  }
}
