:root {
  color-scheme: dark;
  --bg: #0f1014;
  --surface: #191a20;
  --surface-strong: #22232b;
  --text: #f5f1e8;
  --muted: #c2beb4;
  --soft: #8f918f;
  --line: rgba(245, 241, 232, 0.14);
  --gold: #f2b84b;
  --mint: #58c7a7;
  --blue: #6574ff;
  --red: #e05d5d;
  --max: 1180px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body.is-lightbox-open {
  overflow: hidden;
}

body::selection {
  background: var(--gold);
  color: #15110a;
}

a {
  color: inherit;
  text-decoration: none;
}

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

code {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.05rem 0.35rem;
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 16, 20, 0.88);
  padding: 0.8rem clamp(1rem, 4vw, 3rem);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
}

.brand-logo {
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(242, 184, 75, 0.65);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 24px rgba(242, 184, 75, 0.18);
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(242, 184, 75, 0.65);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  color: var(--gold);
}

.site-nav .nav-demo {
  color: var(--gold);
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 7rem));
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 5vw, 4rem);
}

.manual-page .hero {
  min-height: auto;
  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.manual-page .hero h1 {
  max-width: 13ch;
  font-size: clamp(3.1rem, 6.2vw, 5.3rem);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 16, 20, 0.97) 0%, rgba(15, 16, 20, 0.82) 42%, rgba(15, 16, 20, 0.25) 100%),
    #101116;
  transform: scale(1.02);
}

