:root {
  --bg: #070b14;
  --bg2: #0c1424;
  --ink: #eef3ff;
  --muted: rgba(214, 224, 245, 0.62);
  --gold: #d4b483;
  --gold2: #f0d7a8;
  --bronze: #a67c4a;
  --ice: #7eb6ff;
  --ice2: #cfe6ff;
  --line: rgba(212, 180, 131, 0.2);
  --glass: rgba(10, 16, 28, 0.72);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.92), rgba(7, 11, 20, 0.4) 70%, transparent);
  backdrop-filter: blur(16px);
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 11, 20, 0.86);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  border-bottom-color: var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Syne, sans-serif;
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 15px;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line), 0 0 24px rgba(126, 182, 255, 0.25);
}
.nav-links {
  display: flex;
  gap: 22px;
  font-size: 13px;
  color: var(--muted);
}
.nav-links a {
  position: relative;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--glass);
  border-radius: 12px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 11px;
}
.menu-btn span { height: 1.5px; background: var(--ink); display: block; }

.icon-btn, .ca-pill, .btn, .ca-box, .tab, .widget, .card {
  border: 1px solid var(--line);
  background: var(--glass);
}
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.ca-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  cursor: pointer;
}
.ca-pill em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--gold);
}
.ca-pill code { font-size: 12px; font-weight: 600; }

.btn {
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease, box-shadow 0.35s ease;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shine 4.5s ease-in-out infinite;
}
.btn:hover { transform: translateY(-2px); }
.btn.lg { height: 48px; padding: 0 22px; }
.btn.block { width: 100%; }
.btn-primary {
  background: linear-gradient(180deg, var(--gold2), var(--bronze));
  color: #1a1208;
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(166, 124, 74, 0.28);
}
.btn-ghost { color: var(--ink); transition: border-color 0.25s ease, background 0.25s ease; }
.btn-ghost:hover { border-color: rgba(212, 180, 131, 0.5); background: rgba(212, 180, 131, 0.08); }

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 24px;
  padding: 20px 40px 64px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: auto 8% -10% auto;
  width: 55%;
  height: 70%;
  background: radial-gradient(circle, rgba(126, 182, 255, 0.18), transparent 68%);
  pointer-events: none;
  animation: pulseGlow 7s ease-in-out infinite;
}
.hero-mascot img {
  width: min(720px, 52vw);
  margin-left: -4%;
  border-radius: 28px;
  mask-image: radial-gradient(circle at 40% 45%, #000 46%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 40% 45%, #000 46%, transparent 78%);
  animation: float 8s ease-in-out infinite;
  will-change: transform;
}
.hero-copy { position: relative; z-index: 1; max-width: 640px; }
.built {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.built span {
  color: var(--ice);
  font-weight: 700;
}
.hero h1 {
  font-family: Syne, sans-serif;
  font-size: clamp(36px, 5.4vw, 68px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--ice2), var(--gold2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
  max-width: 46ch;
}
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.ca-box {
  margin-top: 22px;
  width: 100%;
  max-width: 520px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
}
.ca-box span, .ca-box i {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}
.ca-box code { font-weight: 700; font-size: 14px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 8px 40px 56px;
}
.stat {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(126, 182, 255, 0.05), rgba(7, 11, 20, 0.4));
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}
.stat:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 180, 131, 0.45);
}
.stat b {
  display: block;
  font-family: Syne, sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--gold2);
  letter-spacing: -0.03em;
}
.stat span { color: var(--muted); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.stat .kicker { display: block; color: var(--gold); font-size: 11px; margin-bottom: 8px; }
.stat strong { font-size: 20px; }

.vision, .eco, .adv, .devs, .product { padding: 72px 40px; }
.kicker {
  color: var(--gold);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 14px;
}
.vision h2, .eco h2, .adv h2, .devs h2, .panel h3 {
  font-family: Syne, sans-serif;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.vision h2, .adv h2 { font-size: clamp(32px, 5vw, 56px); }
.vision h2 em, .adv h2 em { font-style: normal; color: var(--ice2); }
.vision .lede { margin-top: 18px; }

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.tab {
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  transition: background 0.35s ease, color 0.35s ease, transform 0.3s ease, border-color 0.3s ease;
}
.tab:hover { transform: translateY(-1px); color: var(--ink); }
.tab.is-on {
  color: #1a1208;
  background: linear-gradient(180deg, var(--gold2), var(--bronze));
  border-color: transparent;
}

.panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}
.panel.is-on {
  display: grid;
  animation: panelIn 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.panel h3 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 12px; }
.panel p, .panel li { color: var(--muted); line-height: 1.6; }
.panel ul { margin: 18px 0 0 18px; }
.steps { list-style: none; margin-top: 18px; display: grid; gap: 14px; }
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.steps b { color: var(--gold); font-family: Syne, sans-serif; }

.widget {
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at 80% 0%, rgba(126, 182, 255, 0.12), transparent 40%),
    rgba(10, 16, 28, 0.86);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}
