/* -------------------------------------------------------------
 * NOVEX — Gaming Community Stylesheet
 * ------------------------------------------------------------- */

:root {
  --black: #030303;
  --black2: #070707;
  --card: #0b0b0c;
  --card2: #101011;
  --line: #202022;
  --line2: #303033;
  --white: #fff;
  --gray: #99999f;
  --dim: #5c5c62;
  --display: 'Orbitron', sans-serif;
  --head: 'Space Grotesk', sans-serif;
  --body: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px; /* Offset fixed header height */
  background: var(--black);
}

body {
  background: var(--black);
  color: #fff;
  font-family: var(--body);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

::selection {
  background: #fff;
  color: #000;
}

::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: #030303;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 10px;
}

/* Background Effects */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.grid {
  position: fixed;
  inset: 0;
  z-index: -5;
  opacity: .17;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

.glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .045);
  filter: blur(90px);
  pointer-events: none;
  z-index: -4;
  top: 0;
  left: 0;
  transform: translate3d(-50%, -50%, 0);
  will-change: transform;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 5%;
  transition: 0.35s ease;
}

header.scrolled {
  background: rgba(3, 3, 3, 0.78);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid #1a1a1c;
}

.nav {
  max-width: 1280px;
  margin: auto;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 2px;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border: 1px solid #444;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #000;
  box-shadow: 0 0 30px rgba(255, 255, 255, .08);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: #8a8a90;
  font-size: 12px;
  font-weight: 700;
  transition: 0.25s;
}

.nav-links a:hover {
  color: #fff;
}

.nav-join {
  padding: 11px 16px !important;
  background: #fff;
  color: #000 !important;
  border-radius: 8px;
}

.menu {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
}

/* Mobile Icon Toggle Styles */
.menu .menu-close-icon {
  display: none !important;
}

.menu.is-active .menu-open-icon {
  display: none !important;
}

.menu.is-active .menu-close-icon {
  display: block !important;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 5% 90px;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  width: 650px;
  height: 650px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 50%;
  animation: spin 28s linear infinite;
}

.hero-orb:before,
.hero-orb:after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 50%;
}

.hero-orb:before {
  inset: 55px;
}

.hero-orb:after {
  inset: 120px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #28282b;
  background: rgba(255, 255, 255, .025);
  border-radius: 50px;
  padding: 8px 14px;
  color: #a5a5aa;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 25px;
}

.live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 15px #fff;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  50% {
    opacity: .3;
    transform: scale(.7);
  }
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(65px, 13vw, 165px);
  font-weight: 900;
  letter-spacing: -10px;
  line-height: .82;
}

.hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1px #777;
}

.hero-sub {
  max-width: 650px;
  margin: 28px auto 0;
  color: #777;
  font-size: 14px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 9px;
  padding: 14px 19px;
  font-size: 11px;
  font-weight: 900;
  transition: 0.3s;
}

.btn-white {
  background: #fff;
  color: #000;
}

.btn-dark {
  border: 1px solid #29292c;
  background: #09090a;
  color: #fff;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(255, 255, 255, .09);
}

.hero-bottom {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  color: #4f4f54;
  font-size: 10px;
  letter-spacing: 3px;
}

.hero-bottom i {
  display: block;
  margin: 8px auto 0;
  animation: down 1.8s infinite;
}

@keyframes down {
  50% {
    transform: translateY(7px);
  }
}

/* Ticker */
.ticker {
  border-top: 1px solid #151517;
  border-bottom: 1px solid #151517;
  overflow: hidden;
  white-space: nowrap;
  background: #060606;
}

.ticker-track {
  display: inline-flex;
  gap: 40px;
  padding: 16px 0;
  animation: ticker 22s linear infinite;
}

.ticker span {
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 2px;
  color: #68686d;
}