.hero-media::before {
  content: "";
  position: absolute;
  top: 50%;
  right: clamp(1rem, 5vw, 5rem);
  width: min(620px, 46vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: url("./icon.png") center / cover no-repeat;
  box-shadow: 0 0 90px rgba(242, 184, 75, 0.22);
  transform: translateY(-50%);
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.hero-content {
  position: relative;
  width: min(720px, 100%);
}

.hero-emblem {
  width: clamp(4.4rem, 8vw, 6.8rem);
  height: clamp(4.4rem, 8vw, 6.8rem);
  margin-bottom: 1.25rem;
  border: 1px solid rgba(242, 184, 75, 0.45);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 42px rgba(242, 184, 75, 0.18);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 1rem;
  max-width: 11ch;
  font-size: 6.7rem;
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  max-width: 760px;
  font-size: 3.6rem;
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.14rem;
  line-height: 1.2;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy {
  max-width: 680px;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-note {
  max-width: 680px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.hero-note a {
  color: var(--gold);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.hero-note a:hover,
.hero-note a:focus-visible {
  color: var(--mint);
}

.button {
  display: inline-flex;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.72rem 1.05rem;
  font-weight: 800;
}

.button.primary {
  border-color: var(--gold);
  background: var(--gold);
  color: #15110a;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.button:hover {
  transform: translateY(-1px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  width: 100%;
  max-width: 680px;
  margin: 2.25rem 0 0;
}

.hero-stats div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(25, 26, 32, 0.74);
  padding: 1rem;
}

.hero-stats dt {
  margin-bottom: 0.25rem;
  color: var(--mint);
  font-size: 1.15rem;
  font-weight: 900;
}

.hero-stats dd {
  margin: 0;
  color: var(--muted);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 4rem);
}

.section-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.section-heading {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-heading p {
  max-width: 780px;
}

.intro {
  background: #121318;
}

.intro-grid,
.security-grid,
.roles-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.intro-copy p:last-child,
.security-copy p:last-child {
  margin-bottom: 0;
}

.audience-band,
.workflow,
.faq {
  background: #0f1014;
}

.audience-grid,
.feature-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.audience-grid article,
.feature-card,
.timeline article,
.role-list article,
.faq details,
.screenshot-grid figure {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.audience-grid article,
.feature-card,
.role-list article,
.faq details {
  padding: 1.35rem;
}

.audience-grid article:nth-child(1),
.feature-card:nth-child(1),
.role-list article:nth-child(1) {
  border-top-color: var(--gold);
}

.audience-grid article:nth-child(2),
.feature-card:nth-child(2),
.role-list article:nth-child(2) {
  border-top-color: var(--mint);
}

.audience-grid article:nth-child(3),
.feature-card:nth-child(3),
.role-list article:nth-child(3) {
  border-top-color: var(--blue);
}

.feature-band {
  background: #14151a;
}

.game-list {
  border: 1px solid rgba(242, 184, 75, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(242, 184, 75, 0.11), rgba(25, 26, 32, 0.92));
  margin-bottom: 1rem;
  padding: 1.35rem;
}

.game-list h3 {
  margin-bottom: 0.45rem;
}

.game-list p {
  max-width: 760px;
  margin-bottom: 1rem;
}

.game-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game-list li {
  border: 1px solid rgba(245, 241, 232, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.48rem 0.75rem;
  color: var(--text);
  font-weight: 800;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  min-height: 14rem;
}

.panel-note {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.panel-note > div,
.panel-note figure {
  border: 1px solid rgba(242, 184, 75, 0.28);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.panel-note > div {
  padding: 1.35rem;
}

.panel-note h3 {
  margin-bottom: 0.75rem;
}

.panel-note p {
  margin-bottom: 0.65rem;
}

.panel-note p:last-child {
  margin-bottom: 0;
}

.panel-note figure {
  margin: 0;
}

.panel-note .wide-shot {
  grid-column: 1 / -1;
}

.shot-highlight {
  position: relative;
}

.ephemeral-shot .shot-highlight::after {
  content: "";
  position: absolute;
  left: 7%;
  right: 8%;
  bottom: 5%;
  height: 18%;
  border: 2px solid var(--gold);
  border-radius: 6px;
  box-shadow: 0 0 0 999px rgba(15, 16, 20, 0.18);
  pointer-events: none;
}

.panel-note img {
  width: 100%;
  background: #1d1e25;
}

.panel-note figcaption {
  border-top: 1px solid var(--line);
  padding: 1rem 1.15rem;
  color: var(--muted);
}

.feature-index {
  display: block;
  margin-bottom: 2.2rem;
  color: var(--soft);
  font-weight: 900;
}

.feature-card:nth-child(4) {
  border-top-color: var(--red);
}

.feature-card:nth-child(5) {
  border-top-color: var(--gold);
}

.feature-card:nth-child(6) {
  border-top-color: var(--mint);
}

.workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.timeline {
  display: grid;
  gap: 0.8rem;
}

.timeline article {
  padding: 1.2rem 1.35rem;
}

.timeline span {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--gold);
  font-weight: 900;
}

.showcase {
  background: #121318;
}

.screenshot-feature figure,
.screenshot-grid figure {
  margin: 0;
}

.screenshot-feature {
  margin-bottom: 1rem;
}

.screenshot-feature figure {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-strong);
}

.screenshot-feature img {
  width: 100%;
  background: #1d1e25;
}

.screenshot-feature figcaption {
  display: grid;
  gap: 0.25rem;
  border-top: 1px solid var(--line);
  padding: 1.2rem 1.35rem;
}

figcaption span,
.screenshot-grid figcaption {
  color: var(--muted);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.screenshot-grid figure {
  overflow: hidden;
}

.screenshot-button {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  background: #1d1e25;
  padding: 0;
  color: inherit;
  cursor: zoom-in;
  font: inherit;
  text-align: left;
}

.screenshot-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 16, 20, 0), rgba(15, 16, 20, 0.42));
  opacity: 0;
  transition: opacity 160ms ease;
}

.screenshot-button span {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 1;
  border: 1px solid rgba(245, 241, 232, 0.24);
  border-radius: 999px;
  background: rgba(15, 16, 20, 0.78);
  padding: 0.35rem 0.65rem;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.screenshot-button:hover::after,
.screenshot-button:focus-visible::after,
.screenshot-button:hover span,
.screenshot-button:focus-visible span {
  opacity: 1;
  transform: translateY(0);
}

.screenshot-button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

.screenshot-grid img {
  width: 100%;
  aspect-ratio: 1 / 0.78;
  object-fit: cover;
  object-position: top left;
  background: #1d1e25;
}

.screenshot-grid figcaption {
  border-top: 1px solid var(--line);
  padding: 0.85rem 1rem;
  font-weight: 700;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.82);
  cursor: zoom-out;
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  max-width: min(1120px, 96vw);
  max-height: 92svh;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.72);
  overflow: hidden;
}

.lightbox-panel img {
  display: block;
  max-width: 100%;
  max-height: calc(92svh - 4.4rem);
  object-fit: contain;
  background: #0b0c10;
}

.lightbox-panel figcaption {
  border-top: 1px solid var(--line);
  padding: 1rem 3.8rem 1rem 1.2rem;
  color: var(--text);
  font-weight: 900;
}

.lightbox-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid rgba(245, 241, 232, 0.24);
  border-radius: 50%;
  background: rgba(15, 16, 20, 0.86);
  color: var(--text);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
  outline: none;
}

.steps-band {
  background: #15140f;
}

.steps-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.sticky-heading {
  position: sticky;
  top: 6rem;
  align-self: start;
  margin-bottom: 0;
}

.steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  border: 1px solid rgba(242, 184, 75, 0.24);
  border-radius: 8px;
  background: rgba(25, 26, 32, 0.8);
  padding: 1.25rem;
}

.steps li > span {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #15110a;
  font-weight: 900;
}

.contact-link {
  color: var(--gold);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--mint);
}

.roles {
  background: #101314;
}

.role-list {
  display: grid;
  gap: 1rem;
}

.security {
  background: #171817;
}

.security-copy {
  border-left: 3px solid var(--mint);
  padding-left: 1.5rem;
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
}

.faq summary::marker {
  color: var(--gold);
}

.faq details p {
  margin: 1rem 0 0;
}

.cta {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(15, 16, 20, 0.94), rgba(15, 16, 20, 0.74)),
    url("./screenshots/raid-list.png") center / cover no-repeat;
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 4rem);
}

