/* =========================================================
   Loncoo资源 — dark editorial design system
   Inspired by Shopify: void black + forest teal, neon mint,
   featherweight display type, pill CTAs, stacked shadows.
   ========================================================= */

:root {
  /* --- Nudge contract (defaults match the original look) --- */
  --site-bg: #000000;
  --site-fg: #ffffff;
  --site-accent: #36f4a4;
  --site-on-accent: #04120e;
  --site-surface: #02090a;
  --site-muted: #a1a1aa;
  --site-border: #1e2c31;
  --site-font: "Inter Tight", "Inter", "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --site-radius: 12px;
  --site-space: 1;
  --site-type: 1;
  --site-motion: 1;

  /* --- Derived tokens --- */
  --sp: calc(24px * var(--site-space));
  --ts: var(--site-type);
  --radius: var(--site-radius);
  --dur-fast: calc(160ms * var(--site-motion));
  --dur: calc(300ms * var(--site-motion));
  --dur-slow: calc(800ms * var(--site-motion));

  --void: #000000;
  --deep: var(--site-surface);
  --forest: #061a1c;
  --elev: #102620;
  --line: var(--site-border);
  --line-strong: #2c4146;
  --text: var(--site-fg);
  --muted: var(--site-muted);
  --faint: #71717a;
  --accent: var(--site-accent);
  --on-accent: var(--site-on-accent);

  --display: var(--site-font);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --fs-display: calc(clamp(2.85rem, 7.4vw, 6.5rem) * var(--ts));
  --fs-h2: calc(clamp(1.9rem, 3.4vw, 3.1rem) * var(--ts));
  --fs-h3: calc(clamp(1.5rem, 2.4vw, 2rem) * var(--ts));
  --fs-card: calc(clamp(1.12rem, 1.55vw, 1.4rem) * var(--ts));
  --fs-lede: calc(clamp(1.02rem, 1.45vw, 1.25rem) * var(--ts));

  --shadow-card:
    rgba(0, 0, 0, .45) 0 0 0 1px,
    rgba(0, 0, 0, .4) 0 2px 2px,
    rgba(0, 0, 0, .35) 0 6px 10px,
    rgba(0, 0, 0, .3) 0 16px 32px,
    rgba(255, 255, 255, .035) 0 1px 0 inset;
  --shadow-float:
    rgba(0, 0, 0, .5) 0 0 0 1px,
    rgba(0, 0, 0, .25) 0 25px 50px -12px;

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--site-bg);
  color: var(--text);
  font-family: var(--display);
  font-feature-settings: "ss03" 1, "cv11" 1;
  font-size: 16px;
  line-height: 1.56;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
