/* haltcraft.com's landing page. Colours follow the game (client/src/style.css) and the logo's amber hazard bar. */
:root {
  --bg: #0a0f15;
  --bg-2: #111923;
  --panel: rgba(16, 20, 28, 0.82);
  --border: rgba(255, 255, 255, 0.12);
  --text: #e6ebf2;
  --muted: #9aa5b5;
  --accent: #4ec9f2;
  --amber: #f2b33d;
  --display: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--body);
}

a {
  color: inherit;
}

/* Steam: one of the two buttons shows, by <html data-steam>. */
[data-steam='soon'] .steam-live,
[data-steam='live'] .steam-soon {
  display: none !important;
}

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

/* The garage floor: a cyan grid in perspective under a glow, like the game's lineup platform. */
.hero {
  background:
    radial-gradient(ellipse 60% 55% at 72% 38%, rgba(78, 201, 242, 0.16), transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 0%, rgba(242, 179, 61, 0.08), transparent 70%),
    linear-gradient(180deg, #2a3646 0%, var(--bg) 85%);
}

.hero-grid {
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: -10%;
  height: 70%;
  z-index: -1;
  background-image:
    linear-gradient(rgba(78, 201, 242, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 201, 242, 0.28) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(600px) rotateX(62deg);
  transform-origin: 50% 100%;
  mask-image: linear-gradient(0deg, transparent 0%, #000 30%, #000 60%, transparent 100%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  z-index: -1;
  background: linear-gradient(0deg, var(--bg), transparent);
}

.hero-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 72px 24px 64px;
}

.logo {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

h1 {
  font-size: clamp(56px, 11vw, 112px);
  line-height: 0.95;
  margin-top: 24px;
}

.tagline {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 3.4vw, 30px);
  color: var(--amber);
  margin: 8px 0 18px;
  letter-spacing: 0.02em;
}

.pitch {
  max-width: 560px;
  color: #c9d2de;
  margin: 0 0 32px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 26px 14px 20px;
  border-radius: 6px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-family: var(--display);
  line-height: 1.15;
  transition:
    transform 0.12s,
    box-shadow 0.12s,
    background 0.12s;
}

.button strong {
  display: block;
  font-size: 24px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.button small {
  display: block;
  font-family: var(--body);
  font-size: 13px;
  opacity: 0.75;
}

.button-icon {
  width: 26px;
  height: 26px;
  font-size: 22px;
  line-height: 26px;
  text-align: center;
  flex: none;
}

.button.play {
  background: linear-gradient(180deg, #ffc857, var(--amber));
  border-color: #ffd98a;
  color: #1a1206;
  box-shadow: 0 8px 28px rgba(242, 179, 61, 0.35);
}

.button.play:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(242, 179, 61, 0.5);
}

.button.steam {
  background: rgba(23, 26, 33, 0.85);
  color: var(--text);
  backdrop-filter: blur(6px);
}

a.button.steam:hover {
  background: rgba(42, 71, 94, 0.95);
  transform: translateY(-2px);
}

span.button.steam {
  color: var(--muted);
  cursor: default;
}

.requirements {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--muted);
}

main {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0 56px;
}

.pillars article {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 6px;
  padding: 24px;
}

.pillars h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

.pillars .num {
  color: var(--accent);
  font-size: 18px;
  margin-right: 12px;
  vertical-align: 4px;
}

.pillars p {
  margin: 0;
  color: #c3ccd8;
  font-size: 16px;
}

.cta {
  text-align: center;
  padding: 80px 0;
}

.cta h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 28px;
}

footer {
  display: flex;
  gap: 24px;
  justify-content: center;
  padding: 28px 24px 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

footer a {
  color: var(--muted);
}

footer a:hover {
  color: var(--text);
}

@media (max-width: 820px) {
  .pillars {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding: 48px 16px;
  }

  main {
    padding: 0 16px;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}

/* Text pages (support/): a slim header, one readable column. */
.doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 20px 24px;
}

.doc-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.doc-brand img {
  border-radius: 9px;
}

.button.small {
  padding: 8px 18px 8px 14px;
  gap: 10px;
  width: auto;
}

.button.small strong {
  font-size: 18px;
}

.button.small .button-icon {
  width: 18px;
  height: 18px;
  font-size: 15px;
  line-height: 18px;
}

.doc-main {
  width: min(820px, 100%);
  padding: 24px 24px 64px;
}

.doc-main h1 {
  font-size: clamp(44px, 8vw, 64px);
}

.doc-main .lede {
  color: #c9d2de;
  font-size: 18px;
  margin: 8px 0 40px;
}

.doc-main section {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  margin-bottom: 36px;
}

.doc-main h2 {
  font-size: 30px;
  color: var(--accent);
  margin-bottom: 4px;
}

.doc-main h3 {
  font-size: 18px;
  margin: 22px 0 6px;
}

.doc-main p {
  margin: 0 0 12px;
  color: #c3ccd8;
}

.doc-main a {
  color: var(--accent);
}

.keys {
  border-collapse: collapse;
  width: 100%;
  margin: 8px 0 12px;
  font-size: 16px;
}

.keys td {
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: #c3ccd8;
}

.keys td:first-child {
  white-space: nowrap;
  width: 1%;
  padding-right: 24px;
  color: var(--text);
}

kbd {
  display: inline-block;
  min-width: 26px;
  padding: 1px 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom-width: 3px;
  border-radius: 5px;
  background: var(--bg-2);
  font: 600 14px/1.5 var(--body);
  text-align: center;
}

@media (max-width: 820px) {
  .doc-header,
  .doc-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .keys td:first-child {
    white-space: normal;
  }
}
