/* --- SOFT VIBRANT DESIGN SYSTEM --- */
:root {
  --bg-main: #eff2f5;
  /* Soft Eggshell White */
  --bg-section: #f7f9fb;
  --bg-card: rgba(255, 255, 255, 0.95);
  --primary: #58c4f5;
  /* Sky Blue */
  --secondary: #ffce00;
  /* Sunny Yellow */
  --accent: #ff8c00;
  /* Action Orange */
  --text-main: #2d3748;
  --text-muted: #5a677b;
  --border: rgba(0, 0, 0, 0.05);
  --accent-gradient: linear-gradient(135deg, #58c4f5, #007bff);
  --font-main: 'Outfit', sans-serif;
  --font-head: 'Libre Franklin', sans-serif;
}

/* Glassmorphism based on game UI */
.ui-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.07);
}

/* Section Background Text */
.bg-text-local {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 35vw;
  font-weight: 950;
  color: rgba(255, 206, 0, 0.05);
  /* Subtle Yellow */
  z-index: 0;
  pointer-events: none;
  font-family: var(--font-head);
  letter-spacing: -2vw;
  text-transform: uppercase;
  white-space: nowrap;
  filter: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(10, 25, 47, 0) 50%, rgba(10, 25, 47, 0.05) 50%),
    radial-gradient(circle, transparent 20%, rgba(10, 25, 47, 0.3) 100%);
  background-size: 100% 4px, cover;
  pointer-events: none;
  z-index: 2;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 5px 15px rgba(255, 206, 0, 0.4);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 5px 25px rgba(255, 206, 0, 0.6);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 5px 15px rgba(255, 206, 0, 0.4);
  }
}

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

html.loading {
  overflow: hidden;
}

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

/* --- PRELOADER --- */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-main);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1);
}

.loader.hide {
  transform: translateY(-100%);
}

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

.loader-text {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 10px;
  display: block;
  margin: 10px 0;
  color: var(--secondary);
}

.loader-bar {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  margin: 20px auto;
}

.loader-bar::after {
  content: '';
  position: absolute;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    left: -100%;
  }

  50% {
    left: 0;
  }

  100% {
    left: 100%;
  }
}

/* --- NAVIGATION --- */
.nav-minimal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 50px;
  z-index: 1000;
  transition: all 0.4s ease;
}

.nav-minimal.scrolled {
  padding: 10px 50px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-family: var(--font-head);
  font-size: 2rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 950;
  letter-spacing: -2px;
  font-style: italic;
  text-transform: uppercase;
}

.logo span {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
}

@media (max-width: 1024px) {
  .menu-toggle {
    display: block;
  }
}

.nav-minimal .btn-primary {
  padding: 8px 20px;
}

.nav-links {
  display: flex;
  gap: 25px;
  /* Tighter gap */
  align-items: center;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
}

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

.discord-icon {
  background: #5865F2;
  /* Official Discord Blue */
  color: #fff !important;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 5px 15px rgba(88, 101, 242, 0.3);
}

.discord-icon:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 20px rgba(88, 101, 242, 0.4);
  background: #4752c4;
}

.btn-primary {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 25px;
  font-size: 0.85rem !important;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: var(--secondary);
  color: #000 !important;
  transform: translateY(-2px);
}

/* --- HERO --- */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-video-container {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out, transform 8s ease-out;
  transform: scale(1.1);
  background-repeat: no-repeat;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes kenBurns {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.1);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(10, 25, 47, 0.4) 0%,
      rgba(88, 196, 245, 0.1) 60%,
      var(--bg-main) 100%);
  z-index: 1;
  mix-blend-mode: multiply;
  /* Tints the GIF with the colors */
}

/* Extra layer for readability */
.hero-content-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(10, 25, 47, 0.2) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.hero-overlay::after {
  display: none;
}

.hero-content {
  z-index: 10;
  max-width: 1100px;
  padding: 10vh 20px 0;
}

.hero-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.9;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  text-transform: uppercase;
}

.text-main-title {
  color: var(--text-main);
  letter-spacing: -2px;
}

