/* Coocoin. Жирный контур, плоская заливка, твёрдая тень. */

:root {
  --paper: #fffdf6;
  --paper-2: #e6eef4;
  --paper-3: #f6efd8;
  --ink: #141414;
  --blue: #8ca5b8;
  --blue-deep: #6b869b;
  --cream: #f8f0c8;
  --mauve: #b06c7c;
  --yolk: #f3b52e;
  --red: #c9384f;
  --green: #3f9e6a;
  --muted: #5d6670;

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 30px;

  --line: 3px solid var(--ink);
  --pop: 6px 6px 0 var(--ink);
  --pop-sm: 4px 4px 0 var(--ink);

  --wrap: 1180px;
  --pad: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Figtree, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  overflow-x: clip;
}

h1, h2, h3, .display {
  font-family: Fredoka, Figtree, system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.1; }
h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.08; }
h3 { font-size: 23px; }

p { margin: 0 0 18px; }
a { color: inherit; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.lede {
  font-size: 20px;
  color: var(--muted);
  max-width: 54ch;
}

/* ---------- фоновая жизнь ---------- */

.blobs {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  animation: drift 34s ease-in-out infinite;
}
.blob.b1 { background: #a9c3d6; top: -14vw; left: -10vw; }
.blob.b2 { background: #f2e3a8; bottom: -18vw; right: -8vw; animation-delay: -12s; }
.blob.b3 { background: #d9b2bd; top: 44vw; left: 52vw; animation-delay: -22s; }

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(3vw, -4vw, 0) scale(1.12); }
}

.dots {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(20, 20, 20, 0.12) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: 0.5;
}


/* ---------- зерно ---------- */
/* Шум поверх всего. Он же прячет артефакты сжатия в фоновом видео. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.28;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}
.hero .hero-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ---------- навигация ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 246, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 78px;
}
.brand img { display: block; height: 38px; width: auto; }
.nav nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  position: relative;
  padding: 4px 0;
  transition: transform 0.18s ease;
}

.nav nav a:hover { transform: translateY(-3px) scale(1.06); }

.btn {
  display: inline-block;
  font-family: Fredoka, sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  padding: 12px 22px;
  border: var(--line);
  border-radius: var(--r-sm);
  background: var(--yolk);
  box-shadow: var(--pop-sm);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.ghost { background: var(--paper); }
.btn.blue { background: var(--blue); }

/* ---------- герой ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: var(--line);
  min-height: 86vh;
  display: grid;
  align-items: center;
  padding-top: 92px;
  padding-bottom: 104px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 16, 18, 0.95) 0%, rgba(14, 16, 18, 0.82) 42%, rgba(14, 16, 18, 0.45) 100%),
    linear-gradient(0deg, rgba(14, 16, 18, 0.7), rgba(14, 16, 18, 0.25));
}
.hero .wrap { max-width: var(--wrap); }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .lede { color: rgba(255, 255, 255, 0.78); max-width: 50ch; }
.hero h1 span.hl {
  color: var(--cream);
}
.hero .lede { margin-top: 24px; margin-bottom: 0; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

.screen {
  border: var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--pop);
  background: #141414;
  overflow: hidden;
  position: relative;
}
/* Чуть растягиваем и обрезаем: иначе по скруглённым углам остаётся
   светлая ниточка между рамкой и кадром. Фон под видео тоже тёмный,
   чтобы никакой просвет не читался как белая полоса. */
.screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.035);
  transform-origin: center;
}
.screen .tag.top { top: 16px; bottom: auto; }
.screen .tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  background: var(--paper);
  border: var(--line);
  border-radius: var(--r-xs);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

/* ---------- цифры карточками ---------- */

.stats { padding: 56px 0 0; }
.statcards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.statcard {
  border: var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--pop-sm);
  padding: 26px 20px 24px;
  text-align: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.statcard:hover { transform: translate(-2px, -2px); box-shadow: var(--pop); }
