@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Eczar:wght@500;600;700;800&family=Rye&display=swap");

:root {
  --ink: #1d271d;
  --paper: #e9e4d6;
  --moss: #23472e;
  --field: #7aae43;
  --fern: #47772e;
  --orange: #eb5b1b;
  --gold: #dda337;
  --cream: #f8f4ea;
  --line: rgba(29, 39, 29, 0.35);
  --display: "Rye", Georgia, serif;
  --serif: "Eczar", Georgia, serif;
  --mono: "DM Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.page-noise {
  position: fixed;
  z-index: 20;
  pointer-events: none;
  inset: 0;
  opacity: 0.075;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(29, 39, 29, 0.15);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(15px);
}
.brand { display: inline-flex; align-items: center; gap: 9px; width: max-content; font-family: var(--display); line-height: .78; font-size: 14px; letter-spacing: .04em; }
.brand img { width: 49px; height: 49px; object-fit: contain; }
.main-nav { display: flex; gap: clamp(15px, 3vw, 42px); font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.main-nav a { position: relative; padding: 8px 0; opacity: .62; transition: opacity .2s ease; }
.main-nav a:hover, .main-nav a.active { opacity: 1; }
.main-nav a.active::after { content: ""; position: absolute; height: 2px; width: 100%; bottom: 1px; left: 0; background: var(--orange); }
.header-buy { justify-self: end; display: flex; align-items: center; gap: 8px; padding: 9px 13px 9px 10px; border: 1.5px solid var(--ink); background: var(--orange); color: var(--cream); box-shadow: 3px 3px 0 var(--ink); font: 500 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; transition: transform .2s, box-shadow .2s; }
.header-buy:hover { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.header-buy img { width: 20px; height: 20px; object-fit: contain; }

.section-shell { min-height: 100svh; padding-left: clamp(24px, 10vw, 150px); padding-right: clamp(24px, 10vw, 150px); }
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(280px, .82fr) minmax(460px, 1.18fr); align-items: center; padding-top: 112px; overflow: hidden; }
.hero::before { content: ""; position: absolute; z-index: -2; inset: 0 0 0 48%; background: #d4cfbf; }
.hero::after { content: ""; position: absolute; z-index: -1; width: 55vw; height: 55vw; max-width: 860px; max-height: 860px; right: -11vw; bottom: -19vw; border: 1px solid rgba(29,39,29,.13); border-radius: 50%; box-shadow: 0 0 0 50px rgba(29,39,29,.045), 0 0 0 100px rgba(29,39,29,.035); }
.hero-copy { max-width: 450px; padding: 58px 0 75px; animation: fade-rise .7s .1s both; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 21px; color: var(--orange); font: 500 10px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { width: 30px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 19px; font: 400 clamp(46px, 5.8vw, 88px)/.91 var(--display); letter-spacing: -.045em; }
.hero-description { max-width: 350px; margin-bottom: 28px; font-size: 17px; line-height: 1.45; }
.quest-links { display: grid; gap: 8px; width: min(100%, 340px); }
.quest-button { display: grid; grid-template-columns: 30px 1fr 18px; gap: 11px; align-items: center; min-height: 52px; padding: 7px 14px 7px 9px; border: 1.5px solid var(--ink); background: rgba(248,244,234,.42); box-shadow: 3px 3px 0 var(--ink); font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.quest-button:hover { color: var(--cream); background: var(--moss); transform: translate(3px,3px); box-shadow: 0 0 0 var(--ink); }
.quest-button.is-disabled, .header-buy.is-disabled { cursor: not-allowed; opacity: .48; filter: grayscale(.35); }
.quest-button.is-disabled:hover, .header-buy.is-disabled:hover { color: inherit; background: rgba(248,244,234,.42); transform: none; box-shadow: 3px 3px 0 var(--ink); }
.buy-button.is-disabled:hover, .header-buy.is-disabled:hover { background: var(--orange); color: var(--cream); }
.screener-button.is-disabled:hover { background: #d8c976; color: var(--ink); }
.telegram-button.is-disabled:hover { background: #8baec1; color: var(--ink); }
.quest-button img { width: 29px; height: 29px; object-fit: contain; }
.quest-button svg { width: 20px; height: 20px; justify-self: center; fill: currentColor; }
.quest-button b { font-size: 18px; font-weight: 400; text-align: right; }
.buy-button { background: var(--orange); color: var(--cream); }
.screener-button { background: #d8c976; }
.telegram-button { background: #8baec1; }

.hero-art { position: relative; align-self: end; min-height: min(770px, calc(100svh - 88px)); animation: art-enter .9s .15s both; }
.hero-image-frame { position: absolute; z-index: 1; right: 4%; bottom: 50%; width: min(47vw, 660px); height: min(76vh, 720px); overflow: hidden; transform: translateY(50%); }
.hero-image-frame::after { content: ""; position: absolute; pointer-events: none; inset: 0; background: linear-gradient(180deg, transparent 66%, rgba(55,72,33,.26)); mix-blend-mode: multiply; }
.hero-image-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 39%; filter: saturate(.96) contrast(1.04); }
.burst { position: absolute; z-index: 2; top: 14%; right: 0; color: var(--orange); font: 400 clamp(26px, 3vw, 46px)/.8 var(--display); text-align: right; transform: rotate(10deg); opacity: .96; }
.character-note { position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px; right: 7%; bottom: 26px; margin: 0; font: 500 9px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.character-note i { display: block; width: 19px; height: 19px; border-radius: 50%; border: 1px solid var(--ink); background: var(--field); }
.contract-card { position: absolute; z-index: 4; right: clamp(24px, 6vw, 105px); top: 126px; width: 184px; padding: 13px 14px 15px; border: 1.5px solid var(--ink); background: var(--cream); box-shadow: 4px 4px 0 var(--ink); transform: rotate(3deg); animation: fade-rise .7s .55s both; }
.contract-card > span, .contract-line span { display: block; color: #65715e; font: 500 9px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .09em; }
.contract-card strong { display: block; margin: 5px 0 11px; font: 700 28px/.8 var(--serif); }
.contract-line { padding-top: 10px; border-top: 1px dashed var(--line); }
.copy-contract { display: flex; gap: 7px; align-items: center; width: 100%; padding: 5px 0 0; border: 0; background: none; cursor: pointer; color: var(--ink); text-align: left; }
.copy-contract:disabled { cursor: not-allowed; opacity: .65; }
.copy-contract code { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 500 10px/1.4 var(--mono); }
.copy-contract svg { flex: 0 0 auto; width: 16px; height: 16px; fill: var(--orange); }
.scroll-cue { position: absolute; bottom: 28px; left: clamp(24px, 4vw, 64px); display: flex; align-items: center; gap: 8px; font: 500 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; writing-mode: vertical-rl; }
.scroll-cue span { width: 1px; height: 34px; background: var(--ink); }

.roadmap { position: relative; display: grid; grid-template-columns: minmax(240px, .7fr) minmax(430px, 1.3fr); gap: clamp(50px, 9vw, 150px); align-items: center; padding-top: 104px; padding-bottom: 75px; background: var(--moss); color: var(--cream); overflow: hidden; }
.roadmap::after { content: ""; position: absolute; right: -130px; top: -120px; width: 470px; height: 470px; border-radius: 50%; border: 1px solid rgba(248,244,234,.15); box-shadow: 0 0 0 40px rgba(248,244,234,.045), 0 0 0 80px rgba(248,244,234,.035); }
.section-intro { position: relative; z-index: 1; }
.section-intro .eyebrow { color: #e6ac42; }
h2 { margin-bottom: 20px; font: 400 clamp(45px, 5vw, 73px)/.88 var(--display); letter-spacing: -.05em; }
h2 em { color: #a8cf61; font-style: normal; }
.section-intro > p:last-child { max-width: 330px; font-size: 17px; line-height: 1.5; color: #d4dec6; }
.roadmap-list { position: relative; z-index: 1; display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; border: 1px solid rgba(248,244,234,.3); background: rgba(248,244,234,.3); }
.roadmap-item { display: grid; grid-template-columns: 64px 1fr 28px; gap: 17px; align-items: center; min-height: 150px; padding: 24px clamp(18px, 3vw, 37px); background: #285437; transition: background .25s, transform .25s; }
.roadmap-item:hover { background: #326542; transform: translateX(-7px); }
.roadmap-item.current { background: #d9a33a; color: var(--ink); }
.roadmap-item.complete { background: #20472e; }
.stage-number { font: 400 44px/.8 var(--display); color: #a8cf61; }
.current .stage-number { color: var(--orange); }
.stage-status { margin: 0 0 5px; color: #b5c4a6; font: 500 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.current .stage-status { color: #7e4322; }
.roadmap-item h3 { margin-bottom: 7px; font: 600 25px/.95 var(--serif); }
.roadmap-item div > p:last-child { margin: 0; max-width: 490px; font-size: 14px; line-height: 1.35; color: #d5dfc9; }
.current div > p:last-child { color: #3d482b; }
.stage-mark { justify-self: end; font: 400 24px/1 var(--serif); color: var(--orange); }
.current .stage-mark { color: var(--ink); }

.chart { padding-top: 105px; padding-bottom: 98px; min-height: auto; background: #d1c7ae; }
.chart-heading { display: flex; justify-content: space-between; gap: 34px; align-items: end; margin-bottom: 42px; }
.chart .eyebrow { color: var(--orange); }
.chart h2 { margin-bottom: 0; }
.chart h2 em { color: var(--orange); }
.chart-heading > p { width: 255px; margin: 0 0 3px; font-size: 16px; line-height: 1.45; }
.chart-window { overflow: hidden; border: 2px solid var(--ink); box-shadow: 9px 9px 0 var(--ink); background: var(--ink); }
.window-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 42px; padding: 0 14px; background: var(--cream); font: 500 9px/1 var(--mono); letter-spacing: .1em; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); border: 1px solid var(--ink); }
.window-dots i:nth-child(2) { background: var(--gold); }
.window-dots i:nth-child(3) { background: var(--field); }
.window-bar a { justify-self: end; color: var(--orange); text-transform: uppercase; }
.embed-area { position: relative; height: min(65vh, 620px); min-height: 390px; background: #131b15; }
.embed-area iframe { position: relative; z-index: 1; display: none; width: 100%; height: 100%; border: 0; }
.embed-area.has-chart iframe { display: block; }
.embed-area.has-chart .chart-empty { display: none; }
.chart-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; padding: 25px; text-align: center; color: var(--cream); }
.chart-empty img { width: 65px; height: 65px; object-fit: contain; margin-bottom: 12px; }
.chart-empty p { margin: 0 0 6px; font: 600 25px/1 var(--serif); }
.chart-empty small { color: #acb5a3; font: 400 10px/1.4 var(--mono); }
.chart-empty code { color: #e4ae48; }

footer { display: flex; justify-content: space-between; align-items: center; gap: 22px; padding: 22px clamp(24px, 4vw, 64px); border-top: 1px solid var(--line); background: var(--paper); font: 500 10px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.footer-brand img { width: 30px; height: 30px; }
footer p { margin: 0; opacity: .65; }
footer > a:last-child { color: var(--orange); }

@keyframes fade-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes art-enter { from { opacity: 0; transform: translateY(35px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 860px) {
  .site-header { height: 73px; grid-template-columns: 1fr auto; padding: 9px 18px; }
  .brand img { width: 42px; height: 42px; }
  .main-nav { display: none; }
  .header-buy { padding: 8px 10px; }
  .header-buy span { display: none; }
  .section-shell { padding-left: 24px; padding-right: 24px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; padding-top: 72px; }
  .hero::before { inset: 48% 0 0; }
  .hero-copy { padding: 78px 0 39px; }
  h1 { font-size: clamp(50px, 14vw, 76px); }
  .contract-card { position: relative; top: auto; right: auto; width: min(184px, 70%); margin: -8px 0 18px auto; }
  .hero-art { min-height: 590px; width: calc(100% + 48px); margin-left: -24px; }
  .hero-image-frame { width: min(94vw, 610px); height: 535px; right: 50%; bottom: 50%; transform: translate(50%, 50%); }
  .burst { top: 9%; right: 9%; font-size: 32px; }
  .character-note { right: 9%; bottom: 12px; }
  .scroll-cue { display: none; }
  .roadmap { grid-template-columns: 1fr; gap: 28px; padding-top: 80px; padding-bottom: 80px; }
  .section-intro > p:last-child { max-width: 500px; }
  .roadmap-item { min-height: 128px; grid-template-columns: 45px 1fr 20px; gap: 12px; padding: 20px; }
  .stage-number { font-size: 34px; }
  .roadmap-item h3 { font-size: 22px; }
  .chart { padding-top: 79px; padding-bottom: 76px; }
  .chart-heading { display: block; margin-bottom: 32px; }
  .chart-heading > p { width: auto; max-width: 360px; margin-top: 20px; }
  .embed-area { height: 500px; min-height: 0; }
}

@media (max-width: 480px) {
  .brand span { font-size: 12px; }
  .hero-copy { padding-top: 72px; }
  .hero-description { font-size: 16px; }
  .quest-links { width: 100%; }
  .hero-art { min-height: 480px; }
  .hero-image-frame { height: 450px; }
  .contract-card { margin-top: -5px; }
  h2 { font-size: 48px; }
  .roadmap-item { grid-template-columns: 36px 1fr; }
  .stage-mark { display: none; }
  .window-bar { grid-template-columns: 1fr auto; }
  .window-bar > span { display: none; }
  .embed-area { height: 420px; }
  footer { flex-wrap: wrap; }
  footer p { order: 3; width: 100%; }
}
