:root{
  --bg0:#070812;
  --bg1:#0b0f24;
  --panel:rgba(255,255,255,.06);
  --border:rgba(255,255,255,.10);
  --text:#eef0ff;
  --muted:rgba(238,240,255,.70);
  --accent:#7c5cff;
  --accent2:#35d7ff;
  --shadow:0 18px 60px rgba(0,0,0,.55);
  --radius:18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 520px at 20% 10%, rgba(124,92,255,.22), transparent 60%),
    radial-gradient(820px 520px at 80% 15%, rgba(53,215,255,.18), transparent 55%),
    radial-gradient(900px 600px at 50% 80%, rgba(255,255,255,.05), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
}

a{color:inherit}
img{max-width:100%;display:block}
.container{width:min(1120px, calc(100% - 36px)); margin:0 auto}

/* Header */
.site-header{
  position:sticky; top:0; z-index:50;
  background: rgba(8,10,18,.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px;
  padding:14px 0;
}
.brand{
  display:flex; align-items:center; gap:12px;
  text-decoration:none;
}
.brand-logo{
  width:44px; height:44px; border-radius:12px;
  object-fit:contain;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  padding:6px;
}
.brand-name{font-weight:800; letter-spacing:.2px}
.brand-tag{font-size:12px; color:var(--muted); margin-top:2px}

.nav{display:flex; align-items:center; gap:14px}
.nav a{
  text-decoration:none;
  color: rgba(238,240,255,.84);
  font-weight:600;
  font-size:14px;
  padding:10px 10px;
  border-radius:12px;
}
.nav a:hover{background: rgba(255,255,255,.06)}

.header-cta{display:flex; align-items:center; gap:10px}

/* Buttons */
.btn{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding:10px 14px;
  border-radius:999px;
  cursor:pointer;
  font-weight:700;
  font-size:14px;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.btn:hover{background: rgba(255,255,255,.10)}
.btn-primary{
  border:none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color:#061018;
  box-shadow: 0 10px 26px rgba(124,92,255,.25);
}
.btn-primary:hover{filter:brightness(1.03)}
.btn-ghost{
  background: transparent;
  border:1px solid rgba(255,255,255,.16);
}

.tiny{font-size:12px}
.muted{color:var(--muted)}

/* Hamburger */
.hamburger{
  display:none;
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}
.hamburger span{
  display:block;
  width:18px; height:2px;
  background: rgba(238,240,255,.9);
  margin:4px auto;
  border-radius:99px;
}

/* Mobile Menu */
.menu-overlay[hidden], .mobile-menu[hidden]{display:none !important}
.menu-overlay{
  position:fixed; inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  z-index:100;
}
.mobile-menu{
  position:fixed;
  top:10px; right:10px;
  width:min(360px, calc(100% - 20px));
  height: calc(100% - 20px);
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(12,14,30,.92);
  box-shadow: var(--shadow);
  z-index:101;
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.mobile-menu-top{display:flex; align-items:center; justify-content:space-between; gap:10px}
.mobile-brand{display:flex; align-items:center; gap:10px}
.mobile-logo{
  width:38px; height:38px;
  border-radius:12px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  padding:6px;
}
.mobile-title{font-weight:800}
.mobile-sub{font-size:12px; color:var(--muted)}
.mobile-close{
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color:var(--text);
  font-size:22px;
  cursor:pointer;
}
.mobile-links{display:flex; flex-direction:column; gap:8px; margin-top:6px}
.mobile-links a{
  text-decoration:none;
  padding:12px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  font-weight:700;
}
.mobile-links a:hover{background: rgba(255,255,255,.10)}

/* Sections */
.section{padding:56px 0}
.section-head{margin-bottom:16px}
h2{font-size:28px; margin:0}
.panel-title{font-size:18px; margin:0 0 10px}

/* Hero */
.hero{padding:44px 0 10px; position:relative}
.hero-bg{
  position:absolute;
  inset:0;
  background: radial-gradient(520px 320px at 20% 15%, rgba(124,92,255,.18), transparent 65%),
              radial-gradient(520px 320px at 85% 20%, rgba(53,215,255,.14), transparent 60%);
  pointer-events:none;
}
.hero-inner{
  position:relative;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:18px;
  align-items:center;
}
.pill{
  display:inline-flex;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  font-weight:800;
  font-size:12px;
  color: rgba(238,240,255,.86);
  margin:0 0 10px;
}
.hero-title{margin:0 0 10px; line-height:1.05}
.hero-title-top{display:block; font-size:42px; font-weight:900}
.hero-title-bottom{display:block; font-size:52px; font-weight:900; color:rgba(124,92,255,.95)}
.hero-sub{color:var(--muted); margin:0 0 16px; font-size:15px}
.hero-actions{display:flex; flex-wrap:wrap; gap:10px}
.hero-mini{display:flex; flex-wrap:wrap; gap:10px; margin-top:14px}
.mini-card{
  flex:1;
  min-width:160px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  padding:12px 12px;
}
.mini-num{font-weight:900; font-size:18px}
.mini-label{color:var(--muted); font-size:12px; margin-top:4px}
.hero-right{display:flex; justify-content:center}
.eclipse{
  width:260px; height:260px;
  border-radius:50%;
  background: radial-gradient(circle at 40% 35%, rgba(255,255,255,.08), transparent 60%),
              radial-gradient(circle at 55% 55%, rgba(124,92,255,.25), transparent 62%),
              radial-gradient(circle, #02020a, #0b0f24 62%, rgba(53,215,255,.25));
  box-shadow: 0 0 90px rgba(124,92,255,.25), 0 0 120px rgba(53,215,255,.18);
  border: 1px solid rgba(255,255,255,.08);
}

/* Panels / grid */
.grid-2{display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:16px}
.panel{
  background: var(--panel);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.panel ul{margin:10px 0 0 18px; color: rgba(238,240,255,.86)}

/* Chips */
.chips{display:flex; flex-wrap:wrap; gap:10px; margin:10px 0}
.chip{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  font-weight:700;
  font-size:13px;
}

/* Roster */
.roster-tools{display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin:12px 0 10px}
.input{
  flex:1;
  min-width: 220px;
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
  outline:none;
}
.input::placeholder{color: rgba(238,240,255,.55)}
.roster-grid{display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:12px}
.card{
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding:14px;
}
.card-title{font-weight:900}
.card-meta{margin-top:8px; display:grid; gap:6px; color:var(--muted); font-size:13px}

/* Footer */
.footer{padding:18px 0 12px; border-top:1px solid rgba(255,255,255,.08); color: var(--muted)}

/* === MODAL (Hidden by default; only shows when .open) === */
.modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
}
.modal.open{display:block}
.modal-backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.60);
  backdrop-filter: blur(6px);
}
.modal-card{
  position:relative;
  width: min(860px, calc(100% - 26px));
  margin: 72px auto;
  border-radius: 20px;
  background: rgba(12,14,30,.95);
  border:1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.modal-header{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:14px 16px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.modal-body{padding:14px 16px 18px; color: rgba(238,240,255,.92)}
.modal-body h4{margin:14px 0 8px}
.modal-close{
  width:42px; height:42px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size:22px;
  cursor:pointer;
}
body.modal-open{overflow:hidden}

/* Responsive */
@media (max-width: 900px){
  .nav{display:none}
  .hamburger{display:block}
  .hero-inner{grid-template-columns:1fr}
  .hero-right{order:-1}
  .eclipse{width:220px;height:220px}
  .grid-2{grid-template-columns:1fr}
  .roster-grid{grid-template-columns: repeat(2, minmax(0,1fr))}
}
@media (max-width: 560px){
  .hero-title-top{font-size:36px}
  .hero-title-bottom{font-size:44px}
  .roster-grid{grid-template-columns:1fr}
}
.lang-wrap { display:flex; align-items:center; position:relative; z-index:2000; }
.lang-select{
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(12,14,30,.70);
  color: rgba(238,240,255,.92);
  font-weight: 800;
  outline: none;
  cursor: pointer;
}
.lang-select option { color: #0b0f24; }
/* =========================
   Language Dropdown (Header)
   ========================= */

.lang-wrap,
#langMount {
  display: flex;
  align-items: center;
}

/* Dropdown itself */
#languageSelect {
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);

  background: linear-gradient(
    180deg,
    rgba(20, 22, 45, 0.95),
    rgba(12, 14, 30, 0.95)
  );

  color: rgba(238, 240, 255, 0.95);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

/* Hover / focus */
#languageSelect:hover,
#languageSelect:focus {
  border-color: rgba(124, 92, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18);
  outline: none;
}

/* Dropdown list (important for Windows / Chrome) */
#languageSelect option {
  color: #0b0f24;
  background: #ffffff;
  font-weight: 600;
}

/* Ensure dropdown stays above header glow */
#langMount {
  position: relative;
  z-index: 50;
}

