/* Home Horde website: the app's palette (blood red on near-black, bone text),
   Chakra Petch for readouts and labels, the system font for everything else. */

:root {
  --ink: #0d0000;
  --ink-2: #160606;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-line: rgba(255, 255, 255, 0.09);
  --blood: #d11212;
  --blood-dark: #590005;
  --ember: #f7a373;
  --flame: #ff8f24;
  --bone: #ede0d6;
  --muted: #b8aaa3;
  --radius: 18px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 50% -10%, #3a0508 0%, transparent 60%), var(--ink);
  color: var(--bone);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img, picture { max-width: 100%; display: block; }

a { color: var(--ember); text-underline-offset: 3px; }
a:hover { color: #fff; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 0, 0, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--panel-line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--bone); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span, .label, .readout {
  font-family: "Chakra Petch", ui-monospace, monospace;
  text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700;
}
.brand span { font-size: 15px; }
.site-nav { display: flex; gap: 22px; font-size: 14px; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--bone); }

/* Hero: the trailer full width on top, then the name and details */
.hero { position: relative; }
.hero-video {
  position: relative; background: #000; aspect-ratio: 16 / 9; max-height: 78vh; width: 100%; overflow: hidden;
}
.hero-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-video::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(13, 0, 0, 0.35) 0%, transparent 18%, transparent 70%, var(--ink) 100%);
}
.sound {
  position: absolute; z-index: 1; right: 16px; bottom: 20px;
  font: 700 12px/1 "Chakra Petch", ui-monospace, monospace; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--bone); background: rgba(13, 0, 0, 0.6); border: 1px solid rgba(237, 224, 214, 0.3);
  border-radius: 999px; padding: 10px 14px; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.sound:hover { border-color: var(--bone); }
.hero-intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end;
  padding: 36px 0 72px;
}
.eyebrow { color: var(--ember); font-size: 13px; }
h1, h2, .display {
  font-weight: 900; font-stretch: 125%; line-height: 1.02; letter-spacing: -0.01em;
  text-transform: uppercase; margin: 0;
}
h1 {
  font-size: clamp(44px, 11vw, 96px);
  overflow-wrap: break-word;
  background: linear-gradient(180deg, #ff3a2a 0%, #c60808 55%, #6b0006 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(209, 18, 18, 0.45));
  margin: 10px 0 8px;
}
.tagline {
  font-family: "Chakra Petch", ui-monospace, monospace; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; font-size: clamp(16px, 2vw, 20px);
  color: var(--bone); margin: 0;
}
.lede { font-size: clamp(18px, 2.1vw, 21px); color: var(--bone); opacity: 0.9; margin: 0 0 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 16px; letter-spacing: 0.02em;
  background: linear-gradient(180deg, #e61b16, #a10a0a); color: #fff;
  box-shadow: 0 10px 30px rgba(209, 18, 18, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.button:hover { color: #fff; filter: brightness(1.08); }
.button.secondary { background: transparent; border: 1px solid rgba(237, 224, 214, 0.35); box-shadow: none; color: var(--bone); }
.button[aria-disabled="true"] { cursor: default; filter: none; }
.fine { color: var(--muted); font-size: 14px; margin: 14px 0 0; }

/* Sections */
section { padding: 84px 0; }
.hero { padding: 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
h2 { font-size: clamp(26px, 6.6vw, 46px); color: var(--bone); overflow-wrap: break-word; }
.section-head p { color: var(--muted); font-size: 18px; margin: 14px 0 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--radius);
  padding: 26px;
}
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .label { color: var(--blood); font-size: 12px; display: block; margin-bottom: 14px; }

/* Screenshots */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr);
  gap: 18px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory;
}
.shot { scroll-snap-align: start; margin: 0; min-width: 0; }
.shot picture, .shot img { width: 100%; height: auto; }
.shot img {
  border-radius: 22px; aspect-ratio: 1668 / 2388; object-fit: cover; width: 100%;
  border: 1px solid var(--panel-line); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.shot figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* Weapons */
.weapons { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.weapon {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--panel-line);
}
.weapon b { font-weight: 700; }
.weapon small { color: var(--muted); font-size: 14px; display: block; }
.weapon .readout { color: var(--ember); font-size: 12px; white-space: nowrap; }

/* Callout */
.callout {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center;
  background: linear-gradient(135deg, rgba(209, 18, 18, 0.16), rgba(255, 143, 36, 0.06));
  border: 1px solid rgba(209, 18, 18, 0.35); border-radius: 24px; padding: 30px;
}
.callout .icon { font-size: 40px; line-height: 1; }
.callout h3 { margin: 0 0 6px; font-size: 22px; }
.callout p { margin: 0; color: var(--bone); opacity: 0.85; }

/* Documents (privacy, support) */
.doc { padding: 56px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(32px, 8vw, 56px); margin-bottom: 8px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.doc h2 { font-size: 22px; font-stretch: 100%; text-transform: none; letter-spacing: 0; margin: 40px 0 10px; color: var(--bone); }
.doc p, .doc li { color: #e2d5cc; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--panel-line); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; }
details { background: var(--panel); border: 1px solid var(--panel-line); border-radius: 14px; padding: 4px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
details p, details ul { margin-top: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--panel-line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); }

@media (max-width: 880px) {
  .hero-intro { grid-template-columns: 1fr; gap: 20px; padding: 24px 0 56px; }
  .cards { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}
@media (max-width: 560px) {
  .site-nav { gap: 14px; font-size: 13px; }
  .brand span { display: none; }
  .callout { grid-template-columns: 1fr; }
  .sound { right: 10px; bottom: 12px; padding: 8px 12px; }
  .doc table { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
