:root {
  --ink: #070604;
  --coal: #12100d;
  --iron: #1f1d19;
  --smoke: #d9d0bf;
  --muted: #9f9482;
  --gold: #d8a447;
  --bright-gold: #f1c96a;
  --bronze: #9a5b22;
  --copper: #c1782e;
  --line: rgba(241, 201, 106, 0.22);
  --panel: rgba(18, 16, 13, 0.78);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(216, 164, 71, 0.16), transparent 28rem),
    radial-gradient(circle at 82% 16%, rgba(193, 120, 46, 0.12), transparent 26rem),
    linear-gradient(180deg, #050505 0%, var(--coal) 47%, #090807 100%);
  color: var(--smoke);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.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;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(5, 5, 5, 0.84);
  border-color: var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--bright-gold);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--smoke);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--bright-gold);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.32);
  color: var(--bright-gold);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  min-height: 88svh;
  padding: 92px clamp(20px, 6vw, 88px) 48px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  z-index: -2;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.12) contrast(1.08);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.66) 46%, rgba(5, 5, 5, 0.38) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.2) 0%, rgba(5, 5, 5, 0.84) 100%);
}

.hero-content {
  align-self: center;
  width: min(720px, 100%);
}

.hero-mark {
  width: clamp(80px, 10vw, 118px);
  margin-bottom: 18px;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.62));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--bright-gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 18px;
  color: #fff8e8;
  font-size: clamp(3.1rem, 8vw, 6.55rem);
  line-height: 0.88;
  text-transform: uppercase;
}

h2 {
  max-width: 12ch;
  margin-bottom: 18px;
  color: #fff5df;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.98;
}

h3 {
  color: #fff3d5;
  font-size: 1.05rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 58ch;
  margin-bottom: 24px;
  color: #eee4d0;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid var(--line);
  color: #fff5df;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(241, 201, 106, 0.78);
}

.button-primary {
  background: linear-gradient(135deg, var(--bright-gold), var(--copper));
  color: #161006;
}

.button-secondary {
  background: rgba(0, 0, 0, 0.34);
}

.section {
  padding: clamp(72px, 10vw, 132px) clamp(20px, 6vw, 88px);
}

.section-split,
.moderation-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(34px, 7vw, 88px);
  align-items: center;
}

.section-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow) {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.03rem;
}

.signal-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
  box-shadow: var(--shadow);
}

.signal-panel > div {
  padding: clamp(22px, 4vw, 34px);
  background: linear-gradient(135deg, rgba(31, 29, 25, 0.96), rgba(12, 11, 10, 0.96));
}

.signal-number,
.rule-card span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.signal-panel p,
.rule-card p,
.automod p,
.qr-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.rules-section {
  background:
    linear-gradient(180deg, rgba(216, 164, 71, 0.07), transparent),
    rgba(0, 0, 0, 0.18);
}

.operations-feed-section {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(216, 164, 71, 0.07)),
    #0b0a08;
}

.rsi-status-section {
  background:
    linear-gradient(180deg, rgba(216, 164, 71, 0.07), rgba(0, 0, 0, 0.12)),
    #090807;
}

.live-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(241, 201, 106, 0.28);
  background:
    linear-gradient(135deg, rgba(216, 164, 71, 0.14), rgba(8, 7, 6, 0.94) 42%),
    radial-gradient(circle at top right, rgba(193, 120, 46, 0.2), transparent 28rem),
    #080706;
  box-shadow: var(--shadow);
}

.live-panel::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(241, 201, 106, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 201, 106, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent);
}

.live-panel-compact {
  background:
    linear-gradient(145deg, rgba(8, 7, 6, 0.96), rgba(28, 24, 18, 0.94)),
    radial-gradient(circle at top left, rgba(216, 164, 71, 0.18), transparent 26rem);
}

.live-panel-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.live-panel-header h2 {
  max-width: 14ch;
  margin-bottom: 0;
}

