/* Werewolf: Cursed Bloodlines — marketing site.
   Same design language as the game: cold moonlit blue-black, moon-silver ink,
   deep blood-red Cinzel headers. No neon — muted, aged color only. */

@font-face { font-family: "Cinzel Decorative"; src: url("assets/fonts/CinzelDecorative-Bold.ttf") format("truetype"); font-weight: 700; }
@font-face { font-family: "Cinzel Decorative"; src: url("assets/fonts/CinzelDecorative-Regular.ttf") format("truetype"); font-weight: 400; }
@font-face { font-family: "Spectral"; src: url("assets/fonts/Spectral-Regular.ttf") format("truetype"); font-weight: 400; }
@font-face { font-family: "Spectral"; src: url("assets/fonts/Spectral-SemiBold.ttf") format("truetype"); font-weight: 600; }
@font-face { font-family: "Spectral"; src: url("assets/fonts/Spectral-Italic.ttf") format("truetype"); font-style: italic; }

:root {
  --bg: #05070c;
  --panel: rgba(8, 11, 17, 0.92);
  --panel-line: #232c3a;
  --ink: #d7dde6;
  --ink-dim: #8a94a5;
  --moon: #e8edf4;
  --blood: #b31212;
  --blood-bright: #b3271f;
  --blood-glow: 0 2px 10px rgba(0, 0, 0, .7);
  --good: #86b28c;
  --gold: #c9a24c;
  --font-display: "Cinzel Decorative", serif;
  --font-body: "Spectral", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* themed scrollbars — dark track, slate thumb */
* { scrollbar-width: thin; scrollbar-color: #2e3a4e rgba(5, 7, 12, .7); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(5, 7, 12, .7); }
::-webkit-scrollbar-thumb { background: #2e3a4e; border-radius: 5px; border: 2px solid #0a0e15; }
::-webkit-scrollbar-thumb:hover { background: #45536b; }
::-webkit-scrollbar-corner { background: transparent; }

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 18px; line-height: 1.6; }

h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 40px);
  color: var(--blood-bright);
  text-shadow: var(--blood-glow);
  text-align: center;
  letter-spacing: .05em;
}
h3 { font-family: var(--font-display); font-size: 20px; color: var(--moon); margin-bottom: 8px; letter-spacing: .03em; }
a { color: var(--blood-bright); }

.rule {
  height: 1px; border: 0; margin: 14px auto 34px; width: min(420px, 70%);
  background: linear-gradient(90deg, transparent, var(--blood) 30%, var(--blood) 70%, transparent);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55);
}
.dim { color: var(--ink-dim); }
.small { font-size: 14px; }

/* ------------------------------------------------------------------ nav -- */
#nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(4, 6, 10, .92);
  border-bottom: 1px solid var(--panel-line);
  backdrop-filter: blur(6px);
}
.nav-title { font-family: var(--font-display); color: var(--blood-bright); text-shadow: var(--blood-glow); letter-spacing: .06em; }
.nav-links { display: flex; gap: clamp(10px, 2.5vw, 28px); }
.nav-links a { color: var(--ink-dim); text-decoration: none; font-size: 15px; letter-spacing: .04em; }
.nav-links a:hover { color: var(--moon); }

