:root {
  --bg-page: #121116;
  --bg-panel: #1a1920;
  --bg-panel-alt: #201f28;
  --bg-card: #211f29;
  --border-line: #2c2b35;
  --border-line-strong: #383743;

  --text-primary: #f5f4f7;
  --text-secondary: #a8a6b3;
  --text-muted: #706e7c;

  --accent-orange: #ff9a2e;
  --accent-orange-deep: #e6791a;
  --accent-purple: #a78bfa;

  --amber-bg: #f2c14e; --amber-fg: #4a3300;
  --green-bg: #7ed08a; --green-fg: #163a1c;
  --coral-bg: #d98a63; --coral-fg: #401f0c;
  --blue-bg: #6fa8dc; --blue-fg: #0b2c4d;
  --pink-bg: #e8a0c4; --pink-fg: #4a0f2c;

  --status-online: #4ade80;
  --status-offline: #f87171;
  --status-offline-2: #ef4444;

  --font-display: 'Nunito', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --radius-card: 16px;
  --radius-pill: 999px;
  --ease: cubic-bezier(.16,1,.3,1);

  color-scheme: dark;
}

html[data-theme="light"] {
  --bg-page:      #f4f1ea;
  --bg-panel:     #ffffff;
  --bg-panel-alt: #fbf8f1;
  --bg-card:      #ffffff;
  --border-line:  #e5e0d3;
  --border-line-strong: #d3ccb8;

  --text-primary: #221f2b;
  --text-secondary: #5c5866;
  --text-muted:   #918d9c;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}

body {
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
img { max-width: 100%; display: block; }
code { font-family: var(--font-mono); }
.muted { color: var(--text-muted); }

::selection { background: var(--accent-orange); color: #1a1108; }
:focus-visible { outline: 2px solid var(--accent-orange); outline-offset: 2px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-panel); }
::-webkit-scrollbar-thumb { background: var(--accent-orange-deep); border: 2px solid var(--bg-panel); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-orange); }
html { scrollbar-width: thin; scrollbar-color: var(--accent-orange-deep) var(--bg-panel); }
.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-chip svg { display: block; }

.icon-chip-amber { background: var(--amber-bg); color: var(--amber-fg); }
.icon-chip-green { background: var(--green-bg); color: var(--green-fg); }
.icon-chip-coral { background: var(--coral-bg); color: var(--coral-fg); }
.icon-chip-blue  { background: var(--blue-bg);  color: var(--blue-fg); }
.icon-chip-pink  { background: var(--pink-bg);  color: var(--pink-fg); }



.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.feature-list.reveal-group .reveal:nth-child(1) { transition-delay: 0s; }
.feature-list.reveal-group .reveal:nth-child(2) { transition-delay: 0.08s; }
.feature-list.reveal-group .reveal:nth-child(3) { transition-delay: 0.16s; }
.feature-list.reveal-group .reveal:nth-child(4) { transition-delay: 0.24s; }

.team-grid .reveal:nth-child(6n+1) { transition-delay: 0s; }
.team-grid .reveal:nth-child(6n+2) { transition-delay: 0.06s; }
.team-grid .reveal:nth-child(6n+3) { transition-delay: 0.12s; }
.team-grid .reveal:nth-child(6n+4) { transition-delay: 0.18s; }
.team-grid .reveal:nth-child(6n+5) { transition-delay: 0.24s; }
.team-grid .reveal:nth-child(6n+6) { transition-delay: 0.3s; }

.cta-grid .reveal:nth-child(1) { transition-delay: 0s; }
.cta-grid .reveal:nth-child(2) { transition-delay: 0.1s; }

.accordion-item.reveal {
  transform: none;
  transition: opacity 0.45s ease-out;
}
.accordion-item.reveal.is-visible { transform: none; }
.accordion .reveal:nth-child(1) { transition-delay: 0s; }
.accordion .reveal:nth-child(2) { transition-delay: 0.04s; }
.accordion .reveal:nth-child(3) { transition-delay: 0.08s; }
.accordion .reveal:nth-child(4) { transition-delay: 0.12s; }
.accordion .reveal:nth-child(5) { transition-delay: 0.16s; }

.footer-cols .reveal:nth-child(1) { transition-delay: 0s; }
.footer-cols .reveal:nth-child(2) { transition-delay: 0.08s; }
.footer-cols .reveal:nth-child(3) { transition-delay: 0.16s; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 8px 40px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  background: color-mix(in srgb, var(--bg-panel) 72%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-line);
  border-radius: 18px;
  padding: 8px 6px 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

html[data-theme="light"] .header-inner { background: color-mix(in srgb, var(--bg-panel) 70%, transparent); }

.brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.brand-logo { width: 28px; height: 28px; object-fit: contain; border-radius: 7px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 0.94rem; font-weight: 700; color: var(--text-primary); }
.accent { color: var(--accent-orange); }
.brand-sub { font-size: 0.66rem; color: var(--text-muted); font-weight: 500; }

.main-nav { position: relative; display: flex; align-items: center; gap: 2px; }

.nav-indicator {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--bg-panel-alt);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s var(--ease), width 0.28s var(--ease), opacity 0.2s var(--ease);
  z-index: 0;
}

.main-nav:hover .nav-indicator { opacity: 1; }

.nav-pill {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s var(--ease);
}

.nav-pill:hover { color: var(--text-primary); }

.header-controls { display: flex; align-items: center; gap: 5px; }

.icon-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-panel-alt);
  color: var(--text-secondary);
  font-size: 0.68rem;
  font-weight: 700;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.icon-toggle:hover { background: var(--border-line-strong); color: var(--text-primary); }
.theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
}

.theme-icon svg { width: 15px; height: 15px; }

.header-discord-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-orange);
  color: #2b1400;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.header-discord-btn svg { width: 17px; height: 17px; }
.header-discord-btn:hover { background: var(--accent-orange-deep); transform: scale(1.06); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-panel-alt);
}

.burger span { display: block; width: 13px; height: 1.5px; background: var(--text-primary); margin: 0 auto; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.hero {
  position: relative;
  padding: 72px 40px 56px;
  overflow: hidden;
}



.hero-inner {
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  line-height: 1.12;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 20px;
}

.hero-title-accent { color: var(--accent-orange); }

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 460px;
  margin-bottom: 28px;
}

.hero-ip-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 18px;
  background: var(--bg-panel-alt);
  border: 1px solid var(--border-line-strong);
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  color: var(--text-secondary);
  cursor: pointer;
  margin-bottom: 24px;
  transition: border-color 0.2s var(--ease);
}

.hero-ip-pill:hover { border-color: var(--accent-orange); }
.hero-ip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  color: var(--accent-orange);
  flex-shrink: 0;
}

.hero-ip-icon svg { width: 15px; height: 15px; }
.hero-ip-pill code { color: var(--text-primary); font-weight: 600; }
.hero-ip-dot { color: var(--text-muted); font-size: 0.7rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.2s var(--ease);
}

.btn-primary {
  background: var(--accent-orange);
  color: #2b1400;
}

.btn-primary:hover {
  background: var(--accent-orange-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(255, 154, 46, 0.45);
}

.btn-block { width: 100%; justify-content: center; }

.hero-art { display: flex; align-items: center; justify-content: center; }
.hero-art-img { width: 260px; height: 260px; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35)); }

.status-strip {
  border-top: 1px solid var(--border-line);
  border-bottom: 1px solid var(--border-line);
  background: var(--bg-panel);
}

.status-strip-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.status-strip-sep { color: var(--text-muted); }

#playersValue { color: var(--text-primary); font-weight: 700; }

.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); flex-shrink: 0; }
.status-dot.online { background: var(--status-online); }
.status-dot.offline { background: var(--status-offline); }

.section { padding: 96px 40px; }
.section-alt { background: var(--bg-panel); }
.section-inner { max-width: 1480px; margin: 0 auto; }

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

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 44px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 64px;
}

.feature-row { display: flex; align-items: flex-start; gap: 18px; }

.feature-icon-box {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon-box svg { width: 18px; height: 18px; }

.feature-icon-amber { background: var(--amber-bg); color: var(--amber-fg); }
.feature-icon-green { background: var(--green-bg); color: var(--green-fg); }
.feature-icon-coral { background: var(--coral-bg); color: var(--coral-fg); }
.feature-icon-blue  { background: var(--blue-bg);  color: var(--blue-fg); }

.feature-text h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.feature-text p { font-size: 0.92rem; color: var(--text-secondary); max-width: 420px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 200px));
  justify-content: center;
  gap: 20px;
  text-align: left;
}

.team-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 14px;
  padding: 10px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-orange);
  box-shadow: 0 16px 32px -14px rgba(0,0,0,0.4);
}

.team-avatar-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-panel-alt);
  image-rendering: pixelated;
  margin-bottom: 10px;
}

.team-avatar-frame img { width: 100%; height: 100%; object-fit: cover; }

.team-role-badge {
  position: absolute;
  top: 8px; left: 8px;
  width: 22px; height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.team-role-badge svg { width: 12px; height: 12px; }

.team-name { font-family: var(--font-display); font-size: 0.94rem; font-weight: 700; margin-bottom: 1px; }
.team-nick { font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-muted); margin-bottom: 6px; }

.team-role {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-orange);
}

.team-quote { font-size: 0.82rem; color: var(--text-secondary); margin-top: 8px; }

.team-socials {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-line);
}

.team-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 7px;
  background: var(--bg-panel-alt);
  color: var(--text-secondary);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.team-social-btn svg { width: 12px; height: 12px; }

