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

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(10, 14, 26, 0.3) 0%,
      rgba(10, 14, 26, 0.5) 50%,
      rgba(10, 14, 26, 0.95) 100%
    ),
    url("https://i.imgur.com/7u5xb81.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transform: scale(1.05);
  transition: transform 0.3s var(--ease-smooth);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 20%,
    rgba(10, 14, 26, 0.4) 60%,
    rgba(10, 14, 26, 0.8) 100%
  );
  pointer-events: none;
}

/* Ambient glow pulse */
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
  animation: glowPulse 8s ease-in-out infinite;
}

.hero-glow-1 {
  background: var(--cyan);
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.hero-glow-2 {
  background: var(--purple);
  bottom: 30%;
  right: 10%;
  animation-delay: -4s;
}

.hero-glow-3 {
  background: linear-gradient(135deg, var(--ice-blue), var(--purple));
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -2s;
  opacity: 0.1;
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.1;
    transform: scale(1);
  }
  50% {
    opacity: 0.2;
    transform: scale(1.1);
  }
}

/* Floating particles */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--silver-warm);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 15s ease-in-out infinite;
}

.particle:nth-child(odd) {
  background: var(--ice-blue);
  width: 3px;
  height: 3px;
}

.particle:nth-child(3n) {
  background: var(--purple);
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: -2s; }
.particle:nth-child(3) { left: 30%; animation-delay: -4s; }
.particle:nth-child(4) { left: 40%; animation-delay: -6s; }
.particle:nth-child(5) { left: 50%; animation-delay: -8s; }
.particle:nth-child(6) { left: 60%; animation-delay: -10s; }
.particle:nth-child(7) { left: 70%; animation-delay: -12s; }
.particle:nth-child(8) { left: 80%; animation-delay: -1s; }
.particle:nth-child(9) { left: 90%; animation-delay: -3s; }
.particle:nth-child(10) { left: 15%; animation-delay: -5s; }
.particle:nth-child(11) { left: 35%; animation-delay: -7s; }
.particle:nth-child(12) { left: 55%; animation-delay: -9s; }
.particle:nth-child(13) { left: 75%; animation-delay: -11s; }
.particle:nth-child(14) { left: 85%; animation-delay: -13s; }
.particle:nth-child(15) { left: 25%; animation-delay: -14s; }

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
    transform: translateY(80vh) scale(1);
  }
  90% {
    opacity: 0.6;
    transform: translateY(-10vh) scale(1);
  }
  100% {
    transform: translateY(-20vh) scale(0);
    opacity: 0;
  }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 20px;
}

.hero-title {
  font-size: clamp(3.5rem, 12vw, 8rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 16px;
  background: linear-gradient(
    135deg,
    var(--silver-warm) 0%,
    var(--ice-blue-light) 25%,
    var(--ice-blue) 50%,
    var(--purple) 75%,
    var(--ice-blue-light) 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 30px rgba(125, 211, 252, 0.4));
  animation: titleGlow 4s ease-in-out infinite, titleShift 8s ease-in-out infinite;
}

@keyframes titleGlow {
  0%, 100% {
    filter: drop-shadow(0 4px 30px rgba(125, 211, 252, 0.4));
  }
  50% {
    filter: drop-shadow(0 4px 50px rgba(167, 139, 250, 0.5));
  }
}

@keyframes titleShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: var(--silver);
  font-weight: 500;
  margin-bottom: 8px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.hero-tagline {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 40px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--navy-light) 100%);
  border: 1px solid rgba(78, 205, 196, 0.3);
  border-radius: 50px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s var(--ease-out);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-cta:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  box-shadow:
    0 8px 30px rgba(78, 205, 196, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-cta-icon {
  width: 20px;
  height: 20px;
  fill: var(--cyan);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--ice-blue), var(--purple), transparent);
}

@keyframes scrollBounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) translateY(10px);
    opacity: 0.5;
  }
}

/* ===== ABOUT SECTION ===== */
.about {
  background: linear-gradient(180deg, var(--bg) 0%, var(--navy) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-main h3 {
  font-size: 1.5rem;
  color: var(--silver);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-main h3::before {
  content: "";
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--ice-blue), var(--purple));
  border-radius: 2px;
}

.about-main p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 1rem;
}

.about-feature-icon {
  width: 20px;
  height: 20px;
  fill: var(--cyan);
  flex-shrink: 0;
}

/* Info cards */
.about-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-card {
  background: rgba(26, 35, 64, 0.5);
  border: 1px solid rgba(78, 205, 196, 0.15);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s var(--ease-out);
}

.about-card:hover {
  border-color: rgba(78, 205, 196, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.about-card-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--cyan);
  margin-bottom: 8px;
  font-weight: 600;
}

.about-card-value {
  font-size: 1.25rem;
  color: var(--text);
  font-weight: 600;
}

.about-card-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Recruitment needs */
.recruitment {
  margin-top: 60px;
  padding-top: 60px;
  border-top: 1px solid rgba(78, 205, 196, 0.1);
}

.recruitment h3 {
  font-size: 1.5rem;
  color: var(--silver);
  margin-bottom: 24px;
  text-align: center;
}

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

.recruitment-role {
  background: rgba(26, 35, 64, 0.3);
  border: 1px solid rgba(78, 205, 196, 0.1);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.recruitment-role::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--role-color, var(--cyan)), transparent);
  opacity: 0.5;
}