.ticker b {
  color: #fff;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* Sections & Layout */
section {
  padding: 115px 5%;
}

.container {
  max-width: 1250px;
  margin: auto;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
  color: #5e5e63;
  font-weight: 900;
  margin-bottom: 12px;
}

.title {
  font-family: var(--head);
  font-size: clamp(40px, 5vw, 70px);
  line-height: .9;
  letter-spacing: -4px;
}

.desc {
  color: #777;
  line-height: 1.8;
  font-size: 13px;
  max-width: 620px;
  margin-top: 18px;
}

/* Stats */
.stats {
  border-bottom: 1px solid #151517;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #202023;
  border-radius: 16px;
  overflow: hidden;
  background: #080809;
}

.stat {
  text-align: center;
  padding: 30px 15px;
  border-right: 1px solid #202023;
}

.stat:last-child {
  border: 0;
}

.stat h3 {
  font-family: var(--display);
  font-size: 31px;
}

.stat p {
  color: #5f5f65;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 8px;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-copy .desc {
  max-width: 540px;
}

.checks {
  display: grid;
  gap: 12px;
  margin-top: 25px;
}

.check {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #aaa;
  font-size: 12px;
}

.check-icon {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border: 1px solid #29292d;
  border-radius: 9px;
  background: #0a0a0b;
}

.visual {
  height: 470px;
  position: relative;
  border: 1px solid #242428;
  border-radius: 20px;
  background: radial-gradient(circle, #17171a 0%, #080809 55%);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.visual:before {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  border: 1px solid #333;
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(255, 255, 255, .04);
}

.visual:after {
  content: "NOVEX";
  position: absolute;
  font-family: var(--display);
  font-size: 78px;
  font-weight: 900;
  letter-spacing: 7px;
  color: rgba(255, 255, 255, .025);
  transform: rotate(-15deg);
}

.visual-core {
  width: 110px;
  height: 110px;
  border-radius: 28px;
  background: #fff;
  color: #000;
  display: grid;
  place-items: center;
  z-index: 2;
  font-size: 37px;
  box-shadow: 0 0 80px rgba(255, 255, 255, .12);
}

.float-card {
  position: absolute;
  z-index: 3;
  border: 1px solid #2b2b2f;
  background: rgba(8, 8, 9, .85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 12px;
  padding: 12px 15px;
  font-size: 10px;
  color: #aaa;
}

.float-card strong {
  display: block;
  color: #fff;
  font-size: 12px;
  margin-top: 3px;
}

.fc1 {
  top: 45px;
  left: 30px;
}

.fc2 {
  right: 30px;
  bottom: 55px;
}

/* Games Grid */
.games-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 45px;
}

.game {
  height: 290px;
  position: relative;
  overflow: hidden;
  border: 1px solid #232327;
  border-radius: 15px;
  background: #09090a;
  transition: 0.4s ease;
}

.game img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: 0.6s ease;
}

.game:hover {
  transform: translateY(-8px);
  border-color: #666;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.game:hover img {
  filter: grayscale(0%);
  transform: scale(1.1);
}

.game-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .97), rgba(0, 0, 0, .05) 70%);
}

.game-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  border: 1px solid #555;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 9px;
  border-radius: 6px;
  font-size: 8px;
  letter-spacing: 1px;
}

.game-info {
  position: absolute;
  bottom: 18px;
  left: 19px;
}

.game-info small {
  font-size: 8px;
  color: #aaa;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.game-info h3 {
  font-family: var(--head);
  font-size: 24px;
  margin-top: 4px;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 45px;
}

.feature {
  padding: 28px;
  border: 1px solid #202023;
  border-radius: 15px;
  background: #09090a;
  transition: 0.35s ease;
  position: relative;
  overflow: hidden;
}

.feature:before {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #fff;
  filter: blur(70px);
  opacity: .04;
  right: -50px;
  top: -50px;
}

.feature:hover {
  transform: translateY(-6px);
  background: #101012;
  border-color: #444;
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid #2c2c30;
  border-radius: 10px;
  margin-bottom: 22px;
}