h1, h2, h3, h4, p, dl, dd, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
[hidden] { display: none !important; }
kbd {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  padding: 6px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, .04);
}
::selection { background: rgba(54, 244, 164, .28); color: #fff; }
:focus-visible { outline: 2px solid var(--site-accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  transform: translateY(-200%);
  background: #fff; color: #000;
  padding: 10px 18px; border-radius: 9999px;
  font-size: 14px;
  transition: transform var(--dur-fast) ease;
}
.skip:focus { transform: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4.5vw, 64px);
}
.section { padding-block: calc(var(--sp) * 3.4); scroll-margin-top: 88px; }
.section + .section { padding-top: calc(var(--sp) * 2.6); }
@media (min-width: 1024px) {
  .section { padding-block: calc(var(--sp) * 4.4); }
}

/* ---------- Type utilities ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-title {
  font-size: var(--fs-h2);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: .005em;
  margin-top: 14px;
  color: #fff;
}
.text-link {
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  padding-bottom: 2px;
  transition: border-color var(--dur) ease, color var(--dur) ease;
  white-space: nowrap;
}
.text-link:hover { border-color: var(--accent); color: var(--accent); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: calc(var(--sp) * 1.6);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 9999px;
  border: 2px solid transparent;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  transition:
    background var(--dur) ease,
    color var(--dur) ease,
    border-color var(--dur) ease,
    transform var(--dur-fast) ease,
    box-shadow var(--dur) ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-light {
  background: #fff;
  color: #000;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset;
}
.btn-light:hover { background: #d9f7ea; box-shadow: 0 8px 24px rgba(54, 244, 164, .18); }
.btn-ghost {
  border-color: #fff;
  color: #fff;
  background: transparent;
}
.btn-ghost:hover { background: #fff; color: #000; }
.btn-sm { min-height: 42px; padding: 9px 20px; font-size: 14px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--dur) ease, border-color var(--dur) ease, backdrop-filter var(--dur) ease;
}
.nav.is-scrolled {
  background: rgba(6, 26, 28, .82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: rgba(30, 44, 49, .8);
}
.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 30px; height: 30px; color: #fff; flex: none; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-word {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .02em;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.brand-word em {
  font-style: normal;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--muted);
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  position: relative;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, .78);
  padding: 10px 0;
  transition: color var(--dur) ease;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: 2px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.is-active { color: #fff; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-search {
  display: inline-flex; align-items: center; gap: 9px;
  height: 42px; padding: 0 12px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9999px;
  color: var(--muted);
  font-size: 13.5px;
  transition: border-color var(--dur) ease, color var(--dur) ease, background var(--dur) ease;
}
.nav-search svg { width: 16px; height: 16px; }
.nav-search:hover { color: #fff; border-color: var(--accent); background: rgba(255, 255, 255, .03); }
.menu-btn { display: none; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line-strong); border-radius: 9999px; }
.menu-btn span { display: block; width: 16px; height: 1px; background: #fff; margin: 3px auto; transition: transform var(--dur) ease, opacity var(--dur) ease; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(2px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-2px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(2, 9, 10, .98);
  padding: 104px clamp(20px, 6vw, 48px) 40px;
  display: flex; flex-direction: column; gap: 40px;
  overflow-y: auto;
  animation: menuIn var(--dur) ease both;
}
@keyframes menuIn { from { opacity: 0; } to { opacity: 1; } }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid rgba(30, 44, 49, .9);
  font-size: clamp(24px, 7vw, 34px);
  font-weight: 300;
}
.mobile-menu nav a span { font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: .1em; }
.mobile-topics { display: flex; flex-wrap: wrap; gap: 10px; }
.mobile-note { color: var(--faint); font-size: 13px; line-height: 1.7; margin-top: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(94svh, 920px);
  display: flex;
  align-items: center;
  padding-top: clamp(56px, 9vh, 110px);
  padding-bottom: calc(var(--sp) * 3);
  overflow: hidden;
}
#heroCanvas {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  opacity: .62;
  -webkit-mask-image: radial-gradient(ellipse 78% 72% at 50% 42%, #000 12%, transparent 74%);
  mask-image: radial-gradient(ellipse 78% 72% at 50% 42%, #000 12%, transparent 74%);
}
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(16, 38, 32, .85), transparent 68%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(54, 244, 164, .055), transparent 70%),
    linear-gradient(180deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .65) 82%, var(--site-bg));
}
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-eyebrow { color: rgba(255, 255, 255, .62); }
.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(54, 244, 164, .5);
  animation: pulse 3.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(54, 244, 164, .45); }
  60% { box-shadow: 0 0 0 9px rgba(54, 244, 164, 0); }
  100% { box-shadow: 0 0 0 0 rgba(54, 244, 164, 0); }
}
.hero h1 {
  margin-top: clamp(22px, 3.4vh, 34px);
  font-size: var(--fs-display);
  font-weight: 300;
  line-height: 1.03;
  letter-spacing: .004em;
  color: #fff;
  max-width: 16em;
}
.hero h1 .dim {
  color: transparent;
  background: linear-gradient(100deg, rgba(255, 255, 255, .94), rgba(193, 251, 212, .58) 58%, rgba(161, 161, 170, .75));
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-lede {
  margin-top: clamp(20px, 2.6vh, 28px);
  max-width: 41em;
  font-size: var(--fs-lede);
  line-height: 1.65;
  color: #a9b3b0;
  font-weight: 400;
}
.hero-actions {
  margin-top: clamp(28px, 4vh, 42px);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
/* ---------- Open source projects ---------- */
.projects-lede { max-width: 48em; margin-top: 18px; color: #a9b3b0; font-size: 15px; line-height: 1.8; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
.project-card {
  display: flex; flex-direction: column;
  padding: 26px 24px 22px;
  border: 1px solid rgba(30, 44, 49, .9);
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(180deg, rgba(16, 38, 32, .4), rgba(2, 9, 10, .25));
  transition: border-color var(--dur) ease, background var(--dur) ease, transform var(--dur) ease;
}
.project-card:hover { border-color: rgba(54, 244, 164, .3); background: rgba(54, 244, 164, .03); transform: translateY(-3px); }
.project-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--faint); }
.project-index { color: var(--accent); letter-spacing: .1em; }
.project-name { margin-top: 18px; font-size: calc(1.5rem * var(--ts)); font-weight: 300; line-height: 1.2; letter-spacing: -.01em; }
.project-name a { display: inline-flex; align-items: baseline; gap: 8px; color: #f4f7f6; }
.project-name a span { font-size: .6em; color: var(--accent); transition: transform var(--dur) ease; }
.project-card:hover .project-name a span { transform: translate(2px, -2px); }
.project-desc { margin-top: 14px; color: #a9b3b0; font-size: 13.5px; line-height: 1.78; }
.project-note { margin-top: 10px; padding-left: 12px; border-left: 2px solid rgba(54, 244, 164, .26); color: #8e9895; font-size: 12.5px; line-height: 1.65; }
.project-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.project-tags li { padding: 4px 9px; border: 1px solid rgba(30, 44, 49, .9); border-radius: 999px; font-family: var(--mono); font-size: 10.5px; color: #b9c1bf; }
.project-foot { margin-top: auto; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.project-foot a { display: inline-flex; gap: 6px; color: #d4d4d8; transition: color var(--dur) ease; }
.project-foot a:hover { color: var(--accent); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 7vw, 100px); align-items: start; }
.about-title { font-size: var(--fs-h2); font-weight: 300; line-height: 1.14; margin-top: 16px; }
.about-copy { display: flex; flex-direction: column; gap: 20px; padding-top: 6px; }
.about-copy p { color: #a9b3b0; font-size: 15.5px; line-height: 1.8; max-width: 38em; }
.about-copy p:first-child { color: #e6ecea; font-size: calc(1.05rem * var(--ts)); line-height: 1.7; }
.about-facts { list-style: none; display: grid; gap: 0; margin-top: 14px; border-top: 1px solid rgba(30, 44, 49, .9); }
.about-facts li {
  display: flex; align-items: baseline; gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(30, 44, 49, .9);
  font-size: 13.5px; color: #d4d4d8;
}
.about-facts span { font-family: var(--mono); font-size: 10.5px; color: var(--accent); letter-spacing: .1em; }

/* ---------- Compliance statement ---------- */
.compliance {
  margin-top: clamp(44px, 7vw, 88px);
  padding: clamp(26px, 4.2vw, 56px);
  border: 1px solid rgba(54, 244, 164, .14);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(54, 244, 164, .06), transparent 62%),
    linear-gradient(180deg, rgba(16, 38, 32, .5), rgba(2, 9, 10, .55));
}
.compliance-head h3 {
  margin-top: 14px;
  font-size: calc(clamp(1.55rem, 2.8vw, 2.3rem) * var(--ts));
  font-weight: 300; line-height: 1.24; color: #f4f7f6;
}
.compliance-lead { margin-top: 18px; max-width: 64em; color: #a9b3b0; font-size: 14.5px; line-height: 1.85; }
.compliance-list {
  list-style: none;
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(26px, 3.6vw, 42px);
  border-top: 1px solid rgba(30, 44, 49, .9);
}
.compliance-list li { padding: 22px 0 24px; border-bottom: 1px solid rgba(30, 44, 49, .9); }
.compliance-list h4 {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 14.5px; font-weight: 500; letter-spacing: .01em; color: #eef2f0;
}
.compliance-list h4 span { font-family: var(--mono); font-size: 10.5px; color: var(--accent); letter-spacing: .1em; }
.compliance-list p { margin-top: 10px; color: #96a19e; font-size: 13.5px; line-height: 1.78; }
.compliance-foot { margin-top: 26px; display: grid; gap: 14px; }
.compliance-foot p { max-width: 82em; font-size: 13px; line-height: 1.8; color: #8e9895; }
.compliance-foot strong { color: #cfe8df; font-weight: 500; }
.compliance-foot a { color: var(--accent); border-bottom: 1px solid rgba(54, 244, 164, .3); transition: border-color var(--dur) ease; }
.compliance-foot a:hover { border-color: var(--accent); }
.compliance-meta { font-family: var(--mono); font-size: 10.5px !important; letter-spacing: .08em; color: var(--faint) !important; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid rgba(30, 44, 49, .9);
  padding-top: calc(var(--sp) * 2.4);
  margin-top: calc(var(--sp) * 2);
}
.footer-top {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  padding-bottom: calc(var(--sp) * 2);
}
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-brand p { color: var(--faint); font-size: 13.5px; max-width: 20em; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.footer-cols > div { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-label { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.footer-cols a, .footer-cols span { font-size: 13.5px; color: #b9c1bf; transition: color var(--dur) ease; }
.footer-cols a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  border-top: 1px solid rgba(30, 44, 49, .7);
  padding-block: 26px;
  font-size: 12px; color: var(--faint);
}
.footer-legal {
  flex-basis: 100%; max-width: 96em;
  padding-top: 14px;
  border-top: 1px solid rgba(30, 44, 49, .55);
  line-height: 1.8;
  font-size: 12px; color: #7d8785;
}
.footer-legal a { color: #b9c1bf; border-bottom: 1px solid rgba(54, 244, 164, .32); transition: color var(--dur) ease; }
.footer-legal a:hover { color: var(--accent); }
.footer-icp {
  flex-basis: 100%;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(30, 44, 49, .55);
  font-size: 12px; color: #7d8785;
}
.footer-icp a { color: #b9c1bf; border-bottom: 1px solid rgba(54, 244, 164, .24); transition: color var(--dur) ease, border-color var(--dur) ease; }
.footer-icp a:hover { color: var(--accent); border-color: var(--accent); }
.footer-icp-dot { width: 3px; height: 3px; border-radius: 50%; background: #4b5553; }
.noscript {
  position: fixed; left: 16px; bottom: 16px; right: 16px;
  background: #102620; border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 14px 18px; font-size: 13px;
  z-index: 300;
}

/* ---------- Reveal ---------- */
body.reveal-ready .reveal.in {
  animation: rise var(--dur-slow) cubic-bezier(.2, .7, .2, 1) both;
}
body.reveal-ready .reveal.in.delay-1 { animation-delay: calc(90ms * var(--site-motion)); }
body.reveal-ready .reveal.in.delay-2 { animation-delay: calc(180ms * var(--site-motion)); }
body.reveal-ready .reveal.in.delay-3 { animation-delay: calc(270ms * var(--site-motion)); }
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Downloads ---------- */
.downloads-lede { max-width: 52em; margin-top: 18px; color: #a9b3b0; font-size: 15px; line-height: 1.8; }
.download-list { margin-top: 28px; border-top: 1px solid var(--line); }
.dl-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 24px 2px;
  border-bottom: 1px solid var(--line);
}
.dl-type {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  color: var(--accent);
  background: rgba(54, 244, 164, .05);
}
.dl-type svg { width: 20px; height: 20px; }
.dl-main { min-width: 0; }
.dl-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dl-title { font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.dl-version {
  font-size: 11px; letter-spacing: .04em;
  color: var(--accent);
  border: 1px solid rgba(54, 244, 164, .3);
  border-radius: 999px;
  padding: 2px 9px;
}
.dl-note { margin-top: 7px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.dl-meta {
  margin-top: 9px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px;
  font-size: 12px; color: var(--faint);
  font-family: var(--mono);
}
.dl-sep { width: 3px; height: 3px; border-radius: 50%; background: #4b5553; }
.dl-tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.dl-tags li {
  font-size: 11px; color: #9fb0ac;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 2px 9px;
}
.dl-action { justify-self: end; }
.dl-state {
  margin-top: 26px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}
.dl-state strong { display: block; margin-bottom: 6px; color: var(--text); font-size: 15px; font-weight: 500; }
.dl-state a { color: var(--accent); border-bottom: 1px solid rgba(54, 244, 164, .35); }

/* ---------- Admin ---------- */
.admin-shell { max-width: 900px; padding-block: 64px 110px; }
.admin-title { margin-top: 14px; font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 300; letter-spacing: -.02em; }
.admin-sub { margin-top: 12px; max-width: 58ch; color: var(--muted); font-size: 14px; line-height: 1.8; }
.admin-panel {
  margin-top: 34px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 38, 32, .38), rgba(2, 9, 10, .55));
}
.admin-panel-title { font-size: 20px; font-weight: 500; }
.admin-hint { color: var(--muted); font-size: 13px; line-height: 1.8; }
.admin-panel-title + .admin-hint { margin-top: 8px; }
.admin-back { margin-top: 22px; }
.admin-form { display: flex; flex-direction: column; gap: 16px; }
.admin-auth { max-width: 440px; margin-top: 20px; }
.admin-form-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; color: var(--muted); }
.field label { letter-spacing: .02em; }
.field input, .field textarea {
  width: 100%;
  background: #03100f;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.field textarea { resize: vertical; min-height: 84px; line-height: 1.6; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(54, 244, 164, .55);
  background: #041513;
}
.field-hint { font-size: 11.5px; color: var(--faint); line-height: 1.6; }
.admin-form-actions { display: flex; gap: 10px; margin-top: 4px; }
.form-msg { min-height: 18px; font-size: 12.5px; color: var(--accent); }
.form-msg.is-error { color: #ff8f8f; }
.admin-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.admin-count { font-size: 13px; color: var(--faint); }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-item-form {
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(3, 16, 15, .7);
}
.admin-list { border-top: 1px solid var(--line); }
.admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px 2px;
  border-bottom: 1px solid var(--line);
}
.admin-item h4 { font-size: 15px; font-weight: 500; }
.admin-item p { margin-top: 5px; font-size: 12px; color: var(--faint); word-break: break-all; font-family: var(--mono); }
.admin-item-actions { display: flex; gap: 14px; }
.btn-link {
  padding: 4px 0;
  font-size: 12.5px;
  color: var(--muted);
  transition: color var(--dur-fast) ease;
}
.btn-link:hover { color: var(--accent); }
.btn-link.danger:hover { color: #ff8f8f; }
.admin-list .admin-hint { padding: 20px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { gap: 22px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .compliance-list { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .hero { min-height: auto; padding-top: clamp(48px, 8vh, 90px); }
}
@media (max-width: 640px) {
  .nav-inner { height: 64px; }
  .brand-word { font-size: 16px; }
  .brand-word em { font-size: 14px; }
  .nav-actions { gap: 8px; }
  .hero { padding-top: 44px; }
  .hero h1 { max-width: 100%; font-size: calc(2.15rem * var(--ts)); }
  .project-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .section-head .text-link { align-self: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-legal, .footer-icp { flex-basis: auto; width: 100%; }
  .footer-legal { text-align: left; }
  .about-facts li { gap: 12px; }
  .dl-item { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .dl-type { display: none; }
  .dl-action { justify-self: start; }
  .admin-shell { padding-block: 44px 80px; }
  .admin-panel { padding: 22px 18px; }
  .admin-form-row { grid-template-columns: 1fr; }
  .admin-bar { flex-direction: column; align-items: flex-start; }
  .admin-item { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  body.reveal-ready .reveal { opacity: 1; transform: none; }
}