/* =========================
   Mobile safety
   ========================= */

@media (max-width: 900px) {
  #languageSelect {
    width: 100%;
    max-width: 220px;
  }
}
/* =========================
   Language Search + Mobile Sync
   ========================= */

#languageSearch,
#languageSearchMobile {
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(12,14,30,.55);
  color: rgba(238,240,255,.92);
  font-weight: 700;
  outline: none;
}

#languageSearch::placeholder,
#languageSearchMobile::placeholder {
  color: rgba(238,240,255,.55);
}

/* Mobile dropdown matches header vibe */
#languageSelectMobile {
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(12,14,30,.85);
  color: rgba(238,240,255,.95);
  font-weight: 800;
  cursor: pointer;
  outline: none;
}

#languageSelectMobile option {
  color: #0b0f24;
  background: #ffffff;
  font-weight: 600;
}

.mobile-lang-block{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin: 8px 0 10px;
}

/* On small phones: keep header search from crowding */
@media (max-width: 560px){
  #languageSearch { display:none; }
}
/* =========================
   Header quick fixes (brand + buttons)
   ========================= */

/* Make the left brand area wide enough and align nicely */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px; /* stops Horizon/Eclipse stacking weirdly */
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

/* Keep "Horizon Eclipse" on one line */
.brand-name {
  white-space: nowrap;
}

/* Prevent the tagline from wrapping into a tall block */
.brand-tag {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

/* Stop nav items like "Our Bot" from breaking */
.nav a {
  white-space: nowrap;
}

/* Stop ALL buttons from wrapping (fixes Join Discord splitting) */
.btn,
.header-cta .btn {
  white-space: nowrap;
}

/* Give CTA buttons enough room so text doesn't wrap */
.header-cta .btn {
  min-width: 120px;
}