/* ============ RESET & TOKENS ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #101010;
  --bg-alt: #0b0b0b;
  --surface: #1b1b1b;
  --surface-2: #262626;
  --surface-3: #1e1e1e;
  --border: #2a2a2a;
  --text: #ffffff;
  --muted: #bcbcbc;
  --muted-2: #8a8a8a;
  --accent: #38ff9c;
  --accent-dim: #35ec91;
  --radius: 20px;
  --maxw: 1200px;
}

html { scroll-behavior: smooth; }

/* anchor targets clear the sticky navbar */
#ecosystem, #feature, #token, #roadmap, #trade { scroll-margin-top: 96px; }

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* baseline: no image may overflow its container */
img { max-width: 100%; height: auto; }

/* Grid tracks default to min-width:auto, so wide content (SVG charts, inputs)
   can stop a column shrinking on small screens. Let these layouts shrink. */
.swapsec > *,
.tstat__body > *,
.mine > *,
.util > *,
.ecohead > *,
.tok__body > *,
.footer__grid > *,
.grid > * { min-width: 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 32px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn--green { background: var(--accent); color: #05130b; }
.btn--green:hover { background: #57ffae; box-shadow: 0 0 24px rgba(56,255,156,.35); }
.btn--dark { background: #0b0b0b; color: #fff; }
.btn--dark:hover { background: #000; }
.btn--ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.12); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--gradient { background: linear-gradient(100deg, #38ff9c 0%, #22c37a 55%, #12a866 100%); color: #05130b; }
.btn--gradient:hover { box-shadow: 0 0 28px rgba(56,255,156,.4); filter: brightness(1.05); }
.btn--lg { padding: 14px 32px; font-size: 15px; }
.btn--sm { padding: 7px 16px; font-size: 13px; }

/* ============ TOP CTA BAR ============ */
.cta-bar {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dim) 60%, #2fd583 100%);
  color: #05130b;
}
.cta-bar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cta-bar__text { display: flex; flex-direction: column; line-height: 1.25; }
.cta-bar__text strong { font-size: 16px; font-weight: 700; }
.cta-bar__text span { font-size: 13px; opacity: .8; }

/* ============ NAVBAR ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16,16,16,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand__mark { display: inline-flex; }
.brand__logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 12px rgba(56,255,156,.25);
}
.brand__name { font-weight: 700; font-size: 19px; letter-spacing: -.02em; }

.nav__links { display: flex; align-items: center; gap: 6px; margin-left: 12px; }
.nav__links a {
  font-size: 14px;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 32px;
  transition: all .18s ease;
}
.nav__links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav__links a.active { color: #fff; }

.nav__actions { margin-left: auto; display: flex; gap: 10px; }

.nav__burger { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; margin-left: auto; }
.nav__burger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 100px 0 110px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -10%;
  left: 40%;
  transform: translateX(-50%);
  width: 900px;
  height: 640px;
  background: radial-gradient(ellipse at center, rgba(56,255,156,.28) 0%, rgba(56,255,156,.08) 35%, transparent 68%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 40px;
}
.hero__content { text-align: left; }
.hero__title {
  font-size: clamp(40px, 6vw, 69px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.hero__sub {
  max-width: 520px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 18px;
}
.hero__actions { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__art { width: 100%; max-width: 520px; height: auto; display: block; }
.hero__podium {
  position: relative;
  width: 100%;
  max-width: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__podium::before {
  content: "";
  position: absolute;
  inset: 2% 6% 20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,255,156,.35) 0%, rgba(56,255,156,.1) 42%, transparent 70%);
  filter: blur(26px);
  z-index: 0;
}
.hero__podium-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.5));
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(-6px); }
  50% { transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__podium-img { animation: none; }
}
.hero__globe {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 380px;
  height: 380px;
  max-width: 82%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  opacity: .13;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20200%20200'%3E%3Cg%20fill='none'%20stroke='%2338ff9c'%20stroke-width='0.9'%3E%3Ccircle%20cx='100'%20cy='100'%20r='96'/%3E%3Cline%20x1='100'%20y1='4'%20x2='100'%20y2='196'/%3E%3Cellipse%20cx='100'%20cy='100'%20rx='34'%20ry='96'/%3E%3Cellipse%20cx='100'%20cy='100'%20rx='68'%20ry='96'/%3E%3Cline%20x1='4'%20y1='100'%20x2='196'%20y2='100'/%3E%3Cellipse%20cx='100'%20cy='100'%20rx='96'%20ry='34'/%3E%3Cellipse%20cx='100'%20cy='100'%20rx='96'%20ry='68'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask-image: radial-gradient(circle, #000 52%, transparent 78%);
  mask-image: radial-gradient(circle, #000 52%, transparent 78%);
  animation: spin 70s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .hero__globe { animation: none; } }

.hero__coin {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__coin::before {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,255,156,.45) 0%, rgba(56,255,156,.12) 45%, transparent 70%);
  filter: blur(24px);
  z-index: 0;
}
.hero__coin-img {
  position: relative;
  z-index: 2;
  width: 86%;
  height: 86%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(56,255,156,.25), 0 24px 60px rgba(0,0,0,.55);
  animation: coinFloat 6s ease-in-out infinite;
}
@keyframes coinFloat {
  0%, 100% { transform: translateY(-8px); }
  50% { transform: translateY(8px); }
}
.hero__ring {
  position: absolute;
  border: 1px solid rgba(56,255,156,.28);
  border-radius: 50%;
  z-index: 1;
}
.hero__ring--1 {
  inset: -4%;
  border-style: dashed;
  animation: spin 26s linear infinite;
}
.hero__ring--2 {
  inset: 6%;
  border-color: rgba(56,255,156,.16);
  animation: spin 34s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .hero__coin-img, .hero__ring { animation: none !important; }
}

/* ============ SECTIONS ============ */
.section { padding: 90px 0; }
.section--alt { background: var(--bg-alt); }
.section__title {
  font-size: clamp(32px, 5vw, 55px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
}
.section__title--green { color: var(--accent); }
.section__lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
  max-width: 620px;
}
/* center all section headings by default */
.section__title,
.section__lead { text-align: center; }
.section__lead { margin-left: auto; margin-right: auto; }
/* Tezos block keeps its left-aligned two-column layout */
.tezos .section__title,
.tezos .section__lead { text-align: left; margin-left: 0; margin-right: 0; }

/* ============ GRIDS ============ */
.grid { display: grid; gap: 20px; margin-top: 48px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ============ CARDS ============ */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px 56px;
  min-height: 210px;
  transition: all .22s ease;
  overflow: hidden;
}
.card:hover { border-color: rgba(56,255,156,.45); background: var(--surface-2); transform: translateY(-3px); }
.card--feature { background: linear-gradient(155deg, #12281c 0%, #1b1b1b 55%); }
.card--feature:hover { border-color: var(--accent); }
.card__icon {
  position: relative;
  align-self: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #1a3d2e 0%, #0f2519 60%, #081410 100%);
  border: 1px solid rgba(56,255,156,.14);
  box-shadow: inset 0 2px 8px rgba(120,255,190,.08), 0 12px 26px rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0 18px;
  transition: transform .25s ease;
}
/* glow behind the badge */
.card__icon::after {
  content: "";
  position: absolute;
  inset: -24%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow, rgba(130,140,255,.6)) 0%, transparent 66%);
  filter: blur(16px);
  z-index: -1;
}
.card__icon svg {
  position: relative;
  z-index: 1;
  width: 50px;
  height: 50px;
  filter: drop-shadow(0 4px 7px rgba(0,0,0,.45));
}
.card:hover .card__icon { transform: translateY(-3px) scale(1.04); }
.card__eyebrow { font-size: 11px; letter-spacing: .12em; color: var(--accent); font-weight: 600; }
.card__title { font-size: 22px; font-weight: 600; }
.card__text { font-size: 14px; color: var(--muted); }
.card__arrow {
  position: absolute;
  left: 24px;
  bottom: 22px;
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--accent);
  transition: all .2s ease;
}
.card:hover .card__arrow { background: var(--accent); color: #05130b; border-color: var(--accent); transform: translateX(4px); }

/* ============ FEATURES ============ */
.features { margin-top: 56px; }
.feature {
  position: relative;
  background: linear-gradient(180deg, #191919 0%, var(--surface-3) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  overflow: hidden;
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56,255,156,.45), transparent);
  opacity: 0;
  transition: opacity .22s ease;
}
.feature:hover {
  border-color: rgba(56,255,156,.4);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.feature:hover::before { opacity: 1; }
.feature__icon {
  position: relative;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 28%, #1c4133 0%, #10261c 62%, #0a1712 100%);
  border: 1px solid rgba(56,255,156,.25);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  margin-bottom: 22px;
  transition: border-color .22s ease, box-shadow .22s ease;
}
.feature__icon {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 16px rgba(56,255,156,.16);
}
.feature__icon::after {
  content: "";
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,255,156,.5) 0%, rgba(56,255,156,.12) 45%, transparent 70%);
  filter: blur(14px);
  z-index: -1;
  opacity: .75;
  animation: iconGlow 3.2s ease-in-out infinite;
}
@keyframes iconGlow {
  0%, 100% { opacity: .55; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1.06); }
}
.feature:hover .feature__icon {
  border-color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 26px rgba(56,255,156,.32);
}
.feature:hover .feature__icon::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .feature__icon::after { animation: none; opacity: .7; transform: none; }
}
.feature__icon svg { width: 28px; height: 28px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.feature__title { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.feature__text { font-size: 14px; color: var(--muted); }

/* ============ TOKEN STAT (DanChart) ============ */
.tstat {
  background: radial-gradient(120% 120% at 80% 0%, #0f1a14 0%, #0b0b0b 60%);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
}
.tstat__head {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 26px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.tstat__brand { display: flex; align-items: center; gap: 14px; }
.tstat__logo {
  width: 50px; height: 50px; border-radius: 50%;
  border: 2px solid var(--accent); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; letter-spacing: -.02em;
  box-shadow: 0 0 18px rgba(56,255,156,.25) inset;
}
.tstat__name { font-weight: 800; font-size: 20px; letter-spacing: .01em; }
.tstat__pair { font-size: 13px; color: var(--muted-2); margin-top: 2px; }
.tstat__meta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.tstat__addr { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.tstat__addr b { color: #fff; letter-spacing: .08em; font-size: 12px; }
.tstat__hash { color: var(--accent); font-family: ui-monospace, Menlo, Consolas, monospace; }
.tstat__live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.tstat__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.tstat__body { display: grid; grid-template-columns: 1.75fr 1fr; }
.tstat__chart { padding: 26px 26px 18px; border-right: 1px solid var(--border); }
.tstat__pricerow { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tstat__price { font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -.02em; }
.tstat__chg { font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 20px; }
.tstat__chg--down { color: #ff8a8a; background: rgba(255,90,90,.12); }
.tstat__chg--up { color: var(--accent); background: rgba(56,255,156,.12); }
.tstat__graph { width: 100%; height: 220px; margin-top: 18px; display: block; }
.tstat__axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted-2); margin-top: 4px; }

.tstat__stats { display: flex; flex-direction: column; }
.tstat__row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px;
  flex: 1;
  border-bottom: 1px solid var(--border);
}
.tstat__row:last-child { border-bottom: 0; }
.tstat__k { font-size: 13px; letter-spacing: .08em; color: var(--muted); }
.tstat__v { font-size: 20px; font-weight: 800; color: var(--accent); }

.tstat__foot {
  padding: 14px 26px;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--muted-2);
}
.tstat__foot a { color: var(--muted); text-decoration: underline; }
.tstat__foot a:hover { color: var(--accent); }

@media (max-width: 820px) {
  .tstat__body { grid-template-columns: 1fr; }
  .tstat__chart { border-right: 0; border-bottom: 1px solid var(--border); }
  .tstat__row { padding: 14px 26px; }
}

/* ============ LIVE MINING STATS ============ */
.minestats { text-align: center; }
.minestats__title {
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 800;
  letter-spacing: .05em;
  color: var(--accent);
  text-shadow: 0 0 26px rgba(56,255,156,.5);
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.minestats__dot {
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent), 0 0 30px rgba(56,255,156,.6);
  animation: pulse 1.8s ease-in-out infinite;
}
.minestats__sub { color: var(--muted); margin: 16px 0 0; font-size: 16px; }
.minestats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 48px;
}
.mstat { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.mstat__num {
  font-size: clamp(40px, 6.5vw, 64px);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 26px rgba(56,255,156,.35);
}
.mstat__num em {
  font-style: normal;
  font-size: .42em;
  font-weight: 800;
  color: var(--accent);
  vertical-align: middle;
  margin-left: 4px;
}
.mstat__label { color: var(--muted); font-size: 15px; }
@media (max-width: 700px) {
  .minestats__grid { grid-template-columns: 1fr; gap: 36px; }
}

/* stats box inside the mining section (framed) */
.mine__statsbox {
  grid-column: 1 / -1;
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 30px 26px;
  border: 1px solid rgba(56,255,156,.25);
  border-radius: 18px;
  background: rgba(56,255,156,.04);
  text-align: center;
}
.mine__statslive {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 4px;
}
.mine__statslive-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}
.mstat__val--flash { animation: valFlash .5s ease; }
@keyframes valFlash { 0% { opacity: .3; } 100% { opacity: 1; } }
@media (max-width: 640px) {
  .mine__statsbox { grid-template-columns: 1fr; gap: 26px; }
}

/* ============ TOKEN UTILITIES ============ */
.util {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 50px;
  align-items: center;
}
.util__visual {
  position: relative;
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.util__scene {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: lighten;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-composite: intersect;
  animation: heroFloat 7s ease-in-out infinite;
}

.util__head { display: flex; align-items: center; gap: 14px; }
.util__badge {
  font-size: 12px; letter-spacing: .18em; font-weight: 700; color: var(--accent);
  border: 1px solid rgba(56,255,156,.4); border-radius: 20px; padding: 6px 14px;
}
.util__title { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.02em; }

.util__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 26px; }
.util__card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 22px 24px;
  transition: border-color .2s ease, transform .2s ease;
}
.util__card:hover { border-color: rgba(56,255,156,.4); transform: translateY(-2px); }
.util__num { position: absolute; top: 20px; right: 22px; font-size: 12px; letter-spacing: .1em; color: var(--muted-2); font-weight: 700; }
.util__card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: radial-gradient(circle at 35% 28%, #1c4133 0%, #10261c 62%, #0a1712 100%);
  border: 1px solid rgba(56,255,156,.25);
  margin-bottom: 16px;
}
.util__card-icon svg { width: 22px; height: 22px; }
.util__card-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.util__card-text { font-size: 14px; color: var(--muted); }

.util__banner {
  display: flex; align-items: center; gap: 14px;
  margin-top: 18px;
  padding: 18px 20px;
  background: rgba(56,255,156,.05);
  border: 1px solid rgba(56,255,156,.18);
  border-radius: 14px;
}
.util__banner-icon {
  flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(56,255,156,.1);
}
.util__banner-icon svg { width: 20px; height: 20px; }
.util__banner p { font-size: 14px; color: var(--muted); }

@media (max-width: 860px) {
  .util { grid-template-columns: 1fr; gap: 34px; }
  .util__visual { order: -1; max-width: 320px; }
}
@media (max-width: 520px) {
  .util__grid { grid-template-columns: 1fr; }
}

/* ============ ROADMAP (in the Tezos frame) ============ */
.tezos.roadmap { display: block; padding: 48px 40px; }
.roadmap__head { position: relative; z-index: 1; text-align: center; }
.roadmap__eyebrow {
  color: var(--accent);
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
}
.roadmap__title { margin-top: 12px; font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; }
.roadmap__sub { margin: 14px auto 0; max-width: 640px; color: var(--muted); font-size: 16px; }

.roadmap__track {
  position: relative;
  z-index: 1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 300px);
  gap: 20px;
  margin-top: 40px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.roadmap__track::-webkit-scrollbar { display: none; }
.roadmap__card {
  scroll-snap-align: start;
  background: rgba(0,0,0,.3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 24px;
  transition: border-color .2s ease;
}
.roadmap__card:hover { border-color: rgba(56,255,156,.4); }
.roadmap__q { color: var(--accent); font-size: 13px; letter-spacing: .1em; font-weight: 700; text-transform: uppercase; }
.roadmap__live { font-style: normal; color: #7dffc0; }
.roadmap__phase { margin: 10px 0 16px; font-size: 22px; font-weight: 700; }
.roadmap__list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.roadmap__list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--muted);
}
.roadmap__list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 7px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.roadmap__bar {
  position: relative;
  z-index: 1;
  height: 4px;
  background: rgba(255,255,255,.08);
  border-radius: 4px;
  margin-top: 24px;
  overflow: hidden;
}
.roadmap__bar span {
  display: block;
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, var(--accent), #22c37a);
  border-radius: 4px;
  transition: width .3s ease, margin-left .3s ease;
}
.roadmap__nav { position: relative; z-index: 1; display: flex; justify-content: center; gap: 16px; margin-top: 26px; }
.roadmap__btn {
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: all .2s ease;
}
.roadmap__btn:hover { background: rgba(255,255,255,.12); }
.roadmap__btn--next { background: linear-gradient(135deg, #38ff9c, #22c37a); color: #05130b; border-color: transparent; }
.roadmap__btn--next:hover { filter: brightness(1.08); box-shadow: 0 0 20px rgba(56,255,156,.4); }
@media (max-width: 640px) {
  .tezos.roadmap { padding: 34px 22px; }
}

/* ============ TOKENOMICS ============ */
.tok__head { text-align: center; }
.tok__eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
}
.tok__title {
  font-size: clamp(30px, 4.6vw, 48px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.02em;
}
.tok__title-accent {
  background: linear-gradient(100deg, #38ff9c 0%, #2dd4bf 50%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.tok__sub { margin: 18px auto 0; max-width: 560px; color: var(--muted); font-size: 18px; }

.tok__body {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 56px;
}
.tok__donut {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.tok__donut-svg {
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
  transform: perspective(900px) rotateX(17deg);
  transform-origin: center 55%;
  filter:
    drop-shadow(0 22px 26px rgba(0,0,0,.6))
    drop-shadow(0 0 34px rgba(56,255,156,.18));
  animation: donutFloat 7s ease-in-out infinite;
}
@keyframes donutFloat {
  0%, 100% { transform: perspective(900px) rotateX(17deg) translateY(-5px); }
  50%      { transform: perspective(900px) rotateX(17deg) translateY(5px); }
}
@media (prefers-reduced-motion: reduce) {
  .tok__donut-svg { animation: none; }
}
.tok__donut-center {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
}
/* faint YOKCoin logo watermark behind the centre text */
.tok__donut-center::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48%;
  aspect-ratio: 1 / 1;
  background: url("../assets/yok-coin.png") center / contain no-repeat;
  border-radius: 50%;
  opacity: .12;
  pointer-events: none;
}
.tok__donut-num {
  font-size: clamp(32px, 4.6vw, 44px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  text-shadow: 0 3px 14px rgba(0,0,0,.7);
}
.tok__donut-lbl {
  margin-top: 8px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: .18em;
  font-weight: 700;
}
.tok__donut-sub {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: .18em;
}

.tok__list { display: flex; flex-direction: column; gap: 12px; }
.tok__row {
  display: grid;
  grid-template-columns: 12px 44px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color .2s ease;
}
.tok__row:hover { border-color: rgba(56,255,156,.35); }
.tok__dot { width: 11px; height: 11px; border-radius: 50%; }
.tok__pct { color: var(--accent); font-weight: 700; font-size: 14px; }
.tok__name { font-size: 14px; font-weight: 600; color: #eaeaea; }
.tok__amt { color: var(--muted); font-size: 13px; font-weight: 600; }

.tok__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.tok__stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  padding: 26px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.tok__k { font-size: 12px; letter-spacing: .1em; color: var(--muted-2); display: inline-flex; align-items: center; gap: 8px; }
.tok__v { font-size: 22px; font-weight: 800; color: #fff; }
.tok__addr { color: var(--accent); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 16px; text-decoration: none; }
.tok__addr:hover { text-decoration: underline; }
.tok__live {
  font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: .1em;
  color: var(--accent); border: 1px solid rgba(56,255,156,.4);
  border-radius: 20px; padding: 2px 7px;
}
@media (max-width: 860px) {
  .tok__body { grid-template-columns: 1fr; gap: 34px; }
  .tok__stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .tok__stats { grid-template-columns: 1fr; }
  .tok__name { font-size: 13px; }
}

/* ============ PLATFORM HUB ============ */
.hub__head { text-align: center; }
.hub__eyebrow {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
}
.hub__head .section__title { margin-top: 14px; }
.hub__grid { margin-top: 44px; }
.card__logo { width: 54px; height: 54px; object-fit: contain; border-radius: 50%; }

/* ============ MINING ============ */
.mine {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.mine__content { text-align: left; }
.mine--reverse .mine__content { order: 2; }
.mine--reverse .mine__visual { order: 1; }
.mine__eyebrow {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
}
.mine__title {
  margin-top: 16px;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  text-align: left;
}
.mine__text {
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
  max-width: 520px;
}
.mine__list { list-style: none; margin: 26px 0 0; display: flex; flex-direction: column; gap: 14px; }
.mine__item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: #eaeaea;
}
.mine__check {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #22c37a);
  display: inline-flex; align-items: center; justify-content: center;
}
.mine__check svg { width: 16px; height: 16px; }
.mine__content .btn { margin-top: 32px; }

.mine__visual {
  position: relative;
  background: radial-gradient(120% 120% at 60% 20%, #16241d 0%, #0d1512 55%, #0a1210 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mine__art { width: 100%; max-width: 460px; height: auto; display: block; }

/* mining stats row */
.mine__stats {
  grid-column: 1 / -1;
  margin-top: 24px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__value {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.02em;
}
.stat__label { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
  .mine__stats { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
}

/* SVG animations */
.mine__coin { animation: coinFloat 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.mine__fan { animation: spin 2.4s linear infinite; }
.mine__fan--2 { animation-duration: 1.8s; }
.mine__fan--3 { animation-duration: 3s; }
.mine__orb { animation: orbFloat 5s ease-in-out infinite; }
.mine__orb--2 { animation: orbFloat 6.5s ease-in-out infinite reverse; }
.mine__spark { animation: twinkle 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.mine__spark--2 { animation-delay: .8s; }
.mine__spark--3 { animation-delay: 1.6s; }
@keyframes orbFloat { 0%,100% { transform: translateY(-6px); } 50% { transform: translateY(6px); } }
@keyframes twinkle { 0%,100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) {
  .mine__coin, .mine__fan, .mine__orb, .mine__spark { animation: none !important; }
}
@media (max-width: 860px) {
  .mine { grid-template-columns: 1fr; gap: 32px; }
  .mine__visual { order: -1; }
}

/* ============ TEZOS BLOCK ============ */
.tezos {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, #14140f 0%, #131313 100%);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 56px 48px;
  overflow: hidden;
}
.tezos__glow {
  position: absolute;
  right: -10%; top: -40%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(56,255,156,.18), transparent 65%);
  pointer-events: none;
}
.tezos__body { position: relative; z-index: 1; }
.tezos__body .btn { margin-top: 26px; }
.tezos__card {
  position: relative;
  z-index: 1;
  background: rgba(0,0,0,.35);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.tezos__card-text { color: var(--muted); font-size: 15px; }

/* ============ FUTURE GRID ============ */
.future { margin-top: 48px; }
.future__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 32px;
  transition: border-color .2s ease;
}
.future__item:hover { border-color: rgba(56,255,156,.4); }
.future__title { font-size: 24px; font-weight: 600; margin-bottom: 12px; }
.future__text { color: var(--muted); font-size: 15px; }

/* ============ TRADE / SWAP ============ */
.swapsec {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 28px;
  align-items: stretch;
  margin-top: 52px;
}
.swapchart, .swapbox {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 26px;
}
.swapchart { display: flex; flex-direction: column; }
.swapchart__head { display: flex; align-items: flex-start; justify-content: space-between; }
.swapchart__pair { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.swapchart__badge {
  font-size: 10px; letter-spacing: .1em; font-weight: 700; color: var(--accent);
  border: 1px solid rgba(56,255,156,.35); border-radius: 20px; padding: 2px 8px;
}
.swapchart__price { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-top: 6px; letter-spacing: -.02em; }
.swapchart__live { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.swapchart__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 1.8s ease-in-out infinite; }
.swapchart__graph { width: 100%; height: 190px; margin-top: 18px; flex: 1; min-height: 150px; }
.swapchart__axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted-2); margin-top: 6px; }

.swapbox { display: flex; flex-direction: column; }
.swapbox__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.swapbox__title { font-size: 20px; font-weight: 800; }
.swapbox__powered { font-size: 12px; color: var(--muted-2); }
.swapfield {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}
.swapfield__label { font-size: 12px; color: var(--muted-2); margin-bottom: 8px; }
.swapfield__row { display: flex; align-items: center; gap: 12px; }
.swapfield__input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: none;
  color: #fff; font-size: 24px; font-weight: 700;
}
.swapfield__input::-webkit-outer-spin-button, .swapfield__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.swapfield__input[readonly] { color: var(--accent); }
.swaptoken {
  flex-shrink: 0;
  display: inline-flex; align-items: center;
  background: rgba(56,255,156,.12);
  border: 1px solid rgba(56,255,156,.3);
  color: var(--accent);
  font-weight: 700; font-size: 15px;
  padding: 8px 16px; border-radius: 24px;
}
.swapflip {
  align-self: center;
  width: 40px; height: 40px; margin: -8px 0;
  border-radius: 12px;
  border: 4px solid var(--surface);
  background: var(--surface-2);
  color: var(--accent);
  font-size: 18px; cursor: pointer;
  position: relative; z-index: 1;
  transition: transform .2s ease, background .2s ease;
}
.swapflip:hover { background: rgba(56,255,156,.15); transform: rotate(180deg); }
.swaprate { text-align: center; font-size: 13px; color: var(--muted); margin: 16px 0; }
.swapbox__btn { width: 100%; margin-top: auto; }
.swapbox__note { text-align: center; font-size: 11px; color: var(--muted-2); margin-top: 12px; }

@media (max-width: 820px) {
  .swapsec { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .swapchart, .swapbox { padding: 20px 16px; }
  .swapchart__graph { height: 150px; min-height: 120px; }
  .swapfield { padding: 12px 13px; }
  .swapfield__input { font-size: 20px; }
  .swaptoken { font-size: 14px; padding: 7px 13px; }
  .swapchart__axis { font-size: 11px; gap: 8px; }
  .swapchart__axis span:nth-child(2) { display: none; }
  .swapbox__note { font-size: 10px; }
}

/* ============ LEGAL PAGES ============ */
.legal { max-width: 840px; margin: 0 auto; }
.legal__back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 30px;
}
.legal__eyebrow { color: var(--accent); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.legal__title { margin-top: 12px; font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -.02em; }
.legal__meta { margin-top: 12px; color: var(--muted-2); font-size: 14px; }
.legal__body { margin-top: 40px; }
.legal__body h2 {
  font-size: 22px; font-weight: 700; margin: 38px 0 12px;
  padding-top: 12px;
}
.legal__body h2:first-child { margin-top: 0; }
.legal__body p { color: var(--muted); font-size: 15px; line-height: 1.75; margin-bottom: 12px; }
.legal__body ul { list-style: none; margin: 8px 0 14px; display: flex; flex-direction: column; gap: 10px; }
.legal__body li { position: relative; padding-left: 22px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.legal__body li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.legal__body a { color: var(--accent); }
.legal__note {
  margin-top: 40px; padding: 20px 22px;
  background: rgba(56,255,156,.05);
  border: 1px solid rgba(56,255,156,.18);
  border-radius: 14px;
  color: var(--muted); font-size: 14px;
}

/* ============ WALLETS ============ */
.wallets { padding: 54px 0; border-top: 1px solid var(--border); }
.wallets__label { text-align: center; color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.wallets__track { gap: 60px; }
.wallet {
  height: 30px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  opacity: .6;
  filter: grayscale(1);
  transition: opacity .2s ease, filter .2s ease;
}
.wallet:hover { opacity: 1; filter: grayscale(0); }
@media (max-width: 720px) {
  .wallet { height: 26px; }
}

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--border); padding: 64px 0 32px; background: var(--bg-alt); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer__brand { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.footer__logo { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.footer__brandcol .brand__name { font-weight: 800; font-size: 20px; letter-spacing: .02em; }
.footer__desc { color: var(--muted); font-size: 14px; line-height: 1.65; max-width: 320px; }
.footer__social { display: flex; gap: 12px; margin-top: 24px; }
.footer__social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--muted);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.footer__social a:hover { background: var(--accent); color: #05130b; transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; }
.footer__head { color: var(--accent); font-size: 13px; letter-spacing: .14em; font-weight: 700; margin-bottom: 20px; }
.footer__navlist { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.footer__navlist a { color: var(--muted); font-size: 14px; transition: color .18s ease; }
.footer__navlist a:hover { color: var(--accent); }
.footer__legal { display: flex; gap: 22px; }
.footer__legal a { color: var(--muted); font-size: 13px; transition: color .18s ease; }
.footer__legal a:hover { color: var(--accent); }
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer__brandcol { grid-column: 1 / -1; }
}
/* keep two columns on phones so the footer stays compact */
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer__head { margin-bottom: 14px; font-size: 12px; }
  .footer__navlist { gap: 11px; }
  .footer__navlist a { font-size: 13px; }
  .footer__desc { font-size: 13px; }
  .footer__bottom { flex-direction: column; gap: 14px; text-align: center; }
  .footer__legal { justify-content: center; }
}
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__links { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer__links a { color: var(--muted); font-size: 14px; transition: color .18s ease; }
.footer__links a:hover { color: var(--accent); }
.footer__sep { color: var(--muted-2); }
.footer__bottom {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--muted-2); font-size: 13px;
}
.footer__powered strong { color: var(--muted); }

/* ============ COOKIE BANNER ============ */
.cookie {
  position: fixed;
  right: 24px; bottom: 24px;
  max-width: 340px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  z-index: 60;
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
  transition: transform .3s ease, opacity .3s ease;
}
.cookie p { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.cookie__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cookie__link { font-size: 13px; color: var(--accent); }
.cookie--hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }

/* ============ PLATFORM MARQUEE ============ */
.partners { position: relative; padding: 46px 0 30px; border-bottom: 1px solid var(--border); overflow: hidden; }
/* thin, faint divider between the hero and this section */
.partners::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56,255,156,.4), transparent);
}
.partners::after {
  content: "";
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 120px;
  background: radial-gradient(ellipse at center, rgba(56,255,156,.06), transparent 70%);
  pointer-events: none;
}
.partners__label {
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 32px;
}
.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: marquee 24s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.platform {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity .2s ease, color .2s ease;
}
.platform:hover { color: var(--accent); opacity: .9; }
.platform img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; }
}
/* legacy partner chips (used on build page) */
.partners__row {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 18px 40px;
}
.partner {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 17px; font-weight: 600; color: var(--muted);
  opacity: .72; transition: opacity .2s ease, color .2s ease;
}
.partner:hover { opacity: 1; color: #fff; }
.partner__dot {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), #2fd583); display: inline-block;
}

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s cubic-bezier(.16,.7,.3,1), transform .6s cubic-bezier(.16,.7,.3,1);
  will-change: opacity, transform;
}
.reveal--in { opacity: 1; transform: none; }
/* stagger children of a revealed grid */
.reveal--in .card,
.reveal--in .feature,
.reveal--in .future__item { animation: pop .5s both; }
.reveal--in .card:nth-child(2), .reveal--in .feature:nth-child(2), .reveal--in .future__item:nth-child(2) { animation-delay: .06s; }
.reveal--in .card:nth-child(3), .reveal--in .feature:nth-child(3), .reveal--in .future__item:nth-child(3) { animation-delay: .12s; }
.reveal--in .card:nth-child(4), .reveal--in .feature:nth-child(4), .reveal--in .future__item:nth-child(4) { animation-delay: .18s; }
.reveal--in .feature:nth-child(5) { animation-delay: .24s; }
.reveal--in .feature:nth-child(6) { animation-delay: .30s; }
@keyframes pop {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal--in .card, .reveal--in .feature, .reveal--in .future__item {
    opacity: 1 !important; transform: none !important; animation: none !important;
  }
}

/* ============ PAGE HEADER (subpages) ============ */
.pagehead { position: relative; padding: 90px 0 60px; text-align: center; overflow: hidden; }
.pagehead__glow {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 760px; height: 460px;
  background: radial-gradient(ellipse at center, rgba(56,255,156,.2), transparent 66%);
  filter: blur(16px); pointer-events: none;
}
.pagehead__inner { position: relative; z-index: 1; }
.pagehead__eyebrow { color: var(--accent); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.pagehead__title { margin-top: 14px; font-size: clamp(34px, 6vw, 60px); font-weight: 700; letter-spacing: -.02em; line-height: 1.06; }
.pagehead__sub { max-width: 600px; margin: 18px auto 0; color: var(--muted); font-size: 18px; }

/* ============ ECOSYSTEM ============ */
.ecosystem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.eco-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; transition: all .2s ease;
}
.eco-card:hover { border-color: rgba(56,255,156,.45); transform: translateY(-3px); }
.eco-card__top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.eco-card__logo { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), #2fd583); flex-shrink: 0; }
/* image logos (real projects) sit on their own artwork, not the gradient */
img.eco-card__logo { background: none; border-radius: 50%; object-fit: contain; }
a.eco-card { display: block; text-decoration: none; color: inherit; }
a.eco-card .eco-card__name { transition: color .18s ease; }
a.eco-card:hover .eco-card__name { color: var(--accent); }
.eco-card[hidden] { display: none; }
.eco-empty { margin-top: 28px; text-align: center; color: var(--muted-2); font-size: 15px; }

/* ---- Ecosystem header: text left, 3D visual right ---- */
.ecohead {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 46px;
  align-items: center;
}
.ecohead__eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
}
.ecohead__text .section__title,
.ecohead__text .section__lead {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}
.ecohead__text .filters { justify-content: flex-start; margin-top: 28px; }
.ecohead__visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 50px rgba(0,0,0,.45), 0 0 40px rgba(56,255,156,.12);
}
.ecohead__img {
  width: 100%;
  height: auto;
  display: block;
  animation: heroFloat 8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .ecohead__img { animation: none; } }
@media (max-width: 860px) {
  .ecohead { grid-template-columns: 1fr; gap: 30px; }
  .ecohead__visual { order: -1; }
  .ecohead__text { text-align: center; }
  .ecohead__text .section__title,
  .ecohead__text .section__lead { text-align: center; }
  .ecohead__text .section__lead { margin-left: auto; margin-right: auto; }
  .ecohead__text .filters { justify-content: center; }
}
.eco-card__name { font-size: 18px; font-weight: 600; }
.eco-card__tag { font-size: 12px; color: var(--accent); }
.eco-card__text { font-size: 14px; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; justify-content: center; }
.filter {
  font-size: 13px; padding: 8px 18px; border-radius: 32px;
  border: 1px solid var(--border); color: var(--muted); background: transparent; cursor: pointer;
  transition: all .18s ease;
}
.filter:hover, .filter.active { border-color: var(--accent); color: var(--accent); }

/* ============ STEPS (Use/Build) ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; position: relative;
}
.step__num {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(56,255,156,.12); color: var(--accent); font-weight: 700; font-size: 16px;
  margin-bottom: 18px;
}
.step__title { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.step__text { font-size: 14px; color: var(--muted); }

/* ============ CODE BLOCK (Build) ============ */
.codeblock {
  background: #0c0c0c; border: 1px solid var(--border); border-radius: 16px;
  padding: 22px 24px; margin-top: 40px; overflow-x: auto;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; line-height: 1.7;
}
.codeblock .c-key { color: var(--accent); }
.codeblock .c-dim { color: var(--muted-2); }

@media (max-width: 960px) {
  .ecosystem-grid, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .ecosystem-grid, .steps { grid-template-columns: 1fr; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .tezos { grid-template-columns: 1fr; padding: 40px 28px; }
}
/* Nav collapses early: 7 links + 2 buttons stop fitting well before 768px */
@media (max-width: 1024px) {
  .nav__inner { flex-wrap: wrap; }
  .nav__burger { display: flex; }
  .nav__links, .nav__actions { display: none; }
  /* opened menu expands the header inline — no fragile fixed offsets */
  .nav--open .nav__links,
  .nav--open .nav__actions { display: flex; width: 100%; }
  .nav--open .nav__links {
    order: 3;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 12px 0 0;
    border-top: 1px solid var(--border);
    padding-top: 10px;
  }
  .nav--open .nav__links a { padding: 11px 4px; }
  .nav--open .nav__actions {
    order: 4;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0 4px;
  }
  .nav--open .nav__actions .btn { width: 100%; }
}

@media (max-width: 768px) {
  .cta-bar__inner { flex-direction: column; text-align: center; }
  .section { padding: 60px 0; }
  .hero { padding: 60px 0 70px; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .hero__content { text-align: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__visual { order: -1; }
  .hero__art { max-width: 340px; }
}
@media (max-width: 560px) {
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .cookie { left: 16px; right: 16px; max-width: none; }
  .footer__bottom { flex-direction: column; text-align: center; }
}