.text-accent-title {
  color: var(--primary);
  letter-spacing: 5px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #fff;
  max-width: 600px;
  margin: 0 auto 40px;
  letter-spacing: 1px;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn-main {
  padding: 16px 36px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 950;
  font-style: italic;
  font-family: var(--font-head);
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  box-shadow: 0 10px 20px rgba(88, 196, 245, 0.4);
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-main:hover {
  transform: translateY(-5px);
  background: var(--accent);
  color: #000;
  box-shadow: 0 15px 30px rgba(255, 204, 0, 0.4);
}

.btn-outline {
  padding: 16px 36px;
  border: 3px solid var(--primary);
  color: var(--primary);
  text-decoration: none;
  font-weight: 950;
  font-family: var(--font-head);
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  background: transparent;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.hero-scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 5px;
  color: var(--text-muted);
}

.hero-scroll-indicator .line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* --- SECTIONS --- */
.section {
  padding: 150px 0;
  position: relative;
  background-color: var(--bg-dark);
  overflow-x: hidden;
}

.section:nth-child(even) {
  background-color: var(--bg-section);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.tag {
  color: #000;
  font-weight: 900;
  letter-spacing: 1px;
  font-size: 0.75rem;
  display: inline-block;
  margin-bottom: 20px;
  background: var(--secondary);
  /* The yellow color */
  padding: 6px 16px;
  border-radius: 50px;
  text-transform: uppercase;
}

h2 {
  font-family: var(--font-head);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 30px;
  text-transform: uppercase;
}

h2 span {
  color: var(--secondary);
}

p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.check-list {
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  /* Vibrant Yellow */
  font-weight: 900;
}

.image-wrapper {
  position: relative;
}

.floating-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
  z-index: -1;
}

/* --- FEATURES --- */
.section-header {
  margin-bottom: 60px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section-header::before {
  content: '';
  width: 50px;
  height: 6px;
  background: var(--secondary);
  margin-bottom: 15px;
  border-radius: 10px;
}

.competitive-grid {
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

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

  .competitive-grid .image-wrapper {
    order: -1;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 30px;
  }

  .competitive-grid .image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .competitive-grid .btn-group {
    justify-content: center;
  }
}

.btn-group {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

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

.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 50px 40px;
  transition: all 0.4s;
  cursor: default;
  transform: skew(-2deg);
  /* Gaming Skew */
  position: relative;
  overflow: hidden;
}

.feat-card:hover {
  transform: skew(-2deg) translateY(-10px) scale(1.02);
  border-color: var(--secondary);
  box-shadow: 0 20px 40px rgba(0, 229, 255, 0.1);
}

.feat-card .icon {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 25px;
}

.feat-card h3 {
  font-family: var(--font-head);
  font-weight: 900;
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 15px;
  text-transform: uppercase;
}

/* --- SHOWCASE BENTO GRID --- */
.showcase-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 300px);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.bento-item {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.bento-item.main {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-item.side {
  grid-column: span 2;
}

.bento-item.wide {
  grid-column: span 1;
}

.bento-item.tall {
  grid-column: span 1;
}

.showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 40px;
  opacity: 1;
  /* Always visible text base */
}

.overlay-content h3 {
  font-family: var(--font-head);
  font-weight: 900;
  font-style: italic;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.overlay-content h3 span {
  color: var(--secondary);
}

.overlay-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  margin: 0;
}

.bento-item:hover img {
  transform: scale(1.08);
}

@media (max-width: 1024px) {
  .showcase-bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    padding: 0 20px;
  }

  .bento-item {
    height: 300px;
  }
}

@media (max-width: 600px) {
  .showcase-bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-item.main,
  .bento-item.side,
  .bento-item.wide,
  .bento-item.tall {
    grid-column: span 1;
    height: 250px;
  }
}

/* --- SECTION GENERAL --- */
.section-header {
  max-width: 600px;
  margin-bottom: 60px;
  position: relative;
}

.section-header h2 {
  font-size: 3rem;
  margin-top: 10px;
}

/* --- DOWNLOAD SECTION --- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 60px;
  align-items: start;
}

@media (max-width: 900px) {
  .download-grid {
    grid-template-columns: 1fr;
  }
}

.download-box {
  background: #fff;
  border: 4px solid var(--secondary);
  border-radius: 32px;
  padding: 60px;
  text-align: left;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

.download-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 900;
  font-family: var(--font-head);
  font-style: italic;
  text-transform: uppercase;
}

.store-buttons {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 40px;
}

.store-btn {
  background: #fff;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 35px;
  border-radius: 20px;
  border: 2px solid var(--border);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  min-width: 280px;
  position: relative;
}

.store-btn:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: transparent;
  color: #fff !important;
}

.store-btn.soon {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(1);
}

.store-btn.soon::before {
  content: 'COMING SOON';
  position: absolute;
  top: 15px;
  right: -35px;
  background: var(--secondary);
  color: #000;
  font-size: 0.6rem;
  font-weight: 950;
  padding: 5px 40px;
  transform: rotate(45deg);
  z-index: 5;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.store-btn.windows:hover {
  background: #0078d4;
  box-shadow: 0 15px 35px rgba(0, 120, 212, 0.4);
}

.store-btn.playstore:hover {
  background: #34a853;
  box-shadow: 0 15px 35px rgba(52, 168, 83, 0.4);
}

.store-btn i {
  font-size: 2.8rem;
  transition: transform 0.4s;
}

.store-btn:hover i {
  transform: scale(1.1) rotate(-5deg);
}

.btn-text {
  text-align: left;
  line-height: 1.2;
}

.btn-text span {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

.btn-text strong {
  font-size: 1.4rem;
  font-weight: 950;
  font-family: var(--font-head);
}

/* --- NEWS SECTION --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.news-card:hover {
  transform: translateY(-12px);
  border-color: var(--secondary);
  box-shadow: 0 20px 40px rgba(255, 206, 0, 0.2);
}

.news-img-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.news-info {
  padding: 30px;
  background: #fff;
  border-top: 4px solid transparent;
  transition: all 0.3s ease;
}

.news-card:hover .news-info {
  border-top-color: var(--secondary);
  background: #fffcf0;
  /* Very subtle yellow tint on hover */
}

.news-img-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--secondary);
  color: #000;
  padding: 6px 16px;
  font-weight: 900;
  border-radius: 50px;
  font-size: 0.75rem;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(255, 206, 0, 0.3);
}

