:root {
  color-scheme: dark;
  --background: #080a11;
  --surface: #0e1420;
  --line: #252d3d;
  --muted: #a7b2c5;
  --ink: #f1f5fc;
  --cyan: #58e3f7;
  --mint: #64e9b6;
  --lilac: #c0a4ff;
  --display: "Space Grotesk", sans-serif;
  --body: Manrope, sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --gutter: clamp(1.15rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--ink); font: 500 1rem/1.65 var(--body); }
body:has(dialog[open]) { overflow: hidden; }
::selection { background: var(--cyan); color: var(--background); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.x-icon { width: .95em; height: .95em; flex: none; }
.wrap { width: min(100% - var(--gutter) * 2, 76rem); margin-inline: auto; }
.skip { position: fixed; z-index: 10; top: .75rem; left: .75rem; padding: .55rem 1rem; background: var(--cyan); color: var(--background); transform: translateY(-200%); }
.skip:focus { transform: none; }

.header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid #252d3dbf; background: #080a11e8; backdrop-filter: blur(16px); }
.header-inner { min-height: 4.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .64rem; white-space: nowrap; font: 700 1.22rem/1 var(--display); letter-spacing: -.045em; }
.brand img { flex: none; }
.nav, .header-actions { display: flex; align-items: center; }
.nav { gap: clamp(1rem, 2.3vw, 2.25rem); font-size: .82rem; font-weight: 700; color: var(--muted); }
.nav a, .text-link { transition: color .2s ease; }
.nav a:hover, .text-link:hover { color: var(--cyan); }
.header-actions { gap: .65rem; }
.button, .menu-button { display: inline-flex; justify-content: center; align-items: center; gap: .6rem; min-height: 2.8rem; border: 1px solid transparent; border-radius: .55rem; padding: .52rem .94rem; font-size: .82rem; font-weight: 800; line-height: 1.3; white-space: nowrap; transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.button:active, .menu-button:active { transform: translateY(1px); }
.outline, .menu-button { color: var(--ink); border-color: #333e51; background: #151c2a9e; }
.outline:hover, .menu-button:hover { background: #1b2838; border-color: #568399; }
.menu-button { min-width: 2.8rem; padding: 0; font-size: 1.22rem; }
.header .menu-button { display: none; }
.primary { background: var(--cyan); border-color: var(--cyan); color: #071820; }
.primary:hover { background: #9bf1ff; border-color: #9bf1ff; }

.hero {
  overflow: hidden;
  background: radial-gradient(ellipse at 80% 42%, #25214a9c, transparent 57%), linear-gradient(#3187a00d 1px, transparent 1px), linear-gradient(90deg, #3187a00d 1px, transparent 1px);
  background-size: auto, 43px 43px, 43px 43px;
  border-bottom: 1px solid var(--line);
}
.hero-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5.4vw, 5rem); align-items: center; padding-block: clamp(3.7rem, 6.5vw, 6.25rem); }
.hero-copy, .hud { min-width: 0; }
.eyebrow { font: 600 .71rem/1.5 var(--mono); letter-spacing: .105em; }
.hero-tag { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .45rem; padding: .43rem .68rem; background: #102029; border: 1px solid #244450; border-radius: .35rem; color: var(--cyan); }
.signal { display: inline-block; flex: none; width: .44rem; height: .44rem; border-radius: 50%; background: var(--mint); box-shadow: 0 0 .75rem #64e9b67d; }
.separator { color: #82a6b0; }
h1 { margin-top: 1.25rem; font: 700 clamp(3.15rem, 5.5vw, 5.45rem)/.96 var(--display); letter-spacing: -.078em; }
h1 span { display: block; }
h1 span:first-child { width: fit-content; margin-bottom: .13em; color: var(--cyan); background: linear-gradient(102deg, #6ceaf6 8%, #a4b9ff 57%, #c0a4ff 93%); background-clip: text; -webkit-text-fill-color: transparent; }
.intro { max-width: 30rem; margin-top: 1.25rem; color: var(--muted); font-size: .98rem; }
.contract { max-width: 29rem; margin-top: 1.45rem; }
.contract label { display: block; margin-bottom: .4rem; color: var(--muted); font: 500 .68rem/1.5 var(--mono); letter-spacing: .12em; }
.contract-value { display: flex; gap: .7rem; align-items: center; padding: .48rem .65rem; min-height: 2.72rem; border: 1px solid #314051; border-radius: .55rem; background: #0b101b; }
.contract-value input { min-width: 0; flex: 1; height: 1.5rem; padding: 0; border: 0; color: var(--ink); background: transparent; font: 500 .73rem/1.4 var(--mono); }
.contract-value span:last-child { white-space: nowrap; color: #b4c2d3; background: #1b2535; padding: .23rem .43rem; border-radius: .25rem; font: 500 .64rem/1.25 var(--mono); letter-spacing: .08em; }
.solana-mark { display: grid; gap: 2px; width: 1.55rem; padding: .28rem; border-radius: .25rem; background: #232039; }
.solana-mark i { height: 2px; background: linear-gradient(90deg, var(--mint), var(--lilac)); transform: skew(-28deg); }
.solana-mark i:nth-child(2) { transform: skew(28deg); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }

.hud { position: relative; padding: .85rem; border: 1px solid #3b4966; border-radius: .86rem; background: #0d1322f2; box-shadow: 0 1.7rem 4rem #03060b9c; }
.hud-top, .hud-bottom { font: 500 .7rem/1.4 var(--mono); letter-spacing: .08em; }
.hud-top { display: flex; justify-content: space-between; gap: .6rem; margin: .05rem .15rem .8rem; color: var(--cyan); }
.hud-top span:first-child { display: inline-flex; gap: .48rem; align-items: center; }
.hud-index { color: var(--muted); white-space: nowrap; }
.hud-screen { position: relative; border: 1px solid #36445b; }
.hud-screen img { width: 100%; }
.corner { position: absolute; width: 1rem; height: 1rem; border: 0 solid var(--cyan); }
.top-left { top: -.06rem; left: -.06rem; border-top-width: 2px; border-left-width: 2px; }
.top-right { top: -.06rem; right: -.06rem; border-top-width: 2px; border-right-width: 2px; }
.bottom-left { bottom: -.06rem; left: -.06rem; border-bottom-width: 2px; border-left-width: 2px; }
.bottom-right { bottom: -.06rem; right: -.06rem; border-bottom-width: 2px; border-right-width: 2px; }
.hud-bottom { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: .75rem; border: 1px solid #273349; border-radius: .35rem; }
.hud-bottom div { padding: .58rem clamp(.35rem, 1vw, .85rem); }
.hud-bottom div + div { border-left: 1px solid #273349; }
.hud-bottom span, .hud-bottom strong { display: block; }
.hud-bottom span { color: var(--muted); font-size: .63rem; }
.hud-bottom strong { margin-top: .26rem; color: var(--cyan); font-weight: 600; }
.hud-bottom div:nth-child(2) strong { color: var(--lilac); }
.hud-bottom div:nth-child(3) strong { color: var(--mint); }

.section { padding-block: clamp(3rem, 6.2vw, 5.45rem); border-bottom: 1px solid var(--line); scroll-margin-top: 7rem; }
.vault { background: radial-gradient(ellipse at 17% 4%, #1b203a7a, transparent 57%); }
.section-header { display: flex; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: clamp(1.45rem, 3vw, 2.25rem); }
.section-header > p, .story-copy { color: var(--muted); }
.section-header > p { max-width: 22rem; font-size: .9rem; }
.section-tag { margin-bottom: .5rem; color: var(--cyan); }
.section-tag span { margin-inline: .24rem; color: #8e9bb8; }
h2 { font: 700 clamp(2.45rem, 4.2vw, 4.35rem)/1.05 var(--display); letter-spacing: -.069em; }
h2 em { color: var(--lilac); font-style: normal; }
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.meme { grid-column: span 2; overflow: hidden; border: 1px solid var(--line); border-radius: .68rem; background: var(--surface); transition: border-color .2s ease, transform .2s ease; }
.meme:nth-last-child(-n + 2) { grid-column: span 3; }
.meme:hover { border-color: #5b8595; transform: translateY(-3px); }
.meme img { width: 100%; }
.meme-caption { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .77rem .9rem; }
.meme-caption small { display: block; color: var(--cyan); font: 500 .67rem/1.4 var(--mono); letter-spacing: .09em; }
.meme-caption strong { font: 700 1.18rem/1.3 var(--display); }
.meme-caption .icon { color: var(--muted); }
.story, .token { background: #0c101a; }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.3rem 3rem; align-items: start; }
.story-copy p + p { margin-top: .9rem; }
.text-link { display: inline-flex; align-items: center; gap: .42rem; color: var(--lilac); font-size: .9rem; font-weight: 800; }
.story-copy .text-link { margin-top: 1rem; }
#elon-tweet-title { color: var(--ink); margin-bottom: .75rem; }
.post-card { display: grid; gap: 1rem; margin: 0; padding: clamp(1rem, 3vw, 1.6rem); border: 1px solid var(--line); border-left: 3px solid var(--cyan); border-radius: .68rem; background: var(--surface); }
.post-byline, .post-card figcaption { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .7rem; }
.post-byline .x-icon { margin-left: auto; }
.post-byline span, .post-card time { color: var(--muted); font: 500 .75rem/1.5 var(--mono); }
.post-card blockquote { margin: 0; font: 600 clamp(1.2rem, 2.5vw, 1.55rem)/1.4 var(--display); }
.post-card figcaption { justify-content: space-between; padding-top: .85rem; border-top: 1px solid var(--line); }
.simulator { display: grid; grid-template-columns: minmax(12rem, .43fr) 1fr; overflow: hidden; border: 1px solid #303e55; border-radius: .75rem; background: var(--surface); }
.sim-controls { display: grid; gap: .48rem; border-right: 1px solid #303e55; padding: 1rem; }
.sim-controls button { padding: .65rem .8rem; background: transparent; border: 1px solid transparent; border-radius: .4rem; color: var(--muted); text-align: left; font-weight: 800; }
.sim-controls button span { margin-right: .45rem; font-family: var(--mono); }
.sim-controls button:hover { color: var(--ink); }
.sim-controls button[aria-pressed="true"] { border-color: #356274; color: var(--cyan); background: #10242e; }
.sim-output { display: grid; align-content: center; gap: .38rem; min-height: 11.5rem; padding: 1.2rem clamp(1rem, 4vw, 3rem); background: radial-gradient(ellipse at top right, #20314970, transparent 75%); }
.sim-output .eyebrow { color: var(--mint); }
.sim-output h3 { font: 700 clamp(1.5rem, 3vw, 2.15rem)/1.2 var(--display); }
.sim-output p { color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; min-height: 6rem; padding-block: 1rem; color: var(--muted); font-size: .83rem; }
.footer .brand { color: var(--ink); }

.lightbox { width: min(94vw, 68rem); max-height: 94dvh; margin: auto; padding: .8rem; background: var(--surface); color: var(--ink); border: 1px solid #3b4966; border-radius: .85rem; }
.lightbox::backdrop { background: #05070fe8; }
.lightbox-head, .lightbox-controls { display: flex; align-items: center; justify-content: space-between; gap: .55rem; }
.lightbox-head { margin-bottom: .65rem; }
.lightbox-head h2 { margin-left: .35rem; font-size: clamp(1.2rem, 4vw, 2rem); }
.lightbox-image img { width: 100%; max-height: 68dvh; object-fit: contain; background: var(--background); }
.lightbox-controls { margin-top: .65rem; }
.lightbox-count { font: 500 .76rem/1.5 var(--mono); color: var(--muted); }

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; }
  .header-actions { margin-left: auto; }
  .nav { order: 3; width: 100%; flex-wrap: wrap; gap: .7rem 1.4rem; padding-bottom: .9rem; }
  .has-menu .nav:not(.is-open) { display: none; }
  .has-menu .header .menu-button { display: inline-flex; }
  .hero-layout { grid-template-columns: 1fr; }
  .hud { width: min(100%, 39rem); }
}

@media (max-width: 680px) {
  .section-header { display: grid; }
  .split, .simulator { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .meme, .meme:nth-last-child(-n + 2) { grid-column: auto; }
  .meme:first-child { grid-column: 1 / -1; }
  .sim-controls { border-right: 0; border-bottom: 1px solid #303e55; }
}

@media (max-width: 400px) {
  .social span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .social { min-width: 2.8rem; padding: 0; }
  h1 { font-size: clamp(2.65rem, 13vw, 3.15rem); }
  .hero-tag { gap: .32rem; font-size: .62rem; }
  .hud-bottom span { font-size: .54rem; }
  .meme-caption { padding-inline: .6rem; }
  .meme-caption strong { font-size: 1rem; }
}

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