:root {
  --bg: #04070f;
  --bg-2: #080d1a;
  --surface: rgba(15, 23, 42, .55);
  --border: rgba(59, 130, 246, .18);
  --blue: #3b82f6;
  --blue-2: #60a5fa;
  --cyan: #22d3ee;
  --text: #e2e8f0;
  --muted: #8b9cb8;
  --up: #16c784;
  --down: #ea3943;
  --radius: 14px;
  --font: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(1180px, 92%); margin-inline: auto; }
.wrap-narrow { width: min(820px, 92%); }

.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .28; }
.orb-a { width: 480px; height: 480px; background: var(--blue); top: -160px; left: -120px; }
.orb-b { width: 420px; height: 420px; background: var(--cyan); bottom: -140px; right: -100px; opacity: .16; }
.orb-c { width: 300px; height: 300px; background: #7c3aed; top: 40%; left: 55%; opacity: .14; }

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .65rem 1.4rem; border-radius: 10px;
  font-weight: 600; font-size: .92rem; text-decoration: none;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  box-shadow: 0 4px 22px rgba(59, 130, 246, .35);
}
.btn-primary:hover { box-shadow: 0 6px 30px rgba(59, 130, 246, .5); transform: translateY(-1px); }
.btn-ghost { border-color: var(--border); color: var(--text); background: rgba(59,130,246,.06); }
.btn-ghost:hover { border-color: var(--blue); }
.btn-lg { padding: .85rem 1.9rem; font-size: 1rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  border-radius: 0; border-left: 0; border-right: 0; border-top: 0;
  background: rgba(4, 7, 15, .78);
}
.nav-inner {
  width: min(1180px, 92%); margin-inline: auto;
  display: flex; align-items: center; gap: 2rem;
  height: 66px;
}
.nav-logo img { display: block; height: 38px; width: auto; }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover { color: var(--blue-2); }
.nav-cta { display: flex; align-items: center; gap: .8rem; margin-left: auto; }
.nav-links + .nav-cta { margin-left: 0; }
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav-burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }

/* Hero */
.hero { padding: 5.5rem 0 3.5rem; text-align: center; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem 1.1rem; border-radius: 999px;
  border: 1px solid rgba(22, 199, 132, .35);
  background: rgba(22, 199, 132, .08);
  color: var(--up); font-size: .82rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  margin: 0 .3rem 1.6rem;
}
.hero-badge-alt {
  border-color: var(--border);
  background: rgba(59, 130, 246, .08);
  color: var(--blue-2);
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, .5); }
  50% { box-shadow: 0 0 0 7px rgba(34, 211, 238, 0); }
}
.hero-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800; line-height: 1.12; letter-spacing: -.02em;
  margin-bottom: 1.2rem;
}
.grad {
  background: linear-gradient(120deg, var(--blue-2), var(--cyan));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  max-width: 620px; margin: 0 auto 2.2rem;
  color: var(--muted); font-size: 1.08rem;
}
.hero-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 1.4rem 1rem; gap: 1rem;
  max-width: 760px; margin-inline: auto;
}
.stat { display: flex; flex-direction: column; gap: .2rem; }
.stat-num {
  font-size: 1.55rem; font-weight: 800;
  background: linear-gradient(120deg, #fff, var(--blue-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* Ticker */
.ticker-bar {
  border-block: 1px solid var(--border);
  background: rgba(8, 13, 26, .8);
  overflow: hidden; white-space: nowrap;
  padding: .55rem 0;
}
.ticker-track { display: inline-block; animation: marquee 40s linear infinite; will-change: transform; }
.ticker-bar:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tk { display: inline-flex; align-items: center; gap: .4rem; margin-right: 2.4rem; font-size: .86rem; }
.tk-sym { font-weight: 700; color: var(--text); }
.tk-price { color: var(--muted); font-variant-numeric: tabular-nums; }
.tk-up { color: var(--up); font-weight: 600; }
.tk-down { color: var(--down); font-weight: 600; }
.ticker-loading { color: var(--muted); font-size: .86rem; padding-inline: 1rem; }

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid rgba(59,130,246,.08); }
.sec-head { text-align: center; margin-bottom: 2.6rem; }
.sec-title { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; }
.sec-sub { color: var(--muted); margin-top: .5rem; }
.lead { color: var(--muted); font-size: 1.04rem; margin: 1.2rem 0 1.6rem; }

/* Market table */
.table-wrap { overflow-x: auto; }
.market-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.market-table th, .market-table td {
  padding: .85rem 1.1rem; text-align: left;
  font-size: .92rem; white-space: nowrap;
}
.market-table thead th {
  color: var(--muted); font-size: .76rem; text-transform: uppercase;
  letter-spacing: .07em; border-bottom: 1px solid var(--border);
}
.market-table tbody tr { border-bottom: 1px solid rgba(59,130,246,.07); transition: background .12s; }
.market-table tbody tr:hover { background: rgba(59, 130, 246, .06); }
.ta-r { text-align: right; }
.ta-c { text-align: center; }
.td-loading { color: var(--muted); padding: 2.4rem 0 !important; }
.coin { display: flex; align-items: center; gap: .65rem; }
.coin img { width: 26px; height: 26px; border-radius: 50%; }
.coin-name { font-weight: 600; }
.coin-sym { color: var(--muted); font-size: .78rem; text-transform: uppercase; }
.price { font-variant-numeric: tabular-nums; font-weight: 600; }
.chg-up { color: var(--up); font-weight: 600; font-variant-numeric: tabular-nums; }
.chg-down { color: var(--down); font-weight: 600; font-variant-numeric: tabular-nums; }
.mcap { color: var(--muted); font-variant-numeric: tabular-nums; }
.table-note { text-align: center; color: var(--muted); font-size: .78rem; margin-top: 1rem; }

/* Web3 banner */
.banner {
  display: flex; align-items: center; gap: 1.6rem;
  padding: 1.8rem 2rem; flex-wrap: wrap;
}
.banner-glow { box-shadow: 0 0 60px rgba(59, 130, 246, .15) inset, 0 0 40px rgba(34, 211, 238, .08); }
.banner-icon {
  flex-shrink: 0; width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 16px; color: var(--cyan);
  background: rgba(34, 211, 238, .1);
  border: 1px solid rgba(34, 211, 238, .25);
}
.banner-body { flex: 1; min-width: 260px; }
.banner-body h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.banner-body p { color: var(--muted); font-size: .94rem; }
.banner-body strong { color: var(--cyan); }

/* About */
.grid-2 { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; }
.check-list { list-style: none; display: grid; gap: .9rem; }
.check-list li {
  padding-left: 1.9rem; position: relative; color: var(--muted); font-size: .96rem;
}
.check-list li strong { color: var(--text); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .3rem;
  width: 18px; height: 18px; border-radius: 50%;
  background:
    linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat,
    linear-gradient(#fff,#fff);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}
.panel-art {
  position: relative; padding: 3rem; display: grid; place-items: center;
  overflow: hidden;
}
.panel-logo { width: 100%; max-width: 300px; height: auto; position: relative; z-index: 1; }
.panel-ring {
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  border: 1px dashed rgba(96, 165, 250, .35);
  animation: spin 26s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.card { padding: 1.7rem 1.4rem; transition: transform .2s ease, border-color .2s; }
.card:hover { transform: translateY(-4px); border-color: rgba(96, 165, 250, .4); }
.card-icon {
  width: 52px; height: 52px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 1.1rem;
  color: var(--blue-2);
  background: rgba(59, 130, 246, .12);
  border: 1px solid rgba(59, 130, 246, .28);
}
.card h3 { font-size: 1.06rem; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .88rem; }

/* FAQ */
.faq-item { margin-bottom: .8rem; overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 1.05rem 1.3rem;
  font-weight: 600; font-size: .98rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after {
  content: "+"; font-size: 1.3rem; color: var(--blue-2);
  transition: transform .2s; font-weight: 400;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.3rem 1.1rem; color: var(--muted); font-size: .92rem; }

/* Footer */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 3rem 0 0; margin-top: 2rem; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 2.2rem;
}
.footer-brand img { height: 42px; width: auto; margin-bottom: .9rem; }
.footer-brand p { color: var(--muted); font-size: .9rem; }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9rem; color: var(--blue-2); }
.footer-col a { display: block; color: var(--muted); text-decoration: none; font-size: .9rem; margin-bottom: .5rem; transition: color .15s; }
.footer-col a:hover { color: var(--blue-2); }
.footer-bottom {
  border-top: 1px solid rgba(59,130,246,.08);
  padding-block: 1.2rem; text-align: center;
  color: var(--muted); font-size: .82rem;
}

/* Responsive */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 3.6rem 0 2.6rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); padding: 1.2rem .8rem; }
  .cards { grid-template-columns: 1fr; }
  .hide-m { display: none; }
  .market-table { min-width: 0; }

  .nav-links {
    position: fixed; inset: 66px 0 auto 0;
    flex-direction: column; gap: 0;
    background: rgba(4, 7, 15, .97);
    border-bottom: 1px solid var(--border);
    padding: .6rem 4%;
    transform: translateY(-140%);
    transition: transform .25s ease;
    z-index: 99;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: .9rem .2rem; border-bottom: 1px solid rgba(59,130,246,.08); font-size: 1rem; }
  .nav-cta .btn { padding: .5rem .9rem; font-size: .82rem; }
  .nav-burger { display: flex; }
  .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .banner { padding: 1.4rem; gap: 1.1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .section { padding: 3.2rem 0; }
}

/* WSC page */
.wsc-hero-brand {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.2rem; margin-bottom: 1.8rem;
}
.wsc-hero-brand .hero-badge { margin: 0; }
.wsc-hero-logo {
  width: 120px; height: auto;
}
.live-note {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1.2rem; color: var(--muted); font-size: .82rem;
}
.cards-stack { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.tk-table { min-width: 0; }
.tk-k { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; width: 40%; }
.tk-v { font-weight: 600; font-size: .95rem; }
.tk-table tbody tr td { white-space: normal; }
.contract-box {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1.1rem 1.3rem; margin-bottom: 1.2rem;
}
.contract-box code {
  flex: 1; min-width: 240px; word-break: break-all;
  color: var(--cyan); font-size: .92rem; font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.contract-links { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; }
.phase {
  display: inline-block; padding: .25rem .8rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 1rem;
}
.phase-done { background: rgba(22,199,132,.12); color: var(--up); border: 1px solid rgba(22,199,132,.3); }
.phase-now { background: rgba(34,211,238,.12); color: var(--cyan); border: 1px solid rgba(34,211,238,.3); }
.phase-next { background: rgba(96,165,250,.12); color: var(--blue-2); border: 1px solid rgba(96,165,250,.3); }
.phase-future { background: rgba(139,156,184,.1); color: var(--muted); border: 1px solid rgba(139,156,184,.25); }
.step-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; margin-bottom: 1rem;
  font-weight: 800; font-size: 1.05rem; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 4px 16px rgba(59,130,246,.3);
}
.social-links { display: flex; gap: .7rem; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
