:root {
  color-scheme: dark;
  --bg: #07090d;
  --bg-deep: #030506;
  --panel: rgba(18, 22, 28, 0.76);
  --panel-strong: rgba(28, 32, 38, 0.88);
  --line: rgba(230, 186, 97, 0.24);
  --line-cold: rgba(112, 187, 203, 0.22);
  --gold: #f0c36b;
  --gold-bright: #ffd98c;
  --ember: #e66b35;
  --teal: #66c5cc;
  --text: #f5efe2;
  --muted: #b7ad9d;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.52);
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 14%, rgba(230, 107, 53, 0.2), transparent 30rem),
    radial-gradient(circle at 82% 4%, rgba(102, 197, 204, 0.15), transparent 28rem),
    linear-gradient(180deg, #0b0d11 0%, var(--bg) 38%, var(--bg-deep) 100%);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), transparent 24%, transparent 76%, rgba(0, 0, 0, 0.72));
}

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

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 14px max(22px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(4, 6, 8, 0.82), rgba(4, 6, 8, 0.32));
  backdrop-filter: blur(16px);
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(240, 195, 107, 0.2);
  background: rgba(5, 7, 10, 0.9);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 217, 140, 0.35);
  border-radius: 10px;
  box-shadow: 0 0 22px rgba(240, 195, 107, 0.18);
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.06rem;
  letter-spacing: 0;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.nav-links {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.nav-links a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 160ms ease, background 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(240, 195, 107, 0.12);
  color: var(--text);
}

.header-cta {
  justify-self: end;
  min-width: 118px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 217, 140, 0.44);
  border-radius: 999px;
  background: linear-gradient(135deg, #f3c56c, #b45a26);
  color: #130b04;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 12px 28px rgba(230, 107, 53, 0.24);
}

.section-shell {
  width: min(var(--max), calc(100% - 44px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.78fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: center;
  min-height: 100svh;
  padding-top: 104px;
  padding-bottom: 72px;
}

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

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(3.45rem, 7.4vw, 6.8rem);
  line-height: 0.88;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.4), 0 0 36px rgba(230, 107, 53, 0.26);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4.4vw, 4.2rem);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.22;
}

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

.hero-lede {
  max-width: 650px;
  margin-bottom: 30px;
  color: #ddd4c5;
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
}

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

.hero-actions-center {
  justify-content: center;
}

