:root {
  --bg: #030a12;
  --bg-soft: #07111c;
  --panel: rgba(10, 22, 34, .84);
  --panel-strong: #0b1724;
  --line: rgba(156, 184, 209, .18);
  --text: #f3f5f7;
  --muted: #9ca9b6;
  --gold: #dba85f;
  --gold-light: #f3cf8a;
  --green: #37d88f;
  --red: #ef6b6b;
  --shadow: 0 22px 70px rgba(0, 0, 0, .34);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 76% 8%, rgba(35, 74, 105, .28), transparent 28rem),
    radial-gradient(circle at 15% 42%, rgba(20, 49, 72, .22), transparent 30rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .25;
  background-image:
    linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
svg { display: block; }

.site-shell { width: min(100%, 1480px); margin: 0 auto; overflow: hidden; }
.site-header {
  min-height: 94px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  padding: 0 54px;
  position: relative;
  z-index: 10;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 1.45rem; font-weight: 800; letter-spacing: .02em; }
.brand > span:last-child > span { color: var(--gold); }
.brand-mark { width: 37px; height: 44px; color: var(--gold-light); }
.brand-mark svg { width: 100%; height: 100%; fill: currentColor; }
.main-nav { justify-self: center; display: flex; gap: 38px; align-items: center; }
.main-nav a { position: relative; color: #d8dee4; font-size: .95rem; font-weight: 600; padding: 34px 0 28px; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 19px; height: 2px; background: var(--gold); transform: scaleX(0); transition: .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--gold-light); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px; background: white; }

.button { min-height: 48px; padding: 0 24px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 750; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button svg { width: 20px; height: 20px; fill: currentColor; }
.button-outline { border: 1px solid rgba(220,168,95,.72); color: var(--gold-light); background: rgba(5, 12, 19, .5); }
.button-dark { border: 1px solid rgba(220,168,95,.62); background: rgba(3, 10, 18, .72); color: #f2f4f6; }
.button-gold { color: #171108; background: linear-gradient(180deg, #f4d395, #cf9851); box-shadow: 0 10px 30px rgba(218, 164, 87, .2); }

.hero {
  min-height: 655px;
  display: grid;
  grid-template-columns: 52% 48%;
  align-items: stretch;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 52% 43%, rgba(28, 65, 91, .2), transparent 25rem),
    linear-gradient(90deg, rgba(3,10,18,1) 0%, rgba(3,10,18,.93) 34%, rgba(3,10,18,.35) 66%, rgba(3,10,18,.72) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero-copy { padding: 105px 30px 70px 64px; align-self: center; position: relative; z-index: 3; }
.eyebrow { margin: 0 0 18px; color: var(--gold); font-size: .76rem; letter-spacing: .34em; font-weight: 800; }
.hero h1 { margin: 0; max-width: 700px; font-size: clamp(3.15rem, 5.1vw, 5.5rem); line-height: 1.05; letter-spacing: -.045em; }
.hero h1 span { color: var(--gold-light); }
.hero-description { max-width: 610px; margin: 28px 0 0; color: #b1bdc8; font-size: 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px; }
.live-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 33px; color: #aab5bf; font-size: .94rem; }
.live-line strong { color: #dce5ec; }
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 4px rgba(255,255,255,.03); }
.status-dot.online { background: var(--green); box-shadow: 0 0 12px rgba(55,216,143,.65); }
.status-dot.offline { background: var(--red); box-shadow: 0 0 12px rgba(239,107,107,.4); }
.divider { width: 1px; height: 20px; margin: 0 8px; background: rgba(255,255,255,.25); }
.hero-art {
  min-height: 655px;
  position: relative;
  z-index: 0;
  background-image:
    linear-gradient(90deg, #030a12 0%, rgba(3,10,18,.15) 24%, rgba(3,10,18,.04) 68%, rgba(3,10,18,.5) 100%),
    linear-gradient(0deg, #030a12 0%, transparent 28%),
    url("assets/wolfchain-hero.png");
  background-size: cover;
  background-position: 55% center;
  filter: saturate(.92) contrast(1.06);
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 47% 44%, transparent 0 10rem, rgba(215,163,91,.12) 10.2rem 10.35rem, transparent 10.5rem),
    repeating-conic-gradient(from 20deg at 50% 44%, rgba(220,168,95,.12) 0 1deg, transparent 1deg 11deg);
  mask-image: radial-gradient(circle at 50% 44%, black, transparent 55%);
  opacity: .45;
}

.announcement { margin: -18px 64px 0; min-height: 62px; padding: 12px 20px; display: flex; align-items: center; gap: 16px; position: relative; z-index: 5; border: 1px solid var(--line); border-radius: 10px; background: rgba(7,17,28,.94); box-shadow: var(--shadow); }
.announcement p { flex: 1; margin: 0; color: var(--muted); }
.announcement p strong { color: var(--text); }
.announcement a { color: var(--gold-light); font-weight: 700; white-space: nowrap; }
.pill { padding: 4px 10px; border-radius: 6px; color: #f6d89c; background: linear-gradient(180deg, #6f5633, #2d2419); font-size: .73rem; font-weight: 800; }

.section { padding: 84px 56px 28px; }
.section-heading { text-align: center; max-width: 880px; margin: 0 auto 36px; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.2; }
.section-heading.compact { margin-bottom: 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feature-card { min-height: 190px; display: grid; grid-template-columns: 78px 1fr; gap: 18px; align-items: start; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(13,29,43,.9), rgba(6,15,25,.96)); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.feature-card h3 { margin: 0 0 5px; font-size: 1.08rem; }
.feature-card p { margin: 0 0 12px; color: var(--muted); }
.feature-card a { color: var(--gold); font-weight: 700; }
.icon-badge { width: 68px; height: 68px; display: grid; place-items: center; border: 1px solid rgba(220,168,95,.7); border-radius: 21px; transform: rotate(30deg); color: var(--gold-light); background: linear-gradient(145deg, rgba(40,47,51,.9), rgba(5,12,19,.9)); box-shadow: inset 0 0 0 5px rgba(0,0,0,.25), 0 8px 28px rgba(0,0,0,.24); font-size: 1.8rem; }
.icon-badge > *, .icon-badge { }
.feature-card .icon-badge { line-height: 1; }
.feature-card .icon-badge::first-letter { transform: rotate(-30deg); }
.code-icon { font-size: 1rem; font-weight: 900; }

.numbers-panel, .explorer-panel, .docs-panel { margin: 28px 56px 0; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(11,25,38,.94), rgba(5,13,22,.96)); box-shadow: var(--shadow); }
.numbers-panel { padding: 26px 30px 28px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat-card { min-height: 142px; padding: 25px; display: flex; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 10px; background: rgba(8,18,29,.72); }
.stat-icon { width: 56px; height: 56px; display: grid; place-items: center; flex: 0 0 auto; color: var(--gold); font-size: 2rem; }
.stat-card small { display: block; color: #aab6c1; letter-spacing: .08em; font-size: .7rem; }
.stat-card strong { display: block; margin-top: 3px; font-size: clamp(1.25rem, 2vw, 2rem); line-height: 1.15; }
.stat-card p { margin: 6px 0 0; color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }

.explorer-panel { display: grid; grid-template-columns: 42% 58%; gap: 42px; padding: 42px; align-items: center; }
.explorer-panel h2, .docs-panel h2 { margin: 0 0 10px; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.explorer-panel p { color: var(--muted); }
.explorer-data { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.explorer-data div { display: grid; grid-template-columns: 155px 1fr; gap: 15px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.explorer-data div:last-child { border-bottom: 0; }
.explorer-data dt { color: #8f9eab; }
.explorer-data dd { margin: 0; color: #e4ebf0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow: hidden; text-overflow: ellipsis; }

.roadmap-section { padding-top: 90px; }
.roadmap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.roadmap-grid article { position: relative; min-height: 220px; padding: 30px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(8,18,29,.75); }
.roadmap-grid span { position: absolute; right: 18px; top: 12px; color: rgba(220,168,95,.18); font-size: 3rem; font-weight: 900; }
.roadmap-grid h3 { margin: 48px 0 7px; color: var(--gold-light); }
.roadmap-grid p { margin: 0; color: var(--muted); }

.docs-panel { display: grid; grid-template-columns: 140px 1fr auto; align-items: center; gap: 30px; padding: 34px 42px; margin-bottom: 40px; }
.coin-emblem { width: 118px; height: 118px; padding: 8px; border: 1px solid rgba(220,168,95,.55); border-radius: 50%; background: radial-gradient(circle, #2a2f30 0, #09131d 62%, #050b12 63%); box-shadow: inset 0 0 0 8px rgba(220,168,95,.08), 0 12px 30px rgba(0,0,0,.35); }
.coin-emblem svg { width: 100%; height: 100%; fill: #d4a35f; }
.coin-emblem circle { fill: none; stroke: rgba(220,168,95,.55); stroke-width: 2; }
.docs-panel p { color: var(--muted); margin: 0; }

.site-footer { margin-top: 30px; padding: 28px 56px 18px; display: grid; grid-template-columns: 2fr 1fr 1fr 1.15fr; gap: 35px; border-top: 1px solid rgba(255,255,255,.06); background: rgba(2,8,14,.72); }
.site-footer h3 { margin: 6px 0 14px; color: var(--gold); font-size: .72rem; letter-spacing: .12em; }
.site-footer > div:not(.footer-brand):not(.copyright) a { display: block; margin: 7px 0; color: var(--muted); }
.footer-brand p { max-width: 390px; color: var(--muted); }
.footer-status p { display: flex; align-items: center; gap: 9px; color: #dce5ec; }
.footer-status small { color: #758493; }
.copyright { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.06); color: #72818e; font-size: .78rem; }

@media (max-width: 1120px) {
  .site-header { padding: 0 30px; gap: 18px; }
  .main-nav { gap: 20px; }
  .hero { grid-template-columns: 58% 42%; }
  .hero-copy { padding-left: 42px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 850px) {
  .site-header { min-height: 78px; grid-template-columns: 1fr auto; }
  .header-action { display: none; }
  .menu-toggle { display: block; justify-self: end; }
  .main-nav { display: none; position: absolute; top: 70px; left: 20px; right: 20px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #07111c; box-shadow: var(--shadow); }
  .main-nav.open { display: grid; }
  .main-nav a { padding: 10px 12px; }
  .main-nav a::after { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { padding: 74px 28px 370px; }
  .hero-art { position: absolute; inset: 280px 0 0; min-height: 470px; opacity: .84; }
  .hero::before { z-index: 1; background: linear-gradient(180deg, #030a12 0 43%, rgba(3,10,18,.2) 70%, #030a12 100%); }
  .announcement { margin: -12px 20px 0; }
  .section { padding-left: 20px; padding-right: 20px; }
  .numbers-panel, .explorer-panel, .docs-panel { margin-left: 20px; margin-right: 20px; }
  .explorer-panel { grid-template-columns: 1fr; }
  .docs-panel { grid-template-columns: 100px 1fr; }
  .docs-panel .button { grid-column: 1 / -1; }
  .coin-emblem { width: 92px; height: 92px; }
  .site-footer { grid-template-columns: 1fr 1fr; padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 600px) {
  .site-header { padding: 0 18px; }
  .brand { font-size: 1.15rem; }
  .brand-mark { width: 31px; }
  .hero-copy { padding: 58px 20px 330px; }
  .hero h1 { font-size: 3rem; }
  .hero-description { font-size: 1.03rem; }
  .hero-actions .button { width: 100%; }
  .hero-art { inset: 330px 0 0; min-height: 400px; background-position: 58% center; }
  .announcement { align-items: flex-start; flex-wrap: wrap; }
  .announcement p { flex-basis: calc(100% - 70px); }
  .feature-grid, .stats-grid, .roadmap-grid { grid-template-columns: 1fr; }
  .feature-card { grid-template-columns: 60px 1fr; padding: 24px 20px; }
  .icon-badge { width: 54px; height: 54px; border-radius: 16px; font-size: 1.4rem; }
  .numbers-panel { padding: 24px 12px 12px; }
  .stat-card { padding: 20px 16px; }
  .explorer-panel { padding: 28px 18px; }
  .explorer-data div { grid-template-columns: 100px 1fr; font-size: .84rem; }
  .docs-panel { grid-template-columns: 1fr; padding: 28px 22px; }
  .site-footer { grid-template-columns: 1fr; }
  .copyright { display: grid; }
}

.wallet-download-panel,
.swap-panel {
  margin: 28px 56px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(11,25,38,.96), rgba(5,13,22,.98));
  box-shadow: var(--shadow);
}

.wallet-download-panel {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 34px;
  align-items: center;
  padding: 42px;
}

.wallet-download-copy h2,
.swap-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.wallet-download-copy > p,
.swap-panel > div > p {
  color: var(--muted);
  max-width: 760px;
}

.wallet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.wallet-warning {
  margin-top: 20px;
  padding: 13px 15px;
  border: 1px solid rgba(224,166,85,.32);
  border-radius: 9px;
  background: rgba(141,91,32,.09);
}

.wallet-package-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(4,12,20,.72);
}

.wallet-package-card div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 15px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.wallet-package-card div:last-child { border-bottom: 0; }
.wallet-package-card span { color: #8796a4; }
.wallet-package-card strong { color: #e4ebf0; overflow-wrap: anywhere; }

.swap-panel {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 34px;
  align-items: center;
  padding: 42px;
}

.swap-preview {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(4,12,20,.78);
}

.swap-preview label {
  display: grid;
  gap: 7px;
  color: #9aa8b5;
  font-size: .85rem;
}

.swap-preview input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b1824;
  color: #e9eef2;
  font: inherit;
}

.button-disabled,
.button-disabled:disabled {
  cursor: not-allowed;
  opacity: .58;
  color: #a6b0b8;
  border: 1px solid #33414d;
  background: #15212b;
}

.swap-preview small { color: #7f8e9b; }

@media (max-width: 850px) {
  .wallet-download-panel,
  .swap-panel {
    margin-left: 20px;
    margin-right: 20px;
    grid-template-columns: 1fr;
    padding: 28px;
  }
}

.explorer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.explorer-actions span { color: var(--muted); font-size: .88rem; }
.home-blocks { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.home-blocks h3 { margin: 0; padding: 11px 16px; color: var(--gold-light); font-size: .88rem; background: rgba(219,168,95,.06); }
#recentBlocksList { display: grid; }
#recentBlocksList > a, #recentBlocksList > span { display: grid; grid-template-columns: 100px 1fr 70px; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
#recentBlocksList > a:hover { background: rgba(219,168,95,.06); color: var(--text); }
#recentBlocksList strong { color: var(--gold-light); }
.roadmap-grid article.complete { border-color: rgba(55,216,143,.28); }
.roadmap-grid article.complete h3::after { content: "  ✓"; color: var(--green); }
@media (max-width: 600px) {
  #recentBlocksList > a, #recentBlocksList > span { grid-template-columns: 85px 1fr; }
  #recentBlocksList em { display: none; }
}