.recruitment-role:hover {
  border-color: rgba(78, 205, 196, 0.25);
  background: rgba(26, 35, 64, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.recruitment-role:hover .recruitment-role-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 12px var(--role-color, var(--cyan)));
}

.recruitment-role-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  fill: var(--role-color, var(--cyan));
  transition: all 0.3s var(--ease-out);
  filter: drop-shadow(0 0 8px rgba(78, 205, 196, 0.3));
}

.recruitment-role-emoji {
  display: block;
  font-size: 42px;
  margin: 0 auto 16px;
  transition: all 0.3s var(--ease-out);
}

.recruitment-role:hover .recruitment-role-emoji {
  transform: scale(1.1);
}

.recruitment-role.tank .recruitment-role-emoji {
  filter: drop-shadow(0 0 8px rgba(91, 155, 213, 0.5));
}

.recruitment-role.tank:hover .recruitment-role-emoji {
  filter: drop-shadow(0 0 14px rgba(91, 155, 213, 0.7));
}

.recruitment-role.healer .recruitment-role-emoji {
  filter: drop-shadow(0 0 8px rgba(123, 201, 111, 0.5));
}

.recruitment-role.healer:hover .recruitment-role-emoji {
  filter: drop-shadow(0 0 14px rgba(123, 201, 111, 0.7));
}

.recruitment-role.dps .recruitment-role-emoji {
  filter: drop-shadow(0 0 8px rgba(224, 108, 117, 0.5));
}

.recruitment-role.dps:hover .recruitment-role-emoji {
  filter: drop-shadow(0 0 14px rgba(224, 108, 117, 0.7));
}

.recruitment-role.tank {
  --role-color: #5b9bd5;
}

.recruitment-role.healer {
  --role-color: #7bc96f;
}

.recruitment-role.dps {
  --role-color: #e06c75;
}

.recruitment-role-name {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.recruitment-role-status {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.recruitment-role-status.high {
  color: var(--cyan);
}

.recruitment-note {
  text-align: center;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.recruitment-note strong {
  color: var(--cyan);
}

/* Discord CTA */
.discord-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #5865F2;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.3);
}

.discord-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(88, 101, 242, 0.4);
}

.discord-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ===== RULES SECTION ===== */
.rules {
  background: linear-gradient(180deg, var(--navy) 0%, var(--bg) 100%);
}

.rules-container {
  max-width: 900px;
  margin: 0 auto;
}

.rules-intro {
  text-align: center;
  margin-bottom: 48px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.rule-category {
  margin-bottom: 24px;
  border: 1px solid rgba(125, 211, 252, 0.1);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(20, 26, 38, 0.5);
}

.rule-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: rgba(30, 42, 61, 0.5);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  border: none;
  width: 100%;
  text-align: left;
  color: var(--text);
}

.rule-category-header:hover {
  background: rgba(30, 42, 61, 0.8);
}

.rule-category-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--silver);
  display: flex;
  align-items: center;
  gap: 12px;
}

.rule-category-title::before {
  content: "";
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--ice-blue), var(--purple));
  border-radius: 2px;
}

.rule-category-toggle {
  width: 24px;
  height: 24px;
  fill: var(--text-muted);
  transition: transform 0.3s var(--ease-out);
}

.rule-category.open .rule-category-toggle {
  transform: rotate(180deg);
}

.rule-category-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}

.rule-category.open .rule-category-content {
  max-height: 3000px;
}

.rule-category-inner {
  padding: 24px;
  border-top: 1px solid rgba(125, 211, 252, 0.1);
}

.rule-item {
  margin-bottom: 20px;
  padding-left: 20px;
  position: relative;
}

.rule-item:last-child {
  margin-bottom: 0;
}

.rule-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--ice-blue);
  border-radius: 50%;
}

.rule-item p {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 8px;
}

.rule-item p:last-child {
  margin-bottom: 0;
}

.rule-item strong {
  color: var(--silver-warm);
}

.rule-note {
  background: rgba(125, 211, 252, 0.08);
  border-left: 3px solid var(--ice-blue);
  padding: 12px 16px;
  margin-top: 12px;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.rule-note.warning {
  background: rgba(167, 139, 250, 0.08);
  border-left-color: var(--purple);
}

.rule-subitems {
  margin-top: 12px;
  padding-left: 16px;
}

.rule-subitem {
  color: var(--text-muted);
  margin-bottom: 6px;
  position: relative;
  padding-left: 16px;
}

.rule-subitem::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ice-blue);
}

.policy-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(125, 211, 252, 0.1);
}

.policy-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.policy-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ice-blue);
  margin-bottom: 12px;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 80px 20px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: linear-gradient(135deg, var(--ice-blue), var(--purple));
  filter: blur(150px);
  opacity: 0.1;
  pointer-events: none;
}

.cta-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cta-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--navy-light) 100%);
  border: 1px solid rgba(125, 211, 252, 0.3);
  border-radius: 50px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cta-btn:hover {
  transform: translateY(-3px);
  border-color: var(--ice-blue);
  box-shadow: 0 8px 40px rgba(125, 211, 252, 0.2);
}

.cta-btn svg {
  width: 20px;
  height: 20px;
  fill: var(--ice-blue);
  transition: transform 0.3s var(--ease-out);
}

.cta-btn:hover svg {
  transform: translateX(4px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

@media (max-width: 768px) {
  .hero-cta {
    padding: 14px 28px;
  }

  .scroll-indicator {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .particle,
  .hero-glow {
    animation: none !important;
    opacity: 0.15;
  }
}