.news-info h3 {
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--text-main);
  font-family: var(--font-head);
  text-transform: uppercase;
  font-style: italic;
}

.news-info h3 span {
  color: var(--primary);
  /* Primary blue for main words */
}

.news-card:hover h3 span {
  color: var(--secondary);
  /* Switch to yellow on hover */
}

.news-info p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

/* --- REQUIREMENTS SECTION --- */
.requirements-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-top: 20px;
  text-align: left;
}

.req-group-title {
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 15px 0 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.req-group-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.req-item {
  background: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  border-left: 5px solid var(--secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.req-item strong {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 800;
}

.req-item span {
  font-weight: 800;
  color: var(--text-main);
  font-size: 0.95rem;
}

.req-group-title {
  font-size: 0.85rem;
  font-weight: 950;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 25px 0 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
}

.req-group-title i {
  color: var(--secondary);
  font-size: 1rem;
}

@media (max-width: 600px) {
  .requirements-grid {
    grid-template-columns: 1fr;
  }

  .req-item {
    grid-column: span 1 !important;
  }
}

/* --- SPEC SHEET --- */
.spec-block {
  margin-bottom: 25px;
}

.spec-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  border-left: 4px solid var(--border);
  padding-left: 15px;
  transition: all 0.3s;
}

.spec-line:hover {
  border-left-color: var(--secondary);
  background: rgba(255, 206, 0, 0.02);
}

.spec-label {
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.spec-value {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  text-align: right;
  max-width: 60%;
}

@media (max-width: 500px) {
  .spec-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .spec-value {
    text-align: left;
    max-width: 100%;
  }
}

/* --- VIDEO SECTION --- */
.video-showcase {
  background: var(--bg-main);
  text-align: center;
}

.video-container {
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
  border: 4px solid #fff;
}

/* --- FOOTER --- */
footer {
  padding: 100px 0 60px;
  background: #f1f5f9;
  color: var(--text-main);
  text-align: center;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

footer::before {
  display: none;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.footer-brand .logo {
  font-size: 3rem;
}

.footer-socials {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.footer-socials a {
  width: 50px;
  height: 50px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.footer-socials a:hover {
  background: var(--secondary);
  color: #000;
  border-color: var(--secondary);
  transform: translateY(-5px) rotate(10deg);
}

.footer-bottom {
  padding: 50px 0;
  margin-top: 80px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  /* Space out copyright and links */
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

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

.footer-legal {
  display: flex;
  gap: 30px;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s;
  position: relative;
}

.footer-legal a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s;
}

.footer-legal a:hover {
  color: var(--secondary);
}

.footer-legal a:hover::after {
  width: 100%;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 40px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: 0.5s cubic-bezier(0.85, 0, 0.15, 1);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.5rem;
    width: 100%;
    text-align: center;
    padding: 15px 0;
  }

  .nav-links a.btn-primary {
    margin: 20px 0;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  .nav-minimal {
    padding: 15px 20px;
  }

  .nav-minimal.scrolled {
    padding: 10px 20px;
  }

  .container {
    padding: 0 20px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 90%;
    margin: 0 auto 30px;
  }

  h2 {
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .hero-actions .btn-main,
  .hero-actions .discord-icon {
    width: 100%;
    text-align: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .showcase-item {
    flex: 0 0 300px;
    height: 220px;
  }

  .f-title {
    font-size: 2rem;
  }

  .download-box {
    padding: 40px 20px;
  }

  .download-title {
    font-size: 2.5rem;
  }

  .store-btn {
    min-width: 100%;
  }
}

/* --- UTILITIES FOR LOGIN/OTHER PAGES --- */
.btn-cta {
  background: var(--primary);
  color: #fff !important;
  font-weight: 950;
  font-style: italic;
  text-transform: uppercase;
  padding: 12px 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
  border: none;
  transition: all 0.3s;
  text-decoration: none;
  cursor: pointer;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 140, 0, 0.4);
  background: #e67e00;
}

.section-pad {
  padding: 100px 0;
}

.f-title {
  font-family: var(--font-head);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.cardx_100 {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .ui-card {
    padding: 30px 20px !important;
  }

  .section-pad {
    padding: 60px 0;
  }

  .f-title {
    font-size: 1.8rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .bg-text-local {
    font-size: 40vw;
    top: 30%;
  }

  .footer-legal {
    flex-direction: column;
    gap: 10px;
  }
}