
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at top, #121530 0%, #090B17 60%);
  color: #FFFFFF;
  overflow-x: hidden;
}
* { box-sizing: border-box; }
a { color: inherit; }
nav {
  background-color: #060B15;
  padding: 16px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.home-page nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0));
  z-index: 20;
}
.nav-brand a { letter-spacing: 0.04em; }
.nav-links a {
  color: #FFFFFF;
  margin: 0 12px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease, opacity 0.3s ease;
}
.nav-links a:hover { color: #9270F6; }
.hero {
  position: relative;
  background-image: url('images/header.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 80vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  filter: contrast(1.1) brightness(1.05) saturate(1.1);
  transform: scale(var(--hero-scale, 1)) translate3d(var(--hero-x, 0px), var(--hero-y, 0px), 0);
  transition: transform 0.25s ease-out;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 220px;
  background: linear-gradient(to bottom, rgba(9,11,23,0) 0%, #090B17 100%);
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.0) 0%,
    rgba(0, 0, 0, 0.12) 55%,
    rgba(9, 11, 23, 0.92) 100%
  );
}
.section {
  padding: 80px 20px;
  text-align: center;
  position: relative;
}
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(146,112,246,0.08), transparent 70%);
  pointer-events: none;
}
.section > * { position: relative; z-index: 1; }
.section h2 {
  font-size: 2.6rem;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}
.faction-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
}
.faction-card {
  width: 220px;
  background: rgba(21, 24, 43, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(0);
  transform-style: preserve-3d;
}
.faction-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(146,112,246,0.18) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.faction-card:hover::before { opacity: 1; }
.faction-card img {
  width: 100%;
  border-radius: 10px;
  display: block;
}
.faction-card h3 {
  margin-top: 14px;
  margin-bottom: 6px;
  font-size: 1.2rem;
  font-weight: 600;
}
.faction-card p {
  font-size: 0.85rem;
  color: #A3AFC0;
  line-height: 1.3;
}
.faction-card:hover {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px) scale(1.03);
  box-shadow: 0 0 20px rgba(146, 112, 246, 0.5);
  border-color: rgba(146, 112, 246, 0.6);
}
.tagline {
  font-size: 2rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
  color: #9270F6;
}
.signup {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.signup input {
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 4px 0 0 4px;
  width: 260px;
  color: #000;
}
.signup button {
  padding: 12px 26px;
  font-size: 1rem;
  border: none;
  border-radius: 0 4px 4px 0;
  background-color: #6939F5;
  color: #FFFFFF;
  cursor: pointer;
  transition: background 0.3s;
}
.signup button:hover { background-color: #9270F6; }
.page-content {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.6;
  color: #A3AFC0;
  text-align: left;
}
.page-content h1 { font-size: 2.4rem; margin-bottom: 20px; }
.page-content p { margin-bottom: 1rem; }
.footer {
  text-align: center;
  padding: 30px 20px;
  background-color: #060B15;
  color: #5B6F81;
  font-size: 0.9rem;
}
.cta-section {
  text-align: center;
  padding: 60px 20px 20px;
}
.home-page .cta-section {
  margin-top: -40px;
  position: relative;
  z-index: 2;
}
.cta-section .subtitle {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: #A3AFC0;
}
.cta-section .btn-primary {
  background-color: #6939F5;
  color: #FFFFFF;
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
  transition: all 0.2s ease;
  box-shadow: 0 0 20px rgba(105, 57, 245, 0.6);
  animation: pulseGlow 2.5s infinite;
}
.cta-section .btn-primary:hover {
  background-color: #9270F6;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(146, 112, 246, 0.8);
}
.cta-section .join {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #5B6F81;
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes pulseGlow {
  0% { box-shadow: 0 0 8px rgba(105, 57, 245, 0.4); }
  50% { box-shadow: 0 0 20px rgba(105, 57, 245, 0.8); }
  100% { box-shadow: 0 0 8px rgba(105, 57, 245, 0.4); }
}
@media (max-width: 900px) {
  nav, .home-page nav {
    padding: 14px 18px;
    flex-direction: column;
    gap: 12px;
  }
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero { height: 58vh; }
  .section h2 { font-size: 2rem; }
  .signup {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .signup input, .signup button {
    width: min(320px, 90vw);
    border-radius: 6px;
  }
  .btn-primary {
    background-color: #6939F5;
    color: #FFFFFF;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    transition: all 0.2s ease;
    box-shadow: 0 0 20px rgba(105, 57, 245, 0.6);
  }
  .btn-primary:hover {
    background-color: #9270F6;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(146, 112, 246, 0.8);
  }
}
