:root {
  --bg: #08070a;
  --bg-soft: #0f0e12;
  --bg-elevated: #16141a;
  --bg-card: #121116;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f3f1f5;
  --text-muted: #a8a4b0;
  --text-dim: #6f6a78;
  --accent: #9b7ec4;
  --accent-light: #b9a0db;
  --accent-dark: #6f5595;
  --accent-soft: rgba(155, 126, 196, 0.18);
  --discord: #5865f2;
  --green: #22c55e;
  --font: "League Spartan", system-ui, sans-serif;
  --font-display: "League Spartan", system-ui, sans-serif;
  --header-h: 72px;
  --pad: clamp(1.15rem, 4vw, 2.5rem);
  --max: 1120px;
  --radius: 12px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) rgba(255, 255, 255, 0.04);
}

*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.03); }
*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 99px;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: none;
}

body.home-page::before {
  content: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.app {
  position: relative;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  min-height: 100vh;
}

.app.is-ready { opacity: 1; }
body.is-loading { overflow: hidden; }

.accent {
  color: var(--accent-light);
}

.container {
  width: 100%;
  max-width: var(--max);
  padding-inline: var(--pad);
  margin-inline: auto;
}

.container--narrow { max-width: 720px; }

.text-link {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-light);
  transition: opacity 0.2s;
}

.text-link:hover { opacity: 0.75; }

/* Reveal */
.reveal, .hero__reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible, .hero__reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.hero__reveal--d1 { transition-delay: 0.08s; }
.hero__reveal--d2 { transition-delay: 0.16s; }
.hero__reveal--d3 { transition-delay: 0.24s; }
.hero__reveal--d4 { transition-delay: 0.32s; }

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.4s, visibility 0.4s;
}

.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: min(240px, 72vw);
}

.loader__logo { width: min(280px, 78vw); height: auto; }

.loader__text {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.loader__bar {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.loader__fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.2s;
}

/* ========== TOP NAV ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(8, 7, 10, 0.55);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.header.is-scrolled {
  background: rgba(8, 7, 10, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.header__inner {
  height: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--pad);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  z-index: 102;
}

.header__brand img {
  height: 56px;
  width: auto;
  max-width: min(240px, 48vw);
  object-fit: contain;
}

.header__brand span {
  display: none;
}

.header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.header__nav a {
  position: relative;
  padding: 0.45rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.header__nav a:hover,
.header__nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  margin-left: auto;
}

.header__auth,
.header [data-auth-header] {
  display: inline-flex;
  align-items: center;
}

.header [data-auth-header] .auth-user {
  max-width: min(240px, 40vw);
}

.header [data-auth-header] .auth-user__name {
  max-width: 110px;
  display: block;
}

.header [data-auth-header] .btn--header-auth {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  padding: 0.48rem 0.95rem;
  font-size: 0.75rem;
  border-radius: 10px;
}

.header__burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 102;
}

.header__burger span {
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.header.is-open .header__burger span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.header.is-open .header__burger span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

@media (max-width: 980px) {
  .header__nav,
  .header__actions > :not(.header__burger) {
    display: none;
  }

  .header__burger { display: flex; }

  .header.is-open .header__nav,
  .header.is-open .header__actions > :not(.header__burger) {
    display: flex;
  }

  .header.is-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(5, 4, 8, 0.72);
    backdrop-filter: blur(8px);
    z-index: 100;
  }

  .header.is-open .header__nav {
    position: fixed;
    top: calc(var(--header-h) + 12px);
    left: var(--pad);
    right: var(--pad);
    z-index: 101;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    max-height: calc(100dvh - var(--header-h) - 100px);
    overflow-y: auto;
  }

  .header.is-open .header__nav a {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }

  .header.is-open .header__nav a.is-active::after { content: none; }

  .header.is-open .header__actions {
    position: fixed;
    left: var(--pad);
    right: var(--pad);
    bottom: 1.25rem;
    z-index: 101;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
  }

  .header.is-open .header__actions .btn,
  .header.is-open [data-auth-header] .btn--header-auth,
  .header.is-open [data-auth-header] .auth-user {
    width: 100%;
    justify-content: center;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.72rem 1.3rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn--sm { padding: 0.48rem 0.95rem; font-size: 0.74rem; }
.btn--lg { padding: 0.9rem 1.6rem; font-size: 0.88rem; }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: none;
}

.btn--primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn--outline:hover {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  color: var(--text);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
}

.btn--discord {
  background: var(--discord);
  color: #fff;
}

.btn--discord:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.btn--shine::after { display: none; }
.btn__icon { flex-shrink: 0; }

/* Legacy glass for subpages */
.glass {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.glass--glow { box-shadow: var(--shadow); }

/* ========== HERO ========== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  padding: calc(var(--header-h) + 6.5rem) 0 4.5rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  opacity: 0.88;
  animation: heroDrift 30s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes heroDrift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.07) translate3d(-1.5%, -1%, 0); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 7, 10, 0.88) 0%, rgba(8, 7, 10, 0.45) 42%, rgba(8, 7, 10, 0.15) 100%),
    linear-gradient(to bottom, rgba(8, 7, 10, 0.55) 0%, transparent 40%),
    linear-gradient(to top, var(--bg) 0%, transparent 38%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0;
  margin-right: auto;
  text-align: left;
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}

.hero__brand-line {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 11vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.9;
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: rgba(243, 241, 245, 0.88);
  max-width: 16ch;
}

.hero__desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 36ch;
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Stats strip */
.strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  padding: 1.75rem 0;
}

.strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.strip__item {
  text-align: center;
  padding: 0.5rem;
}

.strip__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent-light);
  line-height: 1;
}

