:root {
  --bg: #f7f8fa; --surface: #ffffff; --surface-2: #eef1f6; --ink: #14161a; --muted: #5b6370; --line: #e3e6eb;
  --accent: #3b6df2; --accent-ink: #ffffff; --r: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Hiragino Sans", "PingFang SC", system-ui, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14161a; --surface: #1c1f25; --surface-2: #242831; --ink: #f2f4f7; --muted: #9aa3b2; --line: #2a2e36; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.7 var(--font); }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); }
h3 { font-size: 1.05rem; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.muted { color: var(--muted); } .small { font-size: 0.875rem; } .center { text-align: center; }

.site-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; gap: 20px; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.brand img { border-radius: 8px; }
.nav { display: flex; gap: 6px; margin-left: 8px; flex: 1; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 999px; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current] { background: var(--surface-2); color: var(--ink); }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--surface); }
.lang-switch a, .lang-switch span { padding: 4px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.lang-switch a { color: var(--muted); } .lang-switch span { background: var(--accent); color: var(--accent-ink); }

.hero { padding: 72px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(220px, 60%); border-radius: 22%; box-shadow: 0 24px 60px -24px rgb(59 109 242 / 0.55); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; margin: 0 0 28px; }
.lead-sm { color: var(--muted); max-width: 40em; margin: 0 0 24px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font: inherit; font-weight: 600; cursor: pointer; transition: transform 0.15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }

.section { padding: 48px 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.ico { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 12px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); margin-bottom: 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.stack { display: grid; gap: 16px; }
.note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; } .note p { margin: 0 0 8px; color: var(--muted); }
.keys { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.keys th, .keys td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; }
.keys tr:last-child th, .keys tr:last-child td { border-bottom: 0; } .keys td { text-align: right; white-space: nowrap; }
kbd { display: inline-block; min-width: 1.8em; padding: 1px 7px; margin-left: 4px; text-align: center; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 7px; background: var(--surface-2); font: 600 0.85rem var(--font); }
.cta-band { border-top: 1px solid var(--line); }

.prose { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
.prose h2 { margin-top: 2em; } .prose li { margin: 0.3em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; } .prose th, .prose td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); }
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; } details p { margin: 10px 0 0; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 0.9rem; }
.foot-links { display: flex; gap: 18px; margin-bottom: 8px; } .foot-links a { color: var(--muted); }
@media (max-width: 760px) { .hero-grid, .two { grid-template-columns: 1fr; } .hero { padding-top: 40px; } .hero-art { order: -1; justify-content: flex-start; } .nav { order: 3; width: 100%; margin-left: 0; } }

.prose.wide { max-width: 1040px; }
.hub { margin-top: 24px; }
.linkcard { display: block; text-decoration: none; color: inherit; transition: transform 0.15s ease, border-color 0.15s ease; }
.linkcard:hover { transform: translateY(-2px); border-color: var(--accent); }
.linkcard h3 { color: var(--ink); }
kbd + kbd { margin-left: 2px; }
.prose table kbd { margin-left: 2px; }
.plan-now { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin: 24px 0; }
.price { font-size: 2.2rem; font-weight: 800; margin: 0 0 12px; letter-spacing: -0.02em; }
.price-sm { font-weight: 700; margin: 0 0 10px; }
.checks { padding-left: 1.2em; margin: 0 0 16px; }

