/* RuneGate v2 — cinematic landing */
:root {
  --void: #050608;
  --ink: #0a0d12;
  --fog: #9aa8b5;
  --snow: #eef3f7;
  --ice: #5ee7d8;
  --ice-bright: #b7fff6;
  --ice-dim: rgba(94, 231, 216, 0.55);
  --line: rgba(238, 243, 247, 0.12);
  --line-strong: rgba(94, 231, 216, 0.4);
  --font: "Manrope", system-ui, sans-serif;
  --display: "Cinzel", "Times New Roman", serif;
  --quote: "Cormorant Garamond", "Times New Roman", serif;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tap: 44px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--snow);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  background: var(--void);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
.hero__img { max-width: none; }
a { color: var(--ice); text-decoration: none; }
a:hover { color: var(--ice-bright); }
.wrap { width: min(var(--max), calc(100% - 3rem)); margin: 0 auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: var(--ice);
  color: var(--void);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 1rem;
  color: var(--void);
}
:focus-visible {
  outline: 2px solid var(--ice-bright);
  outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }
button:focus-visible,
.btn:focus-visible,
.nav__cta:focus-visible,
.nav__toggle:focus-visible {
  outline-offset: 2px;
}

/* —— nav —— */
.nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  padding: 1.35rem 0;
}
.nav--solid {
  position: relative;
  padding: 1rem 0;
  background: rgba(5, 6, 8, 0.92);
  border-bottom: 1px solid rgba(238, 243, 247, 0.08);
  backdrop-filter: blur(14px);
}
.nav__bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(238, 243, 247, 0.08);
  background: rgba(5, 6, 8, 0.42);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.nav--solid .nav__bar {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--snow);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.nav__brand:hover { color: var(--snow); }
.nav__brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(94, 231, 216, 0.45));
}
.nav__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}
.nav__links a {
  position: relative;
  color: rgba(238, 243, 247, 0.58);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.25s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 1px;
  background: var(--ice);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover,
.nav__links a.is-on { color: var(--snow); }
.nav__links a:hover::after,
.nav__links a.is-on::after { transform: scaleX(1); }
.nav__cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 1.2rem;
  border: 1px solid var(--line-strong);
  color: var(--snow);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(94, 231, 216, 0.08);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
}
.nav__end {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  flex-shrink: 0;
}
.nav__motion {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 0.85rem;
  border: 1px solid rgba(238, 243, 247, 0.14);
  background: rgba(5, 6, 8, 0.28);
  color: var(--fog);
  font-family: var(--font);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.nav__motion::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 8px rgba(94, 231, 216, 0.45);
  flex-shrink: 0;
}
.nav__motion[aria-pressed="false"]::before {
  background: #6b7280;
  box-shadow: none;
}
.nav__motion:hover {
  color: var(--snow);
  border-color: rgba(94, 231, 216, 0.35);
}
.nav__motion:focus-visible {
  outline: 2px solid var(--ice-bright);
  outline-offset: 2px;
}
.nav__cta:hover {
  color: var(--void);
  background: var(--ice);
  border-color: var(--ice);
  box-shadow: 0 0 36px rgba(94, 231, 216, 0.28);
}
.nav__toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(94, 231, 216, 0.06);
  color: var(--snow);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav.is-open .nav__toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* —— hero —— */
.hero__visual picture {
  position: absolute;
  inset: 0;
  display: block;
}
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}
.hero__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: #050608;
  background-image: url("../assets/hero-2560.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero__video,
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  image-rendering: auto;
  -webkit-user-drag: none;
  user-select: none;
}
.hero__video {
  z-index: 1;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
  pointer-events: none;
  transform: none;
}
.hero__img {
  z-index: 0;
  transform: none;
}
.hero__wash {
  display: none;
}
.hero__floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(80px, 14vh, 140px);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 6, 8, 0.55) 100%);
}
.hero__dock {
  position: relative;
  z-index: 2;
  width: min(40rem, calc(100% - 2rem));
  margin: 0 auto 3.25rem;
  padding: 1.35rem 1.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  background:
    linear-gradient(180deg, rgba(10, 14, 18, 0.55), rgba(5, 6, 8, 0.82));
  border: 1px solid rgba(94, 231, 216, 0.22);
  backdrop-filter: blur(18px) saturate(1.15);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(238, 243, 247, 0.06);
}
.hero__kicker {
  margin: 0;
  color: var(--ice);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
  animation: riseIn 0.9s var(--ease) 0.1s both;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  animation: riseIn 0.9s var(--ease) 0.22s both;
}
.hero__hint {
  margin: 0;
  color: rgba(154, 168, 181, 0.85);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  animation: riseIn 0.9s var(--ease) 0.34s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 1.6rem;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--ice);
  color: var(--void);
  box-shadow: 0 12px 42px rgba(94, 231, 216, 0.28);
}
.btn--primary:hover {
  color: var(--void);
  background: var(--ice-bright);
  box-shadow: 0 16px 52px rgba(94, 231, 216, 0.38);
}
.btn--ghost {
  background: rgba(5, 6, 8, 0.4);
  border-color: rgba(238, 243, 247, 0.32);
  color: var(--snow);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  border-color: var(--ice);
  color: var(--snow);
  box-shadow: 0 0 28px rgba(94, 231, 216, 0.12);
}

