:root {
  --ink: #0a0a0a;
  --paper: #f4f0e7;
  --paper-2: #e9e2d3;
  --red: #e5402b;
  --green: #177854;
  --gold: #f1b93f;
  --purple: #8b5cf6;
  --line: rgba(10, 10, 10, 0.16);
  --muted: #64605a;
  --white: #fffdf8;
  --radius: 22px;
  --shadow: 0 22px 70px rgba(10, 10, 10, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; overflow-x: hidden; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { color: inherit; }

.page-grid { position: fixed; inset: 0; z-index: -1; opacity: .35; pointer-events: none; background-image: linear-gradient(rgba(10,10,10,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(10,10,10,.045) 1px, transparent 1px); background-size: 48px 48px; }
.section-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; padding: 12px max(20px, calc((100vw - 1180px) / 2)); background: rgba(244,240,231,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; }
.brand-seal { display: grid; place-items: center; width: 43px; aspect-ratio: 1; background: var(--ink); color: var(--paper); border-radius: 5px; font-weight: 950; letter-spacing: -.06em; transform: rotate(-3deg); }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: .88rem; letter-spacing: .06em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: .62rem; letter-spacing: .12em; }
.desktop-nav { display: flex; align-items: center; gap: 28px; font-size: .86rem; font-weight: 750; }
.desktop-nav a { position: relative; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--red); transition: right .2s ease; }
.desktop-nav a:hover::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button { border: 1px solid var(--line); background: transparent; border-radius: 999px; width: 42px; height: 42px; cursor: pointer; font-weight: 900; }
.music-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font-size: .75rem; font-weight: 900; transition: background .18s ease, color .18s ease, transform .18s ease; }
.music-toggle:hover { transform: translateY(-1px); }
.music-toggle.active { color: var(--white); border-color: var(--green); background: var(--green); }
.music-icon { display: inline-grid; place-items: center; width: 18px; font-size: 1rem; line-height: 1; }
.music-toggle.active .music-icon { animation: musicPulse 1.1s ease-in-out infinite alternate; }
@keyframes musicPulse { from { transform: rotate(-8deg) scale(.95); } to { transform: rotate(8deg) scale(1.12); } }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 999px; font-size: .9rem; font-weight: 850; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.button-small { min-height: 42px; padding: 0 17px; font-size: .78rem; }
.button-primary { background: var(--ink); color: var(--white); box-shadow: 5px 5px 0 var(--red); }
.button-primary:hover { box-shadow: 8px 8px 0 var(--red); }
.button-outline, .button-ghost { background: transparent; }
.button-light { background: var(--white); color: var(--ink); }
.button-sol { color: #fff; border-color: #7242dd; background: linear-gradient(120deg, #8b5cf6, #5b9cff); box-shadow: 5px 5px 0 #1fbf98; }
.button-wide { width: 100%; }
.text-button { padding: 0; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font-weight: 800; }
.centered { display: block; margin: 4px auto 0; }

.hero { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 72px; min-height: calc(100vh - 78px); padding-top: 72px; padding-bottom: 88px; }
.eyebrow { margin: 0 0 18px; font-size: .72rem; font-weight: 950; letter-spacing: .15em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: #38c978; box-shadow: 0 0 0 5px rgba(56,201,120,.14); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-weight: 900; text-transform: uppercase; line-height: .89; letter-spacing: -.035em; }
h1 { margin-bottom: 24px; font-size: clamp(4.6rem, 8.8vw, 9.3rem); }
h1 em, h2 em { color: var(--red); font-style: normal; }
.hero-lead { max-width: 640px; color: #35322e; font-size: clamp(1.05rem, 1.6vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin: 31px 0 35px; }
.trust-line { display: flex; flex-wrap: wrap; gap: 36px; border-top: 1px solid var(--line); padding-top: 23px; }
.trust-line span { display: grid; }
.trust-line b { font-size: 1.05rem; }
.trust-line small { color: var(--muted); font-size: .72rem; }
.hero-visual { position: relative; min-height: 630px; }
.art-card { position: absolute; overflow: hidden; border: 8px solid var(--ink); background: var(--ink); box-shadow: var(--shadow); }
.art-card img { width: 100%; aspect-ratio: 1; object-fit: cover; image-rendering: pixelated; }
.art-card-back { top: 8%; left: 2%; width: 72%; transform: rotate(-8deg); opacity: .82; }
.art-card-front { right: 0; bottom: 4%; width: 77%; transform: rotate(4deg); }
.art-card-front span { display: block; padding: 10px 14px 6px; color: var(--paper); font-weight: 900; letter-spacing: .1em; }
.supply-stamp { position: absolute; top: 5%; right: 2%; z-index: 3; display: grid; place-items: center; width: 142px; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--ink); background: var(--gold); transform: rotate(8deg); box-shadow: 7px 7px 0 var(--ink); text-align: center; }
.supply-stamp strong { display: block; font-size: 2.15rem; line-height: 1; }
.supply-stamp span { font-size: .68rem; font-weight: 950; letter-spacing: .1em; }

.mint-section { padding: 110px 0; background: var(--ink); color: var(--paper); }
.mint-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 76px; align-items: start; }
h2 { margin-bottom: 26px; font-size: clamp(3.2rem, 6.7vw, 7rem); }
.mint-intro > p:not(.eyebrow) { color: #c8c1b4; font-size: 1.05rem; }
.contract-chip { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 34px; padding: 17px 18px; border: 1px solid rgba(255,255,255,.17); border-radius: 14px; background: rgba(255,255,255,.055); }
.contract-chip div { min-width: 0; display: grid; gap: 5px; }
.contract-chip small { color: #a9a397; font-size: .65rem; letter-spacing: .13em; }
.contract-chip code { overflow: hidden; text-overflow: ellipsis; color: var(--paper); font-size: .75rem; }
.copy-button { padding: 8px 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; color: var(--paper); background: transparent; cursor: pointer; }
.security-note { display: flex; align-items: flex-start; gap: 12px; margin-top: 19px; color: #afa99e; font-size: .84rem; }
.security-note span { display: grid; flex: 0 0 25px; place-items: center; aspect-ratio: 1; border-radius: 50%; color: #06170f; background: #38c978; font-weight: 950; }
.security-note p { margin: 1px 0 0; }
.mint-panel { overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: 0 30px 90px rgba(0,0,0,.4); }
.payment-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.payment-tab { display: flex; align-items: center; gap: 12px; padding: 21px; border: 0; background: var(--paper-2); cursor: pointer; text-align: left; }
.payment-tab + .payment-tab { border-left: 1px solid var(--line); }
.payment-tab.active { background: var(--paper); box-shadow: inset 0 -4px 0 var(--red); }
.payment-tab span:not(.coin-icon) { display: grid; }
.payment-tab strong { font-size: .93rem; }
.payment-tab small { color: var(--muted); font-size: .7rem; }
.coin-icon { display: grid; place-items: center; width: 36px; aspect-ratio: 1; border-radius: 50%; color: #fff; font-weight: 950; }
.eth-icon { background: #42464d; }
.sol-icon { background: linear-gradient(135deg, #8b5cf6, #1fc99b); }
.payment-panel { padding: 29px; }
.live-status { display: flex; align-items: center; font-size: .8rem; font-weight: 800; }
.supply-row { display: flex; justify-content: space-between; gap: 16px; margin: 24px 0 12px; }
.supply-row > div { display: grid; }
.supply-row small { color: var(--muted); font-size: .64rem; letter-spacing: .13em; }
.supply-row strong { margin-top: 3px; font-size: 1.65rem; }
.remaining-box { text-align: right; }
.remaining-box strong { color: var(--red); }
.progress-track { overflow: hidden; height: 9px; margin-bottom: 26px; border: 1px solid var(--ink); background: var(--paper-2); }
.progress-track span { display: block; width: 94%; height: 100%; background: var(--red); transition: width .5s ease; }
.wallet-block > p { color: var(--muted); }
.wallet-buttons { display: grid; gap: 10px; }
.wallet-button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); cursor: pointer; text-align: left; transition: border .15s ease, transform .15s ease; }
.wallet-button:hover { border-color: var(--ink); transform: translateY(-1px); }
.wallet-button-subtle { background: transparent; }
.wallet-logo { display: grid; place-items: center; flex: 0 0 40px; aspect-ratio: 1; border-radius: 11px; color: #fff; font-weight: 950; }
.metamask-logo { background: #f6851b; }
.phantom-logo { background: #8b5cf6; }
.browser-logo { background: var(--ink); }
.wallet-button span:not(.wallet-logo) { display: grid; }
.wallet-button small { color: var(--muted); }
.wallet-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.wallet-summary div { display: grid; }
.wallet-summary small { color: var(--muted); font-size: .62rem; letter-spacing: .12em; }
.wallet-summary strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; }
.balance-line { display: flex; justify-content: space-between; margin: 13px 2px 0; color: var(--muted); font-size: .78rem; }
.balance-line strong { color: var(--ink); }
.quantity-control { display: flex; align-items: center; justify-content: space-between; margin: 25px 0 18px; }
.quantity-control > div:first-child { display: grid; }
.quantity-control small { font-size: .68rem; font-weight: 900; letter-spacing: .13em; }
.quantity-control span { color: var(--muted); font-size: .72rem; }
.stepper { display: flex; align-items: center; overflow: hidden; border: 1px solid var(--ink); border-radius: 999px; }
.stepper button { width: 45px; height: 42px; border: 0; background: transparent; cursor: pointer; font-size: 1.3rem; }
.stepper output { display: grid; place-items: center; min-width: 45px; height: 42px; border-inline: 1px solid var(--line); font-weight: 900; }
.cost-summary { display: grid; gap: 9px; margin-bottom: 20px; padding: 16px; border-radius: 13px; background: var(--paper-2); }
.cost-summary > div { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .78rem; }
.cost-summary strong { color: var(--ink); }
.cost-total { padding-top: 10px; border-top: 1px solid var(--line); font-size: .9rem !important; }
.mint-helper { margin: 14px 0 0; color: var(--muted); font-size: .73rem; text-align: center; }
.transaction-box { display: flex; gap: 15px; margin-top: 18px; padding: 15px; border: 1px solid #b9a46d; border-radius: 13px; background: #fff6d9; }
.transaction-box p { margin: 2px 0 4px; color: #645a3f; font-size: .78rem; }
.transaction-box a { color: #6b4c00; font-size: .75rem; font-weight: 850; text-decoration: underline; }
.transaction-spinner { flex: 0 0 27px; height: 27px; border: 3px solid rgba(10,10,10,.13); border-top-color: var(--ink); border-radius: 50%; animation: spin .9s linear infinite; }
.transaction-box.success { border-color: #7cb590; background: #e8f7ed; }
.transaction-box.success .transaction-spinner { animation: none; border: 0; background: #38c978; position: relative; }
.transaction-box.success .transaction-spinner::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #062416; font-weight: 950; }
.transaction-box.error { border-color: #d7958a; background: #ffe9e5; }
.transaction-box.error .transaction-spinner { display: none; }
.sol-notice { padding: 21px; border-radius: 15px; color: #fff; background: linear-gradient(130deg, #221546, #5736a4 55%, #176d62); }
.sol-badge { display: inline-block; padding: 5px 9px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: .65rem; font-weight: 950; letter-spacing: .12em; }
.sol-notice h3 { margin: 17px 0 8px; font-size: 1.45rem; }
.sol-notice p { margin: 0; color: rgba(255,255,255,.78); font-size: .88rem; }
.conversion-steps { display: grid; gap: 0; margin: 24px 0; padding: 0; list-style: none; }
.conversion-steps li { display: flex; gap: 14px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.conversion-steps li > span { display: grid; place-items: center; flex: 0 0 31px; height: 31px; border-radius: 50%; color: #fff; background: var(--ink); font-size: .72rem; font-weight: 900; }
.conversion-steps p { margin: 3px 0 0; color: var(--muted); font-size: .8rem; }
.sol-actions { display: grid; gap: 11px; }
.sol-disclaimer { margin: 17px 0 0; color: var(--muted); font-size: .72rem; text-align: center; }
.hidden { display: none !important; }

.showcase { padding: 120px 0; }
.section-heading { max-width: 820px; }
.art-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; margin-top: 48px; }
.showcase-card { overflow: hidden; border: 4px solid var(--ink); background: var(--ink); box-shadow: 5px 5px 0 var(--red); }
.showcase-card:nth-child(even) { transform: translateY(28px); box-shadow: 5px 5px 0 var(--green); }
.showcase-card img { width: 100%; aspect-ratio: 1; object-fit: cover; image-rendering: pixelated; }
.showcase-card span { display: block; padding: 9px 10px 5px; color: var(--paper); font-weight: 900; }

.how-section { padding: 115px 0; background: var(--red); color: var(--white); }
.how-section h2 em { color: var(--gold); }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 45px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.35); }
.how-card { min-height: 265px; padding: 25px; background: var(--red); }
.how-card > span { font-size: .72rem; font-weight: 950; letter-spacing: .14em; }
.how-card h3 { margin: 65px 0 9px; font-size: 1.16rem; }
.how-card p { color: rgba(255,255,255,.75); font-size: .88rem; }

.story { padding: 125px 0; }
.story-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: start; }
.story-copy { padding-top: 30px; font-size: 1.08rem; }
.story-copy p { color: #3c3934; }
.story-proof { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 28px; }
.story-proof a { padding-bottom: 3px; border-bottom: 2px solid var(--red); font-weight: 850; }

.holder-section { padding: 30px 0 110px; }
.holder-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px; padding: 42px; border-radius: var(--radius); color: var(--paper); background: var(--green); box-shadow: 9px 9px 0 var(--ink); }
.holder-emblem { display: grid; place-items: center; width: 125px; aspect-ratio: 1; border: 3px solid var(--paper); border-radius: 50%; transform: rotate(-5deg); }
.holder-emblem span { font-size: 2.8rem; font-weight: 950; line-height: .9; }
.holder-emblem small { letter-spacing: .17em; }
.holder-card h2 { margin: 0 0 9px; font-family: inherit; font-size: clamp(1.8rem, 3vw, 3rem); text-transform: none; letter-spacing: -.03em; line-height: 1; }
.holder-card p:not(.eyebrow) { margin: 0; color: rgba(255,255,255,.77); }

.faq { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; padding: 115px 0; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 24px 45px 24px 0; cursor: pointer; list-style: none; font-weight: 850; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 1.6rem; font-weight: 300; }
details[open] summary::after { content: "−"; }
details p { max-width: 700px; padding: 0 45px 24px 0; color: var(--muted); }

.site-footer { padding: 65px 0; color: var(--paper); background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .7fr; gap: 50px; }
.footer-grid > div { display: grid; align-content: start; gap: 9px; }
.footer-grid > div:first-child { display: block; }
.footer-brand .brand-seal { background: var(--paper); color: var(--ink); }
.footer-brand .brand-copy small { color: #a9a397; }
.footer-grid p { margin: 18px 0 0; color: #979187; font-size: .8rem; }
.footer-grid small { color: #777168; font-size: .66rem; letter-spacing: .13em; }
.footer-grid a:not(.brand) { color: #d7d0c4; font-size: .87rem; }
.footer-grid code { font-size: .8rem; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; max-width: min(390px, calc(100vw - 48px)); padding: 13px 17px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; color: var(--white); background: var(--ink); box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.wallet-dialog { width: min(520px, calc(100% - 32px)); padding: 32px; border: 1px solid var(--ink); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.wallet-dialog::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(5px); }
.wallet-dialog h2 { margin-bottom: 17px; font-family: inherit; font-size: 1.65rem; line-height: 1.1; text-transform: none; letter-spacing: -.03em; }
.wallet-dialog p { color: var(--muted); }
.dialog-close { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; cursor: pointer; font-size: 1.7rem; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 15px; }
  .hero-visual { min-height: 590px; max-width: 620px; width: 100%; margin: 0 auto; }
  .mint-layout, .story-layout, .faq { grid-template-columns: 1fr; }
  .mint-layout { gap: 50px; }
  .art-grid, .how-grid { grid-template-columns: repeat(2, 1fr); }
  .holder-card { grid-template-columns: auto 1fr; }
  .holder-card .button { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .section-shell { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 68px; padding: 10px 14px; }
  .brand-copy { display: none; }
  .header-actions .button { display: none; }
  .music-toggle { width: 42px; padding: 0; }
  .music-label { display: none; }
  h1 { font-size: clamp(4.3rem, 23vw, 6.4rem); }
  h2 { font-size: clamp(3.1rem, 16vw, 4.9rem); }
  .hero { padding-top: 52px; padding-bottom: 65px; }
  .hero-visual { min-height: 450px; }
  .supply-stamp { width: 105px; }
  .supply-stamp strong { font-size: 1.55rem; }
  .mint-section, .showcase, .how-section, .story, .faq { padding-top: 80px; padding-bottom: 80px; }
  .mint-panel { border-radius: 16px; }
  .payment-tab { padding: 16px 10px; gap: 8px; }
  .payment-tab small { display: none; }
  .payment-panel { padding: 20px 17px; }
  .coin-icon { width: 31px; }
  .art-grid { gap: 10px; }
  .showcase-card:nth-child(even) { transform: translateY(14px); }
  .how-grid { grid-template-columns: 1fr; }
  .how-card { min-height: 210px; }
  .how-card h3 { margin-top: 45px; }
  .holder-card { grid-template-columns: 1fr; padding: 28px; }
  .holder-emblem { width: 100px; }
  .faq { gap: 25px; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-line { gap: 20px; }
  .wallet-summary strong { max-width: 210px; overflow: hidden; text-overflow: ellipsis; }
}

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

/* v2.2 — Reown AppKit / WalletConnect connection experience */
.connect-wallet-button { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: 1rem; }
.connect-wallet-button > span:last-child { font-size: 1.25rem; }
.wallet-support { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin-top: 17px; color: var(--muted); font-size: .72rem; font-weight: 800; }
.wallet-support > span { display: inline-flex; align-items: center; gap: 6px; }
.wallet-mini { display: inline-grid; place-items: center; width: 23px; height: 23px; border-radius: 7px; color: #fff; font-size: .65rem; font-weight: 950; }
.metamask-mini { background: #e2761b; }
.phantom-mini { background: #6b50d8; }
.walletconnect-mini { background: #3396ff; }
.wallet-mobile-note { max-width: 440px; margin: 15px auto 0; color: var(--muted); font-size: .72rem; text-align: center; }
.appkit-setup-warning { display: grid; gap: 3px; margin-top: 16px; padding: 12px 14px; border: 1px solid #a46b00; border-radius: 11px; color: #6c4700; background: #fff1c7; font-size: .74rem; }
.appkit-setup-warning strong { color: #4d3300; }

@media (max-width: 640px) {
  .wallet-support { gap: 9px 11px; }
  .wallet-support > span { font-size: .67rem; }
  .connect-wallet-button { min-height: 54px; }
}
