/* ==========================================================================
   RCPU — light editorial site (Monero-inspired)
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-warm: #faf7f1;
  --bg-footer: #f4efe6;
  --card: #ffffff;

  --ink: #191b23;
  --body: #3d3f46;
  --muted: #6b6d75;
  --faint: #8c8d94;

  --line: #e8e2d7;
  --line-strong: #d9d1c2;

  --accent: #c94f16;
  --accent-hover: #ad4412;
  --accent-ink: #b8480f;
  --accent-bright: #e2611f;
  --accent-soft: #fdf0e8;

  --green: #15803d;
  --green-soft: #e9f6ee;

  --radius: 16px;
  --maxw: 1360px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --header-h: 76px;

  --font: "DM Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
dt,
ul,
ol,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 500;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: #f8ddba;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  padding: 0.7rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(50, 40, 20, 0.04);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  justify-self: start;
  color: var(--ink);
  font-weight: 700;
}

.brand-mark {
  width: 30px;
  height: 30px;
  transition: transform 0.3s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(-4deg) scale(1.05);
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--ink);
}

.brand-tag {
  margin-left: -0.45rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.nav > a:not(.btn) {
  position: relative;
  padding: 0.4rem 0;
  color: #4a4c54;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav > a:not(.btn):hover {
  color: var(--accent-ink);
}

.nav > a:not(.btn):hover::after {
  transform: scaleX(1);
}

.nav-drawer-head,
.nav-mobile-cta {
  display: none;
}

.nav .nav-mobile-cta {
  display: none;
}

.utils {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #5b5d65;
  background: transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.icon-btn:hover {
  color: var(--ink);
  background: var(--bg-warm);
  border-color: var(--line);
}

.icon-btn .icon {
  width: 17px;
  height: 17px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 36px;
  padding: 0 0.45rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5b5d65;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.lang-btn .icon {
  width: 19px;
  height: 19px;
}

.lang-btn:hover {
  color: var(--ink);
  background: var(--bg-warm);
}

.burger {
  display: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.burger .icon {
  width: 19px;
  height: 19px;
}

.scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(20, 18, 14, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s,
    transform 0.2s var(--ease), box-shadow 0.2s;
}

.btn .icon {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 10px rgba(180, 83, 9, 0.16);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(180, 83, 9, 0.22);
}

.btn-secondary {
  background: #eeeaf4;
  color: var(--ink);
}

.btn-secondary:hover {
  background: #e5dfee;
  transform: translateY(-1px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent-ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: gap 0.2s var(--ease), color 0.2s;
}

.text-link .icon {
  width: 14px;
  height: 14px;
}

.text-link:hover {
  gap: 0.55rem;
  color: var(--accent-hover);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100svh - var(--header-h));
  padding: 5rem 0 6rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(600px, 78vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 40%,
    #ffffff 0 16%,
    #fffaf7 32%,
    #fbe8dd 54%,
    rgba(251, 232, 221, 0.4) 68%,
    rgba(251, 232, 221, 0) 76%
  );
  filter: blur(18px);
  pointer-events: none;
}

.hero-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.hero-mark::before,
.hero-mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.hero-mark::before {
  width: min(76vh, 760px);
  aspect-ratio: 1;
  border: 1px solid #e9dccb;
}

.hero-mark::after {
  width: min(64vh, 640px);
  aspect-ratio: 1;
  border: 1px solid #f5eadc;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1040px;
  padding: 0 var(--gutter);
  text-align: center;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  font-size: 0.78rem;
}

.live-pill strong {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
  box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.35);
  animation: pulse 2.4s var(--ease) infinite;
}

.live-sep {
  width: 1px;
  height: 11px;
  background: var(--line-strong);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.35); }
  70% { box-shadow: 0 0 0 7px rgba(21, 128, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0); }
}

.hero h1 {
  margin: 0 0 1.4rem;
  color: var(--ink);
  font-size: clamp(2.9rem, 5.2vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero h1 > span {
  display: block;
}

.hero h1 .h1-line span {
  display: inline;
}

.hero h1 .accent {
  color: var(--accent-bright);
}

.hero .lead {
  max-width: 62ch;
  margin: 0 auto 1.1rem;
  color: #575960;
  font-size: 1.05rem;
  line-height: 1.7;
}

.tech-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.7rem;
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.tech-strip span {
  white-space: nowrap;
}

.tech-strip i {
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #d8cdbd;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.hero-micro {
  color: var(--faint);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: 6.5rem 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--header-h);
}

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 5rem;
  align-items: start;
  margin-bottom: 3.5rem;
}

.sec-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.9rem, 3.4vw, 2.65rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.sec-head p {
  max-width: 56ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4.5rem;
  align-items: center;
}

.coin-figure {
  margin: 0;
  text-align: center;
}

.coin-frame {
  display: grid;
  place-items: center;
  width: min(100%, 420px);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 8%;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #ffffff 0%, #f8f2e8 68%, #f3ebdd 100%);
}

.coin-frame img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 26px 38px rgba(122, 82, 24, 0.14));
  animation: coin-float 9s ease-in-out infinite;
  will-change: transform;
}

@keyframes coin-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.coin-figure figcaption {
  margin-top: 1rem;
  color: var(--faint);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.points {
  display: grid;
  gap: 2.1rem;
}

.point {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 1.1rem;
}

.point-num {
  padding-top: 0.35rem;
  color: var(--accent-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.point h3 {
  margin: 0 0 0.4rem;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.point p {
  max-width: 56ch;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.about-link {
  margin-left: 55px;
  margin-top: 0.2rem;
}

.about-art {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.about-art img {
  width: 100%;
  max-width: 620px;
  height: auto;
}

/* --------------------------------------------------------------------------
   Tech foundation
   -------------------------------------------------------------------------- */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.tech-card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}