.live-panel-header > span,
.live-panel-header > a {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid rgba(241, 201, 106, 0.34);
  background: rgba(216, 164, 71, 0.1);
  color: var(--bright-gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.live-state {
  position: relative;
  z-index: 1;
  padding: 24px;
  border: 1px solid rgba(241, 201, 106, 0.2);
  background: rgba(10, 9, 8, 0.76);
  color: var(--muted);
}

.service-status-grid {
  position: relative;
  z-index: 1;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(241, 201, 106, 0.18);
  border-radius: 8px;
  background: rgba(4, 4, 4, 0.72);
}

.service-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 18px 22px;
  border-left: 5px solid var(--muted);
  background: rgba(20, 58, 82, 0.7);
  color: #fff5df;
  font-size: clamp(1rem, 2vw, 1.24rem);
}

.service-status-row + .service-status-row {
  border-top: 1px solid rgba(5, 5, 5, 0.7);
}

.service-status-row strong {
  color: var(--muted);
  font-size: 0.98rem;
  text-align: right;
}

.service-status-row[data-status="operational"] {
  border-left-color: #51ae7a;
}

.service-status-row[data-status="operational"] strong {
  color: #51ae7a;
}

.service-status-row[data-status="degraded"] {
  border-left-color: #969ae8;
}

.service-status-row[data-status="degraded"] strong {
  color: #969ae8;
}

.service-status-row[data-status="maintenance"],
.service-status-row[data-status="partial"] {
  border-left-color: #e8944a;
}

.service-status-row[data-status="maintenance"] strong,
.service-status-row[data-status="partial"] strong {
  color: #e8944a;
}

.service-status-row[data-status="major"] {
  border-left-color: #ff6666;
}

.service-status-row[data-status="major"] strong {
  color: #ff6666;
}

.events-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.event-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  padding: clamp(22px, 3vw, 30px);
  background: linear-gradient(160deg, rgba(31, 29, 25, 0.98), rgba(8, 7, 6, 0.98));
}

.event-card-topline,
.status-update-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-card p,
.status-update p {
  color: #b9ae9c;
}

.event-location {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(241, 201, 106, 0.16);
}

.event-location span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-location strong {
  color: var(--bright-gold);
}

.event-card a,
.status-update a {
  display: inline-flex;
  width: fit-content;
  margin-top: 20px;
  color: var(--bright-gold);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.status-timeline {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.status-update {
  display: grid;
  gap: 12px;
  padding: clamp(22px, 3vw, 28px);
  background: linear-gradient(135deg, rgba(18, 16, 13, 0.98), rgba(8, 7, 6, 0.98));
}

.status-update h3 {
  margin-bottom: 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.rule-card {
  min-height: 224px;
  padding: clamp(22px, 3vw, 30px);
  background: rgba(14, 13, 11, 0.95);
}

.rule-card h3 {
  margin: 14px 0 10px;
}

.moderation-board {
  display: grid;
  gap: 18px;
}

.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.team-list span {
  padding: 9px 12px;
  border: 1px solid rgba(241, 201, 106, 0.28);
  background: rgba(216, 164, 71, 0.08);
  color: #f9df9d;
  font-weight: 800;
}

.automod {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(154, 91, 34, 0.22), rgba(18, 16, 13, 0.92));
}

.connect-section {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(216, 164, 71, 0.08)),
    var(--coal);
}

.connect-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  gap: 18px;
  justify-content: center;
}

.qr-card {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  align-items: center;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(216, 164, 71, 0.1), rgba(11, 10, 9, 0.94)),
    rgba(11, 10, 9, 0.92);
}

.qr-card img {
  width: min(170px, 100%);
  aspect-ratio: 1 / 1;
  margin: 24px;
  padding: 12px;
  border: 1px solid rgba(241, 201, 106, 0.28);
  background: #f3ead8;
  object-fit: contain;
  justify-self: center;
}

.qr-card div {
  padding: 24px 24px 24px 6px;
}

.qr-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--bright-gold);
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.site-footer img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--bright-gold);
  font-weight: 800;
}

@media (max-width: 940px) {
  .nav-toggle {
    display: block;
    position: relative;
    z-index: 22;
  }

  .site-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    z-index: 21;
    display: grid;
    gap: 0;
    padding: 16px 20px 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 5, 5, 0.96);
    transform: translateY(-140%);
    transition: transform 180ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-nav a {
    padding: 16px 0;
    border-bottom: 1px solid rgba(241, 201, 106, 0.12);
  }

  .section-split,
  .moderation-section,
  .section-heading {
    grid-template-columns: 1fr;
    display: grid;
  }

  .rules-grid,
  .events-grid,
  .connect-grid {
    grid-template-columns: 1fr 1fr;
  }

  .qr-card {
    grid-template-columns: 1fr;
  }

  .qr-card img {
    width: min(180px, 58vw);
    margin: 24px auto 0;
  }

  .qr-card div {
    padding: 20px 24px 24px;
  }
}

@media (max-width: 640px) {
  .brand span {
    max-width: 13ch;
    font-size: 0.78rem;
    line-height: 1.1;
  }

  .hero {
    min-height: 88svh;
    padding: 96px 20px 44px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.66) 0%, rgba(5, 5, 5, 0.9) 58%, rgba(5, 5, 5, 0.98) 100%),
      linear-gradient(90deg, rgba(5, 5, 5, 0.84), rgba(5, 5, 5, 0.28));
  }

  h1 {
    max-width: 9ch;
  }

  h2 {
    max-width: 100%;
  }

  .button,
  .hero-actions {
    width: 100%;
  }

  .rules-grid,
  .events-grid,
  .connect-grid {
    grid-template-columns: 1fr;
  }

  .live-panel-header {
    display: grid;
  }

  .rule-card {
    min-height: auto;
  }

  .site-footer {
    align-items: flex-start;
  }
}
