:root {
  --ink: #071022;
  --space: #050b22;
  --blue: #0869f2;
  --electric: #3f9bff;
  --cream: #f5f0e8;
  --yellow: #ffc928;
  --white: #fff;
  --mono: "DM Mono", monospace;
  --display: "Space Grotesk", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--space);
  color: var(--white);
  font-family: var(--display);
  font-size: 16px;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.starfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(circle at 20% 30%, rgba(63, 155, 255, .25), transparent 22%), radial-gradient(#fff 1px, transparent 1px);
  background-size: auto, 70px 70px;
  opacity: .45;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  min-height: 84px;
  padding: 16px clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255,255,255,.17);
  background: linear-gradient(180deg, rgba(4,8,26,.72), rgba(4,8,26,.08));
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 11px; min-width: max-content; }
.brand img { width: 45px; height: 45px; object-fit: cover; border-radius: 50%; border: 2px solid white; }
.brand span { display: grid; }
.brand b { font-size: 1rem; letter-spacing: .08em; }
.brand small { color: rgba(255,255,255,.7); font-size: .7rem; }
nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); color: rgba(255,255,255,.78); font-size: .9rem; }
nav a, .nav-x { transition: color .2s ease; }
nav a:hover, .nav-x:hover { color: var(--white); }
.nav-x { border: 0; padding: 0; color: inherit; background: none; cursor: pointer; }

