:root {
  --bg: oklch(0.12 0.025 265);
  --surface: oklch(0.18 0.035 264);
  --fg: oklch(0.97 0.01 95);
  --muted: oklch(0.72 0.035 255);
  --border: oklch(0.38 0.055 260);
  --accent: oklch(0.58 0.22 27);
  --accent-soft: color-mix(in oklch, var(--accent) 18%, transparent);
  --blue: oklch(0.62 0.2 255);
  --silver: oklch(0.84 0.025 255);
  --shadow: color-mix(in oklch, var(--bg) 78%, transparent);
  --font-display: Rockwell, "Roboto Slab", Georgia, serif;
  --font-body: "Segoe UI", system-ui, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, monospace;
  --fs-h1: clamp(3.55rem, 7.5vw, 7.3rem);
  --fs-h2: clamp(2.5rem, 5vw, 5.2rem);
  --container: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
  --radius: 10px;
  --radius-lg: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--bg); color: var(--fg); font-family: var(--font-body); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
p { text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); text-wrap: balance; }
.container { width: min(100%, var(--container)); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(64px, 9vw, 120px); }
.stack { display: flex; flex-direction: column; gap: clamp(36px, 5vw, 68px); }
.grid-2, .grid-3 { display: grid; gap: clamp(22px, 3vw, 38px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.eyebrow { margin: 0 0 16px; color: var(--accent); font: 800 .76rem/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; }
.lead { max-width: 56ch; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.2rem); }
.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; border: 1px solid transparent; border-radius: var(--radius); font-weight: 900; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.btn img { width: 19px; height: 19px; object-fit: contain; filter: brightness(0) invert(1); }
.btn img[src$="pumpfun.svg"] { filter: none; }
.btn-primary { background: var(--accent); color: var(--fg); border-color: var(--accent); box-shadow: 0 12px 28px color-mix(in oklch, var(--accent) 25%, transparent); }
.btn-primary:hover { transform: translateY(-2px); background: color-mix(in oklch, var(--accent) 85%, black); border-color: color-mix(in oklch, var(--accent) 85%, black); box-shadow: 0 16px 34px color-mix(in oklch, var(--accent) 32%, transparent); }
.btn-secondary { background: color-mix(in oklch, var(--surface) 72%, transparent); color: var(--fg); border-color: var(--border); }
.btn-secondary:hover { transform: translateY(-2px); background: var(--surface); border-color: var(--fg); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--fg); outline-offset: 4px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 14px; background: var(--fg); color: var(--bg); border-radius: var(--radius); }
.skip-link:focus { top: 16px; }

.topnav { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid transparent; transition: background 180ms ease, border-color 180ms ease; }
.topnav.is-scrolled { background: color-mix(in oklch, var(--bg) 88%, transparent); backdrop-filter: blur(15px); border-color: var(--border); }
.topnav-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 900; font-size: 1.04rem; letter-spacing: .055em; }
.brand-star { color: var(--accent); }
nav { display: flex; align-items: center; gap: 6px; }
.nav-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 13px; color: var(--silver); font: 800 .73rem/1 var(--font-mono); letter-spacing: .07em; border: 1px solid transparent; border-radius: var(--radius); }
.nav-link:hover { color: var(--fg); border-color: var(--border); background: var(--surface); }
.nav-buy { margin-left: 6px; min-width: 108px; }

