:root {
  --ink: #080a10;
  --ink-2: #111521;
  --paper: #e9e3d8;
  --steel: #c8c2b5;
  --gold: #f3b93e;
  --gold-hot: #fff0a8;
  --ember: #ff7a18;
  --muted: #8f98aa;
  --line: rgba(243,185,62,.25);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 80% 8%, rgba(86,116,173,.16), transparent 25rem),
    radial-gradient(circle at 12% 40%, rgba(243,185,62,.09), transparent 24rem),
    var(--ink);
  font-family: "Marcellus", Georgia, serif;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
  z-index: -3;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 30;
  opacity: .12;
  pointer-events: none;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");
}
#embers { position: fixed; inset: 0; pointer-events: none; z-index: -1; }

.topbar {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 28px));
  padding: 10px 14px 10px 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(9,11,17,.72);
  backdrop-filter: blur(18px) saturate(130%);
  box-shadow: 0 10px 40px rgba(0,0,0,.28);
  border-radius: 999px;
}
.sigil { display: inline-flex; gap: 10px; align-items: center; font-family: "Cinzel Decorative", serif; font-weight: 900; letter-spacing: .02em; }
.sigil-mark { color: var(--gold); filter: drop-shadow(0 0 7px rgba(243,185,62,.6)); }
.nav { display: flex; gap: 8px; }
.nav a { padding: 9px 12px; font-size: 13px; color: #c7cbd2; border-radius: 999px; transition: .2s ease; }
.nav a:hover { color: white; background: rgba(255,255,255,.06); }
.socials { display: flex; justify-content: flex-end; gap: 6px; }
.icon-link { width: 38px; height: 38px; display: grid; place-items: center; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.07); border-radius: 50%; transition: .2s ease; }
.icon-link:hover { transform: translateY(-2px); border-color: rgba(243,185,62,.45); box-shadow: 0 0 22px rgba(243,185,62,.15); }
.icon-link img { width: 19px; height: 19px; object-fit: contain; border-radius: 4px; }

