﻿:root {
  --bg: #f4efe4;
  --bg-soft: #eef4e8;
  --surface: rgba(255, 252, 244, 0.88);
  --surface-strong: #fffaf0;
  --surface-raised: #fbf7ec;
  --border: rgba(52, 92, 61, 0.14);
  --border-strong: rgba(36, 89, 48, 0.24);
  --text: #172219;
  --text-soft: #2c372f;
  --muted: #657266;
  --faint: #8b978b;
  --green: #245930;
  --green-mid: #4f8a5a;
  --green-soft: rgba(36, 89, 48, 0.09);
  --amber: #9a7b2f;
  --amber-soft: rgba(176, 138, 49, 0.12);
  --cream-line: rgba(115, 91, 48, 0.1);
  --shadow: 0 18px 48px rgba(63, 52, 31, 0.11);
  --serif: Newsreader, Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 16% 8%, rgba(79, 138, 90, 0.13), transparent 30rem),
    radial-gradient(circle at 88% 4%, rgba(176, 138, 49, 0.11), transparent 28rem),
    linear-gradient(180deg, #f7f1e6 0%, var(--bg) 48%, #edf4e8 100%);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.protocol-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(36, 89, 48, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 89, 48, 0.055) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.68), transparent 82%);
}
.protocol-bg::before {
  content: "";
  position: absolute;
  inset: 7% 4% auto auto;
  width: min(46vw, 660px);
  aspect-ratio: 1;
  border: 1px solid rgba(36, 89, 48, 0.09);
  border-radius: 50%;
  background:
    linear-gradient(120deg, transparent 46%, rgba(36, 89, 48, 0.08) 47%, transparent 49%),
    linear-gradient(28deg, transparent 45%, rgba(176, 138, 49, 0.08) 46%, transparent 48%);
}
.node { position: absolute; width: 6px; height: 6px; border-radius: 999px; background: var(--green); opacity: 0.38; }
.node-a { left: 18%; top: 20%; }
.node-b { right: 22%; top: 18%; }
.node-c { right: 31%; top: 48%; }
.node-d { left: 30%; top: 62%; }

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 8px;
}
.brand, .nav-links { display: flex; align-items: center; }
.brand { gap: 14px; color: var(--text); font-size: 18px; font-weight: 850; letter-spacing: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}
.brand-mark img { width: 38px; height: 38px; object-fit: contain; opacity: 0.94; filter: invert(24%) sepia(28%) saturate(824%) hue-rotate(79deg) brightness(84%) contrast(88%); }
.nav-links { gap: 2px; padding: 4px; border: 1px solid rgba(36, 89, 48, 0.12); border-radius: 999px; background: rgba(255, 250, 240, 0.9); }
.nav-links a { padding: 9px 13px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 700; }
.nav-links a:hover { background: var(--green-soft); color: var(--green); }

