/* HunterCat · pi.huntercat.cn shared design system */
:root {
  --bg: #080b12;
  --bg-soft: #0d121c;
  --surface: #101722;
  --surface-2: #141d2b;
  --surface-3: #192435;
  --line: rgba(166, 184, 214, .16);
  --line-strong: rgba(166, 184, 214, .28);
  --text: #edf2ff;
  --text-soft: #cbd5e8;
  --muted: #8e9bb5;
  --muted-2: #6d7a93;
  --accent: #7d98ff;
  --accent-2: #a17cff;
  --accent-soft: rgba(125, 152, 255, .13);
  --ok: #42d6a4;
  --warn: #f0b45c;
  --danger: #ff8fa0;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(960px 560px at 12% -12%, rgba(110, 138, 255, .16), transparent 62%),
    radial-gradient(760px 420px at 108% 4%, rgba(147, 104, 255, .11), transparent 58%),
    linear-gradient(180deg, #080b12 0%, #0a0f18 58%, #080b12 100%);
  color: var(--text);
  font: 15px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: #dce4ff; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
::selection { background: rgba(125, 152, 255, .3); }
:focus-visible { outline: 2px solid rgba(125, 152, 255, .75); outline-offset: 3px; }

.site-wrap { width: min(100% - 48px, var(--max)); margin: 0 auto; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(8, 11, 18, .78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.site-header__inner {
  min-height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand img { display: block; height: 28px; width: auto; }
.brand span { color: var(--muted); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 25px; font-size: 13.5px; }
.site-nav a { color: var(--muted); white-space: nowrap; }
.site-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 17px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: rgba(20, 28, 42, .72); color: var(--text);
  font-size: 13.5px; font-weight: 650; line-height: 1; white-space: nowrap;
  cursor: pointer; transition: transform .14s ease, border-color .14s ease, background .14s ease;
}
.btn:hover { text-decoration: none; color: var(--text); border-color: rgba(190, 205, 235, .45); transform: translateY(-1px); }
.btn-primary {
  border: 0; color: #fff;
  background: linear-gradient(135deg, #6f8cff 0%, #9a74ff 100%);
  box-shadow: 0 12px 28px rgba(103, 128, 255, .24);
}
.btn-primary:hover { color: #fff; box-shadow: 0 16px 34px rgba(103, 128, 255, .32); }
.btn-ghost { background: transparent; }
.btn-sm { min-height: 32px; padding: 0 11px; border-radius: 8px; font-size: 12.5px; }
.btn-block { width: 100%; }

/* shared typography */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: #b5c2dc; font-size: 11.5px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(125, 152, 255, .12); }
.section { padding: 82px 0; }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head h2 { margin: 10px 0 9px; font-size: clamp(25px, 3.2vw, 34px); line-height: 1.18; letter-spacing: -.035em; }
.section-head p { margin: 0; color: var(--muted); font-size: 15px; }
.muted { color: var(--muted); }
.small { color: var(--muted); font-size: 12.5px; }
.note {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 14px 16px; margin: 18px 0 0;
  background: rgba(107, 127, 171, .06); color: var(--muted); font-size: 13px;
}
.note strong { color: var(--text-soft); }

/* hero */
.home-hero { padding: 72px 0 54px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr); gap: 54px; align-items: center; }
.hero-copy h1 { margin: 16px 0 18px; font-size: clamp(38px, 5.4vw, 62px); line-height: 1.08; letter-spacing: -.055em; }
.hero-copy h1 em { font-style: normal; color: #b89cff; }
.hero-copy .lead { max-width: 600px; margin: 0; color: #aab7ce; font-size: 16px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.hero-meta span { border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; color: var(--muted); font-size: 11.5px; background: rgba(17, 24, 37, .7); }

.hero-board {
  position: relative; min-height: 385px; padding: 16px;
  border: 1px solid var(--line); border-radius: 22px;
  background: linear-gradient(160deg, rgba(26, 37, 58, .88), rgba(12, 18, 29, .92));
  box-shadow: var(--shadow); overflow: hidden;
}
.hero-board::before {
  content: ""; position: absolute; inset: -30% -10% auto 35%; height: 280px;
  background: radial-gradient(circle, rgba(125, 152, 255, .25), transparent 68%); pointer-events: none;
}
.board-top { display: flex; align-items: center; justify-content: space-between; position: relative; padding: 3px 3px 13px; }
.board-dots { display: flex; gap: 5px; }
.board-dots i { display: block; width: 7px; height: 7px; border-radius: 50%; background: #4e5d78; }
.board-title { color: #9eabc5; font: 11px var(--mono); letter-spacing: .08em; }
.board-body { display: grid; gap: 9px; position: relative; }
.board-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 14px; border: 1px solid rgba(166, 184, 214, .12); border-radius: 11px;
  background: rgba(9, 14, 23, .6);
}
.board-row strong { display: block; color: #dce5f7; font-size: 13px; font-weight: 600; }
.board-row small { display: block; margin-top: 2px; color: var(--muted-2); font-size: 11px; }
.board-row .pill { border: 1px solid rgba(66, 214, 164, .3); border-radius: 999px; padding: 3px 7px; color: var(--ok); font: 10px var(--mono); white-space: nowrap; }
.board-row .pill.blue { border-color: rgba(125, 152, 255, .34); color: #aebeff; }
.board-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding: 12px 3px 2px; color: var(--muted-2); font: 10.5px var(--mono); }
.board-foot b { color: #9eabc5; font-weight: 500; }

/* feature cards */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature-card {
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 29, 44, .78), rgba(13, 19, 30, .72));
}
.feature-card .icon-tile { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 15px; border-radius: 9px; background: var(--accent-soft); color: #b8c7ff; font-size: 16px; }
.feature-card h3 { margin: 0 0 7px; font-size: 15.5px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.72; }
.feature-card.wide { grid-column: span 2; }

/* split / product surface */
.split { display: grid; grid-template-columns: .92fr 1.08fr; gap: 18px; align-items: stretch; }
.panel {
  padding: 27px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(20, 29, 44, .85), rgba(12, 18, 29, .86));
}
.panel h2, .panel h3 { margin: 0 0 11px; letter-spacing: -.02em; }
.panel h2 { font-size: 27px; }
.panel h3 { font-size: 18px; }
.panel p { color: var(--muted); font-size: 14px; }
.panel .sub { margin: -4px 0 20px; color: var(--muted); font-size: 13.5px; }
.checklist { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; color: var(--text-soft); font-size: 13.5px; }
.checklist li { position: relative; padding-left: 20px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ok); font-size: 12px; }

/* download */
.download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.download-card { display: flex; flex-direction: column; gap: 11px; padding: 19px; border: 1px solid var(--line); border-radius: 13px; background: rgba(16, 23, 34, .72); }
.download-card .dl-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.download-card .os { font-size: 14px; font-weight: 650; }
.download-card .ver { color: var(--muted); font: 10.5px var(--mono); }
.download-card .req { min-height: 34px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.download-card .btn { width: 100%; }

/* releases */
.release-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.release-col h3 { margin: 0 0 14px; color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.release-list { margin: 0; padding: 0 0 0 17px; border-left: 1px solid var(--line); list-style: none; }
.release-item { position: relative; padding: 0 0 25px 18px; }
.release-item::before { content: ""; position: absolute; left: -22px; top: 6px; width: 7px; height: 7px; border: 2px solid var(--line-strong); border-radius: 50%; background: var(--bg); }
.release-item.latest::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px rgba(125, 152, 255, .12); }
.release-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px; }
.release-ver { font: 650 15px var(--mono); }
.release-date { color: var(--muted-2); font-size: 11.5px; }
.release-tag { border: 1px solid rgba(125, 152, 255, .4); border-radius: 999px; padding: 0 7px; color: var(--accent); font-size: 10.5px; }
.release-notes { margin: 7px 0 10px; padding-left: 17px; color: var(--muted); font-size: 12.5px; }
.release-notes li { margin: 3px 0; }
.release-empty { margin: 6px 0 9px; color: var(--muted-2); font-size: 12.5px; }
.dev-release { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 14px; padding: 16px 18px; border: 1px dashed rgba(245, 158, 11, .45); border-radius: 13px; background: rgba(245, 158, 11, .06); }
.dev-release[hidden] { display: none; }
.dev-release-copy { min-width: 0; }
.dev-release-head { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.dev-release-head strong { font: 650 14px var(--mono); }
.dev-release p { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; }
.dev-release-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.release-tag.dev { border-color: rgba(245, 158, 11, .5); color: var(--warn); }
.release-tag.preview { border-color: var(--line-strong); color: var(--muted); }
.release-item.dev::before { border-color: var(--warn); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; gap: 5px; border: 1px solid var(--line); border-radius: 7px; padding: 3px 8px; color: var(--text-soft); background: rgba(16, 23, 34, .65); font-size: 11px; }
.chip:hover { border-color: var(--line-strong); text-decoration: none; }
.chip span { color: var(--muted-2); }

/* FAQ */
.faq { max-width: 840px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 15px; padding: 17px 0; color: var(--text-soft); font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: -2px 0 18px; color: var(--muted); font-size: 13.5px; line-height: 1.75; }

/* start / footer */
.start-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.start-panel { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(16, 23, 34, .7); }
.start-panel h2 { margin: 0 0 12px; font-size: 24px; }
.start-panel ol { margin: 0; padding-left: 19px; color: var(--muted); font-size: 13.5px; }
.start-panel li { margin-bottom: 9px; }
.start-panel b { color: var(--text-soft); }
.site-footer { margin-top: 30px; padding: 30px 0 42px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 12px; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { color: var(--muted); }
.footer-brand strong { display: block; color: var(--text-soft); font-weight: 650; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text-soft); }

/* generic page head */
.page-head { padding: 58px 0 30px; }
.page-head h1 { margin: 9px 0 10px; font-size: clamp(32px, 4.2vw, 48px); line-height: 1.12; letter-spacing: -.045em; }
.page-head .lead { max-width: 680px; margin: 0; color: var(--muted); font-size: 15px; }

/* legal */
.legal-layout { display: grid; grid-template-columns: 205px minmax(0, 1fr); gap: 44px; align-items: start; padding-bottom: 65px; }
.legal-toc { position: sticky; top: 100px; display: grid; gap: 7px; }
.legal-toc strong { margin-bottom: 5px; color: var(--muted-2); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.legal-toc a { padding: 3px 0; color: var(--muted); font-size: 12.5px; }
.legal-toc a:hover { color: var(--text-soft); }
.legal-content { min-width: 0; }
.legal-content h2 { margin: 30px 0 8px; font-size: 20px; letter-spacing: -.02em; }
.legal-content h3 { margin: 20px 0 5px; font-size: 15px; }
.legal-content p, .legal-content li { color: var(--text-soft); font-size: 14px; }
.legal-content p { margin: 9px 0; }
.legal-content ul, .legal-content ol { padding-left: 20px; }
.legal-content li { margin: 5px 0; }
.legal-content code { padding: 2px 5px; border: 1px solid var(--line); border-radius: 5px; background: rgba(255, 255, 255, .04); font-family: var(--mono); font-size: 12px; }
.legal-content pre.code {
  position: relative; margin: 12px 0; padding: 14px 74px 14px 16px; overflow-x: auto;
  border: 1px solid var(--line); border-radius: 9px; background: rgba(8, 11, 18, .72);
}
.legal-content pre.code code { padding: 0; border: 0; background: none; font-size: 12.5px; line-height: 1.7; white-space: pre; color: var(--text); }
.code-copy {
  position: absolute; top: 8px; right: 8px; padding: 3px 9px; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface-2);
  color: var(--muted); font: 11.5px/1.6 var(--font);
}
.code-copy:hover { color: var(--text); border-color: var(--accent); }
.legal-content .small { color: var(--muted); font-size: 12px; }
.dl-fix { display: inline-block; margin-top: 9px; color: var(--accent); font-size: 12.5px; }
.dl-fix:hover { text-decoration: underline; }
.dl-hash { display: grid; gap: 3px; margin-top: 9px; font-size: 11.5px; line-height: 1.4; }
.dl-hash > span { color: var(--muted); font: 10.5px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.dl-hash code { display: block; overflow: hidden; color: var(--muted); font: 11px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.hash-table { width: 100%; margin: 14px 0 4px; border-collapse: collapse; font-size: 13px; }
.hash-table th, .hash-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.hash-table th { color: var(--muted); font-size: 12px; font-weight: 600; }
.hash-table code.hash { display: block; font: 11px var(--mono); line-height: 1.5; word-break: break-all; }
.legal-meta { color: var(--muted-2); font-size: 12px; }
.legal-card, .box {
  padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: rgba(16, 23, 34, .7); margin: 17px 0;
}
.box.accent { border-left: 3px solid var(--accent); background: rgba(125, 152, 255, .06); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-bottom: 65px; }
.contact-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(16, 23, 34, .7); }
.contact-card h2 { margin: 0 0 8px; font-size: 17px; }
.contact-card p { margin: 7px 0; color: var(--muted); font-size: 13.5px; }
.contact-card a { color: var(--text-soft); }
.kv { display: grid; grid-template-columns: 105px 1fr; gap: 7px 12px; margin: 0; font-size: 13px; }
.kv dt { color: var(--muted-2); }
.kv dd { margin: 0; color: var(--text-soft); }

/* account */
.account-page { padding-bottom: 65px; }
.account-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 52px 0 26px; }
.account-head h1 { margin: 8px 0 7px; font-size: clamp(32px, 4.6vw, 48px); line-height: 1.1; letter-spacing: -.045em; }
.account-head .lead { margin: 0; color: var(--muted); font-size: 14px; }
.account-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; margin-bottom: 14px; }
.account-card, .panel-card {
  min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(18, 27, 41, .8), rgba(12, 18, 29, .78));
}
.account-card h2, .panel-card h2 { margin: 0 0 8px; font-size: 16px; }
.account-card h3, .panel-card h3 { margin: 0 0 8px; font-size: 14px; }
.account-card .small, .panel-card .small { line-height: 1.65; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 13px; }
.stat-box { padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, .025); }
.stat-box .k { color: var(--muted-2); font-size: 11px; }
.stat-box .v { margin-top: 5px; color: var(--text); font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 13px; }
.plan-box { padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, .025); }
.plan-box.current { border-color: rgba(125, 152, 255, .55); background: rgba(125, 152, 255, .065); }
.plan-box .name { color: var(--text-soft); font-size: 12.5px; font-weight: 650; }
.plan-box .price { margin: 6px 0 4px; font-size: 18px; font-weight: 700; }
.plan-box .price small { color: var(--muted); font-size: 10.5px; font-weight: 400; }
.plan-box .small { font-size: 11px; line-height: 1.45; }
.plan-box button { width: 100%; margin-top: 8px; }
.table-wrap { overflow-x: auto; margin-top: 14px; }
table.data { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.data th { padding: 8px 7px; border-bottom: 1px solid var(--line); color: var(--muted-2); font-size: 11px; font-weight: 500; text-align: left; white-space: nowrap; }
table.data td { padding: 10px 7px; border-bottom: 1px solid rgba(255, 255, 255, .055); color: var(--text-soft); }
table.data tr:last-child td { border-bottom: 0; }
.order-no { white-space: nowrap; font: 11px var(--mono); }
.order-actions { white-space: nowrap; }
.empty { padding: 12px 0; color: var(--muted-2); font-size: 12.5px; }
.status-ok { color: var(--ok); }
.status-pending { color: var(--warn); }
.status-refund { color: var(--warn); }
.status-refunded { color: #b99cff; }
.status-cancelled { color: var(--muted-2); }
.small-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.invoice-dialog { width: min(92vw, 460px); padding: 0; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); color: var(--text); }
.invoice-dialog::backdrop { background: rgba(2, 5, 10, .72); backdrop-filter: blur(5px); }
.invoice-dialog form { display: grid; gap: 12px; padding: 23px; }
.invoice-dialog h2 { margin: 0; font-size: 19px; }
.field { display: grid; gap: 5px; color: var(--muted); font-size: 12.5px; }
.field input, .field select { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(7, 11, 18, .75); color: var(--text); }
.field input:focus, .field select:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px rgba(125, 152, 255, .14); }
.invoice-dialog .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.account-guest-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(150deg, rgba(20, 29, 44, .85), rgba(12, 18, 29, .85)); }
.account-guest-card h2 { margin: 0 0 8px; font-size: 21px; }
.account-guest-card p { margin: 0 0 15px; color: var(--muted); font-size: 13.5px; }

@media (max-width: 1000px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 28px; }
  .hero-board { min-height: 0; max-width: 560px; }
  .feature-grid, .download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-grid { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 170px minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 760px) {
  .site-wrap { width: min(100% - 32px, var(--max)); }
  .site-header__inner { min-height: 64px; flex-wrap: wrap; gap: 10px; padding: 10px 0; }
  .brand img { height: 24px; }
  .site-nav { order: 3; width: 100%; gap: 17px; overflow-x: auto; padding-bottom: 2px; }
  .site-nav a { font-size: 12.5px; }
  .header-actions > .btn { display: none; }
  .home-hero { padding: 46px 0 38px; }
  .hero-copy h1 { font-size: clamp(36px, 10vw, 50px); }
  .section { padding: 58px 0; }
  .section-head { margin-bottom: 24px; }
  .release-columns, .start-grid, .contact-grid { grid-template-columns: 1fr; }
  .dev-release { flex-direction: column; align-items: flex-start; }
  .dev-release-links { justify-content: flex-start; }
  .legal-layout { grid-template-columns: 1fr; gap: 18px; }
  .legal-toc { position: static; display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .legal-toc strong { width: 100%; }
  .account-head { padding-top: 38px; }
  .plan-grid { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
}
@media (max-width: 560px) {
  .site-wrap { width: min(100% - 24px, var(--max)); }
  .feature-grid, .download-grid { grid-template-columns: 1fr; }
  .feature-card.wide { grid-column: auto; }
  .hero-board { padding: 12px; border-radius: 16px; }
  .board-row { padding: 11px 12px; }
  .account-card, .panel-card { padding: 17px; }
  .stat-row { grid-template-columns: 1fr; }
  .account-head h1 { font-size: 34px; }
}

/* mobile order cards */
@media (max-width: 760px) {
  .order-table thead { display: none; }
  .order-table, .order-table tbody, .order-table tr, .order-table td { display: block; width: 100%; }
  .order-table tr { padding: 11px 0; border-bottom: 1px solid var(--line); }
  .order-table tr:last-child { border-bottom: 0; }
  .order-table td { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 3px 0; border: 0; text-align: right; }
  .order-table td::before { content: attr(data-label); flex: 0 0 auto; color: var(--muted-2); font-size: 11px; text-align: left; }
  .order-table td.order-no { justify-content: flex-start; text-align: left; }
  .order-table td.order-no::before { content: ""; }
  .order-table td.order-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; padding-top: 8px; }
  .order-table td.order-actions::before { content: ""; }
}

/* anchor offset for sticky header */
section[id], .account-head, .page-head { scroll-margin-top: 94px; }
.legal-content h2 { scroll-margin-top: 100px; }

/* changelog shows only the latest build per channel */

.footer-meta { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; margin-top:16px; }
.version-label { font:10.5px var(--mono); color:var(--muted-2); }

/* authenticated header user */
.header-auth { display: flex; align-items: center; }
.auth-user { position: relative; display: flex; align-items: center; }
.auth-user__trigger {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 40px; padding: 4px 11px 4px 4px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(20, 28, 42, .72); color: var(--text);
  cursor: pointer; text-align: left; transition: border-color .14s ease, background .14s ease;
}
.auth-user__trigger:hover { border-color: rgba(190, 205, 235, .45); background: rgba(25, 35, 53, .9); }
.auth-avatar {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #6f8cff, #9a74ff);
  color: #fff; font-size: 13px; font-weight: 700;
}
.auth-user__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.15; }
.auth-user__text strong { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 650; }
.auth-user__text small { color: var(--muted); font-size: 10.5px; }
.auth-caret { color: var(--muted); font-size: 12px; line-height: 1; }
.auth-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40;
  width: 224px; padding: 7px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: #121a27; box-shadow: var(--shadow);
}
.auth-menu[hidden] { display: none; }
.auth-menu__head { display: grid; gap: 2px; padding: 9px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 5px; }
.auth-menu__head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.auth-menu__head small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 11px; }
.auth-menu a { display: block; padding: 8px 10px; border-radius: 7px; color: var(--text-soft); font-size: 12.5px; }
.auth-menu a:hover { background: rgba(125, 152, 255, .11); color: var(--text); }
.auth-menu a.auth-menu__logout { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 7px 7px; color: var(--danger); }
@media (max-width: 760px) {
  .auth-user__text { display: none; }
  .auth-user__trigger { padding: 4px; }
  .auth-menu { right: -4px; }
}

/* product showcase: one worked example + concrete scenarios */
.demo {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.demo-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 12px; color: var(--muted);
}
.demo-dots { display: flex; gap: 5px; flex: 0 0 auto; }
.demo-dots i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.demo-title { color: var(--text-soft); font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.demo-model {
  margin-left: auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--muted-2); font: 11px var(--mono);
}
.demo-body { display: grid; grid-template-columns: 205px minmax(0, 1fr); }
.demo-side {
  display: grid; align-content: start; gap: 3px;
  padding: 14px 11px;
  border-right: 1px solid var(--line);
  background: var(--bg-soft);
}
.demo-side-label { margin: 9px 0 3px; color: var(--muted-2); font-size: 10px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.demo-side-label:first-child { margin-top: 0; }
.demo-chat { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 7px; color: var(--text-soft); font-size: 12px; }
.demo-chat span { color: var(--muted-2); font-size: 10.5px; white-space: nowrap; }
.demo-chat.active { background: var(--surface-2); color: var(--text); }
.demo-file { overflow: hidden; padding: 5px 8px; color: var(--muted); font: 11.5px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.demo-main { display: grid; align-content: start; gap: 12px; min-width: 0; padding: 18px 20px 20px; }
.demo-main > * { min-width: 0; }
.demo-msg > span { display: block; margin-bottom: 5px; color: var(--muted-2); font-size: 10.5px; letter-spacing: .04em; }
.demo-msg p { margin: 0; color: var(--text-soft); font-size: 13px; line-height: 1.7; }
.demo-msg.user p { display: inline-block; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); }
.demo-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.demo-steps i { padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); color: var(--muted); font-size: 10.5px; font-style: normal; }
.demo-table { overflow-x: auto; margin-top: 10px; border: 1px solid var(--line); border-radius: 9px; }
.demo-tr { display: grid; grid-template-columns: 1.2fr 1fr .8fr .5fr; gap: 8px; min-width: 330px; padding: 7px 10px; border-top: 1px solid var(--line); color: var(--text-soft); font-size: 11.5px; }
.demo-tr:first-child { border-top: 0; }
.demo-tr.head { background: var(--bg-soft); color: var(--muted-2); font-size: 10.5px; }
.demo-out { margin-top: 10px; padding: 9px 11px; border-left: 2px solid var(--accent); border-radius: 0 7px 7px 0; background: var(--accent-soft); color: var(--text-soft); font-size: 12px; line-height: 1.65; }
.demo-foot { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 15px; border-top: 1px solid var(--line); background: var(--bg-soft); color: var(--muted-2); font-size: 11px; }

.scenario-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.scenario-card { display: flex; flex-direction: column; gap: 9px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.scenario-tag { color: var(--accent); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.scenario-card h3 { margin: 0; font-size: 15px; line-height: 1.45; }
.scenario-ask { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.65; }
.scenario-steps { display: flex; flex-wrap: wrap; gap: 5px; }
.scenario-steps span { padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted-2); font-size: 10.5px; }
.scenario-out { margin-top: auto; padding-top: 9px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 12px; line-height: 1.6; }
.scenario-out b { color: var(--text-soft); font-weight: 600; }

/* three pillars: environment, models, delivered agents */
.pillar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pillar { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pillar-no { color: var(--accent); font: 600 11px var(--mono); letter-spacing: .12em; }
.pillar h3 { margin: 10px 0 6px; font-size: 17px; }
.pillar-lead { margin: 0 0 14px; color: var(--text-soft); font-size: 13px; line-height: 1.65; }
.pillar .checklist { font-size: 12.5px; }
.flow-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 14px; align-items: center;
  margin-top: 16px; padding: 17px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
}
.flow-step { display: grid; gap: 2px; }
.flow-step b { color: var(--accent); font: 600 10.5px var(--mono); }
.flow-step span { color: var(--text-soft); font-size: 13px; font-weight: 650; }
.flow-step small { color: var(--muted-2); font-size: 11px; line-height: 1.5; }
.flow-strip .btn { justify-self: end; white-space: nowrap; }

@media (max-width: 1000px) {
  .scenario-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar-grid { grid-template-columns: 1fr; }
  .flow-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-strip .btn { justify-self: start; }
}
@media (max-width: 420px) {
  .demo-tr { grid-template-columns: 1.1fr 1fr .9fr .6fr; gap: 4px; min-width: 250px; padding: 6px 8px; font-size: 10px; }
}
@media (max-width: 760px) {
  .demo-body { grid-template-columns: 1fr; }
  .demo-side { display: none; }
  .demo-main { padding: 14px; }
  .demo-tr { font-size: 10.5px; gap: 5px; }
  .scenario-grid { grid-template-columns: 1fr; }
  .flow-strip { grid-template-columns: 1fr; }
}
