/* Crossguard website: the game's own palette and fonts (Pirata One for titles, Silkscreen for labels) */
@font-face { font-family: "Pirata"; src: url("fonts/PirataOne-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Silk"; src: url("fonts/Silkscreen-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  --bg: #14111a;
  --bg2: #1f1a28;
  --panel: #261f31;
  --ink: #efe6d6;
  --muted: #9a8fa8;
  --gold: #e8c35a;
  --gold-deep: #c9a23e;
  --p1: #4fd1ff;
  --p2: #ff8a3d;
  --line: rgba(255, 255, 255, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-user-select: none; user-select: none;   /* no select-and-copy of the page */
}
img, video { display: block; max-width: 100%; -webkit-user-drag: none; user-drag: none; pointer-events: none; }
a { color: var(--gold); }

.label { font-family: "Silk", monospace; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.title { font-family: "Pirata", Georgia, serif; font-weight: 400; line-height: 1; letter-spacing: .01em; }

/* top bar */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 12px max(16px, calc((100% - 1120px) / 2));
  background: rgba(20, 17, 26, .88); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.bar .brand { font-family: "Pirata", serif; font-size: 30px; color: var(--gold); text-decoration: none; margin-right: auto; }
.bar nav { display: flex; gap: 22px; }
.bar nav a { color: var(--muted); text-decoration: none; }
.bar nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .bar nav { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Silk", monospace; text-transform: uppercase; letter-spacing: .06em; font-size: 14px;
  padding: 14px 26px; border-radius: 12px; text-decoration: none; cursor: pointer;
  background: var(--gold); color: #14111a; border: 2px solid var(--gold);
  box-shadow: 0 4px 0 var(--gold-deep);
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--gold-deep); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--gold-deep); }
.btn.small { padding: 9px 16px; font-size: 12px; box-shadow: 0 3px 0 var(--gold-deep); }
.btn.ghost { background: transparent; color: var(--ink); border-color: rgba(255, 255, 255, .25); box-shadow: none; }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }

/* hero: the trailer behind the title */
.hero { position: relative; min-height: min(82vh, 720px); display: grid; place-items: center; overflow: hidden; text-align: center; }
.hero .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 70%; max-width: none; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(20, 17, 26, .6) 0%, rgba(20, 17, 26, .88) 75%), linear-gradient(to bottom, rgba(20, 17, 26, 0) 60%, var(--bg));
}
.hero .inner { position: relative; z-index: 1; padding: 40px 16px; }
.hero h1 { font-size: clamp(72px, 14vw, 168px); color: var(--gold); margin: 0; text-shadow: 0 6px 0 rgba(0, 0, 0, .45); }
.hero p.tag { font-size: clamp(17px, 2.2vw, 21px); max-width: 560px; margin: 14px auto 30px; color: var(--ink); }
.hero .ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 18px; color: var(--muted); }

/* sections */
section { padding: 72px max(16px, calc((100% - 1120px) / 2)); }
section h2 { font-size: clamp(44px, 6vw, 64px); color: var(--gold); margin: 0 0 8px; }
section .lead { color: var(--muted); max-width: 640px; margin: 0 0 36px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.stat b { display: block; font-family: "Pirata", serif; font-weight: 400; font-size: 54px; line-height: 1; color: var(--ink); }
.stat span { color: var(--muted); }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.shots { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.shots figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--bg2); }
.shots figure.big { grid-row: span 2; }
.shots figure img { width: 100%; height: 100%; object-fit: cover; }
.shots figcaption { position: absolute; left: 12px; bottom: 10px; padding: 5px 10px; border-radius: 8px; background: rgba(20, 17, 26, .82); color: var(--ink); }
@media (max-width: 820px) { .shots { grid-template-columns: 1fr; } .shots figure.big { grid-row: auto; } }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.feature img { border-radius: 14px; border: 1px solid var(--line); }
.feature ul { padding: 0; margin: 0; list-style: none; display: grid; gap: 14px; }
.feature li { padding-left: 22px; position: relative; }
.feature li::before { content: ""; position: absolute; left: 0; top: .6em; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } }

/* controls: key caps like the in-game manual */
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.keys .card { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.keys h3 { margin: 0 0 14px; font-size: 13px; }
.keys .p1 { color: var(--p1); } .keys .p2 { color: var(--p2); }
.krow { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.krow:first-of-type { border-top: 0; }
.krow .caps { display: flex; gap: 6px; min-width: 110px; }
kbd {
  font-family: "Silk", monospace; font-size: 13px; color: #14111a;
  background: var(--ink); border-radius: 6px; padding: 5px 9px 4px;
  box-shadow: 0 3px 0 var(--muted); min-width: 30px; text-align: center;
}
.krow span { color: var(--muted); }
.keys .extra { grid-column: 1 / -1; color: var(--muted); }
@media (max-width: 720px) { .keys { grid-template-columns: 1fr; } }

/* the big call to action */
.cta { text-align: center; background: radial-gradient(ellipse at top, rgba(232, 195, 90, .12), transparent 60%), var(--bg); }
.cta h2 { font-size: clamp(52px, 8vw, 88px); }
.cta p { color: var(--muted); margin: 6px 0 28px; }

footer { padding: 36px max(16px, calc((100% - 1120px) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
footer .studio { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ink); }
footer .studio img { width: 34px; height: 34px; border-radius: 8px; }
footer a { color: var(--muted); }
footer .legal { flex-basis: 100%; font-size: 12px; opacity: .8; }

/* terms page */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 16px 80px; }
.doc h1 { font-size: 64px; color: var(--gold); margin: 0 0 8px; }
.doc h2 { font-family: "Silk", monospace; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin: 34px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.doc .muted { color: var(--muted); }
