:root {
  --ink: #f5efd9;
  --muted: #c9bfa6;
  --paper: #efe2bf;
  --brass: #c79a4a;
  --brass-deep: #7a5527;
  --teal: #143f42;
  --teal-deep: #071719;
  --burgundy: #763044;
  --charcoal: #0b0d0d;
  --panel: rgba(13, 18, 17, 0.74);
  --line: rgba(239, 226, 191, 0.18);
  --shadow: rgba(0, 0, 0, 0.5);
  color-scheme: dark;
  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(--charcoal);
  color: var(--ink);
  min-width: 320px;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: minmax(84px, 1fr) auto minmax(98px, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(3, 7, 7, 0.8), rgba(3, 7, 7, 0));
}

.brand {
  justify-self: start;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  color: var(--paper);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-links a {
  padding: 10px 0;
}

.nav-links a:hover,
.text-link:hover,
.site-footer a:hover {
  color: var(--paper);
}

.nav-wishlist {
  justify-self: end;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(199, 154, 74, 0.7);
  background: rgba(14, 19, 18, 0.58);
  color: var(--paper);
  box-shadow: 0 12px 34px var(--shadow);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  z-index: -3;
  background-image: url("/assets/hero-steampunk-brawler.png");
  background-size: cover;
  background-position: 58% center;
  transform: scale(1.01);
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(4, 13, 14, 0.92) 0%, rgba(4, 13, 14, 0.7) 30%, rgba(4, 13, 14, 0.28) 64%, rgba(4, 13, 14, 0.7) 100%),
    linear-gradient(0deg, rgba(7, 11, 11, 0.96) 0%, rgba(7, 11, 11, 0.22) 42%, rgba(7, 11, 11, 0.54) 100%);
}

.hero-content {
  width: min(760px, calc(100% - 36px));
  margin: 0 0 clamp(42px, 10vh, 104px) clamp(18px, 7vw, 88px);
  padding-top: 120px;
}

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

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

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

h1 {
  margin-bottom: 18px;
  color: var(--paper);
  font-size: clamp(4rem, 13vw, 9.8rem);
  line-height: 0.88;
  text-shadow: 0 24px 54px rgba(0, 0, 0, 0.65);
}

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

h3 {
  color: var(--paper);
  font-size: 1.05rem;
}

.hero-copy,
.section-copy p,
.story-panel p,
.signup-section p,
.thanks-shell p {
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.7;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-actions.compact {
  margin-top: 24px;
  margin-bottom: 0;
}

.button,
.signup-form button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 0 22px;
  cursor: pointer;
  font-weight: 800;
}

.button.primary,
.signup-form button {
  background: linear-gradient(180deg, #dfb45e, #a8752f);
  color: #130d06;
  box-shadow: 0 16px 38px rgba(199, 154, 74, 0.22);
}

.button.secondary {
  border-color: rgba(239, 226, 191, 0.32);
  background: rgba(239, 226, 191, 0.08);
  color: var(--paper);
}

.button:hover,
.signup-form button:hover,
.nav-wishlist:hover {
  transform: translateY(-1px);
}

.signup-form {
  max-width: 620px;
}

.signup-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--paper);
  font-weight: 800;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.signup-form input[type="email"] {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(239, 226, 191, 0.24);
  background: rgba(7, 14, 15, 0.78);
  color: var(--ink);
  padding: 0 16px;
  outline: none;
}

.signup-form input[type="email"]:focus {
  border-color: rgba(223, 180, 94, 0.82);
  box-shadow: 0 0 0 3px rgba(199, 154, 74, 0.18);
}

.hero-form {
  padding: 18px;
  border: 1px solid rgba(239, 226, 191, 0.2);
  background: rgba(6, 13, 14, 0.6);
  backdrop-filter: blur(10px);
}

.hidden {
  display: none;
}

.status-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #0b1718, #17100c, #0b1718);
}

.status-item {
  min-height: 116px;
  padding: 24px clamp(18px, 5vw, 56px);
  border-right: 1px solid var(--line);
}

.status-item:last-child {
  border-right: 0;
}

.status-item span,
.timeline span,
.chapter-list span {
  display: block;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-item strong {
  display: block;
  margin-top: 8px;
  color: var(--paper);
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
}

.section {
  padding: clamp(70px, 10vw, 128px) clamp(18px, 6vw, 84px);
}

.game-section,
.roadmap-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(30px, 6vw, 84px);
  align-items: start;
  background: #101414;
}

.section-copy {
  max-width: 680px;
}

.section-copy.narrow {
  max-width: 760px;
}

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

.feature-card {
  min-height: 240px;
  padding: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(239, 226, 191, 0.08), rgba(12, 16, 15, 0.74));
}

.feature-card p,
.chapter-list p,
.timeline p {
  color: var(--muted);
  line-height: 1.6;
}

