/* Rustjaw website — rusted metal + molten gold, matching the game's UI */
@font-face { font-family: "Barlow Condensed"; font-weight: 900; font-style: italic; font-display: swap; src: url("../fonts/BarlowCondensed-BlackItalic.ttf") format("truetype"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/BarlowCondensed-Bold.ttf") format("truetype"); }

:root {
  --bg: #0c0907;
  --bg-2: #15100c;
  --panel: #1c1510;
  --panel-2: #241a13;
  --line: #3b2a1b;
  --line-2: #5a3d22;
  --text: #efe3cf;
  --muted: #b29a7c;
  --gold-1: #fff2c5;
  --gold-2: #f0b65b;
  --gold-3: #bb5e25;
  --gold: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 48%, var(--gold-3) 100%);
  --btn: linear-gradient(180deg, #ffd27a 0%, #f0a640 55%, #c9702a 100%);
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --radius: 6px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(240, 150, 60, .10), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(187, 94, 37, .08), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-2); }
a:hover { color: var(--gold-1); }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* ---------- type ---------- */
.display, h1, h2, h3 { font-family: var(--display); font-weight: 900; font-style: italic; letter-spacing: .01em; line-height: .95; margin: 0; text-transform: uppercase; }
.gold-text { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 rgba(0,0,0,.55)); }
.kicker { font-family: var(--display); font-weight: 700; font-style: normal; letter-spacing: .28em; font-size: 13px; color: var(--gold-2); text-transform: uppercase; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(40px, 6vw, 68px); margin-top: 8px; }
.section-head p { color: var(--muted); max-width: 620px; margin: 14px auto 0; }