/* ----------------------------------------------------------------- hero -- */
.hero {
  min-height: 88vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background:
    linear-gradient(rgba(5, 7, 12, .25), rgba(5, 7, 12, .55) 70%, var(--bg)),
    url("assets/hero_bg.jpg") center/cover no-repeat;
}
.hero-logo { width: min(640px, 88vw); filter: drop-shadow(0 6px 30px rgba(0,0,0,.9)); }
.tagline {
  font-style: italic; font-size: clamp(19px, 2.6vw, 26px);
  color: var(--moon); margin-top: 26px; text-shadow: 0 2px 10px #000;
}
.hero-sub { color: var(--ink-dim); margin-top: 10px; text-shadow: 0 2px 8px #000; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  letter-spacing: .06em;
  border: 1px solid var(--panel-line);
  color: var(--ink);
  background: linear-gradient(180deg, #1a2230, #0d121c);
}
.btn.primary {
  background: linear-gradient(180deg, #a02420 0%, #7a1512 55%, #5c0f0c 100%);
  border-color: rgba(120, 40, 35, .8);
  color: #f2e9e2; font-weight: 600; text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255,255,255,.08);
}
.btn.primary:hover { filter: brightness(1.15); }
.btn.ghost { background: rgba(4,6,10,.55); color: var(--ink-dim); }
.btn.ghost:hover { color: var(--moon); }
.btn.disabled { opacity: .55; cursor: default; }

/* ------------------------------------------------------------- sections -- */
.section { padding: 70px clamp(18px, 5vw, 64px); max-width: 1200px; margin: 0 auto; }
.section.alt { max-width: none; background-size: cover; background-position: center; }
.section.alt > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-sub { text-align: center; color: var(--ink-dim); margin-bottom: 30px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.step { position: relative; padding-top: 34px; }
.step-num {
  position: absolute; top: -18px; left: 22px;
  font-family: var(--font-display); font-size: 30px;
  color: var(--blood-bright); text-shadow: var(--blood-glow);
}

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 900px; margin: 36px auto 0; }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }
a.nav-title { text-decoration: none; }
.feature { text-align: center; padding: 0 8px; }
.f-icon { font-size: 34px; display: block; margin-bottom: 10px; color: var(--moon); }

/* ---------------------------------------------------------------- roles -- */
.ai-tag {
  font-size: 13px; border: 1px solid var(--panel-line); border-radius: 999px;
  padding: 3px 10px; color: var(--ink-dim); white-space: nowrap;
}
.card-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; max-width: 1150px; margin: 0 auto; }
@media (max-width: 980px) { .card-row { grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 640px; } }
@media (max-width: 640px) { .card-row { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.card-row figure { text-align: center; }
.card-row img {
  width: 100%; border-radius: 10px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .7);
  transition: transform .18s ease;
}
.card-row img:hover { transform: translateY(-6px) scale(1.02); }
.card-row figcaption { font-family: var(--font-display); font-size: 14px; margin-top: 8px; color: var(--ink); letter-spacing: .05em; }

/* -------------------------------------------------------------- promise -- */
.promise { background: linear-gradient(rgba(5,7,12,.5), rgba(5,7,12,.5)); }
.promise-copy { max-width: 780px; margin: 0 auto 30px; }
.promise-copy p + p { margin-top: 14px; }

.tracker { max-width: 900px; margin: 0 auto; }
.tracker-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-number {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 58px);
  color: var(--moon);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .7);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.hero-caption { color: var(--ink-dim); margin-top: 6px; }
.tracker-units { text-align: right; font-size: 15px; }

/* the meter */
.meter { position: relative; margin: 26px 0 6px; }
.meter-track {
  height: 14px; border-radius: 7px;
  background: rgba(215, 221, 230, .09);
  border: 1px solid #1d2532;
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #5c0f0c, var(--blood-bright));
  border-radius: 7px 0 0 7px;
  transition: width 1.2s cubic-bezier(.2, .8, .2, 1);
}
.meter-markers { position: relative; height: 70px; }
.marker {
  position: absolute; top: 0;
  transform: translateX(-50%);
  text-align: center;
  font-size: 12px;
  color: var(--ink-dim);
  width: 92px;
}
.marker .tick { display: block; width: 2px; height: 10px; background: var(--panel-line); margin: 0 auto 3px; }
.marker.reached { color: var(--ink); }
.marker.reached .tick { background: var(--blood-bright); }
.marker .m-icon { font-size: 13px; }