.hero { min-height: calc(100svh - 68px); display: grid; align-items: center; padding-block: clamp(40px, 6vw, 72px); isolation: isolate; }
.hero-backdrop { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, color-mix(in oklch, var(--bg) 96%, transparent) 0 43%, color-mix(in oklch, var(--bg) 70%, transparent)), linear-gradient(0deg, var(--bg), transparent 28%, transparent 72%, var(--bg)), url("assets/images/04_hero_background.png") center / cover no-repeat; opacity: .55; }
.hero-split { display: grid; grid-template-columns: minmax(0, .93fr) minmax(390px, 1.07fr); align-items: center; gap: clamp(30px, 4vw, 72px); }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { font-size: var(--fs-h1); line-height: .82; letter-spacing: -.055em; text-transform: uppercase; text-shadow: 0 5px 0 var(--shadow); }
.hero h1 span { display: block; }
.hero h1 span:last-child { color: var(--silver); font-size: .72em; margin-top: .12em; letter-spacing: -.045em; }
.hero .lead { margin-top: 26px; max-width: 47ch; color: var(--fg); font-size: clamp(1.03rem, 1.55vw, 1.28rem); }
.hero-line { margin: 10px 0 0; color: var(--muted); font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.contract { width: min(100%, 580px); min-height: 44px; margin-top: 14px; padding: 5px 6px 5px 13px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: var(--radius); background: color-mix(in oklch, var(--surface) 68%, transparent); }
.contract-label { color: var(--accent); font: 900 .65rem/1 var(--font-mono); letter-spacing: .12em; }
.contract code { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--silver); font: .74rem/1 var(--font-mono); }
.contract button { min-height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; color: var(--fg); background: var(--surface); border: 1px solid var(--border); border-radius: 7px; cursor: pointer; font: 800 .62rem/1 var(--font-mono); letter-spacing: .06em; }
.contract button:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.contract button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.coin-stage { position: relative; display: grid; place-items: center; min-height: 460px; perspective: 1000px; }
.coin-stage img { position: relative; z-index: 2; width: min(100%, 630px); aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 26px 36px var(--shadow)) drop-shadow(0 0 28px color-mix(in oklch, var(--blue) 28%, transparent)); animation: coin-float 5.5s ease-in-out infinite; transform: rotateX(var(--coin-y, 0deg)) rotateY(var(--coin-x, 0deg)) translateY(var(--coin-float, 0px)); will-change: transform; }
.coin-orbit { position: absolute; width: 78%; aspect-ratio: 1; border: 1px solid color-mix(in oklch, var(--blue) 50%, transparent); border-radius: 50%; box-shadow: 0 0 75px color-mix(in oklch, var(--blue) 30%, transparent), inset 0 0 45px color-mix(in oklch, var(--accent) 17%, transparent); }
.coin-caption { position: absolute; z-index: 3; bottom: 3%; padding: 8px 12px; color: var(--silver); background: color-mix(in oklch, var(--bg) 82%, transparent); border: 1px solid var(--border); font: 700 .62rem/1 var(--font-mono); letter-spacing: .12em; }
@keyframes coin-float { 0%, 100% { --coin-float: 0px; } 50% { --coin-float: -9px; } }

.meme-banner, .wide-art { position: relative; overflow: hidden; border-block: 1px solid var(--border); background: var(--surface); }
.meme-banner img, .wide-art img { width: 100%; height: auto; object-fit: contain; }
.meme-banner::after, .wide-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 80px color-mix(in oklch, var(--bg) 75%, transparent); }
.banner-stamp { position: absolute; left: 50%; bottom: clamp(16px, 3vw, 36px); z-index: 2; transform: translateX(-50%) rotate(-1deg); width: max-content; max-width: calc(100% - 32px); padding: 10px 18px; color: var(--fg); background: var(--accent); border: 2px solid var(--fg); box-shadow: 6px 6px 0 var(--bg); font: 900 clamp(.85rem, 1.7vw, 1.25rem)/1 var(--font-display); letter-spacing: .08em; text-align: center; }

.manifesto { background: radial-gradient(circle at 70% 40%, color-mix(in oklch, var(--blue) 12%, transparent), transparent 36%), var(--bg); }
.section-heading { max-width: 760px; }
.section-heading h2, .community-copy h2, .final-cta h2 { font-size: var(--fs-h2); line-height: .91; letter-spacing: -.04em; }
.section-heading .lead { margin-top: 18px; }
.slogan-card { min-height: 240px; display: flex; flex-direction: column; padding: 28px; border-top: 2px solid var(--silver); background: linear-gradient(180deg, color-mix(in oklch, var(--surface) 88%, transparent), transparent); }
.slogan-card > span { color: var(--muted); font: 700 .7rem/1 var(--font-mono); }
.slogan-card h3 { margin-top: auto; font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: .98; }
.slogan-card p { margin: 12px 0 0; color: var(--muted); font-size: .92rem; }

