/* ===== $罗宾汉 — Robinhood Chain memecoin ===== */
:root {
  --bg: #080a06;
  --bg-2: #0e120a;
  --panel: #12160d;
  --panel-2: #171c11;
  --line: #262c1c;
  --line-2: #333c25;
  --ink: #f2f6ea;
  --ink-dim: #a9b39a;
  --ink-faint: #6f7a60;
  --lime: #c9f531;
  --lime-2: #b6e21f;
  --lime-soft: rgba(201, 245, 49, 0.14);
  --gold: #e8b84b;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --font-cn: "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-dis: "Space Grotesk", var(--font-cn);
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-cn);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -0.01em; }
code { font-family: var(--font-mono); }

/* animated grid backdrop */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1000px 600px at 70% -10%, rgba(201, 245, 49, 0.10), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(232, 184, 75, 0.06), transparent 55%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 46px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 46px 100%;
  background-color: var(--bg);
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 40%, transparent 90%);
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.62rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--lime);
  color: #0b0f05;
  box-shadow: 0 0 0 rgba(201, 245, 49, 0);
}
.btn-primary:hover {
  background: var(--lime-2);
  box-shadow: 0 8px 30px rgba(201, 245, 49, 0.25);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-lg { padding: 0.85rem 1.6rem; font-size: 1.02rem; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.75rem clamp(1rem, 4vw, 2.5rem);
  max-width: var(--maxw);
  margin: 0 auto;
  backdrop-filter: blur(14px);
  background: rgba(8, 10, 6, 0.72);
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-logo {
  width: 34px; height: 34px; border-radius: 9px;
  box-shadow: 0 0 18px rgba(201, 245, 49, 0.3);
}
.brand-name { font-family: var(--font-dis); font-weight: 700; font-size: 1.12rem; }
.nav {
  display: flex;
  gap: 1.35rem;
  margin-left: auto;
  font-size: 0.94rem;
  color: var(--ink-dim);
}
.nav a { position: relative; transition: color 0.18s ease; }
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--lime); transition: width 0.2s ease;
}
.nav a:hover::after { width: 100%; }
.header-actions { display: flex; gap: 0.6rem; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* ===== HERO ===== */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 9vw, 6rem) clamp(1rem, 4vw, 2.5rem) 2rem;
  text-align: center;
}
.chain-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--ink-dim);
  background: var(--panel);
  margin: 0 0 1.6rem;
}
.chain-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title {
  font-family: var(--font-dis);
  font-size: clamp(3rem, 11vw, 6.6rem);
  line-height: 0.98;
  margin: 0 0 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2em 0.35em;
}
.hero-title .line-2 { color: var(--lime); text-shadow: 0 0 40px rgba(201, 245, 49, 0.35); }
.hero-title .sep { color: var(--ink-faint); font-weight: 400; }
.hero-lead {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  margin: 0 auto 0.6rem;
  max-width: 720px;
}
.hero-sub {
  color: var(--ink-dim);
  max-width: 620px;
  margin: 0 auto 2rem;
  font-size: 1.02rem;
}
.hero-sub strong { color: var(--gold); }
.hero-cta { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* ticker */
.ticker {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, var(--bg), var(--bg-2), var(--bg));
  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);
}
.ticker-track {
  display: flex;
  gap: 3rem;
  padding: 0.9rem 0;
  width: max-content;
  animation: scroll 32s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--ink-dim);
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.tk { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.tk b { color: var(--ink); }
.tk .up { color: var(--lime); font-style: normal; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== CONTRACT ===== */
.contract-section {
  max-width: var(--maxw);
  margin: clamp(3rem, 7vw, 5rem) auto 0;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}
.contract-card {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
}
.contract-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.contract-head h2 { font-size: 1.35rem; }
.badge {
  font-size: 0.78rem; padding: 0.28rem 0.7rem; border-radius: 999px;
  font-family: var(--font-mono);
}
.badge-live { color: var(--lime); background: var(--lime-soft); border: 1px solid rgba(201,245,49,0.3); }

.ca-row { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.5rem; }
.ca-label { font-size: 0.82rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.ca-value {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  cursor: pointer;
  color: var(--ink);
  transition: border-color 0.18s ease, background 0.18s ease;
  text-align: left;
}
.ca-value code { font-size: 0.82rem; word-break: break-all; color: var(--lime); }
.ca-value:hover { border-color: var(--lime); background: #0b0f05; }
.copy-hint { font-size: 0.75rem; color: var(--ink-faint); white-space: nowrap; }

.token-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.4rem;
}
.token-cell { background: var(--panel); padding: 1.1rem 1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.tc-label { font-size: 0.8rem; color: var(--ink-faint); }
.tc-value { font-family: var(--font-dis); font-weight: 700; font-size: 1.25rem; }
.tc-value.up { color: var(--lime); }
.token-cell.stat .tc-value { font-family: var(--font-mono); }

.assurance { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin: 0; padding: 0; }
.assurance li { font-size: 0.9rem; color: var(--ink-dim); }
.assurance li::first-letter { color: var(--lime); }

/* ===== MANIFESTO ===== */
.manifesto {
  max-width: 860px;
  margin: clamp(4rem, 10vw, 8rem) auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  text-align: center;
}
.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 1rem;
}
.section-kicker.center { text-align: center; }
.manifesto-title { font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.1; margin-bottom: 1.6rem; }
.manifesto-title .hl { color: var(--lime); }
.manifesto-body { font-size: 1.1rem; color: var(--ink-dim); max-width: 680px; margin: 0 auto 1.2rem; }
.manifesto-body.strong { color: var(--ink); font-weight: 700; font-size: 1.2rem; }

/* ===== FEATURES ===== */
.features {
  max-width: var(--maxw);
  margin: clamp(4rem, 9vw, 7rem) auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  text-align: center;
}
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2rem; text-align: left; }
.feature-card {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.feature-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--lime), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.feature-card:hover::before { transform: scaleX(1); }
.feat-num { font-family: var(--font-mono); color: var(--lime); font-size: 0.9rem; }
.feature-card h3 { font-size: 1.25rem; margin: 0.7rem 0 0.7rem; }
.feature-card p { color: var(--ink-dim); margin: 0; font-size: 0.98rem; }

/* ===== ROADMAP ===== */
.roadmap {
  max-width: var(--maxw);
  margin: clamp(4rem, 9vw, 7rem) auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}
.roadmap-head { text-align: center; margin-bottom: 2.6rem; }
.roadmap-head h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
.roadmap-sub { color: var(--ink-faint); font-family: var(--font-mono); margin-top: 0.4rem; }
.timeline {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
}
.tl-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  background: var(--panel);
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.tl-item:hover { border-color: var(--lime); transform: translateY(-3px); }
.tl-q {
  display: inline-block;
  font-family: var(--font-dis); font-weight: 700;
  color: #0b0f05; background: var(--lime);
  padding: 0.15rem 0.7rem; border-radius: 999px; font-size: 0.85rem;
  margin-bottom: 1rem;
}
.tl-num { font-family: var(--font-mono); color: var(--ink-faint); font-size: 0.85rem; }
.tl-body h3 { font-size: 1.35rem; margin: 0.3rem 0 0.6rem; }
.tl-body p { color: var(--ink-dim); font-size: 0.92rem; margin: 0; }

/* ===== FINAL CTA ===== */
.final-cta {
  max-width: 820px;
  margin: clamp(4rem, 9vw, 7rem) auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.4rem, 4vw, 3rem);
  text-align: center;
  border: 1px solid var(--line-2);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(201, 245, 49, 0.12), transparent 70%),
    linear-gradient(160deg, var(--panel-2), var(--panel));
}
.cta-title { font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.1; margin-bottom: 1rem; }
.cta-title .hl { color: var(--lime); }
.cta-sub { color: var(--ink-dim); margin: 0 auto 2rem; max-width: 460px; }

