:root {
  color-scheme: dark;
  --space: #06091b;
  --panel: #0c1530;
  --line: #273766;
  --white: #f3f5ff;
  --dim: #bbc8e2;
  --ice: #9af4ff;
  --edge: clamp(20px, 5vw, 78px);
  --width: 1330px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--space);
  color: var(--white);
  font: 16px/1.6 "DM Sans", "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ice); outline-offset: 4px; }
h1, h2, p, figure { margin: 0; }
h1, h2, .brand, .footer-brand {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 700;
}
h1, h2 { line-height: .96; letter-spacing: -.06em; text-wrap: balance; }
h2 { font-size: clamp(2.4rem, 5.4vw, 5rem); }
img { display: block; max-width: 100%; }

.header, footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px max(var(--edge), calc((100% - var(--width)) / 2));
  background: #070b21;
}
.header { border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 11px; align-items: center; font-size: 1.18rem; }
.brand-face {
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid #639fe4;
  border-radius: 50%;
}
.brand-face img { width: 100%; height: auto; }
.header nav { display: flex; flex-wrap: wrap; gap: clamp(14px, 3vw, 40px); }
.header nav a { font-size: .75rem; letter-spacing: .11em; font-weight: 800; }
.header nav a:hover, .footer-brand:hover { color: var(--ice); }
.section-pad {
  padding: clamp(60px, 8vw, 116px) max(var(--edge), calc((100% - var(--width)) / 2));
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
  padding-block: clamp(32px, 6vw, 88px);
  background:
    radial-gradient(ellipse at 77% 40%, #183b85 0%, transparent 58%),
    radial-gradient(ellipse at 12% 90%, #22114d 0%, transparent 48%),
    var(--space);
}
.hero h1 { font-size: clamp(3rem, 8vw, 8.5rem); }
.hero h1 span {
  display: block;
  color: var(--ice);
  background: linear-gradient(105deg, #c8ffff 4%, #75c4ff 46%, #b3a5ff 88%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-copy > p { margin-top: 21px; color: var(--dim); font-size: clamp(1.05rem, 1.65vw, 1.35rem); }
.hero-copy .source-note, .section-note, .contract-small, footer small {
  color: var(--dim);
  font-size: .84rem;
}
.hero-copy .source-note { margin-top: 12px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.header-cta, .btn, .ca-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  min-height: 48px;
  padding: 0 15px;
  transition: background-color .18s, border-color .18s;
}
.btn { min-height: 53px; padding-inline: 18px; }
.header-cta, .btn-lime, .ca-box button { background: var(--ice); color: #080f26; }
.header-cta:hover, .btn-lime:hover, .ca-box button:hover { background: #cefbff; }
.btn-outline { border-color: #6179b3; background: #101933; }
.btn-outline:hover { border-color: var(--ice); background: #19264c; }
.pump-button-icon { width: 24px; height: 24px; }
.telegram-icon { width: 20px; height: 20px; }

.hero-visual-frame, .gallery-card {
  overflow: hidden;
  border: 1px solid #6388d2;
  border-radius: clamp(12px, 2vw, 24px);
  background: #0a1435;
}
.hero-visual-frame { box-shadow: 0 0 50px #326dff36; }
.hero-visual-frame img, .gallery-card img { width: 100%; height: auto; }
.story {
  border-block: 1px solid var(--line);
  background: radial-gradient(ellipse at 0% 40%, #1c2053, transparent 70%), #0a1028;
}
.story-inner {
  display: grid;
  grid-template-columns: 1fr .85fr;
  align-items: center;
  gap: clamp(24px, 5vw, 86px);
}
.story h2 span { display: block; color: #b6b9ff; }
.story-copy { max-width: 44ch; color: var(--dim); font-size: clamp(1rem, 1.6vw, 1.22rem); }
.story-copy p + p { margin-top: 15px; }
.gallery { background: radial-gradient(ellipse at 75% 100%, #14224e, transparent 85%); }
.gallery h2 { margin-bottom: 28px; }
.links, .contract { text-align: center; border-top: 1px solid var(--line); }
.links { background: #0a112a; }
.section-note { margin: 14px 0 26px; }
.link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.social-card {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 94px;
  padding: 16px;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  transition: background-color .18s, border-color .18s;
}
.social-card:hover { border-color: var(--ice); background: #152047; }
.social-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  background: #18244a;
  border-radius: 9px;
}
.tg-icon, .social-arrow { color: var(--ice); }
.social-card strong, .social-card small { display: block; }
.social-card strong { font-size: .83rem; }
.social-card small { color: var(--dim); }
.social-arrow { margin-left: auto; }
.contract { background: radial-gradient(ellipse at 50% 140%, #242457, transparent 75%); }
.contract-inner { max-width: 740px; margin: auto; }
.ca-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
}
.ca-box code { flex: 1; min-width: 0; padding-inline: 6px; overflow-wrap: anywhere; }
.ca-box button { flex-shrink: 0; cursor: pointer; }
.ca-box button:disabled { cursor: not-allowed; background: #293357; color: var(--dim); }
#copy-status { min-height: 24px; margin-top: 7px; color: var(--ice); font-size: .83rem; }
footer { border-top: 1px solid var(--line); }
.footer-brand { font-size: 1.05rem; }
[data-link].unconfigured { opacity: .65; cursor: not-allowed; }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(3.2rem, 12vw, 7rem); }
  .hero-visual { width: min(100%, 630px); }
  .link-grid { grid-template-columns: 1fr; max-width: 540px; margin-inline: auto; }
  .social-card { min-height: 76px; }
}
@media (max-width: 550px) {
  .header nav { order: 1; width: 100%; padding-top: 4px; }
  .story-inner { grid-template-columns: 1fr; }
  .ca-box { align-items: stretch; flex-direction: column; }
  .ca-box code { padding: 5px 0; font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
