/* River City Roleplay – website. Self-hosted fonts, no third-party requests. */
@font-face { font-family: "Archivo Black"; src: url("../fonts/archivo-black-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0e0c0f;
  --bg-2: #141016;
  --surface: #1a1519;
  --surface-2: #221b1f;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f6f1ec;
  --muted: #b8aba1;
  --orange: #ff6a13;
  --amber: #ff9a1f;
  --gold: #ffc52e;
  --deep: #c2410c;
  --grad: linear-gradient(100deg, var(--gold) 0%, var(--amber) 45%, var(--orange) 100%);
  --radius: 18px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --wrap: 1180px;
  --display: "Archivo Black", "Segoe UI Black", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--body); overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.04; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.3rem; line-height: 1.2; }
p { margin: 0 0 1rem; }
strong { color: #fff; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font: 700 0.78rem/1 var(--body); letter-spacing: 0.22em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--grad); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--orange); color: #111; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn { --h: 52px; display: inline-flex; align-items: center; gap: 10px; height: var(--h); padding: 0 26px; border-radius: 999px; border: 0; text-decoration: none; font: 700 0.98rem/1 var(--body);
  color: #1a0d05; background: var(--grad); box-shadow: 0 10px 30px -8px rgba(255, 106, 19, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35); transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; white-space: nowrap; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(255, 106, 19, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35); filter: saturate(1.1); }
.btn--ghost { color: var(--text); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: 0.9rem; }
.btn--lg { --h: 62px; padding: 0 36px; font-size: 1.1rem; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s ease, box-shadow .3s ease; }
.nav.is-scrolled { background: rgba(14, 12, 15, 0.82); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.nav__inner { width: min(var(--wrap), 100% - 32px); margin-inline: auto; height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; font-family: var(--display); }
.brand__text b { font-weight: 400; color: var(--orange); font-size: 0.8rem; letter-spacing: 0.04em; }
.brand__text span { font-size: 1.15rem; }
.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__menu a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.94rem; padding: 10px 14px; border-radius: 10px; transition: color .2s, background .2s; }
.nav__menu a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav__menu .nav__team { color: var(--text); }
.nav__menu .btn { margin-left: 8px; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.07); cursor: pointer; padding: 0; position: relative; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav__toggle span:nth-child(1) { top: 15px; } .nav__toggle span:nth-child(2) { top: 21px; } .nav__toggle span:nth-child(3) { top: 27px; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; padding: 120px 0 90px; }
.hero__bg { position: absolute; inset: 0; z-index: -2; background: url("../img/hero-city.jpg") center 60% / cover no-repeat; transform: scale(1.06); animation: kenburns 24s ease-in-out infinite alternate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(255, 106, 19, 0.28), transparent 70%),
    linear-gradient(90deg, rgba(14, 12, 15, 0.94) 0%, rgba(14, 12, 15, 0.7) 45%, rgba(14, 12, 15, 0.25) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
@keyframes kenburns { to { transform: scale(1.16) translate(-1.5%, -1%); } }
.hero__stripes { position: absolute; right: -60px; bottom: -60px; width: 340px; height: 340px; z-index: -1; opacity: .9; }
.hero__stripes i { position: absolute; inset: 0; clip-path: polygon(100% 0, 100% 18%, 18% 100%, 0 100%); }
.hero__stripes i:nth-child(1) { background: var(--gold); transform: translate(0, 0); }
.hero__stripes i:nth-child(2) { background: var(--orange); transform: translate(46px, 46px); }
.hero__stripes i:nth-child(3) { background: var(--deep); transform: translate(92px, 92px); }
.hero__content { max-width: var(--wrap); }
.tag { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); backdrop-filter: blur(8px);
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #ffd9b8; margin-bottom: 26px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } }
.hero h1 { font-size: clamp(2.7rem, 8vw, 6.4rem); max-width: 14ch; text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #e3d7ce; max-width: 54ch; margin: 26px 0 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; width: 28px; height: 46px; border-radius: 16px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35); }
.hero__scroll span { position: absolute; left: 50%; top: 10px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Ticker */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 18px 0; }
.ticker__track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker span { font-family: var(--display); font-size: 1.05rem; letter-spacing: 0.03em; color: #8f8178; padding: 0 28px; display: flex; align-items: center; gap: 56px; text-transform: uppercase; white-space: nowrap; }
.ticker span::after { content: ""; width: 10px; height: 10px; transform: rotate(45deg); background: var(--orange); margin-left: 28px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.head { max-width: 720px; margin-bottom: 56px; }
.head p:not(.eyebrow) { color: var(--muted); margin-top: 18px; font-size: 1.08rem; }
.head--center { margin-inline: auto; text-align: center; }
.head--center .eyebrow { justify-content: center; }

/* About */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about__text h2 { margin-bottom: 24px; }
.about__text > p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 36px; font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 7px; background: var(--grad); }
.checks li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 8px; height: 5px; border-left: 2.5px solid #1a0d05; border-bottom: 2.5px solid #1a0d05; transform: rotate(-45deg); }
.about__media { position: relative; aspect-ratio: 1 / 1.02; }
.shot { margin: 0; position: absolute; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); outline: 1px solid var(--line); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot--a { inset: 0 18% 30% 0; }
.shot--b { inset: 38% 0 0 22%; }
.badge-card { position: absolute; left: 4%; bottom: 6%; display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 14px; border-radius: 16px; background: rgba(20, 16, 22, 0.86); backdrop-filter: blur(12px); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.badge-card img { width: 52px; height: 52px; }
.badge-card b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.05rem; }
.badge-card span { color: var(--muted); font-size: 0.88rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(60px, 8vw, 100px); }
.stat { padding: 26px 24px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.stat b { display: block; font: 400 clamp(2rem, 4vw, 2.8rem)/1 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.stat span { color: var(--muted); font-weight: 600; font-size: 0.95rem; }

/* Factions */
.factions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.faction { --c: var(--orange); position: relative; border-radius: calc(var(--radius) + 4px); overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; transition: transform .35s ease, box-shadow .35s ease; }
.faction:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent), 0 30px 60px -30px color-mix(in srgb, var(--c) 60%, transparent); }
.faction__img { aspect-ratio: 16 / 8.5; overflow: hidden; position: relative; }
.faction__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--surface) 2%, transparent 60%); }
.faction__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.faction:hover .faction__img img { transform: scale(1.06); }
.faction__body { padding: 0 28px 28px; margin-top: -34px; position: relative; }
.faction__tag { display: inline-block; font: 400 0.78rem/1 var(--display); letter-spacing: 0.1em; padding: 8px 12px; border-radius: 8px; color: #111; background: var(--c); margin-bottom: 14px; }
.faction h3 { margin-bottom: 10px; }
.faction p { color: var(--muted); font-size: 0.98rem; }
.faction ul { list-style: none; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 0.9rem; font-weight: 600; }
.faction li { display: flex; align-items: center; gap: 10px; }
.faction li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--c); transform: rotate(45deg); flex: none; }
.note { margin: 36px auto 0; text-align: center; color: var(--muted); max-width: 640px; }

