/* =========================
   Reset & Base
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #020617;
  --bg-elevated: #020617;
  --bg-card: #020617;
  --bg-soft: #020617;
  --accent: #ef4444;
  --accent-soft: rgba(239, 68, 68, 0.18);
  --accent-strong: #b91c1c;
  --text-main: #f9fafb;
  --text-soft: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.4);
  --pill-eclipse: #38bdf8;
  --pill-tox: #a855f7;
  --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.9);
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0b1120 0, #020617 45%, #000 100%);
  color: var(--text-main);
}

/* =========================
   Layout
   ========================= */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 5rem 0 4rem;
}

.section-card {
  background: radial-gradient(circle at top, #111827 0, #020617 60%);
  box-shadow: var(--shadow-soft);
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin: 0 0 1.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f97373;
}

.section-text {
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.section-text-center {
  text-align: center;
}

.small-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =========================
   Header / Nav
   ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9), transparent);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.8);
  background: radial-gradient(circle at top, rgba(248, 113, 113, 0.4), transparent);
  box-shadow: 0 0 32px rgba(248, 113, 113, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  font-size: 1.02rem;
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.main-nav a {
  color: var(--text-soft);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.15rem;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #f97373, #facc15);
  transition: width 0.22s ease-out;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 999px;
}

/* =========================
   Hero
   ========================= */
.hero {
  padding: 5.25rem 0 4.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.6fr);
  gap: 3rem;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(239, 68, 68, 0.7);
  color: #fecaca;
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-size: clamp(2.35rem, 3.4vw, 3rem);
  line-height: 1.05;
  margin: 0 0 0.9rem;
}

.hero-lead {
  color: var(--text-soft);
  line-height: 1.6;
  font-size: 0.98rem;
  max-width: 34rem;
  margin-bottom: 1.3rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.hero-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Hero side card */
.hero-side {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  position: relative;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.2), #020617 55%, #000 100%);
  border-radius: 1.5rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid rgba(248, 113, 113, 0.5);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-weapon {
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: 240px;
  opacity: 0.9;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.9));
  pointer-events: none;
}

.hero-card-body {
  position: relative;
  max-width: 18rem;
}

.hero-card-body h2 {
  font-size: 1.4rem;
  margin: 0 0 0.75rem;
}

.hero-card-body p {
  font-size: 0.92rem;
  color: var(--text-soft);
  margin: 0 0 0.9rem;
}

.hero-server-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid rgba(148, 163, 184, 0.65);
}

.pill-eclipse {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.7);
  color: #e0f2fe;
}

.pill-tox {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.8);
  color: #f5e0ff;
}

/* =========================
   Buttons
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background-color 0.12s ease-out, border-color 0.12s ease-out;
}

.btn-primary {
  background: linear-gradient(to right, #f97373, #facc15);
  color: #111827;
  box-shadow: 0 12px 35px rgba(248, 113, 113, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(248, 113, 113, 0.45);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.45);
  color: var(--text-soft);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(148, 163, 184, 0.85);
}

/* =========================
   History
   ========================= */
.history-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2.1rem;
}

.history-block {
  background: rgba(15, 23, 42, 0.92);
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 1.5rem 1.4rem;
}

.history-block h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: #fecaca;
}

.check-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.check-list li::before {
  content: "✔";
  color: #22c55e;
  margin-right: 0.5rem;
}

/* =========================
   Servers
   ========================= */
.server-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
  margin-top: 2rem;
}

.server-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 1.1rem;
  border: 1px solid rgba(248, 113, 113, 0.55);
  padding: 1.1rem 1.1rem 1.2rem;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-soft);
}

.server-card:hover {
  border-color: #f97373;
}

.server-thumb-wrap {
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.9);
}

.server-thumb-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: #fed7d7;
}

.server-body p {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.server-body ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* =========================
   Recruitment
   ========================= */
.recruit-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  margin-top: 2.4rem;
}

.recruit-heading {
  font-size: 1rem;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fecaca;
}

.class-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 0.7rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.class-main {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.class-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.6), #020617);
}

.class-name {
  font-size: 0.9rem;
}

.role-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid;
}

.role-dps {
  border-color: rgba(248, 113, 113, 0.9);
  color: #fecaca;
  background: rgba(248, 113, 113, 0.12);
}

.role-tank {
  border-color: rgba(52, 211, 153, 0.95);
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.15);
}

.role-support {
  border-color: rgba(129, 140, 248, 0.95);
  color: #e0e7ff;
  background: rgba(79, 70, 229, 0.15);
}

/* =========================
   Media
   ========================= */
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
  margin-top: 2.4rem;
}

.media-heading {
  margin: 0 0 0.8rem;
  font-size: 1.02rem;
  color: #fed7d7;
}

/* Lite YouTube shell (matches script.js) */
.lite-youtube {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 1rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.95);
}

.lite-thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.88);
  transition: filter 0.18s ease-out, transform 0.18s ease-out;
}

.lite-youtube::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent, rgba(0, 0, 0, 0.65));
}

.lite-playbtn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lite-playbtn::before {
  content: "";
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 2px solid rgba(248, 250, 252, 0.9);
  background: radial-gradient(circle at 30% 30%, #f97373, #b91c1c);
  box-shadow: 0 0 40px rgba(248, 113, 113, 0.8);
}

.lite-playbtn::after {
  content: "";
  position: absolute;
  border-left: 14px solid #f9fafb;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}

.lite-youtube:hover .lite-thumb {
  filter: brightness(1);
  transform: scale(1.03);
}

.lite-youtube iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================
   Footer
   ========================= */
.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top, #020617 0, #020617 60%, #000 100%);
  padding: 3rem 0 2.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.footer-block h3,
.footer-block h4 {
  margin-top: 0;
}

.footer-block p {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.footer-meta ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 0.8rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  display: grid;
  gap: 0.25rem;
}

.footer-copy {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-links {
  font-size: 0.8rem;
}

.footer-links a {
  color: #e5e7eb;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.1fr);
  }
  .hero-side {
    justify-content: flex-start;
  }
  .hero-card {
    margin-top: 1.5rem;
  }

  .history-grid,
  .server-grid,
  .media-grid,
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .server-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 4.5rem;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding-inline: 1rem;
  }

  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: 56px;
    background: rgba(15, 23, 42, 0.98);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.95rem 1.25rem 1.2rem;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease-out, transform 0.16s ease-out;
  }

  .main-nav.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-inner {
    gap: 2.2rem;
  }

  .recruit-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 3.5rem 0 3rem;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 0.98rem;
  }

  .hero-lead {
    font-size: 0.9rem;
  }

  .hero-meta {
    font-size: 0.85rem;
  }

  .class-card {
    padding-inline: 0.7rem;
  }
}
