/* === PRESERVED PREMIUM FOUNDATION === */
:root {
  --bg: #0a0a0a;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #00f2ff; /* Neon Cyan */
  --accent-alt: #c89b3c; /* LoL Gold */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glass: 0 8px 32px 0 rgba(0,0,0,0.3);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-heading: 'Fraunces', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --neon-glow: 0 0 15px rgba(0, 242, 255, 0.5);
}

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

html { scroll-behavior: smooth; }

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

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

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* === ANIMATED MESH BACKGROUND === */
.mesh-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: var(--bg);
  overflow: hidden;
}

.mesh-circle {
  position: absolute;
  filter: blur(100px);
  opacity: 0.15;
  border-radius: 50%;
  animation: mesh-move 20s infinite alternate;
}

.circle-1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -10%;
  left: -10%;
}

.circle-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-alt);
  bottom: -5%;
  right: -5%;
  animation-delay: -5s;
}

.circle-3 {
  width: 400px;
  height: 400px;
  background: #ff00ea;
  top: 40%;
  left: 30%;
  animation-delay: -10s;
}

@keyframes mesh-move {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(100px, 50px) scale(1.1); }
}

/* === NAVIGATION === */
.rift-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.rift-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.nav-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}

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

.nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}

/* === BUTTONS === */
.btn-rift {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border: 3px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 0;
}

.btn-rift:hover {
  background: var(--accent);
  color: #000;
  box-shadow: var(--neon-glow);
}

.btn-rift-gold {
  border-color: var(--accent-alt);
  color: var(--accent-alt);
}

.btn-rift-gold:hover {
  background: var(--accent-alt);
  box-shadow: 0 0 15px rgba(200, 155, 60, 0.5);
}

/* === HERO SECTION === */
.hero-rift {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text);
  text-transform: uppercase;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 32px;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 155, 60, 0.15);
  padding: 6px 12px;
  border-radius: 20px;
  color: var(--accent-alt);
  font-weight: 700;
  margin-bottom: 20px;
}

.download-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-visual img {
  max-width: 320px;
  filter: drop-shadow(0 20px 50px rgba(0, 242, 255, 0.3));
}

/* === FEATURES SECTION === */
.features-stack {
  display: flex;
  flex-direction: column;
  gap: 80px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-row {
  position: relative;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 40px;
  align-items: flex-start;
  transition: transform 0.5s ease;
}

.feature-num {
  font-family: var(--font-heading);
  font-size: 8rem;
  line-height: 1;
  color: white;
  opacity: 0.03;
  position: absolute;
  top: -40px;
  left: -20px;
  pointer-events: none;
  font-weight: 900;
  -webkit-text-stroke: 1px rgba(255,255,255,0.1);
}

.feature-icon-box {
  width: 80px;
  height: 80px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.feature-info h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--accent-alt);
}

.feature-info p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* OFFSET GRID EFFECT */
.feature-row:nth-child(even) {
  margin-left: 80px;
}

/* === GALLERY SECTION === */
.gallery-fan {
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.fan-container {
  position: relative;
  width: 320px;
  height: 568px;
}

.fan-card {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid var(--glass-border);
  cursor: pointer;
}

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

.card-1 { transform: rotate(-8deg) translateX(-60px) translateZ(-50px); z-index: 1; opacity: 0.8; }
.card-2 { transform: rotate(-4deg) translateX(-30px) translateZ(0); z-index: 2; }
.card-3 { transform: rotate(0deg) translateZ(50px); z-index: 3; border: 2px solid var(--accent); }
.card-4 { transform: rotate(4deg) translateX(30px) translateZ(0); z-index: 2; }
.card-5 { transform: rotate(8deg) translateX(60px) translateZ(-50px); z-index: 1; opacity: 0.8; }

.fan-card:hover {
  transform: scale(1.05) rotate(0deg) translateY(-30px) translateZ(100px) !important;
  z-index: 10 !important;
  opacity: 1 !important;
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent);
}

/* === STATS SECTION === */
.stats-narrative {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.narrative-text {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.4;
  color: var(--text);
}

.narrative-text strong {
  color: var(--accent);
  text-shadow: var(--neon-glow);
}

/* === REVIEWS MASONRY === */
.reviews-masonry {
  column-count: 3;
  column-gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.review-card {
  break-inside: avoid;
  margin-bottom: 30px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 32px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.review-card:hover {
  border-color: var(--accent-alt);
  transform: translateY(-5px);
}

.stars {
  color: var(--accent-alt);
  margin-bottom: 16px;
  display: flex;
  gap: 4px;
}

.review-text {
  font-style: italic;
  margin-bottom: 24px;
  color: var(--text);
  font-size: 1rem;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: var(--accent);
  color: #000;
}

.reviewer-name {
  font-weight: 600;
  font-size: 0.9rem;
}

/* === DOWNLOAD CTA === */
.download-cta {
  background: linear-gradient(45deg, #0a0a0a, #1a1a1a);
}

.frosted-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  padding: 80px 40px;
  border-radius: 40px;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  box-shadow: 0 50px 100px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}

.frosted-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, var(--accent), transparent);
  animation: rotate-border 10s linear infinite;
  z-index: -1;
  opacity: 0.1;
}

@keyframes rotate-border {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cta-icon {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  margin: 0 auto 32px;
  border: 2px solid var(--accent);
  padding: 10px;
  background: #000;
}

.frosted-card h2 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  margin-bottom: 24px;
  text-transform: uppercase;
}

/* === FOOTER === */
.bordered-footer {
  padding: 80px 0 40px;
  background: #050505;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 0;
  border: 1px solid var(--glass-border);
}

.footer-col {
  padding: 40px;
  border-right: 1px solid var(--glass-border);
}

.footer-col:last-child {
  border-right: none;
}

.footer-brand .nav-logo {
  width: 24px;
  height: 24px;
  margin-bottom: 20px;
}

.footer-brand h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.footer-col h5 {
  color: var(--accent-alt);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

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

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem;
}

.social-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-content { display: flex; flex-direction: column; align-items: center; }
  .download-buttons { justify-content: center; }
  .reviews-masonry { column-count: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col { border-bottom: 1px solid var(--glass-border); }
  .footer-col:nth-child(even) { border-right: none; }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .rift-nav .nav-links { display: none; }
  .mobile-toggle { display: block; }

  .feature-row { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .feature-icon-box { margin: 0 auto; }
  .feature-num { left: 50%; transform: translateX(-50%); top: -20px; }
  .feature-row:nth-child(even) { margin-left: 0; }

  .gallery-fan { height: 500px; }
  .fan-container { transform: scale(0.8); }

  .reviews-masonry { column-count: 1; }

  .frosted-card h2 { font-size: 2.2rem; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-col { border-right: none; }
  .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}

/* BENTO GRID SPECIFIC */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 20px;
  margin-top: 60px;
}

.bento-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-1 { grid-column: span 2; grid-row: span 2; }
.bento-2 { grid-column: span 2; }
.bento-3 { grid-column: span 1; }
.bento-4 { grid-column: span 1; }

@media (max-width: 768px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-1, .bento-2, .bento-3, .bento-4 { grid-column: span 1; grid-row: span 1; }
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

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