/* Video */
.video { position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: 0 40px 100px -40px rgba(255, 106, 19, 0.45), inset 0 0 0 1px var(--line); background: #000; max-width: 1040px; margin-inline: auto; }
.video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.credit { text-align: center; color: #7d716a; font-size: 0.8rem; margin-top: 16px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.step::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); transform: scaleX(.25); transform-origin: left; transition: transform .5s ease; }
.step:hover::after { transform: scaleX(1); }
.step__n { display: block; font: 400 2.6rem/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px rgba(255, 154, 31, 0.55); margin-bottom: 22px; }
.step h3 { font-size: 1.12rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* CTA */
.cta { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: clamp(36px, 5vw, 64px); border-radius: calc(var(--radius) + 8px);
  background: radial-gradient(ellipse 70% 120% at 100% 0%, rgba(255, 106, 19, 0.35), transparent 60%), linear-gradient(120deg, #1b1513, #2a170e); box-shadow: inset 0 0 0 1px rgba(255, 154, 31, 0.22); }
.cta__text { max-width: 640px; position: relative; }
.cta__text h2 { margin-bottom: 14px; }
.cta__text p:not(.eyebrow) { color: #dacbbf; margin: 0; }
.cta .btn { position: relative; flex: none; }
.cta__stripes { position: absolute; left: -30px; top: -30px; width: 200px; height: 200px; opacity: .55; }
.cta__stripes i { position: absolute; inset: 0; clip-path: polygon(0 18%, 18% 0, 30% 0, 0 30%); }
.cta__stripes i:nth-child(1) { background: var(--deep); }
.cta__stripes i:nth-child(2) { background: var(--orange); transform: translate(26px, 26px); }
.cta__stripes i:nth-child(3) { background: var(--gold); transform: translate(52px, 52px); }

/* FAQ */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.faq .head { margin: 0; position: sticky; top: 110px; }
.faq__list { display: grid; gap: 12px; }
details { border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .25s, background .25s; }
details[open] { background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(255, 154, 31, 0.3); }
summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(45deg); transition: transform .25s, margin .25s; }
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }
details a { color: var(--gold); }

/* Final */
.final { position: relative; overflow: hidden; isolation: isolate; padding: clamp(100px, 14vw, 170px) 0; text-align: center; }
.final__bg { position: absolute; inset: 0; z-index: -2; background: url("../img/fd-2.jpg") center / cover; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(14, 12, 15, 0.72), rgba(14, 12, 15, 0.96)), linear-gradient(0deg, var(--bg), transparent 30%, transparent 70%, var(--bg)); }
.final__inner img { width: 140px; height: 140px; margin: 0 auto 26px; filter: drop-shadow(0 18px 40px rgba(255, 106, 19, 0.45)); }
.final h2 { font-size: clamp(2.2rem, 6vw, 4.4rem); margin-bottom: 14px; }
.final p { color: #d8cbc1; font-size: 1.15rem; margin-bottom: 32px; }

/* Footer */
.footer { background: var(--bg-2); padding-bottom: 30px; }
.footer__line { height: 4px; background: linear-gradient(90deg, transparent, var(--deep) 15%, var(--orange) 40%, var(--gold) 50%, var(--orange) 60%, var(--deep) 85%, transparent); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 0 26px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 14px; font-family: var(--display); line-height: 1; }
.footer__brand b { display: block; color: var(--orange); font-weight: 400; font-size: 0.85rem; }
.footer__brand span { font-size: 1.25rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.footer__links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.94rem; }
.footer__links a:hover { color: #fff; }
.footer__legal p { margin: 22px 0 0; color: #74685f; font-size: 0.82rem; }

/* Legal pages */
.legal { padding: 140px 0 100px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 30px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--gold); }
.todo { background: rgba(255, 197, 46, 0.12); color: var(--gold); padding: 1px 6px; border-radius: 5px; font-weight: 700; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.factions .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .08s; }
.factions .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .16s; }
.factions .reveal:nth-child(4), .steps .reveal:nth-child(4) { transition-delay: .24s; }

/* Responsive */
@media (max-width: 1020px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__menu { position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 22px; background: rgba(14, 12, 15, 0.97); backdrop-filter: blur(14px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity .25s, transform .25s; }
  .nav.is-open .nav__menu { opacity: 1; transform: none; pointer-events: auto; }
  .nav.is-open { background: rgba(14, 12, 15, 0.97); }
  .nav__menu a:not(.btn) { padding: 14px 12px; font-size: 1.05rem; }
  .nav__menu .btn { margin: 10px 0 0; justify-content: center; }
  .about, .faq { grid-template-columns: 1fr; }
  .faq .head { position: static; }
  .about__media { max-width: 560px; width: 100%; margin-inline: auto; }
  .factions { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .steps, .stats { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .hero__stripes { width: 220px; height: 220px; right: -70px; bottom: -70px; }
  .faction__body { padding: 0 20px 22px; }
  .btn--lg { padding: 0 24px; font-size: 1rem; }
  .brand__text span { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