.team-social-btn:hover {
  background: var(--accent-orange);
  color: #2b1400;
  transform: translateY(-2px);
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cta-icon {
  width: 44px; height: 44px;
  border-radius: 13px;
  background: rgba(255, 154, 46, 0.14);
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.cta-icon svg { width: 20px; height: 20px; }

.cta-icon-pink { background: rgba(232, 160, 196, 0.14); color: var(--pink-bg); }

.cta-card h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.cta-card p { font-size: 0.92rem; color: var(--text-secondary); margin-bottom: 22px; flex-grow: 1; }

.accordion { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; text-align: left; }

.accordion-item {
  border: 1px solid var(--border-line);
  border-radius: 14px;
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.25s var(--ease);
}

.accordion-item:has(.accordion-header[aria-expanded="true"]) { border-color: var(--accent-orange); }

.accordion-header { width: 100%; display: flex; align-items: center; gap: 16px; padding: 20px 22px; text-align: left; }
.accordion-q { flex: 1; font-weight: 700; font-size: 0.96rem; }

.accordion-plus { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.accordion-plus::before, .accordion-plus::after { content: ''; position: absolute; background: var(--text-secondary); transition: transform 0.3s var(--ease), background 0.3s var(--ease); }
.accordion-plus::before { top: 7px; left: 0; width: 16px; height: 2px; border-radius: 1px; }
.accordion-plus::after { top: 0; left: 7px; width: 2px; height: 16px; border-radius: 1px; }
.accordion-header[aria-expanded="true"] .accordion-plus::after { transform: rotate(90deg); }
.accordion-header[aria-expanded="true"] .accordion-plus::before,
.accordion-header[aria-expanded="true"] .accordion-plus::after { background: var(--accent-orange); }

.accordion-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.accordion-header[aria-expanded="true"] + .accordion-body { grid-template-rows: 1fr; }
.accordion-body > p { overflow: hidden; padding: 0 22px; color: var(--text-secondary); font-size: 0.9rem; min-height: 0; }
.accordion-header[aria-expanded="true"] + .accordion-body > p { padding: 0 22px 20px; }

.site-footer { padding: 56px 24px 32px; }
.footer-inner { max-width: 1480px; margin: 0 auto; }

.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title { font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; color: var(--accent-orange); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.footer-col a { font-size: 0.88rem; color: var(--text-secondary); transition: color 0.2s var(--ease); width: fit-content; }
.footer-col a:hover { color: var(--text-primary); }

.footer-divider { height: 1px; background: var(--border-line); margin-bottom: 20px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-bottom-brand { display: flex; align-items: center; gap: 10px; }
.footer-logo { width: 26px; height: 26px; border-radius: 6px; }
.footer-copy { font-size: 0.82rem; color: var(--text-muted); }
.footer-eon { font-size: 0.82rem; color: var(--text-muted); }
.footer-eon .accent { font-weight: 700; }
.footer-disclaimer { font-size: 0.72rem; color: var(--text-muted); opacity: 0.7; }

.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--bg-card);
  border: 1px solid var(--accent-orange);
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 32px -8px rgba(0,0,0,0.5);
  font-size: 0.86rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 999;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  color: var(--status-online);
  flex-shrink: 0;
}

.toast-icon svg { width: 16px; height: 16px; }

@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-ip-pill { margin-left: auto; margin-right: auto; }
  .hero-art { order: -1; }
  .hero-art-img { width: 180px; height: 180px; }
}

@media (max-width: 880px) {
  .main-nav {
    position: fixed;
    top: 76px; left: 16px; right: 16px;
    background: var(--bg-panel);
    border: 1px solid var(--border-line);
    border-radius: 20px;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    gap: 4px;
    transform: translateY(-16px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
    z-index: 90;
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.5);
  }
  .main-nav.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
  .nav-indicator { display: none; }
  .nav-pill { padding: 13px 16px; }
  .burger { display: flex; }
  .feature-list { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header { padding: 10px 12px; }
  .header-inner { padding: 6px 6px 6px 14px; }
  .brand-sub { display: none; }
  .hero { padding: 36px 18px 36px; }
  .hero-title { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .hero-ip-pill { justify-content: center; text-align: center; }
  .section { padding: 56px 18px; }
  .section-title { margin-bottom: 32px; }
  .team-grid { gap: 12px; }
  .status-strip-inner { font-size: 0.76rem; gap: 6px; }
  .cta-card { padding: 24px; }
  .accordion-header { padding: 16px 18px; gap: 12px; }
  .accordion-header[aria-expanded="true"] + .accordion-body > p { padding: 0 18px 16px; }
  .footer-cols { gap: 28px; flex-direction: column; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-eon { display: none; }
}

@media (max-width: 420px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); max-width: none; }
  .hero-ip-pill { font-size: 0.78rem; padding: 9px 14px; }
  .btn { width: 100%; justify-content: center; }
}