/* ===== FOOTER ===== */
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem) 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-align: center;
}
.footer-ca { font-size: 0.85rem; color: var(--ink-faint); }
.footer-copy { background: none; border: 0; cursor: pointer; color: var(--ink-dim); font-family: inherit; }
.footer-copy code { color: var(--lime); font-size: 0.8rem; word-break: break-all; }
.footer-copy:hover code { text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; }
.footer-brand img { width: 26px; height: 26px; border-radius: 7px; }
.footer-social { display: flex; gap: 1.4rem; font-size: 0.92rem; color: var(--ink-dim); }
.footer-social a:hover { color: var(--lime); }
.footer-copyright { font-size: 0.82rem; color: var(--ink-faint); margin: 0; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  left: 50%; bottom: 2rem;
  transform: translateX(-50%) translateY(140%);
  background: var(--lime);
  color: #0b0f05;
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(201, 245, 49, 0.35);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
  z-index: 50;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .token-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav, .header-actions { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .site-header.open .nav {
    display: flex; flex-direction: column; gap: 1rem;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-2); padding: 1.4rem; border-bottom: 1px solid var(--line);
  }
  .site-header.open .header-actions {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    transform: translateY(190px); padding: 0 1.4rem 1.4rem; background: var(--bg-2);
  }
}
@media (max-width: 480px) {
  .timeline, .token-grid { grid-template-columns: 1fr; }
  .ca-value { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
