
html { scroll-behavior: smooth; }
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: black;
  color: white;
  line-height: 1.7;
  position: relative;
  overflow-x: hidden;
}

/* BACKGROUNDS */
body.page-home {
  background: linear-gradient(rgba(0,0,0,.72),rgba(0,0,0,.82)),
  url("../images/home-bg.svg") center/cover no-repeat black;
}

body.page-about {
  background: linear-gradient(rgba(0,0,0,.76),rgba(0,0,0,.84)),
  url("../images/about-bg.svg") center/cover no-repeat black;
}

body.page-why {
  background: linear-gradient(rgba(0,0,0,.76),rgba(0,0,0,.84)),
  url("../images/why-bg.svg") center/cover no-repeat black;
}

body.page-roadmap {
  background: linear-gradient(rgba(0,0,0,.74),rgba(0,0,0,.86)),
  url("../images/roadmap-bg.svg") center/cover no-repeat black;
}

body.page-join {
  background: linear-gradient(rgba(0,0,0,.76),rgba(0,0,0,.84)),
  url("../images/join-bg.svg") center/cover no-repeat black;
}

body.page-transparency {
  background: linear-gradient(rgba(0,0,0,.76),rgba(0,0,0,.86)),
  url("../images/transparency-bg.svg") center/cover no-repeat black;
}

/* GRID OVERLAY */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255,215,0,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,58,138,.08) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: .2;
  pointer-events: none;
  z-index: 0;
}

/* SCANLINE EFFECT (lighter) */
body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: -20%;
  height: 160px;
  background: linear-gradient(180deg, rgba(255,215,0,.05), transparent);
  filter: blur(16px);
  animation: scanline 12s linear infinite;
  pointer-events: none;
  z-index: 0;
}

/* NAVBAR */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(17,17,17,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,215,0,.12);
  position: sticky;
  top: 0;
  z-index: 1000;

  /* 🔥 DESKTOP FIX */
  max-width: 1200px;
  margin: auto;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255,215,0,.2));
}

.brand-name {
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 1.3rem;
}

/* NAV LINKS */
nav div {
  display: flex;
  gap: 18px;
}

nav a {
  color: white;
  text-decoration: none;
  position: relative;
  transition: 0.3s;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: gold;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

nav a:hover {
  color: gold;
}

nav a:hover::after {
  transform: scaleX(1);
}

/* 🔥 MAIN LAYOUT FIX (IMPORTANT) */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 60px 20px;
}

/* TEXT */
h1, h2 { line-height: 1.2; }
p { color: #ddd; }

/* CARDS */
.card, .block, .tech-panel {
  background: linear-gradient(180deg, rgba(17,17,17,.95), rgba(10,10,10,.95));
  padding: 24px;
  border-radius: 14px;
  border: 1px solid rgba(255,215,0,.12);
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  margin-bottom: 24px;
}

/* ANIMATION */
.fade {
  opacity: 0;
  transform: translateY(30px);
  transition: all .8s ease;
}

.fade.show {
  opacity: 1;
  transform: translateY(0);
}

/* IMAGE */
.content-media {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
}

/* 🔥 DESKTOP IMPROVEMENT */
@media (min-width: 1024px) {

  .container {
    padding: 80px 20px;
  }

  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 28px;
  }

  p {
    font-size: 18px;
  }
}

/* MOBILE */
@media (max-width: 768px) {

  nav div {
    display: none;
  }

  .container {
    padding: 40px 15px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 20px;
  }

  p {
    font-size: 15px;
  }
}

/* ANIMATIONS */
@keyframes scanline {
  0% { transform: translateY(-20vh); }
  100% { transform: translateY(140vh); }
}