/* ---------- hazard stripe ---------- */
.hazard { height: 10px; background: repeating-linear-gradient(-45deg, #e8a53c 0 14px, #17110c 14px 28px); opacity: .9; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(12, 9, 7, .92); backdrop-filter: blur(8px); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand span { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 28px; text-transform: uppercase; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 15px; }
.nav-links a:hover { color: var(--gold-2); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); width: 44px; height: 40px; border-radius: var(--radius); cursor: pointer; font-size: 20px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 4px; font-family: var(--display); font-weight: 900; font-style: italic; font-size: 20px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: 0; transition: transform .15s, filter .15s, box-shadow .15s; }
.btn-gold { background: var(--btn); color: #2a1406; box-shadow: 0 0 0 1px #7a3f14, 0 6px 0 #5b2c0e, 0 14px 30px rgba(240, 150, 60, .25); }
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.07); color: #2a1406; }
.btn-gold:active { transform: translateY(2px); box-shadow: 0 0 0 1px #7a3f14, 0 2px 0 #5b2c0e; }
.btn-ghost { background: rgba(28, 21, 16, .7); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { color: var(--gold-1); box-shadow: inset 0 0 0 1px var(--gold-2); }
.btn[aria-disabled="true"] { opacity: .6; cursor: default; pointer-events: none; }
.btn svg { width: 22px; height: 22px; flex: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; overflow: hidden; padding: 110px 0 70px; }
.hero-bg { position: absolute; inset: 0; background: url("../img/shot-fight-rooftop.webp") center/cover no-repeat; transform: scale(1.08); filter: saturate(1.1) brightness(.55); animation: drift 24s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,9,7,.96) 0%, rgba(12,9,7,.78) 42%, rgba(12,9,7,.35) 75%, rgba(12,9,7,.6) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; align-items: center; }
.hero-logo { display: flex; align-items: center; gap: 18px; }
.hero-logo img { width: clamp(64px, 8vw, 96px); filter: drop-shadow(0 6px 14px rgba(0,0,0,.6)); }
.hero h1 { font-size: clamp(72px, 10.5vw, 150px); }
.hero .tagline { font-family: var(--display); font-weight: 700; letter-spacing: .5em; font-size: clamp(14px, 1.6vw, 18px); color: var(--gold-2); margin: 10px 0 0 6px; text-transform: uppercase; }
.hero .lede { font-size: clamp(17px, 1.6vw, 20px); color: #e6d6bd; max-width: 560px; margin: 26px 0 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { position: relative; justify-self: end; width: min(400px, 100%); }
.hero-art .frame { position: relative; border-radius: 22%; overflow: hidden; box-shadow: 0 0 0 2px #7a4a22, 0 0 0 8px #1c1510, 0 0 0 10px #4a3018, 0 30px 80px rgba(0,0,0,.7), 0 0 120px rgba(240,150,60,.25); transform: rotate(-3deg); animation: float 6s ease-in-out infinite; }
.hero-art .frame img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.hero-art .badge { position: absolute; right: -10px; bottom: 6%; background: var(--btn); color: #2a1406; font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 18px; padding: 8px 16px; border-radius: 4px; transform: rotate(4deg); box-shadow: 0 6px 0 #5b2c0e, 0 12px 24px rgba(0,0,0,.5); }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%); color: var(--muted); font-family: var(--display); letter-spacing: .3em; font-size: 12px; text-transform: uppercase; text-decoration: none; }
.scroll-cue::after { content: ""; display: block; width: 2px; height: 28px; margin: 8px auto 0; background: linear-gradient(var(--gold-2), transparent); animation: cue 1.6s ease-in-out infinite; }

@keyframes drift { from { transform: scale(1.08) translateX(0); } to { transform: scale(1.14) translateX(-2%); } }
@keyframes float { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-12px); } }
@keyframes cue { 0% { opacity: 0; transform: translateY(-6px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(8px); } }

/* ---------- sections ---------- */
section { padding: 110px 0; position: relative; }
.alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line); }

/* platforms */
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.platform { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 10px; padding: 34px; }
.platform::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--gold); }
.platform .status { display: inline-block; font-family: var(--display); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: 13px; padding: 5px 12px; border-radius: 3px; }
.status.live { background: rgba(120, 200, 90, .14); color: #a9e48a; box-shadow: inset 0 0 0 1px rgba(120, 200, 90, .4); }
.status.soon { background: rgba(240, 182, 91, .12); color: var(--gold-2); box-shadow: inset 0 0 0 1px rgba(240, 182, 91, .4); }
.platform h3 { font-size: 46px; margin: 18px 0 10px; display: flex; align-items: center; gap: 14px; }
.platform h3 svg { width: 40px; height: 40px; flex: none; }
.platform p { color: var(--muted); margin: 0 0 26px; }
.platform ul { margin: 0 0 28px; padding: 0; list-style: none; display: grid; gap: 8px; }
.platform li { padding-left: 24px; position: relative; color: #dccbb0; }
.platform li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 28px; transition: transform .2s, border-color .2s; }
.feature:hover { transform: translateY(-4px); border-color: var(--line-2); }
.feature .ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 8px; background: linear-gradient(180deg, #3a2615, #22170f); box-shadow: inset 0 0 0 1px #6b4524; margin-bottom: 18px; }
.feature .ico svg { width: 28px; height: 28px; stroke: var(--gold-2); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 28px; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; }

/* fighters */
.fighters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fighter { position: relative; border-radius: 10px; overflow: hidden; background: radial-gradient(circle at 50% 75%, rgba(240,150,60,.35), transparent 60%), linear-gradient(180deg, #2a1d14, #120d0a); border: 1px solid var(--line); aspect-ratio: 3 / 4.2; display: flex; flex-direction: column; justify-content: flex-end; transition: transform .25s, border-color .25s; }
.fighter img { position: absolute; left: 50%; bottom: 82px; height: 74%; width: auto; max-width: none; transform: translateX(-50%); filter: drop-shadow(0 12px 18px rgba(0,0,0,.6)); transition: transform .3s; }
.fighter:hover { transform: translateY(-6px); border-color: var(--gold-3); }
.fighter:hover img { transform: translateX(-50%) scale(1.05); }
.fighter .info { position: relative; padding: 18px 20px; background: linear-gradient(0deg, rgba(12,9,7,.95), rgba(12,9,7,.75)); border-top: 1px solid var(--line-2); }
.fighter h3 { font-size: 36px; }
.fighter p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

/* stages */
.stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: stage; }
.stage { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 22px 18px; counter-increment: stage; }
.stage::before { content: "0" counter(stage); font-family: var(--display); font-weight: 900; font-style: italic; font-size: 40px; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; line-height: 1; margin-bottom: 10px; }
.stage h3 { font-size: 24px; margin-bottom: 6px; }
.stage p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery button { padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; cursor: zoom-in; background: #000; position: relative; }
.gallery button.wide { grid-column: span 2; grid-row: span 2; }
.gallery button.wide img { aspect-ratio: auto; }
.gallery button.span2 { grid-column: span 2; }
.gallery button.span2 img { position: absolute; inset: 0; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 2 / 1; transition: transform .35s, filter .35s; filter: brightness(.9); }
.gallery button:hover img { transform: scale(1.04); filter: brightness(1.05); }
.gallery button:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5, 4, 3, .94); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 86vh; width: auto; border-radius: 8px; box-shadow: 0 0 0 1px var(--line-2), 0 30px 80px rgba(0,0,0,.8); }
.lightbox button { position: absolute; background: rgba(28,21,16,.9); color: var(--text); border: 1px solid var(--line-2); width: 52px; height: 52px; border-radius: 50%; font-size: 24px; cursor: pointer; }
.lightbox button:hover { color: var(--gold-1); border-color: var(--gold-2); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* final cta */
.cta-band { text-align: center; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: url("../img/shot-road-jump.webp") center/cover; opacity: .18; filter: blur(2px); }
.cta-band .wrap { position: relative; }
.cta-band h2 { font-size: clamp(48px, 8vw, 96px); }
.cta-band p { color: #e0cfb4; max-width: 560px; margin: 16px auto 32px; }
.cta-band .hero-ctas { justify-content: center; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--gold-2); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- legal page ---------- */
.legal { padding: 140px 0 90px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(48px, 8vw, 80px); margin: 10px 0 8px; }
.legal .updated { color: var(--muted); margin-bottom: 40px; }
.legal h2 { font-size: 30px; margin: 44px 0 12px; color: var(--gold-2); }
.legal p, .legal li { color: #dccbb0; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal .card { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--gold-2); border-radius: 8px; padding: 20px 24px; }
.legal .card p { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: left; }
  .hero-art { width: min(300px, 70%); justify-self: start; }
  .features { grid-template-columns: 1fr 1fr; }
  .fighters { grid-template-columns: 1fr 1fr; }
  .stages { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery button.span2 img { position: static; aspect-ratio: 2 / 1; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(12,9,7,.97); border-bottom: 1px solid var(--line); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 16px 20px; width: 100%; border-top: 1px solid var(--line); }
  .platforms, .features, .stages { grid-template-columns: 1fr; }
  .gallery button.wide { grid-column: span 2; grid-row: auto; }
  section { padding: 80px 0; }
  .hero-art { display: none; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
