:root {
  color-scheme: dark;
  --background: #09070e;
  --surface: #15101d;
  --text: #faf4ff;
  --muted: #c2b5cb;
  --accent: #d3a7ff;
  --green: #b7fa55;
  --line: #35283f;
  --gutter: clamp(20px, 6vw, 100px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); font-family: "DM Sans", sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }

.header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 82px;
  gap: 20px;
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: #100b17;
}
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; font-weight: 800; white-space: nowrap; }
.brand-face { width: 38px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.brand-face img { width: 100%; height: 100%; object-fit: cover; }
.brand-dollar { font-size: .73rem; color: var(--accent); }
.header nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 36px); }
.header nav a { color: var(--muted); font-size: .73rem; font-weight: 800; letter-spacing: .08em; }
.header nav a:hover { color: var(--text); }
.header-cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease;
}
.header-cta { justify-self: end; padding: 10px 14px; color: var(--text); border-color: #6a4e7e; }
.header-cta:hover, .btn-outline:hover { background: #271b33; border-color: var(--accent); }
.pump-button-icon { display: block; width: 24px; height: 24px; flex: none; }
.telegram-icon { display: block; width: 20px; height: 20px; }
.btn { min-height: 54px; padding: 0 17px; }
.btn-lime { background: var(--green); color: #141d0a; }
.btn-lime:hover { background: #d2ff95; }
.btn-outline { border-color: #6a4e7e; background: #170f20; }

.section-pad { padding: clamp(60px, 8vw, 115px) var(--gutter); }
.hero, .story { display: grid; align-items: center; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(25px, 6vw, 100px); }
.hero {
  min-height: min(720px, 78vw);
  padding-block: clamp(40px, 5vw, 78px);
  background: radial-gradient(ellipse at 68% 47%, #311042 0%, transparent 62%), linear-gradient(145deg, #100817, #08070b);
}
h1, h2 { font-family: "Space Grotesk", "DM Sans", sans-serif; line-height: .96; letter-spacing: -.065em; margin: 0; }
h1 { font-size: clamp(67px, 10.1vw, 155px); }
h2 { font-size: clamp(38px, 6vw, 83px); }
h1 span, h2 span { color: var(--accent); }
.hero-copy p, .story-copy p { color: var(--muted); max-width: 37ch; line-height: 1.65; }
.hero-copy p { margin: 24px 0; font-size: clamp(16px, 1.6vw, 21px); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-visual { min-width: 0; }
.hero-visual-frame { max-width: 650px; margin-inline: auto; }
.hero-visual-frame img { width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: screen; }

.story { background: #120d19; border-block: 1px solid var(--line); grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
.story-image { margin-inline: auto; width: min(100%, 465px); }
.story-image img { width: 100%; aspect-ratio: 1; border: 1px solid #5b3b6b; border-radius: 22px; object-fit: contain; }
.section-label { color: var(--accent); font-size: .74rem; font-weight: 800; letter-spacing: .14em; margin-bottom: 18px; }
.story-copy p { margin: 20px 0 0; font-size: clamp(16px, 1.4vw, 19px); }
.gallery { background: #0c0811; }
.gallery-head { margin: 0 auto 28px; max-width: 1300px; }
.gallery-card { margin: 0 auto; max-width: 1300px; border: 1px solid var(--line); border-radius: 21px; overflow: hidden; background: #050405; }
.gallery-card img { width: 100%; aspect-ratio: 3 / 1; object-fit: contain; }

.links, .contract { text-align: center; border-top: 1px solid var(--line); }
.chart { background: #0c0811; border-top: 1px solid var(--line); }
.chart-inner { margin-inline: auto; max-width: 1300px; }
.chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.chart-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.chart-message { margin: 0; padding: 36px 22px; color: var(--muted); text-align: center; }
.chart-panel iframe { display: block; width: 100%; height: clamp(450px, 60vw, 680px); border: 0; }
.chart-panel [hidden] { display: none; }
.links { background: #130d1b; }
.link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 36px auto 0; max-width: 1120px; }
.social-card {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 14px;
  min-height: 100px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #1c1327;
  transition: border-color .18s ease, background .18s ease;
}
.social-card:hover { border-color: var(--accent); background: #261a34; }
.social-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 10px; background: #110b17; }
.x-icon { background: #000; color: white; }
.tg-icon { background: #297cab; color: white; }
.pump-icon { background: #15241b; }
.social-card strong { display: block; font-size: .82rem; }
.social-card small { display: block; color: var(--muted); margin-top: 4px; }
.social-arrow { margin-left: auto; color: var(--accent); }

.contract { background: radial-gradient(ellipse at 50% 0%, #21112e, transparent 70%); }
.contract-inner { max-width: 750px; margin-inline: auto; }
.ca-box { display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 18px; margin-top: 30px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.ca-box code { flex: 1; min-width: 0; overflow-wrap: anywhere; text-align: left; }
.ca-box button { cursor: pointer; border: 0; border-radius: 8px; padding: 12px 15px; background: var(--accent); color: #190d22; font-size: .76rem; font-weight: 800; white-space: nowrap; }
.ca-box button:hover { background: #ead2ff; }
.ca-box button:disabled, [data-link].unconfigured { opacity: .6; cursor: not-allowed; }
.contract-small, #copy-status { color: var(--muted); font-size: .8rem; }
#copy-status:not(:empty) { margin-top: 10px; color: var(--accent); }
footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 23px var(--gutter); border-top: 1px solid var(--line); }
.footer-brand { font-weight: 800; }
.footer-brand span { margin-left: 6px; color: var(--accent); font-size: .73rem; }
footer small { color: var(--muted); }

@media (max-width: 920px) {
  .header { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .header nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; padding-block: 4px; }
  .header-cta { grid-row: 1; grid-column: 2; }
}
@media (max-width: 700px) {
  .hero, .story { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 28px; }
  .hero-visual-frame { max-width: 460px; }
  .story-copy { grid-row: 1; }
  .link-grid { grid-template-columns: minmax(0, 1fr); max-width: 450px; }
  .social-card { min-height: 76px; }
}
@media (max-width: 430px) {
  .brand { gap: 7px; font-size: .88rem; }
  .brand-face { width: 30px; }
  .brand-dollar { display: none; }
  .header-cta { gap: 6px; padding: 8px 9px; font-size: .69rem; }
  .header-cta .pump-button-icon { width: 19px; height: 19px; }
  h1 { font-size: clamp(59px, 17vw, 76px); }
  .ca-box { display: grid; padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
