/*
  hoc-bot's marketing site: the promo video's look (src/promo.html), leather and gold. One dark theme: the brand is dark,
  like the game. The fonts are the site's own (src/site-fonts.sh), cut to Latin; other scripts fall back to the system's.
*/
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/montserrat-400.48aad243d0.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/montserrat-600.b5a3b9bb60.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/montserrat-700.69b03c8568.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Serif';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/noto-serif-700.d5b4069599.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --bg: #140d07;
  --bg-deep: #0c0805;
  --leather: #2b1a0e;
  --panel: rgb(43 26 14 / 72%);
  --panel-hi: rgb(58 42 23 / 85%);
  --line: rgb(217 164 65 / 28%);
  --line-hi: rgb(217 164 65 / 55%);
  --gold: #d9a441;
  --gold-hi: #f4cf7a;
  --gold-deep: #a8721c;
  --cream: #f3e6c8;
  --muted: #c8b48c;
  --faint: rgb(200 180 140 / 70%);
  --ink: #1a1008;
  --good: #4cc26f;
  --serif: 'Noto Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', 'Noto Sans', 'Noto Sans CJK JP', sans-serif;
  --radius: 16px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font: 400 17px/1.6 var(--sans);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgb(110 70 28 / 42%) 0%, transparent 70%),
    radial-gradient(ellipse 120% 100% at 50% 40%, #24160b 0%, var(--bg) 55%, var(--bg-deep) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--gold-hi);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--cream);
}
:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: 4px;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h1 em,
h2 em {
  font-style: normal;
  color: var(--gold-hi);
}
p {
  margin: 0;
}
.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}

/* The header: the brand, the sections, and the launch's state. */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgb(20 13 7 / 82%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 10px rgb(227 171 52 / 40%));
}
.wordmark {
  font: 700 26px/1 var(--serif);
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #ffe7a6 0%, #e3ab34 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.top nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.top .brand + .pill {
  margin-left: auto;
}
.top nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.top nav a:hover {
  color: var(--cream);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-hi);
  background: rgb(58 42 23 / 60%);
  color: var(--gold-hi);
  font: 600 13px/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pill .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-hi);
  box-shadow: 0 0 10px var(--gold);
  animation: glow 2.4s ease-in-out infinite;
}
@keyframes glow {
  50% {
    opacity: 0.35;
    box-shadow: 0 0 2px var(--gold);
  }
}

/* The hero: the promise, the launch, the video. */
.hero {
  padding: clamp(48px, 9vw, 104px) 0 clamp(56px, 8vw, 96px);
}
.hero .wrap {
  display: grid;
  justify-items: center;
  gap: clamp(40px, 6vw, 72px);
  text-align: center;
}
.hero h1 {
  margin-top: 28px;
  font-size: clamp(40px, 7vw, 78px);
}
.hero .lede {
  max-width: 40em;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 20px);
}
.hero .window {
  width: 100%;
  max-width: 1040px;
}
.launch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 18px;
  margin-top: 34px;
}
.launch .note {
  color: var(--faint);
  font-size: 15px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 700 16px/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
}
.button.gold {
  color: var(--ink);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  box-shadow: 0 0 28px rgb(217 164 65 / 35%);
}
.button.gold:hover {
  color: var(--ink);
  background: linear-gradient(180deg, #ffe2a0, var(--gold-hi));
}
.button.soon {
  color: var(--muted);
  border-color: var(--line-hi);
  background: rgb(26 16 8 / 70%);
  cursor: default;
}

/* A window of the hoc-bot client, around the video or a screenshot. */
.window {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #0e0905;
  box-shadow:
    0 30px 70px rgb(0 0 0 / 60%),
    0 0 0 1px rgb(217 164 65 / 45%),
    0 0 50px rgb(217 164 65 / 10%);
}
.window .bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  background: #22160c;
  border-bottom: 1px solid rgb(217 164 65 / 25%);
}
.window .bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5b4630;
}
.window .bar span {
  flex: 1;
  margin-right: 44px;
  text-align: center;
  color: var(--muted);
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.04em;
}
.window video,
.window img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg-deep);
}
.window img {
  aspect-ratio: 16 / 10;
}

/* Sections */
.section {
  padding: clamp(64px, 9vw, 112px) 0;
}
.section.alt {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgb(43 26 14 / 55%), rgb(20 13 7 / 30%));
}
.head {
  max-width: 760px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}
