@font-face { font-family: "Manrope"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/manrope-400.ttf") format("truetype"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/manrope-600.ttf") format("truetype"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/manrope-700.ttf") format("truetype"); }
@font-face { font-family: "Manrope"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/manrope-800.ttf") format("truetype"); }

:root {
  --bg: #08090b;
  --bg-2: #111316;
  --card: #17191d;
  --silver: #c0c4cc;
  --silver-hi: #e6e8ec;
  --text: #f2f3f5;
  --muted: #858a93;
  --line: rgba(192, 196, 204, 0.14);
  --line-hi: rgba(192, 196, 204, 0.32);
  --radius: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --wrap: min(1180px, 100% - 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0;
  font-family: "Manrope", "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
:focus-visible { outline: 2px solid var(--silver); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(192, 196, 204, 0.3); }

.wrap { width: var(--wrap); margin-inline: auto; }
.muted { color: var(--muted); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--silver); color: #08090b; padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.ic { width: 18px; height: 18px; stroke-width: 1.75; flex: none; }
.ic-sm { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; }
.silver { background: linear-gradient(180deg, #f2f3f5 0%, #9ea3ac 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(8, 9, 11, 0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease); }
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(8, 9, 11, 0.9); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { height: 20px; width: auto; }
.logo-word { font-weight: 700; font-size: 14px; letter-spacing: 0.32em; color: var(--silver); transition: color 0.2s; }
.logo:hover .logo-word { color: var(--text); }
.nav-links { display: flex; gap: 30px; margin-inline: auto; }
.nav-links a { position: relative; text-decoration: none; font-size: 14.5px; font-weight: 600; color: var(--muted); padding: 6px 0; transition: color 0.2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--silver); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color 0.2s; }
.menu-toggle:hover { border-color: var(--line-hi); }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 14.5px; line-height: 1; padding: 14px 22px; border-radius: 10px; border: 1px solid var(--line-hi); color: var(--text); background: transparent; cursor: pointer; transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn .ic-end { transition: transform 0.25s var(--ease); }
.btn:hover .ic-end { transform: translateX(3px); }
.btn:hover .ic-end[data-lucide="arrow-up-right"] { transform: translate(2px, -2px); }
.btn-primary { background: var(--silver); border-color: var(--silver); color: #08090b; }
.btn-primary:hover { background: var(--silver-hi); border-color: var(--silver-hi); }
.btn-ghost:hover { background: rgba(192, 196, 204, 0.08); border-color: var(--silver); }
.btn-quiet { border-color: transparent; color: var(--muted); padding-inline: 12px; }
.btn-quiet:hover { color: var(--text); }
.btn-small { padding: 10px 16px; font-size: 13.5px; }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.btn-block { width: 100%; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(72px, 12vw, 150px) 0 clamp(72px, 10vw, 120px); border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 78% 40%, rgba(192, 196, 204, 0.07), transparent 70%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; }
.hero-art { position: absolute; z-index: 0; right: max(-120px, calc((100% - 1180px) / 2 - 80px)); top: 50%; width: min(640px, 62vw); aspect-ratio: 1; transform: translateY(-50%); color: rgba(192, 196, 204, 0.38); pointer-events: none; }
.hero-art svg { width: 100%; height: 100%; overflow: visible; }
.hero-mark { position: absolute; left: 50%; top: 50%; width: 30%; height: auto; transform: translate(-50%, -50%); opacity: 0.9; }
.ring { transform-origin: 300px 300px; transform-box: view-box; }
.r1 { animation: spin 160s linear infinite; }
.r2 { animation: spin 90s linear infinite reverse; }
.r3 { animation: spin 120s linear infinite; }
.r4 { animation: spin 60s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 26px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.eyebrow-tag { color: var(--silver); border: 1px solid var(--line-hi); border-radius: 999px; padding: 6px 12px; }
h1 { font-size: clamp(40px, 7vw, 84px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; max-width: 14ch; }
.hero h1 { max-width: 12ch; }
.lead { font-size: clamp(16.5px, 1.6vw, 19px); color: #aeb2ba; max-width: 600px; margin: 28px 0 36px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-index { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: clamp(48px, 8vw, 88px); padding-top: 24px; border-top: 1px solid var(--line); max-width: 600px; }
.hero-index a { display: inline-flex; gap: 10px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted); transition: color 0.2s; }
.hero-index a span { color: var(--silver); font-variant-numeric: tabular-nums; }
.hero-index a:hover { color: var(--text); }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 60px); }
.kicker { font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.section-title { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
.section-lead { margin: 18px 0 0; color: #9a9fa8; font-size: 17px; }

/* Project cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; overflow: hidden; transition: transform 0.4s var(--ease), border-color 0.3s, background-color 0.3s; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 50% 0, rgba(192, 196, 204, 0.09), transparent 70%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.card:hover, .card:focus-within { transform: translateY(-4px); border-color: var(--line-hi); }
.card:hover::before, .card:focus-within::before { opacity: 1; }
.card-hit { position: absolute; inset: 0; z-index: 1; }
.card-top, .card-body, .card-preview { position: relative; }
.card-actions { position: relative; z-index: 2; }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.card-num { font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: transparent; -webkit-text-stroke: 1px var(--silver); transition: color 0.4s; }
.card:hover .card-num { color: rgba(192, 196, 204, 0.12); }
.card-preview { margin-bottom: 26px; height: 244px; }
.card-preview .pv { height: 100%; display: flex; flex-direction: column; }
.card-preview .pv-player .pv-row { flex: 1; }
.card-preview .pv-stack .pv-page { flex: 1; align-content: start; }
.card-cat { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.card-title { font-size: clamp(26px, 3vw, 34px); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.card-text { color: #9a9fa8; margin-bottom: 0; }
.card-body { flex: 1; margin-bottom: 26px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--silver); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 10px; background: rgba(8, 9, 11, 0.4); text-transform: none; }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--silver); box-shadow: 0 0 0 0 rgba(192, 196, 204, 0.5); }
.chip-live .chip-dot { animation: pulse 2.4s ease-out infinite; }
.chip-beta .chip-dot { background: transparent; border: 1.5px solid var(--silver); }
.chip-planned .chip-dot { background: transparent; border: 1.5px dashed var(--muted); }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(192, 196, 204, 0); } 100% { box-shadow: 0 0 0 0 rgba(192, 196, 204, 0); } }

/* Previews */
.pv { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); overflow: hidden; }
.pv-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); font-size: 11.5px; color: var(--muted); }
.pv-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(192, 196, 204, 0.25); }
.pv-bar .dot:first-child { background: var(--silver); }
.pv-label, .pv-url { margin-left: 6px; }
.pv-url { flex: 1; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; }
.pv-player { padding-bottom: 18px; }
.pv-row { display: flex; gap: 16px; padding: 18px 18px 14px; align-items: center; }
.pv-cover { width: 72px; height: 72px; border-radius: 10px; flex: none; background: linear-gradient(135deg, #2a2d33, #0e0f12); border: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: center; gap: 4px; padding: 14px; }
.pv-cover span { width: 6px; background: var(--silver); border-radius: 2px; transform-origin: bottom; animation: eq 1.4s ease-in-out infinite; }
.pv-cover span:nth-child(1) { height: 22px; }
.pv-cover span:nth-child(2) { height: 34px; animation-delay: -0.4s; }
.pv-cover span:nth-child(3) { height: 18px; animation-delay: -0.8s; }
.pv-cover span:nth-child(4) { height: 28px; animation-delay: -1.1s; }
@keyframes eq { 50% { transform: scaleY(0.45); } }
.pv-meta { display: grid; gap: 2px; min-width: 0; }
.pv-meta b { font-size: 15px; }
.pv-meta span { font-size: 13px; color: var(--muted); }
.pv-src { color: var(--silver) !important; font-size: 11.5px !important; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }
.pv-prog { margin: 4px 18px 0; height: 4px; border-radius: 4px; background: rgba(192, 196, 204, 0.14); overflow: hidden; }
.pv-prog i { display: block; height: 100%; width: 38%; background: var(--silver); border-radius: 4px; }
.pv-time { display: flex; justify-content: space-between; margin: 8px 18px 0; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pv-page { padding: 18px; display: grid; gap: 9px; }
.pv-page b { display: block; height: 14px; width: 46%; background: var(--silver); border-radius: 4px; }
.pv-page i { display: block; height: 8px; width: 82%; background: rgba(192, 196, 204, 0.16); border-radius: 4px; }
.pv-page i.short { width: 56%; }
.pv-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.pv-cols span { height: 38px; border: 1px solid var(--line); border-radius: 8px; }
.pv-term { border-top: 1px solid var(--line); padding: 12px 18px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; display: grid; gap: 4px; background: var(--bg-2); }
.pv-term p { display: flex; justify-content: space-between; margin: 0; }
.pv-term em { font-style: normal; color: var(--muted); }
.pv-term span { color: var(--silver); }
.pv-glyph { aspect-ratio: 16 / 9; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(192, 196, 204, 0.08), transparent 70%), var(--bg); }
.pv-glyph span { font-size: 72px; font-weight: 800; color: transparent; -webkit-text-stroke: 1px var(--silver); }
.pv-image img { width: 100%; height: auto; }

/* Ecosystem tree */
.tree { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 0; align-items: center; max-width: 820px; }
.tree-root { border: 1px solid var(--line-hi); border-radius: 16px; padding: 26px 28px; background: var(--card); display: grid; gap: 4px; position: relative; }
.tree-root span { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.tree-root small, .tree-t small { color: var(--muted); font-size: 13px; }
.tree-root::after { content: ""; position: absolute; left: 100%; top: 50%; width: 40px; height: 1px; background: var(--line-hi); }
.tree-list { position: relative; margin-left: 40px; padding: 4px 0; display: grid; gap: 14px; }
.tree-list::before { content: ""; position: absolute; left: 0; top: 36px; bottom: 36px; width: 1px; background: var(--line-hi); transform-origin: top; }
.tree-list li { position: relative; padding-left: 40px; }
.tree-list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 40px; height: 1px; background: var(--line-hi); }
.tree-node { display: flex; align-items: center; gap: 16px; text-decoration: none; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; background: var(--card); transition: border-color 0.25s, transform 0.3s var(--ease), background-color 0.25s; }
.tree-node:hover { border-color: var(--line-hi); transform: translateX(4px); }
.tree-n { font-weight: 800; color: var(--silver); font-variant-numeric: tabular-nums; }
.tree-t { flex: 1; display: grid; }
.tree-t b { font-size: 17px; }
.tree-node .ic { color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-text .section-title { margin-bottom: 26px; }
.about-text p:not(.kicker) { color: #aeb2ba; font-size: 17.5px; max-width: 560px; }
.geo { display: grid; gap: 14px; }
.geo-item { display: flex; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; background: var(--card); transition: border-color 0.25s; }
.geo-item:hover { border-color: var(--line-hi); }
.geo-ic { width: 26px; height: 26px; color: var(--silver); }
.geo-item b { display: block; font-size: 20px; letter-spacing: -0.02em; }
.geo-item span { color: var(--muted); font-size: 14px; }

/* Tiles, tables, steps */
.grid { display: grid; gap: 16px; }
.grid-feat { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.grid-dir { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color 0.3s, transform 0.4s var(--ease); }
.tile:hover { border-color: var(--line-hi); transform: translateY(-3px); }
.tile-top { display: flex; justify-content: space-between; align-items: center; }
.tile-ic { width: 26px; height: 26px; color: var(--silver); margin-bottom: 20px; }
.tile-top .tile-ic { margin-bottom: 20px; }
.tile-n { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0.1em; }
.tile h3 { font-size: 18px; letter-spacing: -0.015em; margin-bottom: 10px; }
.tile p { margin: 0; color: #9a9fa8; font-size: 15px; }
.list { display: grid; gap: 8px; margin-top: 14px; }
.list li { position: relative; padding-left: 20px; color: #aeb2ba; font-size: 15px; }
.list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1px; background: var(--silver); }

.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 16px 22px; border-bottom: 1px solid var(--line); font-weight: 700; }
.table td { padding: 16px 22px; border-bottom: 1px solid var(--line); color: #c3c6cc; vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color 0.2s; }
.table tbody tr:hover { background: rgba(192, 196, 204, 0.04); }
.badge { display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-hi); color: var(--silver); }
.badge-ok { background: rgba(192, 196, 204, 0.12); color: var(--text); }
.badge-wait { border-style: dashed; }
.badge-no { color: var(--muted); border-color: var(--line); }

.steps { display: grid; gap: 14px; counter-reset: s; max-width: 860px; }
.step { display: flex; gap: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.step-n { font-size: 30px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--silver); min-width: 44px; letter-spacing: -0.03em; }
.step > div { min-width: 0; overflow-wrap: anywhere; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { margin: 0; color: #9a9fa8; font-size: 15px; }

/* Installation guide */
.guide { display: grid; gap: 20px; max-width: 920px; }
.g-req, .g-pick { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.g-req h3, .g-pick h3 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.g-req .list li { color: #c3c6cc; }
.g-scenarios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.g-sc { text-align: left; display: grid; gap: 6px; align-content: start; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 18px; cursor: pointer; transition: border-color 0.25s, background-color 0.25s, transform 0.3s var(--ease); }
.g-sc:hover { border-color: var(--line-hi); transform: translateY(-2px); }
.g-sc[aria-pressed="true"] { border-color: var(--silver); background: rgba(192, 196, 204, 0.08); }
.g-sc .tile-ic { margin-bottom: 8px; }
.g-sc b { font-size: 16px; }
.g-sc span { font-size: 13.5px; color: #9a9fa8; line-height: 1.5; }
.g-hint { margin: 16px 0 0; font-size: 13.5px; }
.g-steps { display: grid; gap: 0; position: relative; counter-reset: g; }
.g-step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding-bottom: 28px; position: relative; transition: opacity 0.35s; }
.g-step::before { content: ""; position: absolute; left: 22px; top: 48px; bottom: 6px; width: 1px; background: var(--line-hi); }
.g-step:last-child::before { display: none; }
.g-n { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line-hi); border-radius: 50%; background: var(--bg); font-weight: 800; font-size: 14px; color: var(--silver); font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.g-body { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; min-width: 0; overflow-wrap: anywhere; transition: border-color 0.3s; }
.g-step:hover .g-body { border-color: var(--line-hi); }
.g-body h3 { font-size: 19px; letter-spacing: -0.015em; margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.g-body h3 .badge { font-size: 11.5px; font-weight: 700; letter-spacing: 0; }
.g-body > p { color: #aeb2ba; font-size: 15.5px; }
.g-sub { counter-reset: s; display: grid; gap: 10px; margin: 14px 0 4px; }
.g-sub li { counter-increment: s; position: relative; padding-left: 34px; color: #c3c6cc; font-size: 15px; }
.g-sub li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border: 1px solid var(--line-hi); border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; color: var(--silver); line-height: 1; padding-top: 0; }
.g-code { display: flex; align-items: center; gap: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 8px 8px 16px; margin: 14px 0 4px; }
.g-code code { flex: 1; font-size: 13.5px; color: var(--silver-hi); overflow-x: auto; white-space: pre; padding: 4px 0; line-height: 1.7; }
.pv-panel .pv-pbody { display: grid; grid-template-columns: 56px 1fr; min-height: 190px; }
.pv-side { border-right: 1px solid var(--line); padding: 16px 0; display: grid; gap: 10px; justify-items: center; align-content: start; background: var(--bg-2); }
.pv-side i { width: 22px; height: 22px; border: 1px solid var(--line-hi); border-radius: 6px; }
.pv-side i.on { background: var(--silver); border-color: var(--silver); }
.pv-main { padding: 16px; display: grid; gap: 14px; align-content: start; }
.pv-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pv-tiles span { height: 44px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, rgba(192, 196, 204, 0.08), transparent); }
.pv-rows { display: grid; gap: 8px; }
.pv-rows p { margin: 0; display: grid; grid-template-columns: 22% 1fr 10px; gap: 12px; align-items: center; }
.pv-rows b { height: 8px; border-radius: 4px; background: rgba(192, 196, 204, 0.4); }
.pv-rows i { height: 6px; border-radius: 4px; background: rgba(192, 196, 204, 0.14); }
.pv-rows em { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--muted); }
.pv-rows em.ok { background: var(--silver); border-color: var(--silver); }
.rel { display: grid; gap: 22px; }
.rel-group { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.rel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 8px; }
.rel-head h3 { font-size: 20px; letter-spacing: -0.015em; display: flex; align-items: center; gap: 10px; }
.rel-meta { margin: 0; font-size: 13.5px; color: var(--muted); }
.rel-os { margin: 22px 0 8px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--silver); font-weight: 700; }
.rel-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rel-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 12px 14px 12px 18px; background: var(--bg); }
.rel-list li + li { border-top: 1px solid var(--line); }
.rel-list li[hidden] { display: none; }
.rel-name { min-width: 0; display: grid; gap: 2px; }
.rel-name b { font-size: 15px; }
.rel-name span { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.rel-size { font-size: 13px; color: #9a9fa8; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rel-note { margin-top: 18px; }
@media (max-width: 640px) {
  .rel-group { padding: 18px; }
  .rel-list li { grid-template-columns: 1fr auto; }
  .rel-size { grid-column: 1; grid-row: 2; }
  .rel-list li .btn { grid-column: 2; grid-row: 1 / span 2; }
}
.pv-chat { padding: 16px; display: grid; gap: 10px; align-content: start; min-height: 190px; }
.pv-chat p { margin: 0; display: grid; gap: 7px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; max-width: 78%; }
.pv-chat p.in { background: var(--bg-2); border-bottom-left-radius: 4px; }
.pv-chat p.out { justify-self: end; width: 46%; background: rgba(192, 196, 204, 0.14); border-color: var(--line-hi); border-bottom-right-radius: 4px; }
.pv-chat b { height: 8px; width: 45%; border-radius: 4px; background: rgba(192, 196, 204, 0.45); }
.pv-chat i { height: 6px; border-radius: 4px; background: rgba(192, 196, 204, 0.18); }
.pv-chat i.short { width: 60%; }
.pv-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 78%; }
.pv-btns span { height: 26px; border: 1px solid var(--line-hi); border-radius: 8px; }
.g-copy { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 8px 12px; border: 1px solid var(--line-hi); background: transparent; border-radius: 8px; cursor: pointer; color: var(--text); transition: background-color 0.2s, border-color 0.2s; }
.g-copy:hover { background: rgba(192, 196, 204, 0.08); border-color: var(--silver); }
.g-copy .ic { width: 15px; height: 15px; }
.g-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.g-hash { margin: 14px 0 0; font-size: 13px; }
.g-hash .muted { text-transform: uppercase; letter-spacing: 0.1em; font-size: 11.5px; font-weight: 700; margin-right: 8px; }
.g-hash code { color: #aeb2ba; overflow-wrap: anywhere; font-size: 12.5px; }
.g-note { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0 !important; padding: 12px 14px; border-left: 2px solid var(--silver); background: rgba(192, 196, 204, 0.06); border-radius: 0 8px 8px 0; font-size: 14px !important; color: #aeb2ba; }
.g-note .ic-sm { margin-top: 3px; color: var(--silver); flex: none; }
.g-skip { margin: 12px 0 0 !important; font-size: 13.5px !important; }
.guide[data-scenario] .g-step.is-off { opacity: 0.38; }
.guide[data-scenario] .g-step.is-off .g-body { border-style: dashed; }

.callout { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; border: 1px solid var(--line-hi); border-radius: 20px; padding: clamp(28px, 4vw, 48px); background: linear-gradient(135deg, var(--card), var(--bg-2)); }
.callout-title { font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.025em; margin-bottom: 8px; }
.callout p { margin: 0; color: #9a9fa8; max-width: 520px; }

/* Project page hero */
.p-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.p-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 85% 30%, rgba(192, 196, 204, 0.07), transparent 70%); pointer-events: none; }
.p-hero .wrap { position: relative; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: clamp(36px, 6vw, 64px); }
.crumbs a { text-decoration: none; transition: color 0.2s; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }
.p-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.p-text h1 { font-size: clamp(40px, 6vw, 72px); max-width: none; }
.p-cat { margin: 14px 0 0; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.p-preview { position: relative; }
.p-num { position: absolute; right: -6px; top: -64px; font-size: clamp(80px, 11vw, 140px); line-height: 1; font-weight: 800; color: transparent; -webkit-text-stroke: 1px rgba(192, 196, 204, 0.3); letter-spacing: -0.05em; pointer-events: none; }
.p-preview .pv { position: relative; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8); }
.note { font-size: 14px; margin-top: 18px; max-width: 520px; }
.dl-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, auto)); gap: 18px 40px; margin-top: clamp(36px, 5vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); }
.dl-info div { display: grid; gap: 2px; font-size: 14px; min-width: 0; }
.dl-info .muted { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.dl-hash { grid-column: 1 / -1; }
.dl-hash code { font-size: 12.5px; color: #aeb2ba; overflow-wrap: anywhere; }

/* FAQ */
.faq-wrap { max-width: 860px; }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.faq-group-head h3 { font-size: 22px; letter-spacing: -0.02em; }
.faq-group-head h3 span { color: var(--silver); }
.link { font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.link:hover { color: var(--text); }
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; text-align: left; background: none; border: 0; padding: 22px 4px; cursor: pointer; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; transition: color 0.2s; }
.faq-q:hover { color: var(--silver-hi); }
.faq-ic { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-hi); border-radius: 50%; color: var(--silver); transition: background-color 0.25s, transform 0.35s var(--ease); }
.faq-q:hover .faq-ic { background: rgba(192, 196, 204, 0.1); }
.faq-ic .i-minus { display: none; }
.faq-q[aria-expanded="true"] .i-plus { display: none; }
.faq-q[aria-expanded="true"] .i-minus { display: block; }
.faq-a { display: grid; grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 56px 24px 4px; color: #9a9fa8; }
.js .faq-a { grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.js .faq-a > div { visibility: hidden; transition: visibility 0.4s; }
.js .faq-a.is-open { grid-template-rows: 1fr; }
.js .faq-a.is-open > div { visibility: visible; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(48px, 7vw, 80px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-brand .logo-mark { height: 26px; margin-bottom: 20px; }
.footer-name { font-weight: 800; font-size: 18px; letter-spacing: 0.04em; margin-bottom: 6px; }
.footer-brand p.muted { margin-bottom: 2px; font-size: 14.5px; }
.footer-h { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { text-decoration: none; font-size: 15px; font-weight: 600; color: #c3c6cc; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0 30px; font-size: 13.5px; }
.footer-bottom p { margin: 0; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), border-color 0.3s, background-color 0.3s; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .card.reveal.is-visible:hover, .js .card.reveal.is-visible:focus-within { transform: translateY(-4px); }
.js .tile.reveal.is-visible:hover { transform: translateY(-3px); }

/* Responsive */
@media (max-width: 960px) {
  .about, .p-grid { grid-template-columns: 1fr; }
  .p-num { top: -48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-art { opacity: 0.55; right: -25vw; width: 90vw; }
}
@media (max-width: 760px) {
  .hero-art { opacity: 0.35; }
  .hero-mark { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-end .btn span { display: none; }
  .nav-end .btn .ic-end { display: none; }
  .nav-end .btn { padding: 11px; }
  .nav-links { position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; gap: 0; margin: 0; padding: 8px 20px 20px; background: rgba(8, 9, 11, 0.97); border-bottom: 1px solid var(--line); display: none; }
  .nav-links.is-open { display: flex; }
  .nav-links a { font-size: 17px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .tree { grid-template-columns: 1fr; }
  .tree-root::after { left: 50%; top: 100%; width: 1px; height: 24px; }
  .tree-list { margin: 24px 0 0 0; }
  .tree-list::before { left: 0; }
  .tree-list li { padding-left: 24px; }
  .tree-list li::before { width: 24px; }
  .card { padding: 22px; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border-bottom: 1px solid var(--line); padding: 14px 0; }
  .table tr:last-child { border-bottom: 0; }
  .table td { border: 0; padding: 4px 20px; }
  .table td::before { content: attr(data-label); display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
  .step { padding: 20px; gap: 16px; }
  .g-scenarios { grid-template-columns: 1fr; }
  .g-req, .g-pick { padding: 22px 20px; }
  .g-step { grid-template-columns: 1fr; gap: 10px; padding-bottom: 20px; }
  .g-step::before { display: none; }
  .g-n { width: 38px; height: 38px; }
  .g-body { padding: 20px 18px; }
  .g-code { flex-direction: column; align-items: stretch; padding: 12px; }
  .g-code code { padding: 4px 2px; }
  .faq-a p { padding-right: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