.hero { min-height: 790px; height: min(920px, 100vh); position: relative; display: grid; align-items: center; overflow: hidden; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(3,8,27,.98) 0%, rgba(3,8,27,.87) 31%, rgba(3,8,27,.18) 64%, rgba(3,8,27,.1)), linear-gradient(0deg, rgba(3,8,27,.62), transparent 35%);
}
.hero-copy { position: relative; z-index: 2; width: min(670px, 88vw); margin-left: clamp(24px, 8vw, 130px); padding-top: 70px; }
.eyebrow { display: flex; align-items: center; gap: 11px; font: 500 .78rem var(--mono); letter-spacing: .16em; color: #cbdcff; }
.eyebrow span { width: 8px; height: 8px; background: var(--yellow); transform: rotate(45deg); box-shadow: 0 0 16px rgba(255,201,40,.8); }
.eyebrow.dark { color: #32557e; }
.hero h1, .section-heading h2, .window-content h2 { margin: 20px 0; letter-spacing: -.055em; line-height: .9; }
.hero h1 { font-size: clamp(4.2rem, 8.7vw, 8.4rem); max-width: 900px; }
.hero h1 em { color: var(--electric); font-style: normal; }
.hero-intro { max-width: 590px; margin: 26px 0; color: rgba(255,255,255,.76); font-size: clamp(1rem, 1.4vw, 1.22rem); line-height: 1.7; }
.hero-intro strong { color: white; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 18px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 4px; font-weight: 700; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--blue); color: white; box-shadow: 0 10px 30px rgba(8,105,242,.3); }
.button-primary:hover { background: #187bff; box-shadow: 0 14px 35px rgba(8,105,242,.45); }
.button-ghost { border-color: rgba(255,255,255,.35); background: rgba(6,15,44,.28); backdrop-filter: blur(9px); }
.button-ghost:hover { background: rgba(255,255,255,.1); }
.button-light { background: white; color: var(--space); }
.button-small { min-height: 42px; padding: 0 18px; font-size: .86rem; }
.contract { display: flex; align-items: center; gap: 13px; padding: 12px 14px; color: white; border: 0; background: transparent; cursor: pointer; }
.contract-label { padding: 4px 7px; background: var(--yellow); color: var(--ink); font: 700 .7rem var(--mono); }
.contract code { font: .84rem var(--mono); color: rgba(255,255,255,.78); }
.copy-label { font: 700 .68rem var(--mono); letter-spacing: .12em; color: var(--electric); }
.scroll-cue { position: absolute; z-index: 2; right: 4vw; bottom: 30px; font: .66rem var(--mono); letter-spacing: .16em; color: rgba(255,255,255,.6); }
.scroll-cue span { color: var(--yellow); margin-left: 7px; }

.ticker { overflow: hidden; border-top: 1px solid #287ee9; border-bottom: 1px solid #287ee9; background: var(--blue); }
.ticker div { display: flex; width: max-content; padding: 14px 0; animation: ticker 28s linear infinite; }
.ticker span { margin-right: 40px; font: 500 .8rem var(--mono); letter-spacing: .12em; }
@keyframes ticker { to { transform: translateX(-50%); } }

.section { padding: 120px clamp(24px, 8vw, 130px); }
.mission { background: var(--cream); color: var(--ink); }
.section-heading { max-width: 1100px; margin: 0 auto 65px; }
.section-heading h2 { font-size: clamp(3rem, 6.4vw, 6.3rem); }
.mission-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.mascot-card { position: relative; margin: 0; box-shadow: 20px 24px 0 #d9e5ef; border: 2px solid var(--ink); background: white; }
.mascot-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.window-bar { position: absolute; top: 0; left: 0; right: 0; min-height: 39px; padding: 6px 7px 6px 12px; display: flex; justify-content: space-between; align-items: center; color: white; background: var(--blue); font: .78rem var(--mono); }
.window-bar i { display: grid; place-items: center; width: 26px; height: 26px; border: 1px outset white; background: #e7e5df; color: #202020; font-style: normal; }
.manifesto .big-copy { margin-top: 0; color: var(--ink); font-size: clamp(1.55rem, 3vw, 2.55rem); line-height: 1.35; font-weight: 600; letter-spacing: -.03em; }
.manifesto .big-copy em { color: var(--blue); font-style: normal; }
.manifesto > p:not(.big-copy) { color: #506072; line-height: 1.8; font-size: 1.05rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #b8c4cf; margin-top: 42px; padding-top: 28px; }
.facts div { display: grid; gap: 8px; }
.facts dt { color: #718091; font: .72rem var(--mono); text-transform: uppercase; }
.facts dd { margin: 0; font-weight: 700; }

.holder { position: relative; overflow: hidden; background: #041024; }
.holder::before { content: ""; position: absolute; width: 640px; height: 640px; right: -230px; top: -230px; border-radius: 50%; background: rgba(0, 255, 166, .1); filter: blur(35px); }
.holder-shell { position: relative; max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(45px, 7vw, 95px); align-items: center; }
.holder-portrait-wrap { position: relative; min-height: 560px; overflow: hidden; border-radius: 6px; background: #061939; box-shadow: 0 30px 100px rgba(0,0,0,.38); }
.holder-portrait { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center; }
.holder-portrait-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3,9,24,.82), transparent 40%); }
.holder-badge { position: absolute; z-index: 2; left: 22px; bottom: 22px; padding: 9px 12px; background: #43f0b2; color: #02170f; font: 700 .72rem var(--mono); letter-spacing: .12em; }
.holder-copy { position: relative; }
.holder-copy h2 { margin: 18px 0 20px; font-size: clamp(4rem, 8vw, 7.5rem); line-height: .9; letter-spacing: -.065em; }
.holder-lede { color: #a9bad1; line-height: 1.72; font-size: 1.04rem; }
.balance-card { margin-top: 32px; padding: 25px; background: #0a1b3b; border-left: 4px solid #43f0b2; }
.balance-heading, .supply-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.balance-heading { font: .68rem var(--mono); letter-spacing: .11em; color: #8ca2c3; }
.balance-status { color: #43f0b2; }
.balance-card > strong { display: block; margin: 20px 0 13px; font-size: clamp(2rem, 4vw, 3.15rem); letter-spacing: -.05em; overflow-wrap: anywhere; }
.supply-line { color: #9eb0cc; }
.supply-line b { color: white; }
.supply-line button, .holder-links button { border: 0; padding: 0; color: #43f0b2; background: none; font: 500 .75rem var(--mono); text-decoration: underline; cursor: pointer; }
.balance-card small { display: block; margin-top: 18px; color: #6f83a4; font: .7rem var(--mono); }
.holder-links { display: flex; flex-wrap: wrap; gap: 18px; margin: 24px 0 13px; }
.holder-links a, .holder-links button { color: #cfe0fa; font: 500 .78rem var(--mono); text-decoration: underline; }
.holder-wallet { color: #677fa4; font: .72rem var(--mono); overflow-wrap: anywhere; }

.how-to { background: #070f2c; }
.section-heading.compact { max-width: 1100px; }
.section-heading.compact h2 { max-width: 800px; }
.steps { max-width: 1100px; margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.18); }
.steps li { display: flex; gap: 24px; min-height: 220px; padding: 34px 28px 30px 0; }
.steps li + li { padding-left: 30px; border-left: 1px solid rgba(255,255,255,.18); }
.step-number { font: 500 .76rem var(--mono); color: var(--yellow); }
.steps h3 { margin: 0 0 14px; font-size: 1.3rem; }
.steps p { margin: 0; color: #9daccb; line-height: 1.65; }
.ca-panel { max-width: 1100px; margin: 35px auto 0; padding: 22px 25px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #0e1d4f; border-left: 4px solid var(--electric); }
.ca-panel div { display: grid; gap: 8px; min-width: 0; }
.ca-panel span { font: .7rem var(--mono); color: #91a9d2; letter-spacing: .13em; }
.ca-panel code { overflow-wrap: anywhere; color: white; font: .8rem var(--mono); }
.ca-panel button { flex: 0 0 auto; min-height: 44px; padding: 0 19px; border: 0; border-radius: 3px; background: white; color: var(--ink); font-weight: 700; cursor: pointer; }

.community { background: linear-gradient(155deg, #fff 0 48%, #dce8f3 48% 100%); color: var(--ink); }
.community-window { max-width: 900px; margin: 0 auto; border: 2px solid #252525; box-shadow: 24px 28px 0 rgba(26,85,167,.18); background: #eeece7; }
.window-title { display: flex; align-items: center; justify-content: space-between; padding: 8px 9px 8px 14px; color: white; background: linear-gradient(90deg, #0755c7, #138cfa); font: .78rem var(--mono); }
.window-title div { display: flex; }
.window-title i { width: 27px; height: 25px; display: grid; place-items: center; margin-left: 4px; color: #161616; background: #e9e7e0; border: 1px outset #fff; font-style: normal; }
.window-content { padding: clamp(32px, 6vw, 70px); display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: start; }
.warning { width: 68px; height: 62px; display: grid; place-items: center; color: #111; background: var(--yellow); clip-path: polygon(50% 0, 100% 100%, 0 100%); font-size: 2rem; font-weight: 800; padding-top: 17px; }
.window-content p { margin: 0; font: .86rem var(--mono); color: #526172; }
.window-content h2 { margin: 12px 0 30px; font-size: clamp(2.4rem, 5vw, 4.8rem); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button-ghost-dark { border-color: #86909a; color: var(--ink); }

footer { padding: 40px clamp(24px, 6vw, 90px); display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; color: #8293b6; background: #030717; font-size: .75rem; }
footer p { max-width: 700px; margin: 0; line-height: 1.55; text-align: center; }
.footer-brand small { color: #8293b6; }
.footer-meta { display: grid; justify-items: end; gap: 9px; }
.legal-links { display: flex; gap: 10px; }
.legal-links button { border: 0; padding: 0; color: #8ea2c9; background: none; font: inherit; text-decoration: underline; cursor: pointer; }
.cookie-notice { position: fixed; z-index: 45; left: 22px; right: 22px; bottom: 22px; max-width: 760px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 22px; color: var(--ink); background: white; border-left: 5px solid var(--blue); box-shadow: 0 22px 70px rgba(0,0,0,.38); transform: translateY(150%); transition: transform .35s ease; }
.cookie-notice.show { transform: translateY(0); }
.cookie-notice strong { display: block; margin-bottom: 4px; }
.cookie-notice p { margin: 0; color: #5d6977; font-size: .82rem; }
.cookie-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.cookie-actions button { cursor: pointer; }
.cookie-details { border: 0; background: transparent; color: #42546b; text-decoration: underline; }
.cookie-accept { border: 0; border-radius: 3px; padding: 11px 17px; color: white; background: var(--blue); font-weight: 700; }
.policy-dialog { width: min(690px, calc(100vw - 32px)); max-height: min(780px, calc(100vh - 32px)); padding: 0; color: var(--ink); border: 0; background: transparent; }
.policy-dialog::backdrop { background: rgba(1,5,18,.76); backdrop-filter: blur(6px); }
.policy-window { background: #f2f0eb; border: 2px solid #232323; box-shadow: 18px 20px 0 rgba(8,105,242,.28); }
.policy-window .window-title button { width: 28px; height: 26px; border: 1px outset white; color: #222; background: #e8e6df; font-size: 1.1rem; cursor: pointer; }
.policy-content { padding: clamp(28px, 5vw, 52px); max-height: 64vh; overflow-y: auto; }
.policy-content section { display: none; }
.policy-content section.active { display: block; }
.policy-content h2 { margin: 15px 0 24px; font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: .95; letter-spacing: -.05em; }
.policy-content p { color: #53606e; line-height: 1.7; }
.policy-content code { overflow-wrap: anywhere; color: var(--blue); }
.policy-explorer-link { display: inline-flex; margin-top: 10px; color: var(--blue); font-weight: 700; text-decoration: underline; }
.policy-close { margin: 0 0 28px clamp(28px, 5vw, 52px); min-width: 110px; padding: 10px 18px; border: 1px solid #6e747a; background: #e7e5df; cursor: pointer; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 28px; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 4px; background: white; color: var(--ink); font: .78rem var(--mono); opacity: 0; pointer-events: none; transition: .25s ease; box-shadow: 0 15px 50px rgba(0,0,0,.3); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 860px) {
  .site-header { min-height: 70px; }
  .site-header nav { display: none; }
  .brand small { display: none; }
  .hero { min-height: 760px; height: 100svh; }
  .hero-art { object-position: 67% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(3,8,27,.97), rgba(3,8,27,.7) 67%, rgba(3,8,27,.3)), linear-gradient(0deg, rgba(3,8,27,.8), transparent 50%); }
  .hero-copy { margin: 0 24px; width: min(620px, calc(100vw - 48px)); }
  .hero h1 { font-size: clamp(3.5rem, 15vw, 6.6rem); }
  .mission-grid { grid-template-columns: 1fr; }
  .mascot-card { max-width: 500px; }
  .holder-shell { grid-template-columns: 1fr; }
  .holder-portrait-wrap { min-height: 480px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: auto; padding: 28px 0; }
  .steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.18); }
  footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-meta { justify-items: center; }
}

@media (max-width: 560px) {
  .site-header { padding-inline: 16px; }
  .button-small { padding: 0 14px; min-height: 40px; }
  .hero-copy { margin-inline: 19px; width: calc(100vw - 38px); padding-top: 90px; }
  .hero h1 { font-size: clamp(3.15rem, 16vw, 5.2rem); }
  .hero-intro { font-size: .98rem; line-height: 1.55; }
  .hero-actions .button { width: 100%; }
  .scroll-cue { display: none; }
  .section { padding: 85px 20px; }
  .section-heading { margin-bottom: 42px; }
  .section-heading h2 { font-size: 2.75rem; }
  .facts { gap: 12px; }
  .facts dd { font-size: .9rem; }
  .ca-panel { align-items: stretch; flex-direction: column; }
  .ca-panel button { width: 100%; }
  .window-content { grid-template-columns: 1fr; gap: 22px; }
  .window-content h2 { font-size: 2.5rem; }
  .dialog-actions .button { width: 100%; }
  .holder-portrait-wrap { min-height: 340px; }
  .balance-heading, .supply-line { align-items: flex-start; flex-direction: column; }
  .cookie-notice { align-items: stretch; flex-direction: column; }
  .cookie-actions { justify-content: flex-end; }
}

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