/* =========================================================
   Idle Ones · idleones.com
   White premium theme with the Idle Ones gold accent
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --bg-sunk: #f1f1f3;
  --card: #ffffff;
  --line: #e7e7ea;
  --line-strong: #d8d8dd;

  --gold: #f5b323;
  --gold-deep: #c98700;
  --gold-soft: #fff6e0;
  --gold-tint: #fffaf0;

  --ink: #14141a;
  --ink-soft: #3d3d47;
  --muted: #6b6b76;
  --faint: #9a9aa4;

  --shadow-sm: 0 1px 2px rgba(20, 20, 26, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(20, 20, 26, 0.18);
  --shadow-lg: 0 30px 70px -28px rgba(20, 20, 26, 0.32);
  --shadow-gold: 0 18px 50px -20px rgba(201, 135, 0, 0.45);

  --glass: rgba(255, 255, 255, 0.86);
  --glass-strong: rgba(255, 255, 255, 0.94);

  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1180px;

  --font-display: "Leckerli One", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

/* Dark theme: same gold accent, deep neutral surfaces */
:root[data-theme="dark"] {
  --bg: #0f0f14;
  --bg-soft: #16161d;
  --bg-sunk: #1d1d26;
  --card: #17171f;
  --line: #2a2a34;
  --line-strong: #3a3a46;

  --gold: #f5b323;
  --gold-deep: #f0bc4a;
  --gold-soft: #2c2417;
  --gold-tint: #1c190f;

  --ink: #f4f4f7;
  --ink-soft: #c7c7d0;
  --muted: #9a9aa6;
  --faint: #6f6f7c;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 70px -28px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 18px 50px -20px rgba(245, 179, 35, 0.35);

  --glass: rgba(20, 20, 28, 0.78);
  --glass-strong: rgba(23, 23, 31, 0.92);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

code {
  font-family: "SFMono-Regular", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  margin: 0;
  padding: 0.8rem clamp(1rem, 4vw, 2.5rem);
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(16px);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.nav.is-scrolled {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.nav__logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav__links a {
  position: relative;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.18s ease, background 0.18s ease;
}

.nav__links a:hover { color: var(--ink); background: var(--bg-soft); }

.nav__links a.is-current {
  color: var(--gold-deep);
  background: var(--gold-tint);
}

.nav__cta,
.nav__links a.nav__cta {
  background: var(--ink);
  color: var(--bg) !important;
  box-shadow: var(--shadow-sm);
}

.nav__cta:hover,
.nav__links a.nav__cta:hover { background: var(--gold-deep); color: #fff !important; }

.nav__cta.is-current { background: var(--gold-deep); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 38px;
  padding: 9px 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav__theme {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: auto;
  color: var(--ink-soft);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.nav__theme:hover {
  color: var(--gold-deep);
  border-color: var(--gold);
}

/* Show the moon in light mode (click for dark), the sun in dark mode */
.nav__theme-moon { display: block; }
.nav__theme-sun { display: none; }
:root[data-theme="dark"] .nav__theme-moon { display: none; }
:root[data-theme="dark"] .nav__theme-sun { display: block; }

/* Dropdown groups */
.nav__group { position: relative; }

.nav__group-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  background: none;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav__group-btn:hover { color: var(--ink); background: var(--bg-soft); }

.nav__group.is-current .nav__group-btn {
  color: var(--gold-deep);
  background: var(--gold-tint);
}

.nav__chevron { transition: transform 0.2s ease; }
.nav__group.is-open .nav__chevron { transform: rotate(180deg); }

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.4rem;
  padding-top: calc(0.4rem + 0.5rem); /* visual gap lives inside the element so :hover stays active */
  background: var(--glass-strong);
  backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 60;
}

.nav__group:hover .nav__dropdown,
.nav__group.is-open .nav__dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav__dropdown a {
  padding: 0.55rem 0.8rem;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.16s ease, background 0.16s ease;
}

.nav__dropdown a:hover { color: var(--ink); background: var(--bg-soft); }
.nav__dropdown a.is-current { color: var(--gold-deep); background: var(--gold-tint); }

/* =========================================================
   Page router
   ========================================================= */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1rem, 2.5vw, 1.8rem) clamp(1rem, 4vw, 2.5rem) 5rem;
}

.page { display: none; }

.page.is-active {
  display: block;
  animation: pageIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   Section heads
   ========================================================= */
.section__head {
  max-width: 680px;
  margin: 0 auto 2.6rem;
  text-align: center;
}

.section__eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.section__title {
  margin: 0 0 0.7rem;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section__sub {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #fff;
  box-shadow: var(--shadow-gold);
}

.btn--ghost {
  background: var(--card);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn--ghost:hover { border-color: var(--gold); color: var(--gold-deep); }

.btn--discord {
  background: #5865f2;
  color: #fff;
  box-shadow: 0 18px 50px -20px rgba(88, 101, 242, 0.7);
}

.btn--discord:hover { background: #4752e0; }

.btn__icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  padding: 0 0 clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.hero__showcase {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 760px;
}

.hero__showcase::after {
  content: "";
  position: absolute;
  inset: 6% 6% -8% 6%;
  background: radial-gradient(60% 60% at 50% 45%, rgba(245, 179, 35, 0.42), transparent 70%);
  filter: blur(48px);
  z-index: -1;
}

.hero__showcase img {
  width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

.hero__plate {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(82%, 460px);
  margin: 0;
  padding: clamp(1.2rem, 3vw, 1.8rem) clamp(1rem, 3vw, 2rem);
  background: var(--glass-strong);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: clamp(0.7rem, 1.6vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.hero__title-word {
  display: inline-block;
  white-space: nowrap;
}

.hero__title-word + .hero__title-word {
  margin-left: 0.3em;
  transition: margin-left 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__title.is-collapsed .hero__title-word + .hero__title-word {
  margin-left: 0.02em;
}

.hero__title-rest {
  display: inline-block;
  max-width: 4ch;
  overflow: hidden;
  vertical-align: bottom;
  opacity: 1;
  transform: translateX(0);
  transition: max-width 1.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 1s ease 0.2s,
              transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__title.is-collapsed .hero__title-rest {
  max-width: 0;
  opacity: 0;
  transform: translateX(-0.2em);
}

@media (prefers-reduced-motion: reduce) {
  .hero__title-rest { transition: none; }
}

.hero__slogan {
  margin: 0.4rem 0 0;
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--gold-deep), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

/* =========================================================
   Feature grid (home)
   ========================================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
  margin-top: 1rem;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.6rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.feature-card h3 { margin: 0; font-size: 1.18rem; font-weight: 800; letter-spacing: -0.01em; }

.feature-card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

.feature-card__go {
  margin-top: auto;
  padding-top: 0.6rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold-deep);
}

.feature-card__go::after { content: " →"; }

/* =========================================================
   Timers
   ========================================================= */
.timers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.timer-card {
  --state-color: var(--gold);
  position: relative;
  overflow: hidden;
  padding: 1.6rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.timer-card__accent {
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--state-color);
}

.timer-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.timer-card__location h3 { margin: 0; font-size: 1.3rem; font-weight: 800; }
.timer-card__location span { color: var(--faint); font-size: 0.9rem; }

.state-pill {
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--state-color);
  background: color-mix(in srgb, var(--state-color) 12%, var(--card));
  border: 1px solid color-mix(in srgb, var(--state-color) 30%, var(--card));
}

.timer-card__clock { display: flex; flex-direction: column; gap: 0.1rem; }

.timer-card__count {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.timer-card__until { color: var(--faint); font-size: 0.88rem; }

.timer-card__bar {
  margin-top: 1.3rem;
  height: 7px;
  border-radius: 999px;
  background: var(--bg-sunk);
  overflow: hidden;
}

.timer-card__bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--state-color);
  transition: width 1s linear;
}

.timers__note {
  text-align: center;
  margin-top: 1.6rem;
  color: var(--faint);
  font-size: 0.9rem;
}

/* =========================================================
   Events
   ========================================================= */
.events {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.events__placeholder,
.events__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.4rem;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.events__spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 0.5rem;
  vertical-align: -2px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.event-card {
  display: flex;
  gap: 1.1rem;
  padding: 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.event-card__date {
  flex-shrink: 0;
  width: 64px;
  text-align: center;
  padding: 0.6rem 0;
  background: var(--gold-tint);
  border: 1px solid var(--gold-soft);
  border-radius: 12px;
}

.event-card__weekday { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-deep); font-weight: 700; }
.event-card__day { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.event-card__month { display: block; font-size: 0.78rem; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.event-card__body { display: flex; flex-direction: column; justify-content: center; gap: 0.3rem; }
.event-card__title { margin: 0; font-size: 1.08rem; font-weight: 700; }
.event-card__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; color: var(--muted); font-size: 0.9rem; }
.event-card__loc::before { content: "· "; }

/* =========================================================
   Hierarchy
   ========================================================= */
.tier { margin-top: 3rem; }
.tier:first-of-type { margin-top: 0; }

.tier__label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.tier__label span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.tier__label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.leadership {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.lead-card {
  display: flex;
  gap: 1rem;
  padding: 1.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.lead-card--1 {
  background: linear-gradient(160deg, var(--gold-tint), var(--card) 60%);
  border-color: var(--gold-soft);
}

.lead-card__rank {
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
}

.lead-card__role { margin: 0 0 0.3rem; font-size: 1.1rem; font-weight: 800; }
.lead-card__desc { margin: 0; color: var(--muted); font-size: 0.92rem; }

.teams {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.1rem;
}

.team-card {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.team-card__head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem; }
.team-card__head h3 { margin: 0; font-size: 1.2rem; font-weight: 800; }

.team-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--gold-tint);
  border: 1px solid var(--gold-soft);
  font-size: 1.25rem;
}

.team-card__icon[data-icon="shield"]::before { content: "🛡️"; }
.team-card__icon[data-icon="users"]::before { content: "🤝"; }
.team-card__icon[data-icon="sparkles"]::before { content: "🎉"; }
.team-card__icon[data-icon="home"]::before { content: "🏛️"; }
.team-card__icon[data-icon="star"]::before { content: "⭐"; }

.team-card__blurb { margin: 0 0 1rem; color: var(--muted); font-size: 0.95rem; }

.team-card__leaders { margin-bottom: 1rem; }
.team-card__leaders-label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); font-weight: 700; margin-bottom: 0.4rem; }
.team-card__leaders-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.chip {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.chip--lead { background: var(--gold-soft); color: var(--gold-deep); }

.team-card__roles { list-style: none; margin: 0; padding: 0.8rem 0 0; border-top: 1px solid var(--line); }
.team-card__roles li { display: flex; flex-direction: column; padding: 0.5rem 0; }
.team-card__roles li + li { border-top: 1px dashed var(--line); }
.team-card__role-name { font-weight: 700; font-size: 0.95rem; }
.team-card__role-desc { color: var(--muted); font-size: 0.88rem; }

.members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.member-card {
  padding: 1.3rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.member-card h3 { margin: 0 0 0.3rem; font-size: 1.02rem; font-weight: 800; }
.member-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* =========================================================
   Command guide
   ========================================================= */
.cmd-prefixes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
  margin-bottom: 1.6rem;
}

.cmd-prefix {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.cmd-prefix__key {
  flex-shrink: 0;
  min-width: 2.2rem;
  text-align: center;
  padding: 0.2rem 0.5rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  font-family: ui-monospace, monospace;
  font-weight: 700;
  font-size: 0.85rem;
}

.cmd-prefix__label { color: var(--muted); font-size: 0.9rem; }

.cmd-search {
  position: relative;
  margin-bottom: 1.3rem;
}

.cmd-search__icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  opacity: 0.6;
}

#cmd-search {
  width: 100%;
  padding: 0.95rem 1rem 0.95rem 2.7rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

#cmd-search:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(245, 179, 35, 0.18);
}

.cmd-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.cmd-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.cmd-cat:hover { border-color: var(--gold); color: var(--gold-deep); }

.cmd-cat.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.cmd-group { margin-bottom: 2.4rem; scroll-margin-top: 90px; }

.cmd-group__head {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.cmd-group__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gold-tint);
  border: 1px solid var(--gold-soft);
  font-size: 1.4rem;
}

.cmd-group__head h3 { margin: 0 0 0.15rem; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; }
.cmd-group__head p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.cmd-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 0.8rem;
}

.cmd {
  padding: 1.1rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.cmd:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }

.cmd__syntax {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.32rem 0.6rem;
  background: var(--bg-sunk);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}

.cmd__desc { margin: 0; color: var(--ink-soft); font-size: 0.93rem; }
.cmd__desc code { padding: 0.1rem 0.35rem; background: var(--gold-tint); border: 1px solid var(--gold-soft); border-radius: 6px; color: var(--gold-deep); }
.cmd__desc em { color: var(--faint); font-style: italic; }

.cmd-empty {
  text-align: center;
  padding: 3rem;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

/* =========================================================
   Clan news
   ========================================================= */
.news {
  display: grid;
  gap: 1.1rem;
  max-width: 760px;
  margin: 0 auto;
}

.news-card {
  position: relative;
  padding: 1.6rem 1.8rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: transform 0.18s ease, box-shadow 0.22s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.news-card__meta {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.news-card__tag {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.news-card__date {
  color: var(--faint);
  font-size: 0.82rem;
}

.news-card__date::before {
  content: "•";
  margin-right: 0.6rem;
  color: var(--gold-soft);
}

.news-card__title { margin: 0 0 0.5rem; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; }

.news-card__body { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* =========================================================
   What's next
   ========================================================= */
.soon-card {
  position: relative;
  overflow: hidden;
  max-width: 720px;
  margin: 2rem auto;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  background: linear-gradient(160deg, var(--gold-tint), var(--card) 70%);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.soon-card__title { margin: 0.4rem 0 0.8rem; font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; }
.soon-card__sub { margin: 0 auto 2rem; max-width: 32rem; color: var(--muted); font-size: 1.05rem; }
.soon-card .hero__cta { justify-content: center; }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  border-top: 1px solid var(--line);
  padding: 3rem 1.5rem 3.5rem;
  text-align: center;
  background: var(--bg-soft);
}

.footer__logo { width: 48px; height: 48px; border-radius: 12px; margin: 0 auto 0.9rem; box-shadow: var(--shadow-sm); }
.footer__name { margin: 0; font-weight: 800; font-size: 1.15rem; }
.footer__slogan { margin: 0.2rem 0 1.2rem; font-family: var(--font-display); color: var(--gold-deep); font-size: 1.05rem; }
.footer__discord { margin: 0 auto 1.6rem; }
.footer__fine { margin: 0 auto 0.8rem; max-width: 40rem; color: var(--faint); font-size: 0.82rem; }
.footer__copy { margin: 0; color: var(--faint); font-size: 0.82rem; }

/* =========================================================
   Why join
   ========================================================= */
.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
  margin-bottom: 2.5rem;
}

.reason-card {
  padding: 1.6rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.22s ease;
}

.reason-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.reason-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 0.9rem;
  border-radius: 12px;
  background: var(--gold-tint);
  border: 1px solid var(--gold-soft);
  font-size: 1.4rem;
}

.reason-card h3 { margin: 0 0 0.4rem; font-size: 1.15rem; font-weight: 800; }
.reason-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.join-steps {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
  background: linear-gradient(160deg, var(--gold-tint), var(--card) 70%);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.join-steps__title { margin: 0 0 1.2rem; font-size: 1.5rem; font-weight: 800; }

.join-steps__list {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 0.8rem;
  text-align: left;
}

.join-steps__list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

.join-steps__num {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: #14141a;
  font-weight: 800;
  font-size: 0.95rem;
}

.join-steps .hero__cta { justify-content: center; }

/* =========================================================
   Lore
   ========================================================= */
.lore {
  max-width: 680px;
  margin: 0 auto;
  padding-left: 1.4rem;
  border-left: 2px solid var(--line-strong);
}

.lore__chapter {
  position: relative;
  padding: 0 0 2rem 1.2rem;
}

.lore__chapter:last-child { padding-bottom: 0; }

.lore__marker {
  position: absolute;
  left: calc(-1.4rem - 7px);
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--gold-soft);
}

.lore__chapter h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--gold-deep);
}

.lore__chapter p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.7; }

/* =========================================================
   Back to top
   ========================================================= */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 70;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--bg);
  background: var(--ink);
  border: 0;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease, background 0.18s ease;
}

.to-top.is-visible { opacity: 1; transform: translateY(0); }
.to-top:hover { background: var(--gold-deep); color: #fff; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.8rem clamp(1rem, 4vw, 2.5rem) 1.2rem;
    background: var(--glass-strong);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Dropdowns become inline expandable groups inside the mobile menu */
  .nav__group { width: 100%; }

  .nav__group-btn {
    width: 100%;
    justify-content: space-between;
  }

  .nav__dropdown {
    position: static;
    min-width: 0;
    margin: 0.15rem 0 0.3rem 0.8rem;
    padding: 0.2rem;
    background: none;
    backdrop-filter: none;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    display: none;
  }

  .nav__group.is-open .nav__dropdown { display: flex; }
  .nav__group:hover .nav__dropdown { display: none; }
  .nav__group.is-open:hover .nav__dropdown { display: flex; }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__tagline { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  .hero__showcase { order: -1; }
  .hero__showcase img { max-width: 380px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
