@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/instrument-sans-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/instrument-sans-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/fonts/instrument-sans-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/instrument-sans-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/instrument-sans-latin-ext-500.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/fonts/instrument-sans-latin-ext-600.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/newsreader-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/fonts/newsreader-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/newsreader-latin-500-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/newsreader-latin-ext-500.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/fonts/newsreader-latin-ext-600.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/newsreader-latin-ext-500-italic.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/dm-mono-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/dm-mono-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0b0e0c;
  --paper: #e7f0ea;
  --text: #e7efe9;
  --muted: #a8b7ae;
  --mint: #b6f2c8;
  --mint-ink: #102117;
  --alert: #e36a62;
  --line: rgba(231, 239, 233, 0.16);
  --sans: "Instrument Sans", "PingFang SC", "Noto Sans SC", "Noto Sans CJK SC", "Hiragino Sans", "Microsoft YaHei", "Segoe UI", sans-serif;
  --display: "Newsreader", "Iowan Old Style", "Palatino Linotype", "Songti SC", "Noto Serif SC", serif;
  --mono: "DM Mono", ui-monospace, monospace;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(720px 420px at 100% -10%, rgba(182, 242, 200, 0.14), transparent 55%),
    radial-gradient(540px 320px at 0% 12%, rgba(227, 106, 98, 0.12), transparent 50%),
    var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -40px;
  z-index: 20;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 12px;
}
.skip:focus { top: 8px; }

.container { width: min(100% - 32px, 1120px); margin-inline: auto; }
.narrow { width: min(100% - 32px, 760px); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: env(safe-area-inset-top);
  background: rgba(11, 14, 12, 0.86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.bar {
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.brand small { color: var(--mint); letter-spacing: 0.12em; font-size: 0.78rem; }
.mark { width: 28px; height: 28px; color: var(--mint); }

.desk-nav { display: flex; gap: 18px; margin-inline-start: 8px; }
.desk-nav a, .mobile-nav a {
  color: var(--muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.desk-nav a:hover, .mobile-nav a:hover { color: var(--text); }

.bar-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }

.btn, .lang-btn, .menu-btn, .side button {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.btn { background: var(--mint); color: var(--mint-ink); font-weight: 600; }
.btn-ghost, .lang-btn, .menu-btn {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.menu-btn { width: 44px; padding: 0; display: none; }
.mobile-nav { display: none; padding: 8px 16px 20px; }

.lang-pop {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  width: min(320px, calc(100vw - 32px));
  background: #141916;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.lang-search, .text-field input, .brief input, .brief textarea, .brief select, .output textarea {
  width: 100%;
  min-height: 48px;
  font-size: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0e1210;
  color: var(--text);
  padding: 10px 12px;
}
.lang-list { max-height: 280px; overflow: auto; margin-top: 8px; display: grid; }
.lang-list button {
  min-height: 44px;
  text-align: start;
  background: transparent;
  color: var(--text);
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  cursor: pointer;
}
.lang-list button[aria-selected="true"], .lang-list button:hover { background: rgba(182, 242, 200, 0.14); }

.hero { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; padding: 32px 0 48px; }
.hero-grid, .split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: start;
}
h1 { margin: 8px 0 12px; font-family: var(--display); font-weight: 560; font-size: clamp(2.5rem, 6vw, 4.8rem); line-height: 1.02; }
h1 em { font-style: italic; color: var(--mint); }
h2 { margin: 0 0 12px; font-family: var(--display); font-weight: 560; font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { margin: 0 0 8px; font-size: 1.15rem; }
.kicker, .stamp, .source { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mint); }
.lead, .section-lead { color: var(--muted); max-width: 68ch; }
.hero-actions, .side { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }

.feed, .card, .peer, .plan, .result, .stats div, .evidence article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
}
.feed-row, .range-top, .result dl div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.feed-row + .feed-row { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.feed-host { font-family: var(--mono); font-size: 0.92rem; }
.feed-kind { color: var(--alert); font-size: 0.85rem; }
.feed-when { color: var(--muted); font-family: var(--mono); font-size: 0.78rem; }
.chains { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 0; list-style: none; }
.chains li {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--mono);
}

.section { padding: 72px 0; }
.paper { background: var(--paper); color: #142018; }
.paper .section-lead, .paper .source, .paper .kicker { color: #3e5348; }
.paper .kicker { color: #1d6b45; }
.paper .card, .paper .plan, .paper .evidence article { background: rgba(255, 255, 255, 0.55); border-color: rgba(20, 32, 24, 0.12); }

.stats, .evidence, .peers, .plans, .specs { display: grid; gap: 12px; margin-top: 24px; }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.evidence, .peers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ev-num { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0 0 8px; }
.price { font-family: var(--display); font-size: 2.2rem; margin: 8px 0; }
.peer ol, .ticks { margin: 0; padding-inline-start: 1.1rem; }
.peer li + li, .ticks li + li { margin-top: 8px; }
.peer-us { border-color: rgba(182, 242, 200, 0.7); }

.text-field, .brief label { display: grid; gap: 6px; }
.controls, .brief { display: grid; gap: 14px; }
.lookup-out { font-family: var(--mono); font-size: 1rem; margin: 0; }
.result dl { margin: 0; }
.note, .card-note { color: var(--muted); }
.paper .note, .paper .card-note { color: #3e5348; }
.err { color: var(--alert); margin: -6px 0 0; }
.faqs { display: grid; gap: 8px; }
.faq { border-bottom: 1px solid var(--line); }
.faq h3 { font-size: 1.05rem; }
.faq button {
  width: 100%;
  min-height: 56px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: transparent;
  color: inherit;
  border: 0;
  text-align: start;
  cursor: pointer;
  padding: 8px 0;
}
.code {
  margin: 0;
  overflow: auto;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.5;
  background: #101412;
  color: #d5e8dc;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--line);
}
.foot { display: flex; flex-direction: column; gap: 8px; padding-bottom: max(28px, env(safe-area-inset-bottom)); }
.site-footer { border-top: 1px solid var(--line); padding-top: 28px; color: var(--muted); }
.brand-line { letter-spacing: 0.16em; font-weight: 600; color: var(--text); }
.noscript { width: min(100% - 32px, 760px); margin: 48px auto; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

@media (max-width: 1000px) {
  .desk-nav { display: none; }
  .menu-btn, .mobile-nav { display: grid; }
  .hero-grid, .split, .stats, .evidence, .peers, .plans { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .bar .btn-small { display: none; }
  .lang-pop { position: fixed; inset-inline: 16px; top: 76px; }
}
@media (min-width: 721px) and (max-width: 1000px) {
  .plans { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
html[dir="rtl"] h1, html[dir="rtl"] h2 {
  font-family: "Noto Naskh Arabic", "Geeza Pro", "Times New Roman", serif;
}