.tech-card:hover {
  border-color: #ddcfb9;
  background: #fdfaf5;
  transform: translateY(-2px);
}

.tech-card .eco-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.1rem;
}

.tech-card h3 {
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tech-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Numbers
   -------------------------------------------------------------------------- */

.numbers {
  border-top: 1px solid var(--line);
  background: var(--bg);
  scroll-margin-top: var(--header-h);
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.number {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 3rem 2rem;
  border-left: 1px solid var(--line);
}

.number:first-child {
  padding-left: 0;
  border-left: 0;
}

.number strong {
  color: var(--ink);
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}

.number span {
  color: var(--muted);
  font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
   Start / steps
   -------------------------------------------------------------------------- */

.steps {
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 2.5rem;
  padding: 2.4rem 0;
  border-bottom: 1px solid var(--line);
}

.step-num {
  color: var(--accent-bright);
  font-size: 5.2rem;
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.05em;
  opacity: 0.9;
}

.step-body h3 {
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.step-body p {
  max-width: 60ch;
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Ecosystem cards
   -------------------------------------------------------------------------- */

.eco-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.eco-card,
.join-card {
  display: flex;
  flex-direction: column;
  min-height: 232px;
  padding: 1.8rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease),
    box-shadow 0.25s;
}

.eco-card:hover,
.join-card:hover {
  border-color: #ddcfb9;
  background: #fdfaf5;
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(90, 65, 20, 0.07);
}

.eco-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-warm);
  color: var(--accent);
}

.eco-icon .icon {
  width: 21px;
  height: 21px;
}

.eco-card h3,
.join-card h3 {
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
}

.eco-card p,
.join-card p {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

.eco-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: auto;
  color: var(--accent-ink);
  font-size: 0.82rem;
  font-weight: 600;
}

.eco-more .icon {
  width: 13px;
  height: 13px;
}

/* --------------------------------------------------------------------------
   Mining
   -------------------------------------------------------------------------- */

.mining-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 5rem;
  align-items: start;
}

.checklist {
  display: grid;
  gap: 0.95rem;
  margin: 0 0 2rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--body);
  font-size: 1rem;
}

.checklist li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
}

.live-card {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-warm);
}

.mine-note {
  margin: 1rem 0 0;
  color: var(--faint);
  font-size: 0.8rem;
  line-height: 1.5;
}