.feature-split { border-top: 1px solid var(--border); background: color-mix(in oklch, var(--surface) 45%, var(--bg)); }
.feature-split .grid-2 { align-items: center; }
.poster-card { position: relative; overflow: hidden; margin: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 28px 60px var(--shadow); }
.poster-card img { width: 100%; height: auto; object-fit: contain; }
.poster-card figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; background: color-mix(in oklch, var(--bg) 86%, transparent); border: 1px solid var(--border); backdrop-filter: blur(12px); }
.poster-card figcaption span { color: var(--muted); font: 700 .66rem/1 var(--font-mono); letter-spacing: .1em; }
.poster-card figcaption strong { font: 900 .76rem/1 var(--font-display); letter-spacing: .06em; }
.community-copy { padding: clamp(8px, 4vw, 44px); }
.community-copy .lead { margin-top: 22px; }
.rally-list { list-style: none; margin: 28px 0; padding: 0; border-block: 1px solid var(--border); }
.rally-list li { min-height: 48px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); font: 800 .82rem/1 var(--font-mono); letter-spacing: .06em; }
.rally-list li:last-child { border-bottom: 0; }
.rally-list span { color: var(--accent); }
.text-action { min-height: 44px; display: inline-flex; align-items: center; gap: 12px; color: var(--fg); font: 900 .76rem/1 var(--font-mono); letter-spacing: .07em; }
.text-action span { color: var(--accent); transition: transform 160ms ease; }
.text-action:hover span { transform: translateX(5px); }
.wide-art img { height: auto; }

.final-cta { overflow: hidden; min-height: 650px; display: grid; align-items: center; background: radial-gradient(circle at 75% 50%, color-mix(in oklch, var(--accent) 18%, transparent), transparent 30%), radial-gradient(circle at 72% 45%, color-mix(in oklch, var(--blue) 18%, transparent), transparent 44%), var(--bg); }
.final-grid { display: grid; grid-template-columns: 1fr .8fr; align-items: center; gap: 40px; }
.final-cta .lead { margin-top: 20px; }
.final-cta .btn { margin-top: 30px; }
.final-cta img { width: min(520px, 100%); justify-self: end; transform: rotate(5deg); filter: drop-shadow(0 30px 40px var(--shadow)); border-radius: var(--radius-lg); }
.pagefoot { border-top: 1px solid var(--border); padding-block: 30px; color: var(--muted); font-size: .72rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; gap: 18px; font: 700 .68rem/1 var(--font-mono); }
.footer-links a:hover { color: var(--fg); }
.is-loading { pointer-events: none !important; opacity: .68; }
.is-disabled { pointer-events: none !important; opacity: .45; filter: grayscale(1); }
[hidden] { display: none !important; }

@media (max-width: 920px) {
  .grid-2, .grid-3, .hero-split, .final-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 46px; }
  .hero-copy { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .contract { margin-inline: auto; }
  .coin-stage { min-height: 0; margin-top: 20px; }
  .coin-stage img { width: min(100%, 560px); }
  .coin-caption { bottom: 0; }
  .meme-banner img { height: auto; }
  .slogan-card { min-height: 190px; }
  .community-copy { padding: 22px 0 0; }
  .final-cta { min-height: 0; text-align: center; }
  .final-cta .lead { margin-inline: auto; }
  .final-cta img { justify-self: center; width: min(450px, 92%); }
}

@media (max-width: 680px) {
  .topnav-inner { min-height: 62px; }
  .nav-link, .telegram-action { display: none; }
  .nav-buy { min-width: 96px; margin-left: 0; }
  .hero { min-height: calc(100svh - 62px); align-items: start; }
  .hero h1 { font-size: clamp(3.3rem, 18vw, 5.4rem); }
  .hero .lead { font-size: 1rem; }
  .hero-cta { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-cta .btn-primary { grid-column: 1 / -1; }
  .hero-cta .btn { width: 100%; }
  .contract { padding-left: 10px; gap: 7px; }
  .contract code { max-width: 125px; }
  .contract button span { display: none; }
  .contract button { min-width: 36px; justify-content: center; padding: 0 8px; }
  .coin-stage { margin-top: 4px; }
  .coin-stage img { width: min(100%, 410px); }
  .coin-caption { font-size: .52rem; }
  .meme-banner img, .wide-art img { height: auto; object-position: center; }
  .banner-stamp { font-size: .75rem; }
  .section-heading h2, .community-copy h2, .final-cta h2 { font-size: clamp(2.5rem, 13vw, 4rem); }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-disclaimer { order: 3; }
}

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