.stats { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; padding: 0; margin: 0; }
.stats li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; text-align: center; }
.stats strong { display: block; font-size: 2rem; letter-spacing: -0.02em; color: var(--accent); }
.stats span { color: var(--muted); font-size: 0.9rem; }
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 0; margin: 16px 0 0; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; } .steps p { margin: 0; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.chips span { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; font-size: 0.9rem; }

/* page header, shortcodes, callouts */
.page-head { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, var(--bg)), var(--bg)); border-bottom: 1px solid var(--line); padding: 44px 0 36px; }
.page-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin-bottom: 0.3em; }
.page-head .lead { margin: 0; max-width: 40em; }
.ico.lg { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 16px; } .ico.lg svg { width: 28px; height: 28px; }
.prose.body { max-width: 860px; padding-top: 40px; padding-bottom: 24px; }
.prose.body h2 { margin-top: 1.8em; padding-bottom: 0.3em; border-bottom: 1px solid var(--line); }
.prose.body table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; border-collapse: separate; border-spacing: 0; }
.prose.body th { background: var(--surface-2); font-size: 0.9rem; }
.prose.body td, .prose.body th { padding: 10px 14px; }
.prose-inline { max-width: 40em; color: var(--muted); margin-bottom: 8px; }
.callout { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); border-radius: var(--r); padding: 14px 18px; margin: 20px 0; } .callout p { margin: 0.3em 0; }
.toolgrid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 10px; padding: 0; margin: 18px 0; }
.toolgrid li { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 0; }
.tico { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 10px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); flex: none; } .tico svg { width: 18px; height: 18px; }
.tname { flex: 1; font-size: 0.92rem; line-height: 1.3; }
.modes { margin: 18px 0; }
.keyrow { margin: 12px 0 0 !important; } .keyrow kbd { margin-left: 0; margin-right: 4px; }
.linkcard.big { padding: 26px; } .linkcard.big .more { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 600; font-size: 0.92rem; }
.related { padding-top: 32px; } .related h2 { margin-bottom: 16px; }

/* ===== Home redesign ===== */
:root { --ink-dark: #0a0c11; --accent-deep: #2447c9; }
body { font-feature-settings: "ss01", "cv11"; }
.site-header { background: color-mix(in srgb, var(--bg) 82%, transparent); }
.btn-lg { padding: 14px 28px; font-size: 1.02rem; }
.btn-ghost { background: transparent; border-color: color-mix(in srgb, var(--ink) 22%, transparent); }
.h-hero .btn-ghost, .keys-band .btn-ghost, .end-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.h-hero .btn-ghost:hover, .keys-band .btn-ghost:hover, .end-band .btn-ghost:hover { background: rgba(255,255,255,0.1); }

.h-hero { position: relative; overflow: hidden; background: radial-gradient(1200px 520px at 78% 40%, #1b2f6e 0%, transparent 60%), var(--ink-dark); color: #fff; padding: 72px 0 80px; }
.h-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); }
.h-hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; min-height: 440px; }
.h-copy h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; margin: 0 0 22px; }
.h-lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: rgba(255,255,255,0.72); max-width: 28em; margin: 0 0 30px; }
.h-hero .btn-primary { box-shadow: 0 10px 34px -10px #3b6df2; }
.h-hero .btn-disabled { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.75); }