.statcard:nth-child(1) { background: var(--paper-2); }
.statcard:nth-child(2) { background: var(--paper-3); }
.statcard:nth-child(3) { background: var(--paper-2); }
.statcard:nth-child(4) { background: var(--paper-3); }
.statcard .num {
  font-family: Fredoka, sans-serif;
  font-weight: 600;
  font-size: 42px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.statcard .num small { font-size: 20px; margin-left: 3px; }
.statcard .lab { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* ---------- секции ---------- */

section { padding: 104px 0; }
.sec-head { max-width: 60ch; margin-bottom: 60px; }
.sec-head p { margin: 20px 0 0; color: var(--muted); font-size: 18px; }

/* три карточки в ряд, под каждой свой абзац */

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}
.trio .col h3 { margin: 26px 0 10px; min-height: 2.15em; }
.trio .col p { margin: 0; color: var(--muted); font-size: 16px; }

.card-nft {
  border: var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--pop-sm);
  overflow: hidden;
}
.card-nft .art {
  background: var(--paper-2);
  border-bottom: var(--line);
  padding: 20px 24px 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 236px;
  overflow: hidden;
}
/* Размер задаём ШИРИНОЙ: головы у всех одинаковые, а палки разной длины,
   и по высоте головы разъехались бы. Конец палки прячется за нижним краем. */
.card-nft .art img {
  width: 54%;
  height: auto;
  display: block;
  animation: bob 5.5s ease-in-out infinite;
}
.trio .col:nth-child(2) .art img { animation-delay: -1.9s; }
.trio .col:nth-child(3) .art img { animation-delay: -3.4s; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-12px) rotate(1.5deg); }
}
.card-nft .body { padding: 18px 20px; }
.card-nft .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 2px dashed rgba(20, 20, 20, 0.18);
}
.card-nft .row:last-child { border-bottom: 0; }
.card-nft .k { font-size: 13px; color: var(--muted); }
.card-nft .v { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.card-nft .big {
  font-family: Fredoka, sans-serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.card-nft .big small { font-size: 14px; font-weight: 600; margin-left: 3px; }
.card-nft .slots { display: flex; gap: 5px; }
.card-nft .foot {
  border-top: var(--line);
  background: var(--yolk);
  padding: 13px;
  text-align: center;
  font-family: Fredoka, sans-serif;
  font-weight: 600;
  font-size: 15px;
}
.chip {
  display: inline-block;
  border: var(--line);
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: 700;
  background: var(--cream);
}
.chip.core { background: var(--blue); }
.chip.base { background: var(--cream); }
.chip.risk { background: var(--mauve); color: var(--paper); }

/* шаги */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.step {
  border: var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--pop-sm);
  padding: 30px 28px 32px;
  position: relative;
}
.step .n {
  font-family: Fredoka, sans-serif;
  font-size: 54px;
  font-weight: 600;
  line-height: 1;
  color: var(--blue-deep);
}
.step h3 { margin: 12px 0 12px; min-height: 2.1em; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

/* слоты тикеров */

.slots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.slot {
  border: var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--pop-sm);
  background: var(--paper);
}
.slot .top {
  padding: 18px 22px;
  border-bottom: var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.slot .top h3 { font-size: 21px; }
.slot .share { font-weight: 700; font-variant-numeric: tabular-nums; }
.slot.core .top { background: var(--blue); }
.slot.base .top { background: var(--cream); }
.slot.risk .top { background: var(--mauve); color: var(--paper); }
.slot ul { list-style: none; margin: 0; padding: 20px 22px 24px; display: grid; gap: 12px; }
.slot li {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 15px;
  padding-bottom: 9px;
  border-bottom: 2px dashed rgba(20, 20, 20, 0.16);
}
.slot li:last-child { border-bottom: 0; padding-bottom: 0; }
.slot li span { color: var(--muted); font-weight: 500; }

/* две колонки с видео */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.flip .screen { order: -1; }

/* FAQ. Каждый вопрос это отдельный островок, а не строка с перегородкой. */

.faq { display: grid; gap: 14px; }

.q {
  border: var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--pop-sm);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.25s ease;
}
.q:hover { transform: translate(-2px, -2px); box-shadow: var(--pop); }
.q[open-state] {
  background: var(--paper-3);
  transform: translate(-2px, -2px);
  box-shadow: var(--pop);
}

.q button {
  width: 100%;
  background: none;
  border: 0;
  padding: 22px 26px;
  font-family: Fredoka, sans-serif;
  font-size: 19px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  color: inherit;
}
/* Стрелка рисуется рамками, а не символом: глиф плюса сидел в квадрате
   не по центру из-за метрик шрифта. */
.q .mark {
  flex: none;
  width: 30px;
  height: 30px;
  border: var(--line);
  border-radius: var(--r-xs);
  background: var(--cream);
  display: grid;
  place-items: center;
  transition: background 0.25s ease;
}
.q .mark::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.3s ease;
}
.q[open-state] .mark { background: var(--yolk); }
.q[open-state] .mark::after { transform: translateY(2px) rotate(-135deg); }
.q .panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s ease;
}
.q[open-state] .panel { grid-template-rows: 1fr; }
.q .panel > div { overflow: hidden; min-height: 0; }
.q .panel p {
  color: var(--muted);
  padding: 0 26px 26px;
  max-width: 70ch;
  margin: 0;
}

