/* ==========================================================================
   $AWP — Dragon Lore Treasury
   Transcribed from the Claude Design canvas `Dragon Lore Treasury.dc.html`.
   Every colour, size and duration below is lifted from the canvas verbatim;
   only the responsive rules and the reduced-motion block are additions.
   ========================================================================== */

:root {
  /* Ground */
  --bg:          #0a0807;   /* page */
  --surface:     #100c0a;   /* tiles, rows, ticker, flow panel */
  --tile-on:     #241812;   /* milestone reached */
  --track:       #1a1512;   /* circulation bar track */

  /* Lines */
  --line:        #221c17;   /* hairline / grid gaps */
  --line-warm:   #3a2a1e;   /* warm border on interactive + stages */

  /* Ink, brightest to faintest */
  --ink:         #f4ede4;
  --ink-soft:    #c9beb2;
  --ink-mute:    #8a7c6e;
  --ink-dim:     #6b6058;
  --ink-faint:   #584e46;
  --ink-ghost:   #453d37;

  /* Accent */
  --orange:      #ff6a2b;
  --orange-lit:  #ffb066;
  --orange-soft: #ff9a5a;
  --green:       #3ddc7a;

  /* Type */
  --display: 'Anton', 'Arial Narrow', sans-serif;
  --body:    'Oswald', 'Helvetica Neue', Arial, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Rhythm.
     --wrap is the *content* column, matching the canvas. The canvas ships no
     box-sizing reset, so its `max-width:1100px; padding:0 40px` gives a 1100px
     column inside a 1180px box. This file is border-box, so every container
     adds the padding back via --wrap-box or it would come out 80px narrow. */
  --pad: 40px;
  --wrap: 1100px;
  --wrap-box: calc(var(--wrap) + var(--pad) * 2);
}

/* --------------------------------------------------------------- base --- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-lit); }

img { max-width: 100%; }

h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

::selection { background: var(--orange); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--orange);
  color: var(--bg);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 20px;
}
.skip:focus { left: 0; color: var(--bg); }

/* ---------------------------------------------------------- keyframes --- */

@keyframes marquee       { from { transform: translateX(0); }
                           to   { transform: translateX(-50%); } }

@keyframes awp-float     { 0%, 100% { transform: translateY(0) rotate(-6deg); }
                           50%      { transform: translateY(-18px) rotate(-4deg); } }

@keyframes glow-pulse    { 0%, 100% { opacity: 0.55; transform: scale(1); }
                           50%      { opacity: 0.9;  transform: scale(1.08); } }

@keyframes hero-rifle-in { from { opacity: 0; transform: translateX(60px) rotate(-6deg) scale(0.9); }
                           to   { opacity: 1; transform: translateX(0) rotate(-6deg) scale(1); } }

@keyframes awp-spin-y    { from { transform: rotateY(0deg); }
                           to   { transform: rotateY(360deg); } }

/* ---------------------------------------------------------------- nav --- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px var(--pad);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(10, 8, 7, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 50;
}

.nav__mark {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--ink);
  white-space: nowrap;
}
.nav__mark span { color: var(--orange); }
.nav__mark:hover { color: var(--ink); }

.nav__links {
  display: flex;
  gap: 32px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}
.nav__links a { color: var(--ink-soft); }
.nav__links a:hover { color: var(--orange); }

.nav__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--ink-dim);
  text-transform: uppercase;
  white-space: nowrap;
}
.nav__status .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}

/* Burger — hidden until the links collapse */
.nav__burger {
  display: none;
  width: 38px; height: 38px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav__burger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink-soft);
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

/* ------------------------------------------------------------- ticker --- */

.ticker {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  background: var(--surface);
}
.ticker__track {
  display: inline-block;
  animation: marquee 32s linear infinite;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--ink-mute);
}
.ticker__group { display: inline; }
.ticker__group > span { padding: 0 14px; }

/* --------------------------------------------------------------- hero --- */