.widget:hover {
  transform: translateY(-4px);
  border-color: rgba(126, 182, 255, 0.35);
}
.widget.dark { min-height: 340px; }
.widget-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 13px;
}
.widget-head em { color: var(--ice); font-style: normal; }
.leg { display: block; margin: 8px 0; }
.leg-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.leg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.leg-row input {
  width: 140px;
  background: transparent;
  border: 0;
  outline: 0;
  text-align: right;
  font-size: 22px;
  font-weight: 700;
}
.token {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  font-weight: 700;
  cursor: pointer;
}
.token img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #1c1c2a;
}
.flip {
  width: 38px;
  height: 38px;
  margin: 4px auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #101828;
  cursor: pointer;
}
.rate, .mini, .leg small { color: var(--muted); font-size: 12px; margin: 10px 0; }
.pool-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.launch-card { text-align: center; padding: 36px 22px; }
.launch-card img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 16px;
  object-fit: cover;
}
.launch-card h4 { font-family: Syne, sans-serif; margin-bottom: 8px; }

.eco { overflow: hidden; }
.eco h2 { max-width: 18ch; font-size: clamp(28px, 4vw, 44px); }
.eco-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.eco-row span {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  transition: transform 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.eco-row span:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  color: var(--ink);
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.card {
  padding: 26px 22px 24px;
  border-radius: 24px;
  background: rgba(12, 20, 36, 0.7);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.45s ease;
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 180, 131, 0.45);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.card span { color: var(--gold); font-family: Syne, sans-serif; }
.card h3 { font-family: Syne, sans-serif; font-size: 24px; margin: 12px 0 10px; letter-spacing: -0.03em; }
.card p { color: var(--muted); line-height: 1.6; margin-bottom: 18px; }
.card a { color: var(--ice2); font-size: 14px; }

.devs {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}
.devs-art {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: radial-gradient(circle at 50% 40%, rgba(126, 182, 255, 0.2), transparent 60%);
  overflow: hidden;
}
.devs-art img {
  width: 180px;
  border-radius: 50%;
  animation: float 7s ease-in-out infinite;
}
.devs-art code {
  position: absolute;
  bottom: 18px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 48px 40px 28px;
  background: #060910;
}
.foot-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
}
.foot b {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.foot a, .foot button {
  display: block;
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}
.foot a:hover, .foot button:hover { color: var(--ink); }
.foot-top p { color: var(--muted); margin-top: 10px; max-width: 28ch; }
.foot-bot {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 50;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(8, 12, 20, 0.9);
  border: 1px solid var(--line);
  font-size: 13px;
}
.toast[hidden] { display: none; }

.reveal {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }
.icon-btn, .ca-pill, .ca-box, .flip {
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.icon-btn:hover, .ca-pill:hover, .ca-box:hover, .flip:hover {
  border-color: rgba(212, 180, 131, 0.5);
  transform: translateY(-1px);
}
.toast {
  animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
@keyframes shine {
  0%, 55% { transform: translateX(-120%); }
  75%, 100% { transform: translateX(120%); }
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-right .btn-ghost { display: none; }
  .hero, .panel, .devs, .adv-grid, .stats, .foot-top {
    grid-template-columns: 1fr;
  }
  .hero { padding: 8px 20px 32px; min-height: auto; }
  .hero-mascot img {
    width: min(420px, 88vw);
    max-height: 46vh;
    object-fit: cover;
    margin: 0 auto;
  }
  .vision, .eco, .adv, .devs, .product, .foot, .stats { padding-left: 20px; padding-right: 20px; }
  .ca-pill { display: none; }
  .ca-box {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-mascot img, .hero-glow, .devs-art img, .btn-primary::after {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