.strip__label {
  margin-top: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Full-bleed band */
.band {
  position: relative;
  min-height: min(68vh, 560px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.band__media {
  position: absolute;
  inset: 0;
}

.band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 9s var(--ease);
}

.band:hover .band__media img { transform: scale(1.08); }

.band__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 7, 10, 0.94) 0%, rgba(8, 7, 10, 0.7) 40%, rgba(8, 7, 10, 0.2) 100%),
    linear-gradient(to top, var(--bg), transparent 35%);
}

.band__copy {
  position: relative;
  z-index: 1;
  padding-block: 4.5rem;
  max-width: 520px;
  margin-inline: 0 auto 0;
}

.band__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 1rem;
}

.band__text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 34ch;
}

/* Sections */
.section {
  padding: clamp(4rem, 9vw, 6.5rem) 0;
  position: relative;
}

.section--alt { background: var(--bg-soft); }
.section--texture { overflow: hidden; }

.section__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.section__bg--hoodrp {
  background-image: url("assets/hoodrp-bg.png");
  background-size: cover;
  background-position: center 35%;
  opacity: 0.28;
}

.section__bg--hoodrp::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8, 7, 10, 0.9), rgba(8, 7, 10, 0.72) 50%, rgba(8, 7, 10, 0.95));
}

.section--texture .container { position: relative; z-index: 1; }

.section--solo .container {
  display: flex;
  justify-content: center;
  text-align: center;
  min-height: 8rem;
  align-items: center;
}

.section__head { margin-bottom: 2.25rem; }
.section__head--center { text-align: center; }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.section__lead {
  margin-top: 0.7rem;
  color: var(--text-muted);
  max-width: 42ch;
}

.section__head--center .section__lead { margin-inline: auto; }
.section__lead a { color: var(--accent-light); }
.section__lead a:hover { opacity: 0.8; }

/* Trailer */
.media-frame {
  max-width: 920px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #000;
}

.media-frame__ratio {
  position: relative;
  aspect-ratio: 16 / 9;
}

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

/* Feature stack */
.stack {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.stack__row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s;
}

.stack__row:hover { background: rgba(255, 255, 255, 0.015); }

.stack__num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  padding-top: 0.15rem;
}

.stack__row h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.stack__row p {
  color: var(--text-muted);
  max-width: 54ch;
}

/* Steps */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.steps__item { text-align: left; }

.steps__num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
  letter-spacing: 0.08em;
}

.steps__item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.steps__item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Applications */
.apps {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.apps__tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.apps__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 1rem;
}

.apps__text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.apps__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.apps__list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.apps__list span {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}

.apps__board {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.apps__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.2rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.25s var(--ease), background 0.25s;
}

a.apps__row:hover {
  border-color: var(--line);
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.04);
}

.apps__row--closed {
  opacity: 0.55;
  cursor: not-allowed;
}

.apps__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.apps__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.2rem;
}

.apps__head h3 {
  font-size: 1rem;
  font-weight: 700;
}

.apps__body p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.apps__status {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.apps__status--open {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
}

.apps__status--closed {
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
}

.apps__action { color: var(--accent-light); }
.apps__soon {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Districts */
.districts {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 440px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
}

.districts__tabs {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  overflow-y: auto;
  max-height: 520px;
  background: rgba(0, 0, 0, 0.28);
  border-right: 1px solid var(--line);
}

.district-tab {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.7rem;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}

.district-tab img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.district-tab span {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
}

.district-tab:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }

.district-tab.is-active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  box-shadow: none;
}

.district-panel {
  position: relative;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 2rem;
}

.district-panel__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.32;
  transition: opacity 0.45s var(--ease), transform 10s var(--ease);
  transform: scale(1.04);
  pointer-events: none;
}