/* —— sections —— */
.section {
  position: relative;
  padding: 7rem 0;
  border-top: 1px solid var(--line);
}
.section--dim {
  background: linear-gradient(180deg, rgba(10, 13, 18, 0.95), rgba(5, 6, 8, 0.98));
}
.kicker {
  margin: 0 0 0.85rem;
  color: var(--ice-dim);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.section h2,
.page h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--snow);
}
.lede {
  margin: 0 0 2.75rem;
  max-width: 36rem;
  color: var(--fog);
  font-size: 1.08rem;
  font-weight: 400;
}

.split {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: end;
  }
}

.manifesto {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.manifesto__row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.25rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.manifesto__num {
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
  color: rgba(94, 231, 216, 0.45);
}
.manifesto h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.manifesto p {
  margin: 0;
  color: var(--fog);
  max-width: 34rem;
}

.rates {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.rates__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s var(--ease);
}
.rates__row:hover { color: var(--ice); }
.rates__row strong {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.rates__row span {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ice);
  font-variant-numeric: tabular-nums;
}

.quote {
  margin: 0;
  max-width: 28rem;
  font-family: var(--quote);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--snow);
}
.quote cite {
  display: block;
  margin-top: 1.25rem;
  font-family: var(--font);
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fog);
}

.note {
  margin-top: 1.75rem;
  color: var(--fog);
  font-size: 0.92rem;
}

.features {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 900px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}
.features article {
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}
.features__idx {
  display: block;
  margin-bottom: 0.85rem;
  color: rgba(94, 231, 216, 0.45);
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
}
.features h3 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.features p {
  margin: 0;
  color: var(--fog);
  font-size: 0.98rem;
}