.kicker {
  color: var(--gold);
  font: 600 13px/1.3 var(--sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.head h2 {
  margin-top: 14px;
  font-size: clamp(32px, 4.4vw, 48px);
}
.head p:not(.kicker) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}
.rule {
  height: 2px;
  max-width: 420px;
  margin: 0 auto;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* What it does: one card per point. */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}
.card {
  padding: 28px 26px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}
.card svg {
  width: 40px;
  height: 40px;
}
.card h3 {
  margin-top: 18px;
  font-size: 23px;
}
.card .kicker {
  margin-top: 18px;
  font-size: 12px;
}
.card h3 + p,
.card .kicker + h3 {
  margin-top: 8px;
}
.card p:last-child {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}

/* What it plays: the tasks. */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgb(20 13 7 / 70%);
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}
.chips li.gold {
  border-color: transparent;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: var(--ink);
}

/* A look inside: the screenshots. */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(22px, 3vw, 34px);
}
.gallery figure {
  margin: 0;
}
.gallery figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}
.gallery figcaption b {
  color: var(--cream);
}

/* The client: the systems. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
.split h2 {
  margin-top: 14px;
  font-size: clamp(32px, 4.4vw, 48px);
}
.split .text > p:not(.kicker) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}
.points {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.points li {
  position: relative;
  padding: 8px 0 8px 30px;
  color: var(--cream);
}
.points li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 17px;
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  background: var(--gold);
}
.systems {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 20px);
}
.system {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: clamp(18px, 3vw, 30px) 8px;
  border-radius: 20px;
  border: 1px solid var(--line-hi);
  background: linear-gradient(180deg, var(--panel-hi), rgb(26 16 8 / 85%));
  box-shadow: 0 20px 50px rgb(0 0 0 / 45%);
  text-align: center;
}
.system svg {
  width: clamp(44px, 7vw, 72px);
  height: clamp(44px, 7vw, 72px);
}
.system b {
  font-size: clamp(16px, 2.2vw, 22px);
}
.system span {
  color: var(--faint);
  font-size: 13px;
  line-height: 1.35;
}

/* Languages */
.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.langs li {
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-hi);
  background: rgb(58 42 23 / 55%);
  font-weight: 600;
}

/* Pricing at launch */
.prices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.price {
  position: relative;
  flex: 0 1 320px;
  padding: 34px 24px 30px;
  border-radius: 20px;
  border: 1px solid var(--line-hi);
  background: rgb(26 16 8 / 85%);
  text-align: center;
}
.price.best {
  box-shadow: 0 0 46px rgb(217 164 65 / 18%);
}
.price b {
  display: block;
  color: var(--gold-hi);
  font: 700 clamp(44px, 6vw, 56px)/1 var(--sans);
}
.price span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 18px;
}
.price .badge {
  position: absolute;
  top: -14px;
  right: 20px;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font: 700 12px/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fine {
  max-width: 640px;
  margin: 30px auto 0;
  color: var(--muted);
  text-align: center;
}

/* Questions */
.faq {
  max-width: 820px;
  margin: 0 auto;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-child {
  border-top: 1px solid var(--line);
}
.faq summary {
  position: relative;
  padding: 20px 44px 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 600;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font: 400 28px/1 var(--sans);
}
.faq details[open] summary::after {
  content: '\2212';
}
.faq details p {
  padding: 0 0 22px;
  color: var(--muted);
}

/* Footer */
.foot {
  padding: 44px 0 52px;
  border-top: 1px solid var(--line);
  background: rgb(12 8 5 / 70%);
  color: var(--faint);
  font-size: 14px;
}
.foot .wrap {
  display: grid;
  gap: 18px;
}
.foot .brand img {
  width: 28px;
  height: 28px;
}
.foot .wordmark {
  font-size: 21px;
}
.foot p {
  max-width: 70em;
}

/* The 404 page */
.lost {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 69px);
  padding: 48px 0;
  text-align: center;
}
.lost h1 {
  margin-top: 18px;
  font-size: clamp(36px, 6vw, 56px);
}
.lost p:not(.kicker) {
  margin: 16px 0 30px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .top nav {
    display: none;
  }
  .top .pill {
    margin-left: auto;
  }
}
@media (max-width: 420px) {
  .top .pill {
    padding: 7px 12px;
    letter-spacing: 0.12em;
  }
  .wordmark {
    font-size: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .pill .dot {
    animation: none;
  }
}