.hero {
  padding: 100px var(--pad) 80px;
  max-width: var(--wrap-box);
  margin: 0 auto;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero__rifle {
  position: absolute;
  top: 60px;
  right: -40px;
  width: 520px;
  max-width: 60vw;
  pointer-events: none;
  z-index: -1;
  opacity: 0.85;
  animation: hero-rifle-in 1s cubic-bezier(.2, .8, .2, 1) both;
}
.hero__float {
  position: relative;
  animation: awp-float 5s ease-in-out infinite;
}
.hero__glow {
  position: absolute;
  inset: 10% 10%;
  background: radial-gradient(ellipse at center, rgba(255, 106, 43, 0.45), transparent 70%);
  filter: blur(30px);
  animation: glow-pulse 4s ease-in-out infinite;
}
.hero__rifle img {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-warm);
  border-radius: 999px;
  padding: 6px 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--orange-soft);
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}
.pill span { color: var(--ink-dim); }

.hero h1 {
  font-family: var(--display);
  font-size: clamp(40px, 8.6vw, 88px);
  line-height: 0.95;
  letter-spacing: 0.5px;
  margin: 0 0 28px;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero__lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 40px;
}

.hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.btn {
  font-size: 14px;
  letter-spacing: 0.5px;
  padding: 16px 32px;
  border-radius: 6px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn--solid {
  background: var(--orange);
  color: var(--bg);
  font-weight: 700;
}
.btn--solid:hover { background: var(--orange-lit); color: var(--bg); }
.btn--ghost {
  border: 1px solid var(--line-warm);
  color: var(--ink);
  font-weight: 600;
}
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn--sm {
  display: inline-block;
  font-size: 13px;
  font-weight: 400;
  padding: 12px 22px;
  text-transform: none;
}

.contract {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  flex-wrap: wrap;
  justify-content: center;
  text-transform: uppercase;
}
.contract__addr { color: var(--ink-soft); text-transform: none; }
.contract__copy {
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: inherit;
}
.contract__copy:hover { color: var(--orange-lit); }
.contract__copy.is-done { color: var(--green); }

/* ------------------------------------------------------------ section --- */

.wrap {
  max-width: var(--wrap-box);
  margin: 0 auto;
  padding: 0 var(--pad) 100px;
}
#treasury { padding-bottom: 90px; }

/* No text-transform here: "The Armory" is mixed case in the canvas. Only the
   centred headings are set all-caps, and they get it from .h2--center. */
h2 {
  font-family: var(--display);
  font-size: 38px;
  letter-spacing: 0.5px;
  margin: 0 0 6px;
  font-weight: 400;
}
.h2--center { font-size: 42px; text-align: center; margin: 0 0 60px; text-transform: uppercase; }
.h2--tight  { font-size: 34px; margin: 0 0 10px; }

.section__sub {
  color: var(--ink-mute);
  margin: 0 0 32px;
  font-size: 15px;
}

.note {
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.6;
  margin: 22px 0 0;
}
.note--mono   { font-family: var(--mono); color: var(--ink-dim); margin-top: 16px; }
.note--wide   { max-width: 720px; margin-top: 20px; }
.note--tight  { font-size: 11px; margin-top: 14px; }
.note--center { text-align: center; margin-top: 18px; }

/* --------------------------------------------------------- live stats --- */

.live {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--green);
  text-transform: uppercase;
}
.live__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  flex: none;
}

/* Shared hairline-grid shell: 1px gaps over a --line ground read as borders */
.grid, .hoard {
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  gap: 1px;
}
.grid--stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat { background: var(--surface); padding: 26px 22px; }
.stat__value {
  font-family: var(--mono);
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 700;
  color: var(--ink);
}
.stat__label {
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 6px;
}

/* ------------------------------------------------------------- armory --- */

.hoard { display: flex; flex-direction: column; }