/* призыв */

.cta-panel {
  margin-top: 8px;
  border: var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--pop);
  background:
    radial-gradient(circle at 18% 22%, rgba(140, 165, 184, 0.75), transparent 52%),
    radial-gradient(circle at 82% 78%, rgba(243, 181, 46, 0.6), transparent 50%),
    var(--paper-3);
  padding: 62px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-panel h2 { max-width: 20ch; margin: 0 auto; }
.cta-panel p { margin: 20px auto 32px; max-width: 46ch; color: var(--muted); font-size: 18px; }

/* Низ палки растворяется, а не обрубается: конец вилки нарисован поверх
   самой головы, обрезкой его не убрать. */
.wl-done img {
  -webkit-mask-image: linear-gradient(to bottom, #000 68%, rgba(0, 0, 0, 0) 94%);
  mask-image: linear-gradient(to bottom, #000 68%, rgba(0, 0, 0, 0) 94%);
}

/* подвал */

footer {
  border-top: var(--line);
  background: var(--paper-2);
  padding: 62px 0;
}

.foot-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 0;
}

.foot-brand img { height: 40px; display: block; }
.foot-brand p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 40ch;
}
.foot-col h4 {
  font-family: Fredoka, sans-serif;
  font-weight: 600;
  font-size: 17px;
  margin: 0 0 18px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; }

.foot-col a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  justify-self: start;
  transition: transform 0.16s ease;
}
.foot-col a:hover { transform: translateY(-2px) scale(1.04); }


/* появление */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.on { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .split, .steps, .slots-grid, .trio { grid-template-columns: 1fr; }
  .trio { gap: 44px; }
  .statcards { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 0; padding-top: 64px; padding-bottom: 72px; }
  .hero h1, .hero .lede { max-width: none; }
  .split.flip .screen { order: 0; }
  .nav nav a:not(.btn) { display: none; }
  section { padding: 70px 0; }
}

@media (max-width: 960px) {
  .foot-top { grid-template-columns: 1fr 1fr; gap: 38px; }
}