.about-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 0 0 2.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-toc a {
  color: var(--fog);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.about-toc a:hover { color: var(--ice); }
.about-sec {
  margin: 0 0 3rem;
  padding-top: 0.5rem;
}
.about-sec h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.grid-2, .grid-3 {
  display: grid;
  gap: 1.25rem;
  margin: 1.25rem 0;
}
@media (min-width: 800px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.panel {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  background: rgba(238, 243, 247, 0.02);
}
.panel h3 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.panel p { margin: 0; color: var(--fog); font-size: 0.95rem; }
.muted { color: var(--fog); font-size: 0.92rem; }

.dl-grid {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0;
}
@media (min-width: 860px) {
  .dl-grid { grid-template-columns: 1fr 1fr; }
}
.dl-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: rgba(238, 243, 247, 0.02);
}
.dl-card h2 {
  margin: 0.35rem 0 0.75rem;
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dl-card p { color: var(--fog); }
.dl-steps {
  margin: 1rem 0 1.4rem;
  padding-left: 1.15rem;
  color: var(--fog);
}
.dl-steps li { margin: 0.35rem 0; }
.dl-steps code {
  color: var(--ice);
  font-size: 0.86em;
}
.dl-note { margin-top: 1.5rem; }

/* —— modals —— */
.modal[hidden] { display: none !important; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 3, 5, 0.72);
  backdrop-filter: blur(10px);
}
.modal__panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(88vh, 900px);
  max-height: min(88dvh, 900px);
  overflow: auto;
  padding: 1.75rem 1.6rem 1.5rem;
  background:
    linear-gradient(180deg, rgba(14, 18, 24, 0.96), rgba(5, 6, 8, 0.98));
  border: 1px solid rgba(94, 231, 216, 0.22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  animation: modalIn 0.35s var(--ease) both;
}
.modal__panel--wide { width: min(920px, 100%); }
.modal__panel h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}
.modal__panel h3 {
  margin: 0.2rem 0 0.55rem;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.modal__lede {
  margin: 0 0 1.35rem;
  color: var(--fog);
  max-width: 40rem;
}
.modal__grid { margin: 0 0 1.25rem; }
.modal__close {
  position: absolute;
  top: 0.7rem;
  right: 0.85rem;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--fog);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.modal__close:hover { color: var(--snow); }
body.is-modal-open {
  overflow: hidden;
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
}
.modal-sub {
  margin: 1.25rem 0 0.65rem;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* —— status HUD —— */
.hud {
  position: absolute;
  top: 5.75rem;
  right: max(1.25rem, calc((100% - var(--max)) / 2));
  z-index: 3;
  width: min(15.5rem, calc(100% - 2rem));
  padding: 1rem 1.1rem 0.9rem;
  background: linear-gradient(180deg, rgba(10, 14, 18, 0.72), rgba(5, 6, 8, 0.88));
  border: 1px solid rgba(94, 231, 216, 0.22);
  backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  animation: riseIn 0.9s var(--ease) 0.28s both;
}
.hud__top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hud dl {
  margin: 0;
  display: grid;
  gap: 0.45rem;
}
.hud dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.45rem;
}
.hud dt {
  color: var(--fog);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hud dd {
  margin: 0;
  color: var(--snow);
  font-weight: 700;
}
.hud__links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.9rem;
}
.hud__links a {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fog);
}
.hud__links a:hover { color: var(--ice); }
.hud__links .social svg {
  width: 1.15rem;
  height: 1.15rem;
}
.social {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.social svg {
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
  fill: currentColor;
}
.btn.social svg {
  width: 1.1em;
  height: 1.1em;
}
.hud__note {
  margin: 0.75rem 0 0;
  color: rgba(154, 168, 181, 0.65);
  font-size: 0.68rem;
}
.pulse {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #6b7280;
  box-shadow: 0 0 0 0 rgba(107, 114, 128, 0.4);
  flex-shrink: 0;
}
.pulse.is-up {
  background: var(--ice);
  box-shadow: 0 0 0 0 rgba(94, 231, 216, 0.45);
  animation: pulseSoft 1.8s ease-out infinite;
}
@keyframes pulseSoft {
  0% { box-shadow: 0 0 0 0 rgba(94, 231, 216, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(94, 231, 216, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 231, 216, 0); }
}
.live {
  color: var(--ice);
  font-size: 0.7em;
  vertical-align: middle;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--fog);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.status-pill.is-up { color: var(--ice-dim); }
.footer__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

/* —— feed / news —— */
.band__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.band__head h2 { margin: 0; }
.more {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ice);
  font-family: var(--font);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.more:hover { color: var(--ice-bright); }
.news { display: grid; gap: 1rem; }
.news__item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.news__item:first-child { padding-top: 0; }
.news__item time {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--fog);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}
.news__item h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.news__item p { margin: 0; color: var(--fog); }

/* —— tabs / events / cabinet —— */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.1rem;
}
.tabs__item {
  min-height: 36px;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fog);
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.tabs__item.is-on,
.tabs__item:hover {
  border-color: rgba(94, 231, 216, 0.45);
  color: var(--snow);
}
.tabs__item.is-on {
  background: rgba(94, 231, 216, 0.1);
  color: var(--ice);
}
.tab-panel[hidden] { display: none !important; }
.table--wide td:last-child {
  text-align: left;
  color: inherit;
  font-weight: inherit;
}
.table--wide td:nth-last-child(-n+3) {
  color: var(--snow);
}
.ev-list { display: grid; gap: 0.65rem; }
.ev {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.ev summary {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.95rem 1rem;
  cursor: pointer;
  list-style: none;
}
.ev summary::-webkit-details-marker { display: none; }
.ev .idx {
  color: var(--ice);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.ev__name {
  display: block;
  font-family: var(--display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ev__tags {
  display: block;
  margin-top: 0.2rem;
  color: var(--fog);
  font-size: 0.78rem;
}
.ev__more {
  color: var(--ice-dim);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ev__body {
  padding: 0 1rem 1.1rem 1rem;
  border-top: 1px solid var(--line);
}
.ev__body p { color: var(--fog); }
.ev__body h3 {
  margin: 1rem 0 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice-dim);
}
.ev__rewards {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ev__rewards li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(238, 243, 247, 0.06);
  color: var(--fog);
  font-size: 0.92rem;
}
.ev__rewards em {
  color: var(--fog);
  font-style: normal;
  font-size: 0.78rem;
  white-space: nowrap;
}
.ev__rewards .is-jackpot span,
.ev__rewards .is-jackpot em { color: var(--ice); }

.stat-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}
@media (min-width: 720px) {
  .stat-cards { grid-template-columns: repeat(4, 1fr); }
}
.stat-card {
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.stat-card__label {
  color: var(--fog);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.stat-card__val {
  margin-top: 0.35rem;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}
.stat-card__val small {
  font-family: var(--font);
  font-size: 0.7rem;
  color: var(--fog);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stat-card__val.gold { color: #e7c87a; }
.stat-card__val.accent { color: var(--ice); }
.panel--btn {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.panel--btn:hover {
  border-color: rgba(94, 231, 216, 0.4);
  background: rgba(94, 231, 216, 0.05);
}
.char-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
}
.char-item {
  display: grid;
  grid-template-columns: 0.7rem 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
}
.char-item:last-child { border-bottom: 0; }
.char-item__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #4b5563;
}
.char-item__dot.is-on {
  background: var(--ice);
  box-shadow: 0 0 10px rgba(94, 231, 216, 0.5);
}
.char-item__info strong {
  display: block;
  font-family: var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.char-item__info span,
.char-item__stats {
  color: var(--fog);
  font-size: 0.85rem;
}
.char-item__stats { text-align: right; }
.char-item__stats .clan { color: var(--ice-dim); }

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.page { padding: 8rem 0 5rem; }
.page h1 { margin-bottom: 1.1rem; }
.list { margin: 0; padding: 0; list-style: none; }
.list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--fog);
}
.list strong { color: var(--snow); font-weight: 600; }
.table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2.5rem;
}
.table th, .table td {
  text-align: left;
  padding: 0.9rem 0.35rem;
  border-bottom: 1px solid var(--line);
}
.table th {
  color: var(--fog);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}
.table td:last-child {
  text-align: right;
  color: var(--ice);
  font-weight: 700;
}

.footer {
  padding: 2.75rem 0 3.25rem;
  border-top: 1px solid var(--line);
  color: var(--fog);
  font-size: 0.85rem;
}
.footer__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
}
.footer strong {
  color: var(--snow);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.footer__links {
  display: flex;
  gap: 1.25rem;
}
.footer__links a {
  color: var(--fog);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.footer__links a:hover { color: var(--ice); }
.mmotop-badge {
  position: fixed;
  right: max(0.85rem, env(safe-area-inset-right, 0px));
  bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
  z-index: 40;
  line-height: 0;
  opacity: 0.92;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.mmotop-badge:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.mmotop-badge img {
  display: block;
  border: 0;
  max-width: 88px;
  height: auto;
}
@media (max-width: 520px) {
  .mmotop-badge {
    right: 0.55rem;
    bottom: 0.55rem;
    transform: scale(0.92);
    transform-origin: bottom right;
  }
}

.footer__meta {
  width: 100%;
  margin-top: 0.35rem;
  color: rgba(154, 168, 181, 0.72);
  font-size: 0.72rem;
  line-height: 1.5;
}
.footer__meta a { color: inherit; }
.footer__meta a:hover { color: var(--ice); }
.footer__bar { flex-wrap: wrap; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 820px) {
  .nav__toggle { display: inline-flex; }
  .nav__bar {
    flex-wrap: wrap;
    padding: 0.55rem 0.75rem;
    gap: 0.75rem;
  }
  .nav__end {
    order: 2;
    margin-left: auto;
  }
  .nav__toggle { order: 3; margin-left: 0; }
  .nav__links {
    display: none;
    order: 4;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.35rem 0 0.15rem;
    border-top: 1px solid var(--line);
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links li { border-bottom: 1px solid rgba(238, 243, 247, 0.06); }
  .nav__links a {
    display: block;
    padding: 0.85rem 0.15rem;
    letter-spacing: 0.14em;
  }
  .nav__links a::after { display: none; }
  .nav__motion {
    min-height: 42px;
    padding: 0 0.65rem;
    font-size: 0.58rem;
  }
  .hero__dock { margin-bottom: 2.25rem; padding: 1.1rem 1rem; }
  .manifesto__row { grid-template-columns: 3rem 1fr; }
  .hud {
    position: relative;
    top: auto;
    right: auto;
    width: min(22rem, calc(100% - 2rem));
    margin: 5.5rem auto 0;
  }
  .hero { display: flex; flex-direction: column; }
  .hero__dock { margin-top: auto; }
  body.is-nav-open { overflow: hidden; }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes pageIn {
  from { opacity: 0.001; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__kicker,
  .hero__actions,
  .hero__hint,
  .modal__backdrop,
  .modal__panel,
  body { animation: none !important; }
  .hero__img,
  .reveal,
  .btn,
  .social svg,
  .nav__links a::after { transition: none !important; }
  .hero__img { opacity: 1 !important; }
  .reveal { opacity: 1; transform: none; }
  html.is-leaving body { opacity: 1 !important; transform: none !important; }
}

@supports (view-transition-name: none) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.38s;
    animation-timing-function: var(--ease);
  }
}

body {
  animation: pageIn 0.45s var(--ease) both;
}
html.is-leaving body {
  opacity: 0;
  transition: opacity 0.22s ease;
}

/* —— technical polish (no visual redesign) —— */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.hero:not(.is-ready) .hero__img {
  opacity: 0;
}
.hero.is-ready .hero__img {
  opacity: 1;
  transition: opacity 0.55s var(--ease);
}
.hero.is-ready.is-video .hero__img {
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}
.hero.is-ready.is-video .hero__video {
  opacity: 1;
}
.hero__hint { animation: riseIn 0.9s var(--ease) 0.34s both; }

.btn:active {
  transform: translateY(0) scale(0.985);
}
.btn--primary:active,
.btn--ghost:active {
  box-shadow: none;
}
.social svg {
  transition: transform 0.25s var(--ease);
}
.social:hover svg {
  transform: translateY(-1px);
}
.nav__cta,
.nav__toggle,
.btn,
.tabs__item,
.more,
.modal__close {
  min-height: var(--tap);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.modal__backdrop {
  animation: fadeIn 0.28s var(--ease) both;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal__panel {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}
.section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}
.section:first-of-type {
  content-visibility: visible;
}
.reveal:nth-child(2) { transition-delay: 0.05s; }
.reveal:nth-child(3) { transition-delay: 0.1s; }
.manifesto__row.reveal:nth-child(2) { transition-delay: 0.07s; }
.manifesto__row.reveal:nth-child(3) { transition-delay: 0.14s; }

.wrap {
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

@media (max-width: 1100px) and (min-width: 821px) {
  .hud {
    right: 1rem;
    max-width: 15.5rem;
  }
}

@media (max-width: 820px) {
  .nav {
    padding-top: max(0.85rem, env(safe-area-inset-top));
  }
  .nav__links a {
    min-height: var(--tap);
    display: flex;
    align-items: center;
  }
  .hero__actions .btn {
    min-width: min(100%, 16rem);
  }
  .modal {
    padding:
      max(0.75rem, env(safe-area-inset-top))
      max(0.75rem, env(safe-area-inset-right))
      max(0.75rem, env(safe-area-inset-bottom))
      max(0.75rem, env(safe-area-inset-left));
  }
  .footer {
    padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  .wrap { width: min(var(--max), calc(100% - 1.5rem)); }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .hero__actions .btn {
    width: 100%;
    min-width: 0;
  }
  .hud {
    width: min(22rem, calc(100% - 1.5rem));
  }
  .features {
    gap: 2rem;
  }
}

@media (hover: none) {
  .btn:hover { transform: none; }
  .social:hover svg { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero:not(.is-ready) .hero__img,
  .hero.is-ready .hero__img { opacity: 1; transition: none; }
  html:not(.rg-motion-force) .hero__video,
  html:not(.rg-motion-force) .hero.is-video .hero__video,
  html:not(.rg-motion-force) .hero.is-ready.is-video .hero__video {
    display: none !important;
    opacity: 0 !important;
  }
  html:not(.rg-motion-force) .hero.is-ready.is-video .hero__img {
    opacity: 1 !important;
  }
  .modal__backdrop { animation: none; }
  .reveal:nth-child(2),
  .reveal:nth-child(3),
  .manifesto__row.reveal:nth-child(2),
  .manifesto__row.reveal:nth-child(3) { transition-delay: 0s; }
}