.section-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.62fr);
  gap: clamp(44px, 7vw, 92px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: 42px 0 68px;
}
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--green); opacity: 0.9; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: 0; color: var(--text); }
h1 { max-width: 760px; margin: 14px 0 22px; font-size: clamp(54px, 7.2vw, 104px); line-height: 0.98; }
h2 { margin-bottom: 0; font-size: clamp(34px, 4.2vw, 58px); line-height: 1.02; }
h3 { margin-bottom: 10px; color: var(--text); font-size: 20px; line-height: 1.18; font-weight: 800; }
.hero-copy > p { max-width: 660px; color: var(--text-soft); font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; }
.hub-badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 680px; margin: 24px 0 0; }
.hub-badges span { display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 12px; border: 1px solid rgba(36, 89, 48, 0.15); border-radius: 12px; background: rgba(255, 250, 240, 0.64); color: var(--muted); font-size: 13px; font-weight: 700; }
.hub-badges strong { color: var(--green); font-weight: 900; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border: 1px solid transparent; border-radius: 999px; font-weight: 800; transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fffaf0; box-shadow: 0 10px 22px rgba(36, 89, 48, 0.16); }
.btn-primary:hover { background: #1d4b28; }
.btn-secondary, .btn-resource { border-color: var(--border-strong); background: rgba(255, 252, 244, 0.72); color: var(--green); }
.btn-card { border-color: rgba(36, 89, 48, 0.28); background: var(--green); color: #fffaf0; box-shadow: 0 10px 22px rgba(36, 89, 48, 0.12); }
.btn-secondary:hover, .btn-resource:hover { border-color: rgba(36, 89, 48, 0.34); background: #fffaf0; box-shadow: 0 10px 24px rgba(63, 52, 31, 0.08); }
.btn-card:hover { border-color: rgba(36, 89, 48, 0.38); background: #1d4b28; color: #fffaf0; box-shadow: 0 12px 26px rgba(36, 89, 48, 0.16); }
.btn-resource, .btn-card { width: 100%; margin-top: auto; }
.notice { display: inline-flex; max-width: 720px; padding: 11px 14px; border: 1px solid rgba(154, 123, 47, 0.22); border-radius: 999px; background: var(--amber-soft); color: #6d551d; font-size: 14px; font-weight: 800; }

.hero-panel, .network-card, .action-card, .dapp-card, .resource-card, .empty-state { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.hero-panel { position: relative; min-height: 454px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; padding: 30px; overflow: hidden; background: linear-gradient(180deg, rgba(255, 252, 244, 0.94), rgba(239, 246, 235, 0.9)); }
.hero-panel:hover { transform: translateY(-2px); border-color: rgba(36, 89, 48, 0.28); box-shadow: 0 22px 54px rgba(63, 52, 31, 0.14); }
.ritual-watermark { position: absolute; inset: 62px 0 auto; z-index: 0; width: min(58%, 270px); margin: 0 auto; opacity: 0.18; filter: invert(20%) sepia(36%) saturate(900%) hue-rotate(79deg) brightness(70%) contrast(94%); transform-origin: center center; animation: emblemDrift 54s linear infinite; }
.panel-orbit { position: absolute; inset: 54px 34px auto; height: 226px; pointer-events: none; }
.panel-orbit::before, .panel-orbit::after { content: none; }
.panel-orbit span { position: absolute; width: 7px; height: 7px; border-radius: 999px; background: var(--green); opacity: 0.34; }
.panel-orbit span:nth-child(1) { left: 20%; top: 22%; animation: dotDriftOne 12s ease-in-out infinite; }
.panel-orbit span:nth-child(2) { right: 20%; top: 36%; animation: dotDriftTwo 14s ease-in-out infinite; }
.panel-orbit span:nth-child(3) { left: 49%; bottom: 13%; animation: dotDriftThree 16s ease-in-out infinite; }
.panel-topline, .chain-stats, .panel-actions { position: relative; z-index: 1; }
.panel-topline { display: flex; justify-content: space-between; color: var(--muted); font-weight: 800; }
.panel-topline strong { color: var(--green); }
.chain-stats { display: grid; gap: 12px; margin: 268px 0 16px; }
.chain-stats div { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; border: 1px solid var(--cream-line); border-radius: 11px; background: rgba(255, 250, 240, 0.7); }
.panel-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.panel-actions .btn { min-height: 40px; padding: 0 10px; font-size: 13px; }
dt { color: var(--muted); }
dd, code { font-family: var(--mono); color: var(--text); }
dd { margin: 0; }

.section-block, .safety-section, .submit-section { padding: 92px 0; }
.trust-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; margin-top: -26px; padding: 10px 18px 22px; color: var(--green); font-size: 14px; font-weight: 850; }
.trust-strip span { display: inline-flex; align-items: center; gap: 10px; }
.trust-strip span + span::before { content: ""; width: 5px; height: 5px; border-radius: 999px; background: rgba(36, 89, 48, 0.32); }
.page-hero { padding: 96px 0 42px; }
.page-hero h1 { margin: 10px 0 18px; font-size: clamp(56px, 8vw, 108px); }
.page-hero p { max-width: 780px; color: var(--text-soft); font-size: clamp(18px, 2vw, 22px); line-height: 1.5; }
.directory-section { padding-top: 36px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 32px; }
.section-heading p, .safety-copy p, .submit-section p { max-width: 590px; margin-bottom: 0; color: var(--muted); }
.quick-grid, .resource-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.action-card, .resource-card, .dapp-card { display: flex; flex-direction: column; min-height: 230px; padding: 24px; }
.dapp-card { min-height: 322px; position: relative; }
.action-card p, .resource-card p, .dapp-card p { color: var(--muted); }
.action-card:hover, .resource-card:hover, .dapp-card:hover { border-color: rgba(36, 89, 48, 0.24); background: var(--surface-strong); transform: translateY(-2px); }
.action-card, .resource-card, .dapp-card { transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.card-index { width: fit-content; margin-bottom: 42px; color: var(--green); font-family: var(--mono); font-size: 12px; font-weight: 800; }
.text-link { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-height: 36px; margin-top: auto; padding: 0 12px; border: 1px solid rgba(36, 89, 48, 0.18); border-radius: 999px; background: rgba(36, 89, 48, 0.06); color: var(--green); font-size: 13px; font-weight: 900; }
.text-link:hover { border-color: rgba(36, 89, 48, 0.34); background: rgba(36, 89, 48, 0.1); }
.network-card { margin-top: 18px; padding: 26px; }
.network-card-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.network-field button { min-height: 38px; border: 1px solid var(--border-strong); border-radius: 999px; background: rgba(255, 252, 244, 0.72); color: var(--green); cursor: pointer; font-weight: 800; }
.network-fields { display: grid; gap: 10px; }
.network-field { display: grid; grid-template-columns: 170px minmax(0, 1fr) 82px; gap: 14px; align-items: center; padding: 13px; border: 1px solid var(--cream-line); border-radius: 11px; background: rgba(255, 250, 240, 0.62); }
.network-field span { color: var(--muted); font-weight: 800; }
code { word-break: break-word; }
.copied { border-color: rgba(36, 89, 48, 0.42) !important; background: rgba(36, 89, 48, 0.1) !important; }

.directory-controls { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(180px, 280px); gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255, 252, 244, 0.72); box-shadow: 0 12px 36px rgba(63, 52, 31, 0.06); }
label { display: grid; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 800; }
input, select { min-height: 48px; width: 100%; border: 1px solid rgba(36, 89, 48, 0.18); border-radius: 999px; background: #fffaf0; color: var(--text); padding: 0 15px; outline: none; }
input:focus, select:focus { border-color: rgba(36, 89, 48, 0.42); box-shadow: 0 0 0 3px rgba(36, 89, 48, 0.08); }
.directory-meta { display: flex; justify-content: space-between; gap: 16px; margin: 18px 0; color: var(--muted); font-size: 14px; }
.directory-meta span:first-child { color: var(--text); font-weight: 800; }
.dapp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.source-note { margin: -14px 0 18px; padding: 12px 14px; border: 1px solid rgba(154, 123, 47, 0.16); border-radius: 12px; background: rgba(176, 138, 49, 0.08); color: #5e4b1e; font-size: 14px; font-weight: 700; }
.dapp-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; margin-bottom: 18px; }
.tag, .status-badge, .mini-safety { display: inline-flex; align-items: center; width: fit-content; min-height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.tag { background: var(--green-soft); color: var(--green); }
.status-badge { border: 1px solid rgba(36, 89, 48, 0.12); color: var(--muted); }
.owner-line { margin: -2px 0 14px; color: var(--green); font-size: 13px; font-weight: 800; }
.dapp-card p { display: -webkit-box; min-height: 70px; margin-bottom: 20px; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.mini-safety { margin-top: auto; margin-bottom: 14px; border: 1px solid rgba(154, 123, 47, 0.2); background: var(--amber-soft); color: #735a1d; }
.section-cta, .load-more-wrap { display: flex; justify-content: center; margin-top: 26px; }
.empty-state { grid-column: 1 / -1; padding: 30px; }
.empty-state p { max-width: 720px; margin-bottom: 0; color: var(--muted); }

.safety-section { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 34px; padding: 76px 0; border-top: 1px solid rgba(154, 123, 47, 0.14); border-bottom: 1px solid rgba(154, 123, 47, 0.14); }
.safety-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.safety-list div { min-height: 86px; padding: 20px; border: 1px solid rgba(154, 123, 47, 0.2); border-radius: 14px; background: linear-gradient(180deg, rgba(176, 138, 49, 0.11), rgba(255, 250, 240, 0.58)); color: #3d321d; font-weight: 800; }
.resource-card { min-height: 282px; }
.load-more-wrap [hidden] { display: none; }
.submit-section { display: flex; align-items: center; justify-content: space-between; gap: 26px; border-top: 1px solid rgba(36, 89, 48, 0.12); }
.submit-section h2 { margin-bottom: 14px; }
[aria-disabled="true"] { pointer-events: none; opacity: 0.55; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 46px; border-top: 1px solid rgba(36, 89, 48, 0.12); color: var(--muted); }
.footer-copy { display: grid; gap: 8px; max-width: 540px; }
.site-footer p { margin: 0; }
.creator-credit { color: var(--text-soft); font-size: 14px; font-weight: 800; }
.creator-credit a { color: var(--green); font-weight: 900; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 16px; }
.site-footer a { color: var(--green); font-weight: 800; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 940px) {
  .site-header, .section-heading, .submit-section, .site-footer { align-items: flex-start; flex-direction: column; }
  .nav-links { width: 100%; overflow-x: auto; }
  .hero, .safety-section { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 56px; }
  .quick-grid, .resource-grid, .dapp-grid, .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .site-header, .section-shell, .site-footer { width: min(100% - 24px, 1180px); }
  h1 { font-size: 46px; }
  .page-hero h1 { font-size: 50px; }
  .hero-panel { min-height: 420px; }
  .chain-stats { margin-top: 230px; }
  .panel-actions { grid-template-columns: 1fr; }
  .quick-grid, .resource-grid, .dapp-grid, .directory-controls, .safety-list, .hub-badges { grid-template-columns: 1fr; }
  .network-field { grid-template-columns: 1fr; }
  .directory-meta { flex-direction: column; }
  .notice { border-radius: 12px; }
  .hero-actions .btn, .submit-section .btn { width: 100%; }
}

@keyframes emblemDrift {
  to { transform: rotate(360deg); }
}
@keyframes dotDriftOne {
  0%, 100% { transform: translate(0, 0); opacity: 0.26; }
  50% { transform: translate(10px, -8px); opacity: 0.44; }
}
@keyframes dotDriftTwo {
  0%, 100% { transform: translate(0, 0); opacity: 0.22; }
  50% { transform: translate(-9px, 7px); opacity: 0.4; }
}
@keyframes dotDriftThree {
  0%, 100% { transform: translate(0, 0); opacity: 0.24; }
  50% { transform: translate(7px, 9px); opacity: 0.42; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.001ms !important; }
}








.custom-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(36, 89, 48, 0.46);
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(1);
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease, background 180ms ease;
  will-change: transform;
}
.custom-cursor::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  opacity: 0.9;
  transform: translate(-50%, -50%);
}
.custom-cursor.is-visible { opacity: 0.86; }
.custom-cursor.is-hovering {
  border-color: rgba(36, 89, 48, 0.62);
  background: rgba(36, 89, 48, 0.065);
  transform: translate3d(-50%, -50%, 0) scale(1.28);
}
html:has(body.custom-cursor-enabled),
body.custom-cursor-enabled,
body.custom-cursor-enabled * {
  cursor: none;
}
body.custom-cursor-enabled :where(input, textarea, code, pre, [contenteditable="true"], .network-field code) {
  cursor: text;
}
body.custom-cursor-enabled.custom-cursor-text-mode .custom-cursor {
  opacity: 0;
}

@media (pointer: coarse), (hover: none), (prefers-reduced-motion: reduce) {
  .custom-cursor { display: none !important; }
  html:has(body.custom-cursor-enabled),
  body.custom-cursor-enabled,
  body.custom-cursor-enabled * {
    cursor: auto;
  }
  body.custom-cursor-enabled :where(input, textarea, code, pre, [contenteditable="true"], .network-field code) {
    cursor: text;
  }
}