.cta-inner {
  width: min(800px, 100%);
  margin: 0 auto;
  text-align: center;
}

.cta-inner h2 {
  margin-right: auto;
  margin-left: auto;
}

.cta-inner p {
  max-width: 640px;
  margin-right: auto;
  margin-left: auto;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  padding: 1.6rem clamp(1rem, 5vw, 4rem);
  color: var(--muted);
}

.site-footer span {
  color: var(--text);
  font-weight: 900;
}

.site-footer a:hover {
  color: var(--gold);
}

@media (max-width: 980px) {
  h1 {
    font-size: 5rem;
  }

  h2 {
    font-size: 2.8rem;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(15, 16, 20, 0.9), rgba(15, 16, 20, 0.72)),
      #101116;
    opacity: 0.92;
  }

  .hero-media::before {
    top: auto;
    right: 50%;
    bottom: -6rem;
    width: min(620px, 74vw);
    transform: translateX(50%);
  }

  .intro-grid,
  .workflow-grid,
  .steps-layout,
  .security-grid,
  .panel-note,
  .roles-layout {
    grid-template-columns: 1fr;
  }

  .sticky-heading {
    position: static;
  }

  .audience-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .hero-copy {
    font-size: 1.08rem;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 3.5rem;
    padding-bottom: 3rem;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(15, 16, 20, 0.98), rgba(15, 16, 20, 0.9)),
      #101116;
  }

  .hero-media::before {
    bottom: -3rem;
    width: min(520px, 92vw);
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 1.5rem;
  }

  .hero-stats div:last-child {
    grid-column: 1 / -1;
  }

  .hero-stats div {
    min-width: 0;
    padding: 0.7rem;
  }

  .hero-stats dt {
    font-size: 1rem;
  }

  .hero-stats dd {
    font-size: 0.86rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .audience-grid,
  .feature-grid,
  .faq-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .steps li {
    grid-template-columns: 1fr;
  }

  .screenshot-grid img {
    aspect-ratio: 1 / 0.68;
  }
}