.district-panel__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8, 7, 10, 0.92), rgba(8, 7, 10, 0.7));
}

.district-panel__bg.is-fading { opacity: 0; }

.district-panel > *:not(.district-panel__bg) {
  position: relative;
  z-index: 1;
}

.district-panel__dev {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.district-panel__dev-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.district-panel__dev-hint {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.district-panel.is-switching {
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

/* FAQ */
.faq {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0.1rem;
  font-weight: 650;
  cursor: pointer;
  transition: color 0.2s;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.25s;
}

.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--text); }

.faq__item p {
  padding: 0 0.1rem 1.15rem;
  color: var(--text-muted);
}

.faq__item a { color: var(--accent-light); }

/* Join */
.join {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 880px;
  margin-inline: auto;
}

.join__auth,
.join__connect {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.join__row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.join__ip {
  flex: 1;
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg);
  border-radius: 8px;
  color: var(--accent-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.join__copy {
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.78rem;
}

.join__copy:hover { border-color: rgba(255, 255, 255, 0.2); color: var(--text); }
.join__copy.copied { color: var(--green); border-color: rgba(34, 197, 94, 0.35); }
.join__cta { width: 100%; }

/* Auth */
.auth-panel { text-align: center; }

.auth-panel__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.auth-panel__text,
.auth-panel__id {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.auth-panel__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
}

.auth-panel__welcome { margin-bottom: 0.35rem; }

.auth-user {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.25rem 0.35rem 0.25rem 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.auth-user__avatar { border-radius: 50%; width: 32px; height: 32px; }

.auth-user__name {
  font-size: 0.75rem;
  font-weight: 600;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-user__logout {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.35rem 0.55rem;
}

.auth-user__logout:hover { color: var(--text); }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
  background: #060508;
}

.footer__grid {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.footer__brand img { height: 36px; width: auto; opacity: 0.95; }

.footer__brand span {
  display: none;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.15rem;
}

.footer__nav a {
  font-size: 0.82rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer__nav a:hover { color: var(--accent-light); }

.footer__copy,
.footer__legal {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer__legal { opacity: 0.75; margin-top: 0.25rem; }

/* Launch / countdown (shared) */
.launch-status { text-align: center; padding: 1rem; }
.launch-status__label,
.countdown__title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}
.launch-status__value,
.countdown__value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-light);
}
.countdown__grid { display: flex; justify-content: center; gap: 0.5rem; }
.countdown__unit { text-align: center; padding: 0 0.75rem; }
.countdown__label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.25rem;
}
.countdown__done { color: var(--accent-light); font-weight: 600; }

/* Subpage helpers */
.hero__desc-box { margin-top: 1rem; padding: 1rem 1.2rem; }
.hero__logo { width: min(160px, 40vw); height: auto; }
.panel { padding: 1.5rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stat-card__value, .stat__value { font-family: var(--font-display); color: var(--accent-light); font-weight: 800; font-size: 2rem; }
.stat-card__label, .stat__label { color: var(--text-dim); font-size: 0.75rem; }
.applications-section { padding: clamp(4rem, 9vw, 6rem) 0; }
.applications-section__inner { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: 2rem; }
.application-row { display: block; }
.path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; list-style: none; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.showcase { position: relative; min-height: 420px; }
.trailer__frame { max-width: 920px; margin-inline: auto; }
.trailer__embed { aspect-ratio: 16/9; position: relative; }
.trailer__embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 900px) {
  .strip__grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .steps { grid-template-columns: 1fr 1fr; }
  .apps,
  .applications-section__inner { grid-template-columns: 1fr; }
  .join { grid-template-columns: 1fr; }
  .districts { grid-template-columns: 1fr; }
  .districts__tabs {
    flex-direction: row;
    overflow-x: auto;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .district-tab { min-width: max-content; }
  .band__copy { max-width: none; }
  .band__media::after {
    background: linear-gradient(to top, rgba(8, 7, 10, 0.96), rgba(8, 7, 10, 0.45));
  }
  .hero {
    align-items: flex-start;
    text-align: left;
    padding-top: calc(var(--header-h) + 4.5rem);
  }
  .bento { grid-template-columns: 1fr; }
  .path { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .steps, .path, .stats { grid-template-columns: 1fr; }
  .header__brand span { display: none; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { width: 100%; }
}

html.is-devtools-open body { overflow: hidden; }

html.is-devtools-open body::after {
  content: "Dostęp do narzędzi deweloperskich jest zablokowany.";
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
  font-family: var(--font);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  color: var(--text);
  background: #08070a;
  pointer-events: all;
  user-select: none;
}