.aesthetic-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 92px);
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(20, 63, 66, 0.82), rgba(16, 20, 20, 0.98) 48%, rgba(87, 45, 35, 0.58)),
    #101414;
}

.ornament {
  width: min(340px, 55vw);
  aspect-ratio: 1;
  border: 1px solid rgba(199, 154, 74, 0.48);
  background:
    linear-gradient(45deg, transparent 48%, rgba(199, 154, 74, 0.58) 49%, rgba(199, 154, 74, 0.58) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(239, 226, 191, 0.34) 49%, rgba(239, 226, 191, 0.34) 51%, transparent 52%);
  box-shadow: inset 0 0 0 28px rgba(239, 226, 191, 0.04), 0 24px 80px rgba(0, 0, 0, 0.34);
  transform: rotate(45deg);
}

.story-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(26px, 6vw, 80px);
  align-items: center;
  background:
    linear-gradient(rgba(9, 12, 12, 0.86), rgba(9, 12, 12, 0.9)),
    url("/assets/hero-steampunk-brawler.png");
  background-size: cover;
  background-position: center;
}

.story-panel {
  padding: clamp(24px, 4vw, 42px);
  border-left: 4px solid var(--brass);
  background: rgba(8, 14, 15, 0.78);
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--brass);
  font-weight: 800;
}

.chapter-list {
  display: grid;
  gap: 14px;
}

.chapter-list div {
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(239, 226, 191, 0.07);
}

.chapter-list strong {
  display: block;
  margin: 10px 0 8px;
  color: var(--paper);
  font-size: 1.35rem;
}

.vn-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(360px, 1.28fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(9, 19, 20, 0.98), rgba(23, 15, 11, 0.96)),
    #0d1010;
}

.vn-section code {
  color: var(--paper);
  background: rgba(239, 226, 191, 0.1);
  padding: 0.1em 0.3em;
}

.vn-frame-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 300px;
  border: 1px solid rgba(199, 154, 74, 0.52);
  background:
    linear-gradient(135deg, rgba(199, 154, 74, 0.16), transparent 35%),
    #071719;
  box-shadow: 0 28px 88px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

.vn-frame-shell::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(239, 226, 191, 0.14);
}

.vn-frame-shell iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.roadmap-section {
  background: #0d1010;
}

.timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.timeline li {
  position: relative;
  padding: 24px 24px 24px 58px;
  border: 1px solid var(--line);
  background: rgba(239, 226, 191, 0.06);
  counter-increment: steps;
}

.timeline li::before {
  content: counter(steps);
  position: absolute;
  top: 24px;
  left: 22px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(199, 154, 74, 0.7);
  color: var(--paper);
  font-size: 0.8rem;
}

.timeline strong {
  display: block;
  margin: 8px 0;
  color: var(--paper);
  font-size: 1.28rem;
}

.signup-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(320px, 1fr);
  gap: clamp(26px, 5vw, 78px);
  align-items: center;
  padding: clamp(56px, 8vw, 92px) clamp(18px, 6vw, 84px);
  background: linear-gradient(90deg, #22140f, #102a2b);
}

.signup-form.large {
  max-width: none;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(239, 226, 191, 0.2);
  background: rgba(4, 10, 10, 0.44);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 26px clamp(18px, 6vw, 84px);
  background: #080b0b;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer span:first-child {
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.14em;
}

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

.thanks-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(3, 9, 10, 0.92), rgba(3, 9, 10, 0.6)),
    url("/assets/hero-steampunk-brawler.png") center / cover;
}

.thanks-shell {
  width: min(680px, calc(100% - 36px));
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid var(--line);
  background: rgba(5, 11, 12, 0.76);
}

.thanks-shell h1 {
  font-size: clamp(2.4rem, 7vw, 5rem);
}

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

  .nav-links {
    display: none;
  }

  .game-section,
  .roadmap-section,
  .story-section,
  .signup-section,
  .aesthetic-section,
  .vn-section {
    grid-template-columns: 1fr;
  }

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

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

  .ornament {
    width: min(220px, 66vw);
    justify-self: center;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 14px 16px;
    background: rgba(5, 10, 10, 0.78);
    backdrop-filter: blur(12px);
  }

  .brand {
    font-size: 0.95rem;
  }

  .nav-wishlist {
    min-height: 38px;
    padding: 0 14px;
  }

  .hero {
    min-height: 94vh;
  }

  .hero-bg {
    background-position: 64% center;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 16px 28px;
  }

  h1 {
    font-size: clamp(3.6rem, 24vw, 6rem);
  }

  h2 {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .hero-actions,
  .input-row {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .button,
  .signup-form button {
    width: 100%;
  }

  .status-band {
    grid-template-columns: 1fr;
  }

  .status-item {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .status-item:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 58px 18px;
  }

  .vn-frame-shell {
    min-height: 220px;
  }

  .site-footer {
    display: grid;
  }
}

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