@media (max-width: 520px) {
  .foot-top { grid-template-columns: 1fr; }
  :root { --pad: 18px; }
  .cta-panel { padding: 44px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- кикер над заголовком ---------- */

.kicker {
  display: inline-block;
  font-family: Fredoka, sans-serif;
  font-weight: 600;
  font-size: 15px;
  background: var(--mauve);
  color: var(--paper);
  border: var(--line);
  border-radius: var(--r-xs);
  padding: 6px 13px;
  box-shadow: var(--pop-sm);
  margin: 0 0 22px;
  transform: rotate(-1.4deg);
}

.card-nft .big small { font-size: 17px; font-weight: 600; margin-left: 4px; }
.card-nft .art { background: var(--paper); }
.band .num small { font-size: 20px; margin-left: 3px; }

/* ---------- список ожидания ---------- */



/* Один блок, а не две плиты рядом: рамка и тень общие. */
.wl {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: stretch;
  border: var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--pop);
  background: var(--paper);
  overflow: hidden;
}

.wl-copy {
  background: var(--paper-2);
  border-right: var(--line);
  padding: 46px 42px 0;
  display: flex;
  flex-direction: column;
}
.wl-copy h2 { font-size: clamp(30px, 3vw, 40px); }
.wl-copy .lede { font-size: 18px; }

.wl-notes { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.wl-notes li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 15px;
  font-weight: 600;
}
.wl-notes li::before {
  content: "";
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 5px;
  border: var(--line);
  border-radius: 5px;
  background: var(--yolk);
}

.wl-birds {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 34px;
  /* Опускаем ниже края панели: обрезанные концы палок уходят под рамку. */
  margin-bottom: -74px;
}
.wl-birds img {
  width: 150px;
  height: auto;
  animation: bob 5.4s ease-in-out infinite;
}
.wl-birds img:nth-child(2) { animation-delay: -2.4s; width: 168px; }

.wl-form {
  border: 0;
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
  padding: 46px 42px 42px;
}

.tasks { display: grid; gap: 12px; margin-bottom: 30px; }

.task {
  display: flex;
  align-items: center;
  gap: 13px;
  border: var(--line);
  border-radius: var(--r-sm);
  background: var(--paper-2);
  padding: 13px 15px;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.2s ease;
}
.task:hover { transform: translate(-2px, -2px); box-shadow: var(--pop-sm); }
.task input { position: absolute; opacity: 0; pointer-events: none; }
.task .box {
  flex: none;
  width: 26px;
  height: 26px;
  border: var(--line);
  border-radius: 7px;
  background: var(--paper);
  display: grid;
  place-items: center;
}
.task .box::after {
  content: "";
  width: 13px;
  height: 8px;
  border-left: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: rotate(-45deg) scale(0);
  transition: transform 0.18s ease;
}
.task input:checked ~ .box { background: var(--yolk); }
.task input:checked ~ .box::after { transform: rotate(-45deg) scale(1); }
.task input:checked ~ .txt { text-decoration: line-through; opacity: 0.55; }
.task .txt { font-size: 16px; }
.task .go {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 7px;
}
.field input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 13px 15px;
  border: var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: inherit;
}
.field input::placeholder { color: #9aa3ad; }
.field input:focus {
  outline: none;
  box-shadow: var(--pop-sm);
  background: var(--cream);
}
.field.bad input { background: #fde8ea; }

.wl-submit { width: 100%; font-size: 18px; padding: 15px; margin-top: 6px; }
.fine { font-size: 13px; color: var(--muted); text-align: center; margin: 14px 0 0; }
.err {
  background: var(--red);
  color: var(--paper);
  border: var(--line);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 16px;
}

.wl-done {
  grid-column: 2;
  background: var(--cream);
  padding: 52px 42px 46px;
  text-align: center;
  display: grid;
  place-content: center;
  justify-items: center;
}
.wl-done img { width: 140px; height: auto; animation: bob 4.6s ease-in-out infinite; }
.wl-done h3 { font-size: 30px; margin: 14px 0 10px; }
.wl-done p { color: var(--muted); max-width: 34ch; margin: 0 auto 22px; }

@media (max-width: 960px) {
  .wl { grid-template-columns: 1fr; }
  .wl-copy { border-right: 0; border-bottom: var(--line); padding: 36px 26px 0; }
  .wl-form { padding: 36px 26px 34px; }
  .wl-done { grid-column: 1; }
  .wl-birds img { width: 118px; }
  .wl-birds img:nth-child(2) { width: 132px; }
}

/* `hidden` обязан побеждать раскладку, иначе карточка успеха видна сразу. */
[hidden] { display: none !important; }