.hoard__row {
  background: var(--surface);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.hoard__item { display: flex; align-items: center; gap: 16px; }

.hoard__chip {
  box-sizing: content-box;   /* canvas has no reset: 44px + 1px border = 46px */
  width: 44px; height: 44px;
  flex: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #2a1912, #1a1210);
  border: 1px solid var(--line-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hoard__chip img {
  width: 130%;
  max-width: 130%;
  height: auto;
  transform: rotate(-6deg);
}

.hoard__name { font-weight: 600; font-size: 15px; color: var(--ink); }
.hoard__meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 3px;
}

.hoard__side { display: flex; align-items: center; gap: 18px; }
.hoard__time, .hoard__details {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hoard__time { color: var(--ink-dim); }
.hoard__details { color: var(--orange); }
.hoard__details:hover { color: var(--orange-lit); }

/* -------------------------------------------------------- how it works --- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 70px;
}
.step__idx {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--orange);
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.step h3 { font-size: 22px; margin: 0 0 12px; font-weight: 500; }
.step p  { color: var(--ink-mute); font-size: 15px; line-height: 1.6; }

.flow {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 36px;
  background: var(--surface);
}
.flow__title {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-mute);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 22px;
}
.flow__chain {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
}
.flow__chain li { color: var(--ink); }
.flow__chain li.is-end { color: var(--orange); }
/* The arrows are generated, not content — they must not reach the a11y tree */
.flow__chain li + li::before {
  content: '\2192';
  color: var(--ink-faint);
  margin-right: 14px;
}

.quote {
  text-align: center;
  font-family: var(--display);
  font-size: 26px;
  color: var(--orange-soft);
  margin: 70px 0 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-wrap: balance;
}

/* ----------------------------------------------------------- the skin --- */

.skin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.skin__stage {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background: linear-gradient(135deg, #1a1210, #241812);
  border: 1px solid var(--line-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  perspective: 900px;
}
.skin__glow {
  position: absolute;
  inset: 15%;
  background: radial-gradient(ellipse at center, rgba(255, 106, 43, 0.35), transparent 70%);
  filter: blur(24px);
  animation: glow-pulse 4s ease-in-out infinite;
}
.skin__stage img {
  position: relative;
  width: 85%;
  height: auto;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.6));
  animation: awp-spin-y 6s linear infinite;
  transform-style: preserve-3d;
}

.skin__name { font-size: 26px; font-weight: 600; margin: 0 0 6px; }
.skin__class {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  margin: 0 0 26px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
  font-family: var(--mono);
}
.specs dt {
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 1px;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.specs dd { font-size: 18px; margin: 0; }
.specs dd.is-hot { color: var(--orange); }

.skin__actions { margin: 30px 0 0; }

/* --------------------------------------------------------- milestones --- */

.answer {
  text-align: center;
  color: var(--orange-soft);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 1px;
  margin: 0 0 36px;
  text-transform: uppercase;
}

.miles {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 8px;
  font-family: var(--mono);
}
.miles__tile {
  text-align: center;
  padding: 16px 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 20px;
  font-weight: 700;
}
.miles__tile.is-reached { background: var(--tile-on); }

.circ { margin-top: 60px; }
.circ__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.circ__track {
  height: 10px;
  border-radius: 999px;
  background: var(--track);
  overflow: hidden;
}
.circ__fill {
  height: 100%;
  width: 0.12%;
  min-width: 6px;
  background: linear-gradient(90deg, var(--orange), var(--orange-lit));
  border-radius: 999px;
}

/* ------------------------------------------------------------- footer --- */

.foot {
  border-top: 1px solid var(--line);
  padding: 50px var(--pad) 36px;
}
.foot__inner { max-width: var(--wrap); margin: 0 auto; }

.foot__top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.foot__mark { font-family: var(--display); font-size: 20px; letter-spacing: 0.5px; }
.foot__mark span { color: var(--orange); }

.foot__links { display: flex; gap: 28px; font-size: 13px; flex-wrap: wrap; }
.foot__links a { color: var(--ink-mute); }
.foot__links a:hover { color: var(--orange); }

.foot__legal {
  font-size: 11.5px;
  color: var(--ink-faint);
  line-height: 1.7;
  margin: 0 0 20px;
  max-width: 900px;
}
.foot__sign {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-ghost);
  text-transform: uppercase;
}

/* ------------------------------------------------ pre-launch state --- */
/* Everything below exists only while there is no real data to show. When the
   figures and the CA land, delete this block and the `is-pending` /
   `--empty` / `--pending` hooks in index.html. Nothing else depends on it. */

.is-pending { color: var(--ink-dim) !important; }

/* No green "LIVE" pulse while the armory is empty — it would assert a feed */
.live--pending { color: var(--ink-mute); }
.live--pending .live__dot { background: var(--ink-dim); box-shadow: none; }

.hoard__row--empty {
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
}
.hoard__chip--ghost {
  box-sizing: content-box;
  width: 44px; height: 44px;
  flex: none;
  border: 1px dashed var(--line-warm);
  border-radius: 8px;
}
.hoard__pending {
  color: var(--ink-mute);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  max-width: 64ch;
}

.circ__fill--empty { width: 0; min-width: 0; }

/* ------------------------------------------------------------ reveals --- */
/* Scoped to .js so the page is fully readable if the script never runs. */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2, .8, .2, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* -------------------------------------------------------- responsive --- */

@media (max-width: 1000px) {
  /* Dim on the <img>, not .hero__rifle: that element's `hero-rifle-in … both`
     leaves the keyframe's opacity:1 in force and would swallow this. */
  .hero__rifle { top: 40px; right: -70px; }
  .hero__rifle img { opacity: 0.55; }
  .skin { gap: 32px; }
}

@media (max-width: 900px) {
  .skin { grid-template-columns: 1fr; }
  .skin__stage { max-width: 520px; width: 100%; }
}

@media (max-width: 860px) {
  :root { --pad: 24px; }

  .nav { flex-wrap: wrap; }
  .nav__status { order: 3; font-size: 10px; }
  .nav__burger { display: flex; }

  .nav__links {
    order: 4;
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav__links a:last-child { border-bottom: 0; }

  .hero { padding-top: 72px; }
  .hero__lede { font-size: 17px; }

  .steps { grid-template-columns: 1fr; gap: 28px; margin-bottom: 48px; }
  .h2--center { margin-bottom: 40px; }
  .flow { padding: 26px; }
  .quote { margin-top: 48px; font-size: 22px; }
  .circ { margin-top: 44px; }
  .circ__head { flex-direction: column; gap: 4px; }
}

@media (max-width: 820px) {
  .grid--stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .miles { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 640px) {
  .hero__rifle { top: 24px; right: -90px; }
  .hero__rifle img { opacity: 0.38; }
  .hero { padding-bottom: 56px; }

  .hoard__row { align-items: flex-start; gap: 14px; }
  .hoard__side { width: 100%; justify-content: space-between; }

  .specs { gap: 18px 24px; }
  .skin__stage { aspect-ratio: 4 / 3; }
}

@media (max-width: 480px) {
  :root { --pad: 20px; }

  .wrap, #treasury { padding-bottom: 72px; }
  .stat { padding: 20px 16px; }
  .hoard__row { padding: 16px; }
  .btn { padding: 14px 24px; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
}

@media (max-width: 440px) {
  .miles { grid-template-columns: repeat(3, 1fr); }
  .specs { grid-template-columns: 1fr; }
}

/* --------------------------------------------------- reduced motion --- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .ticker__track,
  .hero__rifle,
  .hero__float,
  .hero__glow,
  .skin__glow,
  .skin__stage img {
    animation: none !important;
  }

  /* The float/rifle-in keyframes carry the rifle's resting rotation — keep it */
  .hero__float { transform: rotate(-6deg); }
  .hero__glow, .skin__glow { opacity: 0.7; }

  .js .reveal { opacity: 1; transform: none; transition: none; }

  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
