@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("assets/fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("assets/fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("assets/fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url("assets/fonts/barlow-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("assets/fonts/barlow-condensed-600.woff2") format("woff2"); }

:root {
    --bg: #141312;
    --surface: #1b1917;
    --raised: #23201d;
    --line: rgba(241, 235, 226, 0.08);
    --text: #f1ebe2;
    --text-2: #c9c1b6;
    --muted: #8f877d;
    --accent: #e2412e;
    --font: "Barlow", system-ui, sans-serif;
    --display: "Barlow Condensed", "Barlow", system-ui, sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --gutter: clamp(16px, 5vw, 64px);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 2px solid #f5a868; outline-offset: 3px; }

/* Game buttons, nine-sliced from the client's own art (commoncustombutton.swf), as in the launcher */
.gbtn { display: inline-flex; align-items: center; justify-content: center; border-style: solid; border-color: transparent; text-decoration: none; white-space: nowrap; font: 700 15px/1 var(--font); letter-spacing: 0.12em; text-transform: uppercase; transition: transform 100ms, filter 200ms; }
.gbtn:active { transform: translateY(1px); }
.gbtn-red { height: 54px; padding: 0 12px; border-width: 9px 17px; border-image: url("assets/btn-red-up.png") 9 17 fill stretch; color: #fff; text-shadow: 0 1px 0 #3a0600, 0 0 4px rgba(40, 0, 0, 0.85); }
.gbtn-red:hover { border-image-source: url("assets/btn-red-over.png"); }
.gbtn-red:active { border-image-source: url("assets/btn-red-down.png"); }
.gbtn-wood { height: 42px; padding: 0 10px; border-width: 6px 10px; border-image: url("assets/btn-wood-up.png") 6 10 fill stretch; color: #fff7ea; font-size: 13px; letter-spacing: 0.06em; text-transform: none; text-shadow: -1px 0 #2b1a0c, 1px 0 #2b1a0c, 0 -1px #2b1a0c, 0 1px #2b1a0c; }
.gbtn-wood:hover { border-image-source: url("assets/btn-wood-over.png"); color: #24160a; text-shadow: 0 1px 0 rgba(255, 240, 215, 0.6); }
.gbtn.is-pending { cursor: default; filter: saturate(0.4) brightness(0.8); pointer-events: none; }

.tag { display: inline-block; padding: 4px 10px; background: var(--accent); color: #fff; font: 600 12px/1.4 var(--display); letter-spacing: 0.14em; text-transform: uppercase; transform: skewX(-8deg); }
.kicker { display: block; margin-bottom: 12px; color: var(--accent); font: 600 14px/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; }
.text-link { color: var(--text-2); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color 200ms, border-color 200ms; }
.text-link:hover { color: var(--text); border-color: var(--text-2); }

/* Navigation */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 32px; height: 72px; padding: 0 var(--gutter); transition: background 300ms, box-shadow 300ms; }
.nav.is-scrolled { background: rgba(20, 19, 18, 0.88); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-brand img { width: 96px; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6)); }
.nav-brand span { font: 600 22px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--text-2); font-weight: 500; text-decoration: none; transition: color 200ms; }
.nav-links a:hover { color: var(--text); }

/* Hero: the guild town painting from the game's loading screens, the Rathalos collection card */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; padding: 112px var(--gutter) 72px; }
.hero-scene { position: absolute; inset: -32px; background: url("assets/hero-town.jpg") center 40% / cover no-repeat; transition: transform 700ms var(--ease); animation: scene-in 1600ms var(--ease) both; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 19, 18, 0.92) 0%, rgba(20, 19, 18, 0.62) 42%, rgba(20, 19, 18, 0.18) 72%), linear-gradient(0deg, var(--bg) 0%, rgba(20, 19, 18, 0) 32%), linear-gradient(180deg, rgba(20, 19, 18, 0.6) 0%, rgba(20, 19, 18, 0) 22%); }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 48px; width: 100%; max-width: 1280px; margin: 0 auto; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 560px; animation: rise 900ms var(--ease) 150ms both; }
.hero-copy h1 { font: 600 clamp(52px, 8vw, 96px)/0.95 var(--display); letter-spacing: -0.01em; text-transform: uppercase; text-shadow: 0 6px 40px rgba(0, 0, 0, 0.6); }
.hero-copy p { color: var(--text-2); font-size: 19px; line-height: 1.55; }
.hero-copy strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 8px; }
.hero-card { display: grid; place-items: center; perspective: 1200px; animation: rise 1000ms var(--ease) 300ms both; }
.card { position: relative; width: min(340px, 100%); aspect-ratio: 600 / 908; transform: rotateY(var(--ry, -10deg)) rotateX(var(--rx, 4deg)) rotateZ(3deg); transform-style: preserve-3d; transition: transform 600ms var(--ease); filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.6)); }
.card-art, .card-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-art { inset: 3.5%; width: 93%; height: 93%; object-fit: cover; border-radius: 6px; }
.card-shine { position: absolute; inset: 3.5%; border-radius: 6px; background: linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 244, 220, 0.22) 48%, rgba(255, 255, 255, 0) 62%); background-size: 250% 100%; background-position: var(--shine, 100%) 0; mix-blend-mode: screen; pointer-events: none; transition: background-position 600ms var(--ease); }