.feature h3 {
  font-family: var(--head);
  font-size: 17px;
}

.feature p {
  color: #666;
  font-size: 11px;
  line-height: 1.8;
  margin-top: 9px;
}

/* Events */
.events {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  margin-top: 45px;
}

.event-main,
.event-list {
  border: 1px solid #242428;
  border-radius: 16px;
  background: #09090a;
}

.event-main {
  padding: 35px;
  position: relative;
  overflow: hidden;
  min-height: 300px;
}

.event-main:before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border: 1px solid #222;
  border-radius: 50%;
  right: -160px;
  top: -180px;
}

.event-main h3 {
  font-family: var(--display);
  font-size: 32px;
  max-width: 500px;
}

.event-main p {
  color: #777;
  font-size: 12px;
  line-height: 1.8;
  max-width: 520px;
  margin: 15px 0 25px;
}

.event-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meta {
  border: 1px solid #29292d;
  padding: 8px 11px;
  border-radius: 7px;
  color: #aaa;
  font-size: 9px;
}

.event-list {
  padding: 15px;
}

.event-row {
  padding: 18px;
  border-bottom: 1px solid #1d1d20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.event-row:last-child {
  border: 0;
}

.event-row small {
  color: #5f5f64;
  font-size: 8px;
  letter-spacing: 1px;
}

.event-row h4 {
  font-size: 13px;
  margin-top: 4px;
}

.event-date {
  text-align: right;
  font-family: var(--display);
  font-size: 11px;
}

/* Discord CTA Box */
.community {
  padding-top: 40px;
}

.discord-box {
  position: relative;
  overflow: hidden;
  text-align: center;
  border: 1px solid #29292d;
  border-radius: 22px;
  padding: 85px 25px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, .075), transparent 52%), #080809;
}

.discord-box:before,
.discord-box:after {
  content: "";
  position: absolute;
  border: 1px solid #222;
  border-radius: 50%;
  pointer-events: none;
}

.discord-box:before {
  width: 450px;
  height: 450px;
  left: -180px;
  top: -250px;
}

.discord-box:after {
  width: 380px;
  height: 380px;
  right: -160px;
  bottom: -250px;
}

.discord-icon {
  font-size: 42px;
  margin-bottom: 22px;
}

.discord-box h2 {
  font-family: var(--display);
  font-size: clamp(35px, 6vw, 68px);
  letter-spacing: -4px;
}

.discord-box p {
  color: #777;
  max-width: 580px;
  margin: 18px auto 28px;
  font-size: 13px;
  line-height: 1.8;
}

/* Footer */
footer {
  border-top: 1px solid #171719;
  padding: 35px 5%;
}

.footer {
  max-width: 1250px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 2px;
}

.footer small {
  display: block;
  color: #555;
  margin-top: 6px;
}

.socials {
  display: flex;
  gap: 8px;
}

.socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #252528;
  border-radius: 9px;
  color: #777;
  transition: 0.25s;
}

.socials a:hover {
  color: #fff;
  border-color: #666;
  transform: translateY(-3px);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

/* Media Queries */
@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    display: none;
    top: 68px;
    left: 4%;
    right: 4%;
    flex-direction: column;
    gap: 0;
    padding: 15px;
    background: rgba(7, 7, 8, .97);
    border: 1px solid #252528;
    border-radius: 13px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 13px;
  }

  .menu {
    display: block;
  }

  .about-grid,
  .events {
    grid-template-columns: 1fr;
  }

  .games-grid,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  section {
    padding: 80px 5%;
  }

  .hero h1 {
    font-size: 72px;
    letter-spacing: -6px;
  }

  .hero-orb {
    width: 390px;
    height: 390px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n+2) {
    border-bottom: 1px solid #202023;
  }

  .games-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .game {
    height: 255px;
  }

  .games-head {
    display: block;
  }

  .visual {
    height: 350px;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }
}