.h-stage { position: relative; height: 380px; display: flex; align-items: center; justify-content: center; }
.glow { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(59,109,242,0.55), transparent 65%); filter: blur(30px); }
.h-icon { position: absolute; top: 18px; left: 50%; width: 132px; height: 132px; margin-left: -66px; border-radius: 28px; box-shadow: 0 30px 70px -20px rgba(0,0,0,0.7); }
.keycaps { position: absolute; bottom: 34px; display: flex; gap: 14px; }
.keycaps span { width: 84px; height: 84px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 700; color: #e9edf7; background: linear-gradient(180deg, #2a3042, #181c28); border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 6px 0 #0c0f17, 0 18px 40px -10px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.18); }
.keycaps .hit { color: #fff; background: linear-gradient(180deg, #5784ff, #3b6df2); border-color: rgba(255,255,255,0.3); box-shadow: 0 6px 0 #1f3fa6, 0 20px 50px -8px rgba(59,109,242,0.8), inset 0 1px 0 rgba(255,255,255,0.4);  }
.fl { position: absolute; padding: 7px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: #dbe4ff; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); }
.f1 { top: 30px; left: 6%; } .f2 { top: 150px; right: 2%; } .f3 { bottom: 150px; left: 0; }

.sec-title { font-size: clamp(1.7rem, 3.8vw, 2.5rem); letter-spacing: -0.03em; margin-bottom: 28px; max-width: 18em; }
.section { padding: 72px 20px; }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(150px, auto); gap: 14px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-start; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; color: var(--ink); text-decoration: none; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(30,50,110,0.45); }
.tile h3 { font-size: 1.15rem; margin: 6px 0 4px; letter-spacing: -0.02em; }
.tile p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.big-n { font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.95; color: var(--accent); }
.ico.inv { background: rgba(255,255,255,0.16); color: #fff; }
.t-priv { grid-column: 1 / 3; grid-row: 1 / 3; background: linear-gradient(155deg, #3b6df2 0%, #2447c9 100%); color: #fff; border-color: transparent; }
.t-priv h3 { font-size: 1.5rem; } .t-priv p { color: rgba(255,255,255,0.86); max-width: 30em; }
.kindchips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: auto 0 0; padding-top: 22px; }
.kindchips li { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.22); border-radius: 999px; padding: 7px 13px; font-size: 0.88rem; font-weight: 600; margin: 0; }
.kindchips svg { width: 16px; height: 16px; }
.t-tools { grid-column: 3 / 5; background: var(--ink-dark); color: #fff; border-color: transparent; }
.t-tools p { color: rgba(255,255,255,0.7); }
.t-head { display: flex; gap: 18px; align-items: flex-start; } .t-head h3 { margin-top: 0; }
.t-tools .big-n { color: #7fa0ff; }
.t-tools .toolgrid { grid-template-columns: repeat(9, 1fr); gap: 6px; margin: 10px 0 0; }
.t-tools .toolgrid li { padding: 6px; background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.1); justify-content: center; }
.t-tools .tname, .t-tools kbd { display: none; } .t-tools .tico { background: transparent; color: #cfdcff; width: 28px; height: 28px; }
.t-cap { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.t-search .ico, .t-notes .ico { margin-bottom: 4px; }
.t-notes { grid-column: 1 / 3; background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--accent) 8%, var(--surface))); }
.t-local { background: #0f172a; color: #fff; border-color: transparent; } .t-local p { color: rgba(255,255,255,0.72); }
.t-lang { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); justify-content: space-between; }

.keys-band { background: var(--ink-dark); color: #fff; padding: 80px 0; }
.keys-band h2 { font-size: clamp(1.7rem, 3.8vw, 2.5rem); letter-spacing: -0.03em; margin-bottom: 8px; }
.kb-lead { color: rgba(255,255,255,0.65); margin: 0 0 28px; }
.keylist { list-style: none; padding: 0; margin: 0 0 28px; border-top: 1px solid rgba(255,255,255,0.12); }
.keylist li { display: grid; grid-template-columns: 220px 1fr auto; gap: 20px; align-items: center; padding: 18px 4px; border-bottom: 1px solid rgba(255,255,255,0.12); margin: 0; }
.kl-name { font-weight: 700; font-size: 1.05rem; } .kl-desc { color: rgba(255,255,255,0.62); font-size: 0.95rem; }
.keylist kbd { background: #1e2433; border-color: rgba(255,255,255,0.18); color: #fff; margin-left: 6px; min-width: 2.1em; padding: 4px 10px; font-size: 0.95rem; }

.flow { list-style: none; counter-reset: f; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 0; margin: 0; }
.flow li { display: flex; gap: 16px; align-items: flex-start; margin: 0; }
.flow-n { flex: none; width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 800; color: #fff; background: var(--accent); box-shadow: 0 10px 24px -10px var(--accent); }
.flow h3 { margin: 2px 0 4px; font-size: 1.2rem; } .flow p { margin: 0; color: var(--muted); }

.end-band { padding: 88px 0; background: radial-gradient(900px 400px at 50% 0%, #1b2f6e 0%, transparent 70%), var(--ink-dark); color: #fff; }
.end-icon { border-radius: 18px; margin-bottom: 16px; box-shadow: 0 20px 50px -16px rgba(59,109,242,0.7); }
.end-band h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -0.03em; }
.end-band p { color: rgba(255,255,255,0.7); }
.center-row { justify-content: center; } .muted-inv { color: rgba(255,255,255,0.5) !important; }
.end-band .btn-disabled { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.75); }

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .t-priv { grid-column: 1 / 3; grid-row: auto; } .t-tools { grid-column: 1 / 3; } .t-notes { grid-column: 1 / 3; }
  .t-tools .toolgrid { grid-template-columns: repeat(6, 1fr); }
  .h-hero-grid { grid-template-columns: 1fr; } .h-stage { height: 320px; }
  .keylist li { grid-template-columns: 1fr auto; } .kl-desc { grid-column: 1 / 3; grid-row: 2; }
  .flow { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .t-priv, .t-tools, .t-notes { grid-column: auto; } .keycaps span { width: 68px; height: 68px; } }

/* ===== Subpage redesign ===== */
.p-hero { position: relative; overflow: hidden; background: radial-gradient(900px 360px at 85% 0%, #1b2f6e 0%, transparent 62%), var(--ink-dark); color: #fff; padding: 52px 0 60px; }
.p-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(180deg, #000, transparent 90%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%); }
.p-hero .wrap { position: relative; }
.p-title { display: flex; gap: 20px; align-items: flex-start; }
.p-title h1 { font-size: clamp(2rem, 4.8vw, 3rem); font-weight: 800; letter-spacing: -0.035em; margin: 0 0 10px; }
.p-lead { color: rgba(255,255,255,0.72); max-width: 38em; margin: 0; font-size: 1.08rem; }
.p-meta { color: rgba(255,255,255,0.5); font-size: 0.9rem; margin: 10px 0 0; }
.ico.lg.dark { background: linear-gradient(160deg, #4b7bff, #2447c9); color: #fff; box-shadow: 0 14px 34px -10px #3b6df2; flex: none; margin-bottom: 0; }
.facts-wrap { margin-top: -30px; position: relative; z-index: 2; }
.facts { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; padding: 0; margin: 0; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; box-shadow: 0 18px 40px -24px rgba(20,40,110,0.5); margin: 0; }
.facts strong { display: block; font-size: 1.55rem; letter-spacing: -0.03em; color: var(--accent); line-height: 1.2; }
.facts span { color: var(--muted); font-size: 0.9rem; }

.doc { display: block; padding-top: 40px; padding-bottom: 24px; }
.doc.has-toc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.toc { position: sticky; top: 84px; font-size: 0.9rem; }
.toc p { margin: 0 0 10px; font-weight: 700; font-size: 0.82rem; color: var(--muted); letter-spacing: 0.04em; }
.toc nav ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc nav li { margin: 0; } .toc nav ul ul { display: none; }
.toc nav a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; }
.toc nav a:hover { color: var(--accent); border-left-color: var(--accent); }
.prose.body { max-width: 780px; padding: 0 0 24px; margin: 0; }
.doc:not(.has-toc) .prose.body { margin: 0 auto; }
.prose.body.narrow { margin: 0 auto; padding: 40px 20px 72px; }
.prose.body h2 { font-size: 1.55rem; margin: 2.2em 0 0.7em; padding: 0; border: 0; scroll-margin-top: 90px; }
.prose.body h2:first-child { margin-top: 0; }
.prose.body h2::before { content: ""; display: inline-block; width: 6px; height: 1em; border-radius: 3px; background: var(--accent); margin-right: 12px; vertical-align: -0.12em; }
.prose.body p { color: color-mix(in srgb, var(--ink) 82%, var(--muted)); }
.prose.body ul { list-style: none; padding: 0; } .prose.body ul li { position: relative; padding-left: 22px; margin: 0.55em 0; }
.prose.body ul li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.prose.body ol { list-style: none; counter-reset: st; padding: 0; margin: 1em 0; }
.prose.body ol li { counter-increment: st; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px 14px 64px; margin: 10px 0; min-height: 56px; }
.prose.body ol li::before { content: counter(st); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: var(--accent); }
.prose.body table { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; border-collapse: separate; border-spacing: 0; margin: 1em 0 1.4em; }
.prose.body th { background: var(--surface-2); font-size: 0.85rem; color: var(--muted); }
.prose.body td, .prose.body th { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.prose.body tr:last-child td { border-bottom: 0; }
.prose.body td:last-child { white-space: nowrap; }
.prose.body td kbd + kbd { margin-left: 3px; }
kbd { border-radius: 8px; padding: 2px 9px; background: linear-gradient(180deg, var(--surface), var(--surface-2)); border: 1px solid var(--line); border-bottom-width: 3px; box-shadow: 0 1px 0 rgba(0,0,0,0.04); }
.prose.body code { background: var(--surface-2); border-radius: 6px; padding: 1px 6px; font-size: 0.9em; }
.end-band.slim { padding: 56px 0; } .end-band.slim h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 18px; }
.prose.body details { transition: border-color 0.15s ease; } .prose.body details[open] { border-color: var(--accent); }
.prose.body summary { list-style: none; position: relative; padding-right: 28px; } .prose.body summary::-webkit-details-marker { display: none; }
.prose.body summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.5rem; color: var(--accent); font-weight: 400; line-height: 1; }
.prose.body details[open] summary::after { content: "−"; }
.prose.body details p { margin: 12px 0 0; }
.plan-now { background: linear-gradient(155deg, #3b6df2 0%, #2447c9 100%); color: #fff; border-radius: 24px; padding: 34px; margin: 8px 0 28px; box-shadow: 0 28px 60px -28px #3b6df2; }
.plan-tag { margin: 0 0 4px; font-weight: 700; opacity: 0.85; } .price { color: #fff; font-size: 3.4rem; margin: 0 0 14px; }
.plan-now .checks { list-style: none; padding: 0; } .plan-now .checks li { padding-left: 26px; color: #fff; } .plan-now .checks li::before { background: #fff; }
.plan-now .btn-primary { background: #fff; color: #2447c9; border-color: #fff; box-shadow: none; }
.sc-search { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin-bottom: 28px; }
.sc-search label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 0.9rem; }
.sc-search input { width: 100%; font: inherit; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.sc-search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.sc-search p { margin: 10px 0 0; color: var(--muted); }
@media (max-width: 900px) { .doc.has-toc { grid-template-columns: 1fr; gap: 8px; } .toc { display: none; } .p-title { flex-direction: column; gap: 14px; } }

/* language menu */
.lang-menu { position: relative; margin-left: auto; }
.lang-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.lang-menu summary::-webkit-details-marker { display: none; } .lang-menu summary svg { width: 16px; height: 16px; }
.lang-menu summary:hover { border-color: var(--accent); }
.lang-menu ul { list-style: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 22px 50px -20px rgba(20,30,70,0.45); z-index: 20; }
.lang-menu li { margin: 0; }
.lang-menu a, .lang-menu li span { display: block; padding: 9px 14px; border-radius: 10px; text-decoration: none; font-size: 0.92rem; color: var(--ink); }
.lang-menu a:hover { background: var(--surface-2); } .lang-menu li span { background: color-mix(in srgb, var(--accent) 14%, transparent); font-weight: 700; color: var(--accent); }
.nav { margin-left: 6px; }
html:lang(ja) body, html:lang(zh-Hans) body, html:lang(zh-Hant) body { line-height: 1.8; }
html:lang(ja) h1, html:lang(ja) h2, html:lang(zh-Hans) h1, html:lang(zh-Hans) h2, html:lang(zh-Hant) h1, html:lang(zh-Hant) h2 { letter-spacing: 0; }

/* CJK headlines: smaller size, no mid-word breaks, balanced lines */
html:lang(ja) .h-copy h1, html:lang(zh-Hans) .h-copy h1, html:lang(zh-Hant) .h-copy h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.2; letter-spacing: -0.01em; word-break: keep-all; text-wrap: balance; }
html:lang(ko) .h-copy h1 { word-break: keep-all; }
html:lang(ja) .p-title h1, html:lang(zh-Hans) .p-title h1, html:lang(zh-Hant) .p-title h1 { letter-spacing: 0; }
html:lang(ja) .h-lead, html:lang(zh-Hans) .h-lead, html:lang(zh-Hant) .h-lead { max-width: 30em; }
.h-copy h1, .p-title h1 { text-wrap: balance; }

/* the language menu is a <details>, but it must not inherit the FAQ accordion box */
details.lang-menu { background: none; border: 0; border-radius: 0; padding: 0; margin: 0 0 0 auto; }
details.lang-menu summary { padding: 7px 14px; }

/* ===== Download page ===== */
.dlpage { padding-top: 0; padding-bottom: 72px; }
.dl-card { position: relative; z-index: 2; margin-top: -34px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 28px 32px; box-shadow: 0 30px 70px -30px rgba(20,40,110,0.55); }
.dl-icon { border-radius: 22px; box-shadow: 0 16px 36px -14px rgba(20,30,80,0.5); }
.dl-main h2 { margin: 0 0 8px; font-size: 1.7rem; }
.dl-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.dl-meta li { background: var(--surface-2); border-radius: 999px; padding: 4px 12px; font-size: 0.86rem; color: var(--muted); margin: 0; }
.dl-action .btn { padding: 16px 30px; font-size: 1.05rem; white-space: nowrap; }
.dl-warn { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 0; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, #f59e0b 12%, var(--surface)); border: 1px solid color-mix(in srgb, #f59e0b 40%, var(--line)); color: var(--ink); font-size: 0.93rem; }
.dl-warn svg { flex: none; margin-top: 2px; color: #b45309; width: 18px; height: 18px; }
.dl-sec { margin-top: 56px; } .dl-sec h2 { font-size: 1.6rem; margin-bottom: 18px; letter-spacing: -0.02em; }
.dl-lead, .dl-note { color: var(--muted); max-width: 44em; } .dl-note { margin-top: 16px; font-size: 0.93rem; }
.dl-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0; margin: 0; counter-reset: none; }
.dl-steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; margin: 0; }
.dl-ico { display: inline-flex; width: 52px; height: 52px; border-radius: 16px; align-items: center; justify-content: center; background: linear-gradient(160deg, #4b7bff, #2447c9); color: #fff; box-shadow: 0 12px 28px -12px #3b6df2; } .dl-ico svg { width: 26px; height: 26px; }
.dl-num { position: absolute; top: 20px; right: 22px; font-size: 2.4rem; font-weight: 800; color: color-mix(in srgb, var(--accent) 16%, transparent); line-height: 1; }
.dl-steps p { margin: 16px 0 0; color: var(--ink); } .dl-steps code { background: var(--surface-2); border-radius: 6px; padding: 1px 6px; font-size: 0.9em; }
.two-up { grid-template-columns: repeat(2, 1fr); }
.card.perm h3 { font-size: 1.1rem; margin: 6px 0; }
.dl-upd { display: flex; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 26px; }
.dl-upd h3 { margin: 0 0 4px; } .dl-upd p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .dl-card { grid-template-columns: 1fr; text-align: left; padding: 22px; } .dl-steps, .two-up { grid-template-columns: 1fr; } }

/* release notes */
.rel-list { padding-top: 40px; padding-bottom: 72px; max-width: 860px; }
.rel { display: grid; grid-template-columns: 150px 1fr; gap: 28px; padding: 28px 0; border-top: 1px solid var(--line); }
.rel:first-child { border-top: 0; }
.rel-side { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.rel-ver { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--accent); line-height: 1; }
.rel-side time { color: var(--muted); font-size: 0.9rem; }
.rel-tag { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); border-radius: 999px; padding: 3px 12px; font-size: 0.8rem; font-weight: 700; }
.rel-body h2 { margin-top: 0; font-size: 1.35rem; }
.rel-body ul { padding-left: 1.2em; } .rel-body li { margin: 0.5em 0; }
@media (max-width: 640px) { .rel { grid-template-columns: 1fr; gap: 12px; } }

/* free beta notice */
.beta-notice { display: flex; gap: 16px; align-items: flex-start; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); border-radius: 20px; padding: 20px 24px; margin: 20px 0; }
.beta-notice h3 { margin: 0 0 4px; font-size: 1.02rem; } .beta-notice p { margin: 4px 0; color: var(--muted); font-size: 0.95rem; } .beta-notice a { font-weight: 600; }
.beta-wrap { margin-top: -28px; position: relative; z-index: 2; padding-bottom: 8px; } .dl-beta { margin-top: 28px; }

/* beta notice sits fully below the hero, not overlapping its edge */
.beta-wrap { margin-top: 28px; padding-bottom: 0; }
.beta-wrap .beta-notice { margin: 0; }
.beta-wrap + .section { padding-top: 48px; }

/* ===== Footer redesign ===== */
.site-footer { background: var(--ink-dark); color: rgba(255,255,255,0.7); border-top: 0; padding: 56px 0 28px; font-size: 0.95rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand .brand { color: #fff; font-size: 1.15rem; } .foot-brand .brand img { border-radius: 10px; }
.foot-brand p { margin: 12px 0 0; color: rgba(255,255,255,0.55); max-width: 22em; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h4 { margin: 0 0 6px; color: #fff; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
.foot-col a { color: rgba(255,255,255,0.72); text-decoration: none; width: fit-content; } .foot-col a:hover { color: #fff; }
.foot-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); }
.foot-bottom p { margin: 0; font-size: 0.86rem; color: rgba(255,255,255,0.5); }
.foot-links { display: none; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

.dl-count, .dl-meta .dl-count-chip { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.dl-count::before, .dl-meta .dl-count-chip::before { content: ""; width: 14px; height: 14px; background: currentColor; flex: none;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M12 4v11m0 0l-4.5-4.5M12 15l4.5-4.5M5 20h14'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M12 4v11m0 0l-4.5-4.5M12 15l4.5-4.5M5 20h14'/></svg>") center / contain no-repeat; }
.dl-count b, .dl-meta .dl-count-chip b { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 1.12em; }
.dl-count { margin: 14px 0 0; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,0.16); color: #fff; font-size: 0.92rem; }
.dl-count[hidden], .dl-meta .dl-count-chip[hidden] { display: none; }
.dl-meta .dl-count-chip { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }

/* pricing card: text colors must beat the generic .prose.body rules */
.prose.body .plan-now .plan-tag { color: rgba(255,255,255,0.85); font-weight: 700; margin: 0 0 4px; }
.prose.body .plan-now .price { color: #fff; font-size: 3.6rem; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 18px; line-height: 1.05; }
.prose.body .plan-now .checks { list-style: none; padding: 0; margin: 0 0 22px; }
.prose.body .plan-now .checks li { color: #fff; padding-left: 28px; margin: 0.7em 0; font-size: 1.02rem; }
.prose.body .plan-now .checks li::before { background: #fff; width: 9px; height: 9px; top: 0.6em; }
.prose.body .plan-now p { margin-bottom: 0; }

/* terminal command box */
.codebox { display: flex; gap: 10px; align-items: center; margin-top: 14px; background: #0d1117; border-radius: 12px; padding: 10px 12px 10px 16px; }
.codebox code { flex: 1; color: #e6edf3; font: 500 0.88rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; background: none; padding: 0; }
.copybtn { flex: none; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08); color: #fff; border-radius: 8px; padding: 6px 12px; font: 600 0.8rem var(--font); cursor: pointer; } .copybtn:hover { background: rgba(255,255,255,0.16); }

.one-up { grid-template-columns: 1fr; }
.one-up .card h3 { margin-top: 0; }
.dl-help .codebox { margin: 16px 0 0; width: 100%; max-width: none; }

/* 띠배너 (릴리스 알림): 헤더 위 얇은 줄 */
.site-banner { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border-bottom: 1px solid var(--line); color: var(--ink); font-size: 0.92rem; line-height: 1.4; }
.site-banner[hidden] { display: none; }
.site-banner-in { display: flex; align-items: center; gap: 12px; }
.banner-link { flex: 1; min-width: 0; padding: 11px 0; color: inherit; text-decoration: none; }
.banner-badge { display: inline-block; margin-right: 10px; padding: 1px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.5; vertical-align: 1px; }
.banner-link strong { margin-left: 4px; font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.banner-link:hover strong { text-decoration-thickness: 2px; }
.banner-close { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.banner-close:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--ink); }

/* 좁은 화면 상단 메뉴: .nav의 flex:1(기준 폭 0)이 width:100%를 무시해서 로고 옆에 세로로 눌리던 문제.
   아래 줄 전체를 쓰고 한 줄로 두며, 넘치면 옆으로 밀어서 봄 */
@media (max-width: 760px) {
  .nav { order: 3; flex: 1 0 100%; min-width: 0; margin: 0 0 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; white-space: nowrap; }
}
