:root {
  color-scheme: dark;
  --bg: #100d0b;
  --bg-deep: #080706;
  --panel: #171210;
  --panel-strong: #211713;
  --text: #f2eadc;
  --muted: #c5b8a3;
  --muted-2: #8f806d;
  --gold: #c59a4a;
  --gold-light: #f1d58d;
  --red: #a62f2f;
  --violet: #4a263f;
  --line: rgba(226, 184, 103, 0.22);
  --shadow: rgba(0, 0, 0, 0.48);
  --focus: #f1d58d;
  --max: 1160px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 12%, rgba(89, 31, 36, 0.28), transparent 28rem),
    radial-gradient(circle at 82% 18%, rgba(80, 47, 77, 0.22), transparent 26rem),
    linear-gradient(180deg, #17110f 0%, var(--bg) 44%, #0a0807 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    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: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 70%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.52), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.5)),
    radial-gradient(circle at 50% 120%, rgba(197, 154, 74, 0.12), transparent 36rem);
}

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

a:hover {
  color: var(--gold-light);
}

img,
svg {
  display: block;
}

button,
input,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--gold-light);
  color: #160f0a;
  border-radius: var(--radius);
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.shell {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.narrow {
  max-width: 820px;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
}

.section--intro {
  padding-top: clamp(3rem, 6vw, 5rem);
}

.section--band {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(8, 7, 6, 0.36);
  border-block: 1px solid rgba(226, 184, 103, 0.11);
}

.section-heading {
  max-width: 740px;
  margin-bottom: 1.4rem;
}

.section-kicker,
.badge {
  margin: 0 0 0.85rem;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.32rem 0.7rem;
  color: #f8e5ad;
  background: rgba(127, 39, 42, 0.28);
  border: 1px solid rgba(241, 213, 141, 0.32);
  border-radius: 999px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(3.45rem, 10vw, 6.9rem);
}

h2 {
  font-size: clamp(2rem, 4.6vw, 3.45rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 1rem 0 0;
  color: var(--muted);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(10, 8, 7, 0.94), rgba(10, 8, 7, 0.55));
  border-bottom: 1px solid rgba(226, 184, 103, 0.13);
  backdrop-filter: blur(14px);
}

.site-header--static {
  position: sticky;
}

.site-header.is-scrolled {
  background: rgba(10, 8, 7, 0.94);
  box-shadow: 0 14px 36px var(--shadow);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.brand small {
  margin-top: 0.08rem;
  color: var(--muted-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 2vw, 1.3rem);
  color: #dacfbf;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  content: "";
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle__bar {
  position: relative;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  position: absolute;
  left: 0;
}

.nav-toggle__bar::before {
  top: -0.38rem;
}

.nav-toggle__bar::after {
  top: 0.38rem;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before {
  transform: translateY(0.38rem) rotate(90deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after {
  opacity: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

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

.button--small {
  min-height: 2.45rem;
  padding: 0.62rem 0.9rem;
  font-size: 0.88rem;
}

.button--gold {
  color: #190f07;
  background: linear-gradient(135deg, #f2d795, var(--gold) 58%, #8b5b21);
  border-color: rgba(255, 237, 180, 0.46);
  box-shadow: 0 12px 34px rgba(197, 154, 74, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.button--gold:hover {
  color: #120a05;
  box-shadow: 0 16px 42px rgba(197, 154, 74, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.button--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(226, 184, 103, 0.28);
}

.button--ghost:hover {
  color: var(--gold-light);
  border-color: rgba(241, 213, 141, 0.58);
  background: rgba(255, 255, 255, 0.07);
}

.hero {
  min-height: min(920px, 100svh);
  display: grid;
  align-items: center;
  padding: 8rem 0 clamp(4rem, 7vw, 6rem);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.82fr);
  gap: clamp(2.4rem, 6vw, 5.5rem);
  align-items: center;
}

.hero__lead {
  max-width: 690px;
  color: #e3d5c1;
  font-size: clamp(1.08rem, 2.1vw, 1.34rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.microcopy {
  color: var(--muted-2);
  font-size: 0.95rem;
}

.hero__mist,
.hero__embers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__mist {
  background:
    radial-gradient(ellipse at 30% 72%, rgba(230, 212, 166, 0.1), transparent 32rem),
    linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 72%);
  opacity: 0.7;
}

.hero__embers {
  background-image:
    radial-gradient(circle, rgba(226, 86, 52, 0.65) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(241, 213, 141, 0.38) 0 1px, transparent 1.5px);
  background-position: 15% 30%, 80% 25%;
  background-size: 180px 220px, 260px 300px;
  animation: ember-drift 16s linear infinite;
  opacity: 0.45;
}

.hero-art {
  position: relative;
  min-height: 500px;
  isolation: isolate;
}

.hero-art__halo {
  position: absolute;
  inset: 7% 0 18%;
  background:
    radial-gradient(circle at 50% 45%, rgba(206, 62, 50, 0.36), transparent 34%),
    radial-gradient(circle at 50% 48%, rgba(197, 154, 74, 0.18), transparent 50%);
  filter: blur(2px);
}

.hero-art__portal {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(74vw, 380px);
  aspect-ratio: 0.7;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(241, 213, 141, 0.58);
  border-radius: 50% 50% 42% 42%;
  background:
    radial-gradient(circle at 50% 48%, rgba(241, 213, 141, 0.22), transparent 16%),
    radial-gradient(circle at 50% 45%, rgba(166, 47, 47, 0.5), transparent 38%),
    linear-gradient(180deg, rgba(10, 7, 8, 0.2), rgba(10, 7, 8, 0.92));
  box-shadow:
    0 0 50px rgba(166, 47, 47, 0.35),
    inset 0 0 50px rgba(0, 0, 0, 0.62),
    inset 0 0 0 12px rgba(15, 10, 8, 0.75);
}

.hero-art__portal::before,
.hero-art__portal::after {
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(241, 213, 141, 0.26);
  border-radius: inherit;
  content: "";
}

.hero-art__portal::after {
  inset: 27%;
  border-color: rgba(208, 68, 53, 0.38);
}

.hero-art__sigil {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 44%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 1px solid rgba(241, 213, 141, 0.38);
}

.hero-art__sigil::before,
.hero-art__sigil::after {
  position: absolute;
  inset: 20%;
  border: 1px solid rgba(241, 213, 141, 0.28);
  content: "";
}

.hero-art__sigil::after {
  transform: rotate(45deg);
}

.hero-art__core {
  position: absolute;
  left: 50%;
  top: 43%;
  width: 34%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, #f6d891 0 7%, #d04435 8% 22%, rgba(76, 29, 37, 0.55) 45%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

.hero-art__ruins {
  position: absolute;
  inset: auto 4% 8% 4%;
  height: 58%;
  display: flex;
  align-items: end;
  justify-content: space-between;
  z-index: -1;
}

.hero-art__ruins span {
  width: clamp(2rem, 7vw, 4rem);
  background: linear-gradient(180deg, #2c211c, #100c0a);
  border: 1px solid rgba(226, 184, 103, 0.12);
  box-shadow: inset 0 12px 0 rgba(255, 255, 255, 0.035);
}

.hero-art__ruins span:nth-child(1) {
  height: 62%;
  clip-path: polygon(0 13%, 50% 0, 100% 12%, 100% 100%, 0 100%);
}

.hero-art__ruins span:nth-child(2) {
  height: 78%;
  clip-path: polygon(0 0, 80% 10%, 100% 100%, 0 100%);
}

.hero-art__ruins span:nth-child(3) {
  height: 70%;
  clip-path: polygon(20% 5%, 100% 0, 100% 100%, 0 100%);
}

.hero-art__ruins span:nth-child(4) {
  height: 50%;
  clip-path: polygon(0 18%, 70% 0, 100% 100%, 0 100%);
}

.hero-art__ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7%;
  height: 22%;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(197, 154, 74, 0.26), transparent 42%),
    linear-gradient(180deg, rgba(27, 18, 14, 0.2), #090706);
  clip-path: polygon(0 45%, 15% 25%, 35% 38%, 50% 18%, 72% 35%, 100% 20%, 100% 100%, 0 100%);
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.card-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.waitlist-form,
.devlog-card,
.roadmap article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(18, 13, 11, 0.78);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.feature-card {
  min-height: 260px;
  padding: 1.25rem;
}

.feature-card__icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.15rem;
  color: var(--gold-light);
  background: rgba(166, 47, 47, 0.22);
  border: 1px solid rgba(241, 213, 141, 0.24);
  border-radius: var(--radius);
}

.feature-card__icon svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: currentColor;
}

.feature-card p {
  font-size: 0.98rem;
}

.two-column,
.beta-grid,
.devlog-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.status-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  color: #dfd2bf;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(226, 184, 103, 0.14);
  border-radius: var(--radius);
}

.status-list span {
  flex: 0 0 auto;
  width: 0.92rem;
  height: 0.92rem;
  margin-top: 0.34rem;
  border: 2px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(197, 154, 74, 0.32);
}

.waitlist-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.1rem, 3vw, 1.5rem);
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

label {
  color: #efe2ca;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 3rem;
  padding: 0.72rem 0.85rem;
  color: var(--text);
  background: rgba(8, 7, 6, 0.72);
  border: 1px solid rgba(226, 184, 103, 0.22);
  border-radius: var(--radius);
}

select {
  cursor: pointer;
}

input:hover,
select:hover,
input:focus,
select:focus {
  border-color: rgba(241, 213, 141, 0.58);
}

.form-note {
  margin-top: 0;
  color: var(--muted-2);
  font-size: 0.9rem;
}

.form-message {
  min-height: 1.5rem;
  margin: 0;
  color: var(--gold-light);
  font-weight: 800;
}

.devlog-card {
  padding: clamp(1.25rem, 3vw, 1.6rem);
}

.devlog-card p {
  margin-top: 0;
  color: #e5d7c0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.2;
}

.devlog-card .button {
  margin-top: 1.4rem;
}

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

.roadmap article {
  min-height: 180px;
  padding: 1.25rem;
}

.roadmap span {
  color: var(--gold-light);
  font-weight: 900;
}

.site-footer {
  padding: 2rem 0;
  color: var(--muted-2);
  background: #080706;
  border-top: 1px solid rgba(226, 184, 103, 0.14);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.94rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-weight: 800;
}

.legal-page {
  min-height: 70vh;
}

.legal-content {
  max-width: 860px;
  padding: clamp(1.2rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 10, 9, 0.72);
}

.legal-content h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}

.legal-content h2 {
  margin-top: 2rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.legal-content a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.not-found {
  min-height: 100svh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  width: min(100% - 2rem, 760px);
  margin: 0 auto;
  text-align: center;
}

.not-found h1 {
  font-size: clamp(2.6rem, 8vw, 5.5rem);
}

.not-found p {
  margin-top: 0;
}

.not-found__mark {
  width: 8rem;
  aspect-ratio: 1;
  border: 2px solid rgba(241, 213, 141, 0.5);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(208, 68, 53, 0.6), transparent 36%),
    rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 70px rgba(166, 47, 47, 0.36);
}

@keyframes ember-drift {
  from {
    background-position: 15% 30%, 80% 25%;
  }

  to {
    background-position: 15% -40%, 80% -35%;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.94);
    opacity: 0.78;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 1;
  }
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
  }

  .hero__grid,
  .two-column,
  .beta-grid,
  .devlog-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 420px;
    order: -1;
  }

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

@media (max-width: 760px) {
  .site-header {
    position: sticky;
  }

  .nav {
    min-height: 66px;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.9rem;
    background: rgba(10, 8, 7, 0.97);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 20px 50px var(--shadow);
  }

  .nav-links.is-open,
  .nav-links--legal {
    display: flex;
  }

  .nav-links--legal {
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav-links a {
    padding: 0.55rem 0.25rem;
  }

  .nav-links .button {
    width: 100%;
  }

  .nav-links--legal .button {
    width: auto;
  }

  .brand strong {
    font-size: 0.98rem;
  }

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

  .hero {
    padding-top: 3rem;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero-art {
    min-height: 330px;
  }

  .card-grid--four,
  .roadmap {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .roadmap article {
    min-height: auto;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 1.2rem, var(--max));
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .nav-links--legal {
    gap: 0.45rem;
    font-size: 0.86rem;
  }

  .nav-links--legal .button {
    display: none;
  }

  .button {
    min-height: 3rem;
    padding-inline: 1rem;
  }
}

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