.store-button {
  display: inline-flex;
  align-items: center;
  width: 190px;
  min-height: 58px;
  gap: 12px;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 14px 34px rgba(0, 0, 0, 0.28);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.store-button:hover,
.store-button:focus-visible {
  border-color: rgba(255, 217, 140, 0.5);
  background: linear-gradient(180deg, rgba(255, 217, 140, 0.15), rgba(255, 255, 255, 0.06));
  transform: translateY(-2px);
}

.store-button-primary {
  border-color: rgba(255, 217, 140, 0.44);
}

.store-button small,
.store-button span span {
  display: block;
}

.store-button small {
  margin-bottom: 2px;
  color: #d9d1c3;
  font-size: 0.68rem;
  line-height: 1;
}

.store-button span:last-child {
  font-size: 1.03rem;
  font-weight: 800;
  line-height: 1.05;
}

.store-glyph {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: #f3f0ea;
  color: #111;
  font-weight: 900;
}

.play-glyph {
  background: linear-gradient(135deg, #46d57a, #54b7ff 52%, #f9d75f 53%, #f16555);
  color: #071014;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 640px;
  margin: 36px 0 0;
}

.hero-stats div {
  min-height: 96px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.hero-stats dt {
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.85rem;
  font-weight: 800;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 650px;
}

.sigil-ring {
  position: absolute;
  width: min(40vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(240, 195, 107, 0.26);
  border-radius: 50%;
  background:
    conic-gradient(from 12deg, transparent 0 7%, rgba(240, 195, 107, 0.28) 7% 8%, transparent 8% 19%, rgba(102, 197, 204, 0.2) 19% 20%, transparent 20% 100%),
    radial-gradient(circle, transparent 56%, rgba(240, 195, 107, 0.18) 57%, transparent 58%);
  filter: drop-shadow(0 0 36px rgba(230, 107, 53, 0.22));
  animation: slowSpin 28s linear infinite;
}

.phone-frame {
  position: relative;
  width: min(82vw, 360px);
  padding: 12px;
  border: 1px solid rgba(255, 217, 140, 0.3);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(39, 31, 24, 0.92));
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotate(2deg);
}

.phone-frame::before {
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: 42px;
  content: "";
  background: linear-gradient(135deg, rgba(230, 107, 53, 0.22), rgba(102, 197, 204, 0.12));
  filter: blur(22px);
}

.phone-frame img {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.battle-card {
  position: absolute;
  z-index: 2;
  width: 220px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 217, 140, 0.25);
  border-radius: 16px;
  background: rgba(9, 11, 14, 0.82);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.battle-card span,
.battle-card strong {
  display: block;
}

.battle-card span {
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.battle-card strong {
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.battle-card-top {
  top: 90px;
  right: -4px;
}

.battle-card-bottom {
  bottom: 72px;
  left: -2px;
}

.feature-band,
.events-band {
  position: relative;
  padding: 96px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    radial-gradient(circle at 76% 30%, rgba(102, 197, 204, 0.12), transparent 28rem);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

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

.feature-card {
  min-height: 250px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--panel), rgba(12, 15, 19, 0.58));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.feature-icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  place-items: center;
  border: 1px solid rgba(240, 195, 107, 0.36);
  border-radius: 50%;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
}

.feature-card p {
  margin-bottom: 0;
  font-size: 0.96rem;
}

.showcase {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
  padding: 112px 0;
}

.showcase-copy p:not(.eyebrow) {
  max-width: 560px;
}

.role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.role-list span {
  padding: 10px 14px;
  border: 1px solid rgba(102, 197, 204, 0.25);
  border-radius: 999px;
  background: rgba(102, 197, 204, 0.08);
  color: #d9fbff;
  font-size: 0.88rem;
  font-weight: 800;
}

.screenshot-stack {
  position: relative;
  min-height: 620px;
}

.screenshot-stack img,
.event-gallery img {
  aspect-ratio: 3 / 4;
  height: auto;
  border: 1px solid rgba(255, 217, 140, 0.24);
  border-radius: 22px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.shot-main {
  position: absolute;
  right: 18%;
  width: min(48vw, 330px);
  transform: rotate(-4deg);
}

.shot-side {
  position: absolute;
  top: 86px;
  right: 0;
  width: min(42vw, 286px);
  transform: rotate(6deg);
}

.events-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.event-panel {
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(240, 195, 107, 0.12), transparent 32%),
    rgba(12, 14, 18, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  color: var(--gold-bright);
  font-weight: 900;
}

.text-link::after {
  margin-left: 9px;
  content: ">";
}

.event-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.event-gallery img:nth-child(2) {
  margin-top: 48px;
}

.download-section {
  padding: 112px 0 94px;
}

.download-card {
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid rgba(255, 217, 140, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(230, 107, 53, 0.2), transparent 30rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  text-align: center;
  box-shadow: var(--shadow);
}

.download-card img {
  width: 84px;
  height: 84px;
  margin: 0 auto 20px;
  border: 1px solid rgba(255, 217, 140, 0.34);
  border-radius: 18px;
}

.download-card p:not(.eyebrow) {
  max-width: 610px;
  margin-inline: auto;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: center;
  padding: 28px 22px 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
}

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

.mobile-download {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 30;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 217, 140, 0.26);
  border-radius: 18px;
  background: rgba(5, 7, 10, 0.92);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(16px);
}

.mobile-download a {
  min-height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #f3c56c, #b45a26);
  color: #160d06;
  font-size: 0.92rem;
  font-weight: 900;
}

.mobile-download a:last-child {
  background: linear-gradient(135deg, #ffffff, #c9d9dd);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slowSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .showcase,
  .events-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 118px;
  }

  .hero-visual {
    min-height: 590px;
  }

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

  .showcase {
    padding: 88px 0;
  }

  .screenshot-stack {
    min-height: 620px;
  }

  .shot-main {
    right: 36%;
    width: min(54vw, 330px);
  }

  .shot-side {
    right: 12%;
    width: min(46vw, 286px);
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 12px;
    padding: 10px 14px;
  }

  .brand img {
    width: 38px;
    height: 38px;
    border-radius: 9px;
  }

  .brand strong {
    max-width: 158px;
    overflow: hidden;
    font-size: 0.96rem;
    text-overflow: ellipsis;
  }

  .brand small {
    font-size: 0.66rem;
  }

  .header-cta {
    min-width: 92px;
    padding: 10px 12px;
    font-size: 0.86rem;
  }

  .section-shell {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    gap: 36px;
    padding-top: 106px;
    padding-bottom: 48px;
  }

  h1 {
    font-size: clamp(3.1rem, 15vw, 4.6rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .store-button {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-stats div {
    min-height: 96px;
    padding: 12px 10px;
  }

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

  .hero-stats dd {
    font-size: 0.74rem;
  }

  .hero-visual {
    min-height: 520px;
    overflow: hidden;
  }

  .sigil-ring {
    width: 84vw;
  }

  .phone-frame {
    width: min(82vw, 310px);
  }

  .battle-card {
    width: 184px;
    padding: 12px 14px;
  }

  .battle-card-top {
    top: 28px;
    right: 0;
  }

  .battle-card-bottom {
    bottom: 30px;
    left: 0;
  }

  .feature-band,
  .events-band {
    padding: 72px 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
  }

  .showcase {
    padding: 72px 0;
  }

  .screenshot-stack {
    min-height: 490px;
  }

  .shot-main {
    right: auto;
    left: 4px;
    width: 55vw;
  }

  .shot-side {
    top: 74px;
    right: 4px;
    width: 47vw;
  }

  .event-gallery {
    gap: 10px;
  }

  .event-gallery img {
    border-radius: 16px;
  }

  .event-gallery img:nth-child(2) {
    margin-top: 30px;
  }

  .download-section {
    padding: 72px 0 104px;
  }

  .site-footer {
    padding-bottom: 96px;
  }

  .mobile-download {
    display: grid;
  }
}

@media (max-width: 390px) {
  .brand strong {
    max-width: 132px;
  }

  .hero-visual {
    min-height: 492px;
  }

  .phone-frame {
    width: min(82vw, 286px);
  }

  .battle-card {
    width: 170px;
  }
}