/* milestone cards */
.milestones { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.milestone {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px; align-items: start;
  border: 1px solid var(--panel-line);
  border-radius: 10px;
  padding: 14px 16px;
  background: rgba(4, 6, 10, .5);
}
.milestone.status-funded { border-color: rgba(201, 162, 76, .55); }
.milestone.status-commissioned { border-color: rgba(224, 58, 52, .55); }
.milestone.status-completed { border-color: rgba(134, 178, 140, .6); }
.m-badge {
  font-size: 22px; line-height: 1.2; width: 34px; text-align: center;
}
.milestone h4 { font-family: var(--font-display); color: var(--moon); font-size: 17px; letter-spacing: .04em; }
.milestone .m-replaces { font-size: 15px; color: var(--ink); margin-top: 2px; }
.milestone .m-detail { font-size: 14px; color: var(--ink-dim); margin-top: 6px; }
.milestone .m-amount { font-family: var(--font-display); color: var(--moon); white-space: nowrap; }
.milestone .m-status-label {
  display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-top: 6px;
}
.status-upcoming .m-status-label { color: var(--ink-dim); }
.status-funded .m-status-label { color: var(--gold); }
.status-commissioned .m-status-label { color: var(--blood-bright); }
.status-completed .m-status-label { color: var(--good); }

/* ------------------------------------------------------------------ faq -- */
#faq details { margin-bottom: 12px; max-width: 820px; margin-left: auto; margin-right: auto; }
#faq summary {
  cursor: pointer; font-family: var(--font-display); font-size: 17px; color: var(--moon);
  letter-spacing: .03em;
}
#faq details[open] summary { color: var(--blood-bright); }
#faq details p { margin-top: 10px; color: var(--ink-dim); }

/* ------------------------------------------------------------------ buy -- */
.buy-strip { text-align: center; background: linear-gradient(rgba(5,7,12,.4), rgba(5,7,12,.4)); }

footer {
  text-align: center; padding: 30px; color: var(--ink-dim); font-size: 14px;
  border-top: 1px solid var(--panel-line);
}

@media (max-width: 640px) {
  .tracker-units { text-align: left; }
  .marker { width: 64px; font-size: 10px; }
  .milestone { grid-template-columns: auto 1fr; }
  .milestone .m-amount { grid-column: 2; }
}

.card-row figure { position: relative; }
.card-tag { position: absolute; top: 10px; right: 10px; z-index: 2;
  font-family: var(--font-display); font-size: 11px; letter-spacing: .08em;
  padding: 3px 8px; border-radius: 4px; background: rgba(139,10,10,.9);
  color: #f2e6e6; border: 1px solid rgba(255,255,255,.18); pointer-events: none; }
.card-tag.full { background: rgba(8,11,20,.88); color: #8b93a7; border-color: #2a3350; }

/* --------------------------------------------------------- social icons -- */
.nav-title { display: inline-flex; align-items: center; }
.nav-mark { width: 26px; height: 26px; border-radius: 50%; margin-right: 10px;
  box-shadow: 0 0 0 1px var(--panel-line), 0 2px 8px rgba(0,0,0,.6); }
.nav-right { display: flex; align-items: center; }
.nav-social { display: flex; align-items: center; gap: 12px;
  margin-left: 20px; padding-left: 20px; border-left: 1px solid var(--panel-line); }
.nav-social a, .footer-social a { color: var(--ink-dim); display: inline-flex; }
.nav-social a:hover, .footer-social a:hover { color: var(--moon); }
.nav-social svg, .footer-social svg { fill: currentColor; }
.footer-social { display: flex; justify-content: center; gap: 18px; margin-bottom: 14px; }
@media (max-width: 1120px) { .nav-social { display: none; } }

/* nav vertical centering — Cinzel renders with extra bottom bearing,
   so text needs line-height 1 and a hair of downward nudge */
#nav { min-height: 54px; }
.nav-title { line-height: 1; position: relative; top: 1px; }
.nav-links { align-items: center; }
.nav-links a { line-height: 1; position: relative; top: 1px; }
.nav-social { align-self: center; }

/* edge markers stay inside the bar: anchor from the tick's side */
.marker.edge-r { transform: translateX(-100%); text-align: right; }
.marker.edge-r .tick { margin: 0 0 3px auto; }
.marker.edge-l { transform: none; text-align: left; }
.marker.edge-l .tick { margin: 0 auto 3px 0; }

/* stagger alternate markers to a second row so labels never collide */
.marker:nth-child(even) { top: 26px; }
.marker:nth-child(even) .tick { height: 36px; }