/* Shared section layout */
section { position: relative; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font: 600 clamp(36px, 5vw, 56px)/1.02 var(--display); text-transform: uppercase; }
.section-head p { margin-top: 16px; color: var(--text-2); font-size: 18px; }

/* The launcher */
.launcher { padding: 120px var(--gutter) 96px; }
.launcher-shots { position: relative; max-width: 1080px; margin: 0 auto; aspect-ratio: 1264 / 860; }
.shot { position: absolute; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55)); }
.shot-back { right: -2%; top: 0; width: 66%; opacity: 0.9; transform: rotate(2deg); }
.shot-front { left: 0; bottom: 0; width: 82%; }
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; max-width: 1080px; margin: 64px auto 0; padding: 0; list-style: none; }
.features li { padding-top: 20px; border-top: 1px solid var(--line); }
.features h3 { font: 600 22px/1.15 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.features p { margin-top: 8px; color: var(--text-2); font-size: 15px; }

/* Get started: the airship's route from the game's travel loader */
.start { padding: 96px var(--gutter); background: var(--surface); border-block: 1px solid var(--line); }
.route { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; max-width: 1080px; margin: 0 auto; padding: 0; list-style: none; text-align: center; }
.route::before { content: ""; position: absolute; top: 31px; left: 16.6%; right: 16.6%; border-top: 2px dashed rgba(241, 235, 226, 0.18); }
.route li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.route-mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--raised); box-shadow: 0 0 0 1px var(--line), 0 0 0 8px var(--surface); }
.route-mark img { width: 42px; animation: bob 1250ms linear infinite alternate; }
.route-step { font: 600 26px/1 var(--display); color: var(--text-2); }
.route-goal img { width: 22px; animation: pulse 1667ms ease-in-out infinite; }
.route h3 { margin-top: 8px; font: 600 24px/1.1 var(--display); text-transform: uppercase; }
.route p { max-width: 280px; color: var(--text-2); font-size: 15px; }

/* Download, over the ice field */
.download { overflow: hidden; padding: 120px var(--gutter); }
.download-scene { position: absolute; inset: 0; background: url("assets/scene-ice.jpg") center / cover no-repeat; opacity: 0.32; }
.download::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(20, 19, 18, 0.4) 30%, rgba(20, 19, 18, 0.4) 70%, var(--bg) 100%); }
.download-inner { position: relative; z-index: 1; }
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 24px; }
.platform { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: rgba(27, 25, 23, 0.86); border-top: 3px solid var(--accent); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45); backdrop-filter: blur(6px); }
.platform h3 { font: 600 30px/1 var(--display); text-transform: uppercase; }
.platform p { color: var(--text-2); font-size: 15px; min-height: 48px; }
.platform .gbtn { margin-top: 8px; }

/* Community */
.community { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 96px var(--gutter) 112px; text-align: center; }
.community img { width: 64px; animation: bob 1250ms linear infinite alternate; }
.community h2 { font: 600 clamp(36px, 5vw, 56px)/1 var(--display); text-transform: uppercase; }
.community p { max-width: 520px; color: var(--text-2); font-size: 18px; }
.community .gbtn { margin-top: 8px; }

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding: 28px var(--gutter); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer a { color: var(--text-2); text-decoration: none; }
.footer a:hover { color: var(--text); }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes scene-in { from { opacity: 0; scale: 1.06; } to { opacity: 1; scale: 1; } }
@keyframes bob { from { transform: translateY(4px); } to { transform: translateY(-4px); } }
@keyframes pulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.45); } }

@media (max-width: 960px) {
    .nav-links { display: none; }
    .nav-discord { margin-left: auto; }
    .hero-inner { grid-template-columns: 1fr; gap: 56px; }
    .hero-card .card { width: min(260px, 70vw); }
    .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .nav { gap: 16px; height: 64px; }
    .nav-brand img { width: 72px; }
    .nav-brand span { display: none; }
    .hero { padding-top: 96px; }
    .hero-copy p { font-size: 17px; }
    .hero-actions { flex-direction: column; align-items: flex-start; gap: 16px; }
    .launcher-shots { aspect-ratio: auto; display: grid; gap: 16px; }
    .shot { position: static; width: 100%; transform: none; }
    .features, .route, .platforms { grid-template-columns: 1fr; }
    .route::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}