.live-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.live-head time {
  margin-left: auto;
  color: var(--faint);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.live-big {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin: 1.5rem 0;
  text-align: center;
}

.live-big strong {
  color: var(--ink);
  font-size: clamp(2.2rem, 3.6vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}

.live-big span {
  color: var(--muted);
  font-size: 0.78rem;
}

.live-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.live-grid > div {
  padding: 0.75rem 0.7rem;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.live-grid > div:nth-child(3n + 1) {
  padding-left: 0;
  border-left: 0;
}

.live-grid > div:nth-child(3n) {
  padding-right: 0;
}

.live-grid > div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.live-grid dt {
  color: var(--muted);
  font-size: 0.68rem;
}

.live-grid dd {
  margin: 0.2rem 0 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.live-note {
  margin-top: 1rem;
  color: var(--faint);
  font-size: 0.72rem;
}

/* --------------------------------------------------------------------------
   Roadmap
   -------------------------------------------------------------------------- */

.phases {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6rem;
}

.phase {
  padding-top: 1.4rem;
  border-top: 2px solid var(--line);
}

.phase--done {
  border-top-color: var(--green);
}

.phase--active {
  border-top-color: var(--accent-bright);
}

.phase-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.phase-num {
  color: var(--faint);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.pill {
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: #f2ede4;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
}

.pill--done {
  background: var(--green-soft);
  color: var(--green);
}

.pill--active {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.phase h3 {
  margin: 1rem 0 0.85rem;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 600;
}

.phase li {
  position: relative;
  padding: 0.28rem 0 0.28rem 1rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.phase li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #cfc7b9;
}

.phase--done li::before {
  background: var(--green);
}

.phase--active li::before {
  background: var(--accent-bright);
}

/* --------------------------------------------------------------------------
   Community
   -------------------------------------------------------------------------- */

.join-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.join-card {
  min-height: 240px;
}

.join-card .text-link {
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-footer);
  padding: 4.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}

.footer-brand .brand {
  margin-bottom: 1rem;
}

.footer-brand .brand-mark {
  width: 28px;
  height: 28px;
}

.footer-brand p {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-mark {
  display: block;
  width: 148px;
  height: auto;
  margin: 0 0 1.2rem;
  user-select: none;
}

.footer-col h4 {
  margin: 0 0 1rem;
  color: #8a8272;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  padding: 0.26rem 0;
  color: #4a4c54;
  font-size: 0.9rem;
  font-weight: 400;
}

.footer-col a:hover {
  color: var(--accent-ink);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(120, 100, 60, 0.14);
  color: #8a8272;
  font-size: 0.78rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: inherit;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom a:hover {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.eco-grid .reveal:nth-child(2),
.join-grid .reveal:nth-child(2),
.phases .reveal:nth-child(2) { transition-delay: 0.05s; }
.eco-grid .reveal:nth-child(3),
.join-grid .reveal:nth-child(3),
.phases .reveal:nth-child(3) { transition-delay: 0.1s; }
.eco-grid .reveal:nth-child(4),
.phases .reveal:nth-child(4) { transition-delay: 0.15s; }
.eco-grid .reveal:nth-child(5) { transition-delay: 0.2s; }
.eco-grid .reveal:nth-child(6) { transition-delay: 0.25s; }
.eco-grid .reveal:nth-child(7) { transition-delay: 0.3s; }
.eco-grid .reveal:nth-child(8) { transition-delay: 0.35s; }

/* --------------------------------------------------------------------------
   Chinese typography
   -------------------------------------------------------------------------- */

html[lang="zh-CN"] .hero h1 {
  line-height: 1.14;
  letter-spacing: -0.015em;
}

html[lang="zh-CN"] .sec-head h2 {
  letter-spacing: -0.01em;
  line-height: 1.25;
}

html[lang="zh-CN"] .hero .lead,
html[lang="zh-CN"] .sec-head p,
html[lang="zh-CN"] .point p {
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1240px) {
  .eco-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tech-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sec-head { gap: 3.5rem; }
  .about-grid { gap: 3.5rem; }
}

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: auto 1fr;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    width: min(380px, 88vw);
    padding: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    box-shadow: -20px 0 60px rgba(40, 30, 10, 0.16);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.28s var(--ease), visibility 0.28s;
    overflow-y: auto;
  }

  .nav.is-open {
    transform: none;
    visibility: visible;
  }

  .nav-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-drawer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }

  .nav-drawer-brand img {
    width: 26px;
    height: 26px;
  }

  .nav-close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }

  .nav > a:not(.btn) {
    padding: 0.95rem 0.35rem;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .nav > a:not(.btn)::after {
    display: none;
  }

  .nav-mobile-cta {
    display: flex;
    margin-top: 1.25rem;
  }

  .nav .nav-mobile-cta {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .burger {
    display: grid;
  }

  .scrim {
    display: block;
  }

  .scrim.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open {
    overflow: hidden;
  }

  .sec-head {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
  }

  .sec-head p {
    max-width: 62ch;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-art img {
    max-width: 520px;
    margin: 0 auto;
  }

  .coin-figure {
    max-width: 420px;
    margin: 0 auto;
  }

  .mining-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .phases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 68px;
  }

  .hero {
    min-height: auto;
    padding: 4.5rem 0 5rem;
  }

  .hero-mark img {
    width: min(64vh, 500px);
  }

  .hero-mark span {
    display: none;
  }

  .hero-mark::before {
    width: min(64vh, 480px);
  }

  .hero-mark::after {
    width: min(52vh, 390px);
  }

  .hero h1 {
    font-size: clamp(2.8rem, 9vw, 4.2rem);
  }

  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .number {
    padding: 2rem 1.5rem;
  }

  .number:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .number:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .step {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 2rem 0;
  }

  .step-num {
    font-size: 3.6rem;
  }

  .eco-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .join-grid {
    grid-template-columns: 1fr;
  }

  .join-card {
    min-height: 0;
  }

  .about-link {
    margin-left: 55px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .live-grid > div {
    padding: 0.65rem 0.5rem;
  }

  .live-grid dt {
    font-size: 0.64rem;
  }

  .live-grid dd {
    font-size: 0.86rem;
  }

  .nav {
    width: 100%;
    padding: 1.35rem;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 11vw, 3.4rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .number strong {
    font-size: 2rem;
  }

  .eco-grid {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }

  .eco-card {
    min-height: 0;
  }

  .phases {
    grid-template-columns: 1fr;
  }

  .step-num {
    font-size: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Ecosystem cards — compact variant (same width, shorter height)
   -------------------------------------------------------------------------- */
.eco-card {
  min-height: 172px;
  padding: 1.25rem 1.3rem;
}
.eco-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 0.75rem;
}
.eco-icon .icon { width: 18px; height: 18px; }
.eco-card h3 { margin: 0 0 0.3rem; font-size: 1rem; }
.eco-card p {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  line-height: 1.5;
}
.eco-more { font-size: 0.78rem; }