.section-shell { width: min(1180px, calc(100% - 38px)); margin: 0 auto; }
.hero { min-height: 100svh; padding: 132px 0 80px; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 74px); align-items: center; }
.hero-art-wrap { position: relative; min-width: 0; }
.hero-art { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 42% 42% 46% 46% / 28% 28% 58% 58%; box-shadow: 0 45px 100px rgba(0,0,0,.45); filter: saturate(.92) contrast(1.03); }
.hero-art-wrap::after { content: ""; position: absolute; inset: -1px; border: 1px solid rgba(255,222,137,.28); border-radius: 42% 42% 46% 46% / 28% 28% 58% 58%; pointer-events: none; }
.halo { position: absolute; inset: 12% 0 4% 8%; background: radial-gradient(circle, rgba(255,211,85,.28), transparent 62%); filter: blur(35px); z-index: -1; animation: breathe 4s ease-in-out infinite; }
.blade-line { position: absolute; width: 3px; height: 88%; left: 32.2%; top: -2%; background: linear-gradient(transparent, #fff7cc 15%, #ffc44a 55%, transparent); box-shadow: 0 0 14px #fff6cc, 0 0 35px #ffc64f; opacity: .55; transform: rotate(-1.1deg); mix-blend-mode: screen; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .72; } }

.eyebrow { color: var(--gold); font-size: 12px; letter-spacing: .26em; font-weight: 700; margin: 0 0 18px; }
.hero h1, h2, h3 { font-family: "Cinzel Decorative", Georgia, serif; }
.hero h1 { margin: 0; font-size: clamp(54px, 8vw, 110px); line-height: .82; letter-spacing: -.055em; }
.hero h1 span, .hero h1 strong { display: block; }
.hero h1 span { color: #f5f0e7; text-shadow: 0 5px 24px rgba(255,255,255,.07); }
.hero h1 strong { color: transparent; -webkit-text-stroke: 1px var(--gold); text-shadow: 0 0 32px rgba(243,185,62,.22); }
.hero-lede { font-size: clamp(22px, 2vw, 31px); margin: 30px 0 10px; color: white; }
.hero-text { color: #aab1bf; font-size: 17px; line-height: 1.75; max-width: 620px; }

.ca-card {
  width: min(100%, 540px);
  margin: 18px 0 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(243,185,62,.35);
  background: linear-gradient(120deg, rgba(243,185,62,.10), rgba(255,255,255,.03));
  color: white;
  cursor: pointer;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 12px 50px rgba(0,0,0,.18);
}
.ca-card:hover { border-color: rgba(255,226,144,.78); box-shadow: 0 0 30px rgba(243,185,62,.12); }
.ca-label { font-size: 11px; letter-spacing: .2em; color: var(--gold); }
.ca-card code { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 700 15px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.copy-hint { color: #8991a0; font-size: 11px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid transparent; font-family: inherit; font-weight: 700; letter-spacing: .02em; cursor: pointer; transition: .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { color: #241600; background: linear-gradient(135deg, #fff0a3, #e8a728 56%, #ffcf5e); box-shadow: 0 9px 28px rgba(243,185,62,.20); }
.btn-ghost { color: #dde0e5; border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.035); }

.rune-divider { width: min(1180px, calc(100% - 38px)); margin: 0 auto; display: flex; align-items: center; gap: 15px; color: #7f6b44; font-size: 10px; letter-spacing: .25em; }
.rune-divider i { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.rune-divider span { color: var(--gold); }

.legend { padding: 150px 0 140px; display: grid; grid-template-columns: .23fr 1.22fr .55fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.chapter-no { font-family: "Cinzel Decorative", serif; font-size: clamp(90px, 12vw, 170px); line-height: .8; color: rgba(243,185,62,.07); -webkit-text-stroke: 1px rgba(243,185,62,.18); }
.legend h2, .buy h2, .oath h2 { font-size: clamp(34px, 4.5vw, 62px); line-height: 1.06; margin: 0 0 28px; letter-spacing: -.04em; }
.legend-copy p:not(.eyebrow) { color: #b5bac4; font-size: 18px; line-height: 1.84; margin: 0 0 18px; }
.legend-copy em { color: #f0ddb3; }
.legend-copy strong { color: white; font-weight: 400; border-bottom: 1px solid rgba(243,185,62,.55); }
.legend-card { padding: 24px; background: linear-gradient(160deg, rgba(255,255,255,.065), rgba(255,255,255,.015)); border: 1px solid rgba(255,255,255,.09); border-radius: 20px; box-shadow: 0 25px 80px rgba(0,0,0,.26); display: grid; gap: 7px; position: sticky; top: 110px; }
.legend-card::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(243,185,62,.10); border-radius: 14px; pointer-events: none; }
.crest { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid rgba(243,185,62,.35); border-radius: 50%; color: var(--gold); font-size: 25px; margin-bottom: 20px; box-shadow: inset 0 0 25px rgba(243,185,62,.08); }
.legend-card span { color: #737c8c; font-size: 10px; letter-spacing: .22em; margin-top: 11px; }
.legend-card strong { font-size: 18px; font-weight: 400; }

.manifesto { padding: 30px 18px 130px; }
.manifesto-inner { width: min(1080px, 100%); margin: 0 auto; padding: clamp(42px, 6vw, 85px); border: 1px solid rgba(243,185,62,.21); background: radial-gradient(circle at 50% 0, rgba(243,185,62,.11), transparent 56%), rgba(255,255,255,.018); text-align: center; clip-path: polygon(3% 0, 97% 0, 100% 10%, 100% 90%, 97% 100%, 3% 100%, 0 90%, 0 10%); }
.manifesto blockquote { margin: 0; font-family: "Cinzel Decorative", serif; font-size: clamp(28px, 4.1vw, 58px); line-height: 1.18; color: #f0ece4; }

.buy { padding: 120px 0 150px; }
.section-heading { display: grid; grid-template-columns: .6fr 1fr; align-items: end; gap: 40px; margin-bottom: 48px; }
.section-heading .eyebrow { align-self: start; padding-top: 14px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.11); border-bottom: 1px solid rgba(255,255,255,.11); }
.step { padding: 30px 26px 36px; min-height: 280px; border-right: 1px solid rgba(255,255,255,.09); transition: .25s ease; position: relative; overflow: hidden; }
.step:last-child { border-right: 0; }
.step::after { content: ""; position: absolute; width: 90px; height: 90px; right: -45px; bottom: -45px; border: 1px solid rgba(243,185,62,.17); transform: rotate(45deg); transition: .25s ease; }
.step:hover { background: rgba(243,185,62,.035); transform: translateY(-5px); }
.step:hover::after { transform: rotate(45deg) scale(1.25); }
.step-index { color: var(--gold); font: 700 12px/1 ui-monospace, monospace; }
.step h3 { font-size: 19px; margin: 70px 0 16px; }
.step p { color: #9da5b3; line-height: 1.65; }
.buy-links { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.buy-links a { display: flex; align-items: center; gap: 10px; padding: 12px 15px; border: 1px solid rgba(255,255,255,.10); border-radius: 12px; background: rgba(255,255,255,.03); transition: .2s ease; }
.buy-links a:hover { border-color: rgba(243,185,62,.38); transform: translateY(-2px); }
.buy-links img { width: 22px; height: 22px; object-fit: contain; border-radius: 5px; }
.risk-note { color: #687181; max-width: 780px; font-size: 12px; line-height: 1.6; margin-top: 20px; }

.oath { padding: 0 0 150px; }
.oath-box { position: relative; overflow: hidden; padding: clamp(45px, 7vw, 88px); border-radius: 28px; border: 1px solid rgba(255,255,255,.08); background: linear-gradient(135deg, rgba(20,26,39,.95), rgba(8,10,16,.95)); }
.oath-box::before { content: "⚔"; position: absolute; right: -2%; bottom: -34%; font-size: clamp(190px, 32vw, 460px); color: rgba(243,185,62,.045); transform: rotate(-10deg); }
.oath-box p:not(.eyebrow) { color: #9da5b3; font-size: 17px; margin: 0 0 26px; }
.oath-box .btn { position: relative; z-index: 1; }

footer { text-align: center; padding: 0 20px 50px; color: #697180; }
.footer-sigil { width: 50px; height: 50px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(243,185,62,.2); color: var(--gold); }
footer p { margin: 6px 0; }
footer span { color: #a98a4f; }
.footer-small { font-size: 11px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 50; background: #f4e2b5; color: #18120a; padding: 11px 16px; border-radius: 999px; font-weight: 700; box-shadow: 0 10px 35px rgba(0,0,0,.35); transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 110px; }
  .hero-art-wrap { max-width: 680px; margin: 0 auto; }
  .hero-copy { text-align: center; }
  .hero-text, .ca-card { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .legend { grid-template-columns: 1fr; padding: 100px 0; }
  .chapter-no { position: absolute; opacity: .65; }
  .legend-copy { position: relative; z-index: 1; }
  .legend-card { position: relative; top: auto; max-width: 520px; }
  .section-heading { grid-template-columns: 1fr; gap: 6px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.09); }
}

@media (max-width: 560px) {
  .topbar { top: 10px; width: calc(100% - 18px); }
  .sigil span:last-child { display: none; }
  .socials { gap: 3px; }
  .icon-link { width: 35px; height: 35px; }
  .section-shell { width: min(100% - 26px, 1180px); }
  .hero { padding-bottom: 62px; }
  .hero-art { border-radius: 34% 34% 40% 40% / 20% 20% 48% 48%; }
  .hero h1 { font-size: clamp(52px, 19vw, 82px); }
  .ca-card { grid-template-columns: auto 1fr; }
  .copy-hint { display: none; }
  .rune-divider b { font-size: 8px; text-align: center; }
  .steps { grid-template-columns: 1fr; }
  .step, .step:nth-child(2) { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.09); min-height: 230px; }
  .step:last-child { border-bottom: 0; }
  .step h3 { margin-top: 48px; }
  .manifesto { padding-bottom: 80px; }
  .manifesto-inner { clip-path: polygon(5% 0, 95% 0, 100% 7%, 100% 93%, 95% 100%, 5% 100%, 0 93%, 0 7%); }
  .buy { padding: 90px 0 110px; }
  .oath { padding-bottom: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
