/* Auremere AI — independent dark product & research design system. */
:root {
  color-scheme: dark;
  --bg: #0b0e14;
  --surface: #111620;
  --surface-raised: #171d2a;
  --text: #f0f2f8;
  --muted: #abb5c9;
  --subtle: #929db3;
  --line: #293245;
  --blue: #2f5bea;
  --purple: #7a4dea;
  --accent: #b7b9ff;
  --green: #9ae2bf;
  --amber: #f2ce94;
  --radius: 12px;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:hover { color: var(--accent); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 3px; }
::selection { background: #4b398a; color: #fff; }
img, svg { max-width: 100%; }
img { display: block; }
svg { display: block; height: auto; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 550; line-height: 1.13; letter-spacing: -.04em; }
h1 { font-size: clamp(44px, 5.5vw, 76px); }
h2 { font-size: clamp(30px, 3.2vw, 44px); }
h3 { font-size: 23px; letter-spacing: -.025em; }
h4 { font-size: 18px; }
p { color: var(--muted); }
p + p { margin-top: 16px; }
ul, ol { padding-left: 22px; margin: 16px 0 0; }
li { color: var(--muted); margin: 8px 0; }
strong { color: var(--text); font-weight: 600; }
code, pre, .mono { font-family: var(--mono); }
code { font-size: .87em; color: #d3d4ff; overflow-wrap: anywhere; }
.wrap { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 10; padding: 10px 18px; background: var(--text); color: var(--bg); }
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 96px; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.mark { width: 34px; height: 34px; }
.wordmark { font-size: 23px; letter-spacing: -.045em; font-weight: 600; line-height: 1; }
.brand-label { font: 11px/1 var(--mono); color: var(--subtle); padding-left: 13px; border-left: 1px solid var(--line); margin-left: 3px; letter-spacing: .08em; }
.primary-nav { display: flex; align-items: center; gap: 27px; margin-left: auto; font-size: 13px; font-weight: 500; }
.primary-nav a { color: var(--muted); padding-block: 8px; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--text); }
.primary-nav a[aria-current="page"] { box-shadow: 0 1px 0 var(--accent); }
.header-contact { border: 1px solid #3c455b; border-radius: 7px; padding: 9px 15px; font-size: 13px; white-space: nowrap; }
.arrow { display: inline-block; margin-left: 9px; font-family: var(--sans); }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 10px/1.6 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--subtle); }
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--accent); flex-shrink: 0; }
.hero { display: grid; grid-template-columns: 1.06fr 1fr; gap: 42px; align-items: center; padding-top: 84px; padding-bottom: 78px; }
.hero h1 { margin-top: 25px; }
.gradient-text { color: #bbadff; background: linear-gradient(105deg, #98b0ff, #c1a3ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-copy > p { margin-top: 26px; max-width: 490px; font-size: 17px; line-height: 1.7; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 19px; border-radius: 7px; font-size: 13px; font-weight: 600; min-height: 46px; border: 1px solid var(--line); }
.button-primary { background: linear-gradient(110deg, var(--blue), var(--purple)); border-color: transparent; color: #fff; }
.button-primary:hover { color: #fff; filter: brightness(1.08); }
.button-secondary { background: #111620; color: var(--text); }
.button-secondary:hover { border-color: #6a7293; }
.micro-note { margin-top: 19px; font: 10px/1.6 var(--mono); color: var(--subtle); }
.diagram-panel { border: 1px solid #30364f; border-radius: var(--radius); overflow: hidden; background: radial-gradient(ellipse at 55% 48%, #292044 0, #151925 45%, #10151e 78%); }
.panel-heading { padding: 17px 20px; display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); font: 10px/1.5 var(--mono); letter-spacing: .04em; color: var(--muted); }
.panel-heading span:last-child { color: var(--accent); }
.diagram-caption { padding: 15px 20px; border-top: 1px solid var(--line); color: var(--muted); font: 11px/1.6 var(--mono); }
.svg-label { font-family: var(--mono); fill: #abb5c9; font-size: 10px; }
.svg-title { font-family: var(--sans); fill: #f0f2f8; font-size: 14px; font-weight: 500; }
.svg-small { font-family: var(--mono); fill: #abb5c9; font-size: 9px; }
.principle-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principle-strip > div { padding: 22px 22px; border-right: 1px solid var(--line); display: flex; gap: 15px; align-items: center; }
.principle-strip > div:first-child { padding-left: 0; }
.principle-strip > div:last-child { border: 0; }
.principle-strip b { color: var(--accent); font: 11px/1 var(--mono); }
.principle-strip span { color: var(--muted); font-size: 13px; }
.section { padding-block: 80px; }
.section + .section { border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; gap: 36px; align-items: end; margin-bottom: 30px; }
.section-heading h2 { margin-top: 13px; }
.section-heading > p { font-size: 14px; max-width: 360px; }
.text-link { color: var(--accent); font-size: 13px; font-weight: 500; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
/* 同一行内卡片等高，但段落行数不同 → CTA 按文档流排会参差
   （2026-10-15 实测：四张卡片底部链接基线交错，差 23px）。
   卡片改成纵向 flex，链接用 margin-top:auto 贴底，保证同一行 CTA 对齐。 */
.card-grid .card { display: flex; flex-direction: column; }
.card-grid .card p { margin-bottom: 25px; }
.card-grid .card .text-link { margin-top: auto; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 25px; background: var(--surface); min-width: 0; }
.card-icon { color: var(--accent); width: 28px; margin-bottom: 31px; }
.card h3 { font-size: 19px; }
.card p { font-size: 13px; line-height: 1.75; margin-top: 15px; }
.card .text-link { display: inline-block; margin-top: 25px; }
.card-index { font: 11px/1 var(--mono); color: var(--subtle); display: block; margin-bottom: 28px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split h2 { margin-top: 14px; }
.split p { margin-top: 22px; font-size: 15px; }
.split .text-link { display: inline-block; margin-top: 25px; }
.chart-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.chart-panel figcaption { padding: 0 23px 22px; font-size: 11px; line-height: 1.7; color: var(--subtle); }
.research-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature-card { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(130deg, #171a2e, #111620 70%); }
.feature-card h3 { margin-top: 20px; font-size: 26px; }
.feature-card p { margin-top: 18px; font-size: 14px; max-width: 440px; }
.feature-card .text-link { display: inline-block; margin-top: 24px; }
.feature-card .tag { display: inline-block; color: var(--accent); font: 10px/1.5 var(--mono); padding: 5px 9px; border: 1px solid #414262; border-radius: 4px; }
.closing { margin-bottom: 80px; border: 1px solid #383654; border-radius: var(--radius); background: radial-gradient(ellipse at right, #211b38, #111620 65%); padding: 37px 40px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.closing h2 { font-size: 29px; }
.closing p { font-size: 14px; margin-top: 10px; }
.closing .button { flex-shrink: 0; }
.site-footer { border-top: 1px solid var(--line); padding-top: 44px; padding-bottom: 25px; }
.footer-main { display: flex; justify-content: space-between; gap: 45px; padding-bottom: 35px; }
.footer-brand .brand .mark { width: 29px; height: 29px; }
.footer-brand .brand .wordmark { font-size: 20px; }
.footer-brand p { margin-top: 14px; font-size: 12px; max-width: 255px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 13px 24px; align-content: start; font-size: 12px; max-width: 530px; color: var(--muted); }
.group-block { display: flex; flex-wrap: wrap; gap: 12px 25px; padding-block: 20px; border-top: 1px solid var(--line); align-items: baseline; font-size: 11px; color: var(--subtle); }
.group-label { font: 10px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .08em; margin-right: auto; }
.legal-block { border-top: 1px solid var(--line); padding-top: 22px; display: grid; gap: 5px; font-size: 11px; color: var(--subtle); }
.legal-block p { color: inherit; margin: 0; }
.legal-block .legal-name { color: var(--muted); font-size: 12px; }
.page-hero { padding: 65px 0 49px; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-top: 24px; font-size: clamp(42px, 5.3vw, 68px); max-width: 920px; }
.page-hero .lede { font-size: 18px; line-height: 1.7; max-width: 730px; margin-top: 24px; }
.page-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; color: var(--subtle); font: 11px/1.6 var(--mono); }
.page-body { padding-top: 44px; padding-bottom: 80px; }
.page-toc { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-bottom: 29px; border-bottom: 1px solid var(--line); font: 11px/1.6 var(--mono); color: var(--muted); }
.page-toc a:hover { color: var(--accent); }
.layer { padding: 45px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 270px 1fr; gap: 55px; }
.layer-heading .mono { font-size: 11px; color: var(--accent); }
.layer-heading h2 { margin-top: 17px; font-size: 31px; }
.layer-heading p { margin-top: 17px; font-size: 13px; }
.boundary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.boundary-grid > div { padding: 23px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.boundary-grid h3 { color: var(--green); font: 11px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .035em; }
.boundary-grid .boundary h3 { color: var(--amber); }
.boundary-grid p { font-size: 13px; margin-top: 13px; }
.layer-check { margin-top: 17px; font: 11px/1.8 var(--mono); color: var(--subtle); }
.callout { padding: 24px 28px; border-left: 2px solid #8d89ec; background: #161a29; border-radius: 0 8px 8px 0; margin-block: 28px; }
.callout p { font-size: 14px; }
.callout strong { color: #d3d4ff; }
.document-layout { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 65px; padding-top: 44px; padding-bottom: 80px; align-items: start; }
.side-nav { position: sticky; top: 28px; }
.side-nav > p { font: 10px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 15px; }
.side-nav a { display: block; padding: 10px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.side-nav a:hover { color: var(--accent); }
.document-section { padding: 35px 0; border-bottom: 1px solid var(--line); }
.document-section:first-child { padding-top: 0; }
.document-section h2 { font-size: 31px; margin-bottom: 21px; }
.document-section h3 { margin-top: 27px; margin-bottom: 13px; font-size: 20px; }
.document-section p, .document-section li { font-size: 15px; }
.document-section .section-number { display: block; color: var(--accent); font: 10px/1.5 var(--mono); margin-bottom: 13px; letter-spacing: .05em; }
.definition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 24px; }
.definition-grid .card h3 { margin: 0; font-size: 17px; }
.definition-grid .card p { font-size: 13px; }
.terminal { margin-top: 24px; background: #0d121b; border: 1px solid #343d52; border-radius: var(--radius); overflow: hidden; }
.terminal-bar { padding: 13px 18px; color: var(--subtle); font: 10px/1.5 var(--mono); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; }
.terminal-dot { display: inline-block; width: 6px; height: 6px; background: #818a9e; border-radius: 50%; }
pre { margin: 0; padding: 23px; font-size: 12px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; }
pre code { color: #c5cbe1; font-size: inherit; }
.code-comment { color: #929db3; }
.code-key { color: #bdb5ff; }
.code-value { color: #9ae2bf; }
.table-wrap { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; text-align: left; }
caption { padding: 16px; text-align: left; color: var(--muted); background: var(--surface); font: 11px/1.6 var(--mono); }
th { color: var(--text); background: var(--surface-raised); font-weight: 500; }
th, td { padding: 15px 17px; vertical-align: top; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
td { color: var(--muted); }
th:first-child, td:first-child { width: 24%; }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding: 13px 0 13px 29px; margin: 0; border-bottom: 1px solid var(--line); }
.checklist li::before { content: "↳"; position: absolute; left: 0; color: var(--accent); }
.note { color: var(--subtle); font-size: 12px; margin-top: 16px; }
.chart-panel figcaption a { text-decoration: underline; text-underline-offset: 3px; }
.fixture-details { margin-top: 25px; padding: 19px 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.fixture-details summary { color: var(--accent); font-size: 14px; cursor: pointer; }
.fixture-details .card { padding: 20px; }
.fixture-details .card li { font-size: 12px; }
.writing-list { padding-bottom: 60px; }
.writing-item { padding: 35px 0; display: grid; grid-template-columns: 155px 1fr 36px; gap: 38px; border-bottom: 1px solid var(--line); }
.writing-item:target { background: #151925; }
.writing-date { font: 11px/1.7 var(--mono); color: var(--subtle); }
.writing-date span { display: block; color: var(--accent); margin-top: 8px; }
.writing-item h2 { font-size: 26px; }
.writing-item p { font-size: 14px; margin-top: 14px; max-width: 760px; }
.writing-item .writing-question { font-size: 12px; color: var(--subtle); }
.anchor-link { color: var(--accent); font: 12px/1.6 var(--mono); padding: 3px; }
.about-statement { max-width: 850px; font-size: 29px; letter-spacing: -.025em; line-height: 1.45; color: var(--text); }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; margin-top: 33px; }
.about-grid .card h3 { font-size: 21px; }
.entity-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--surface); }
.entity-card h2 { font-size: 22px; }
.standalone-entity { max-width: 820px; margin-bottom: 64px; }
.entity-card dl { margin-bottom: 0; }
.entity-card dt { font: 10px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--subtle); margin-top: 19px; }
.entity-card dd { font-size: 14px; margin: 6px 0 0; color: var(--text); }
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 65px; padding-top: 45px; padding-bottom: 80px; align-items: start; }
.contact-layout h2 { font-size: 29px; }
.contact-layout > div > p { font-size: 14px; margin-top: 19px; }
.contact-layout .entity-card { margin-top: 25px; }
.preparation { padding-left: 0; list-style: none; counter-reset: preparation; }
.preparation li { counter-increment: preparation; border-bottom: 1px solid var(--line); padding: 22px 0 22px 43px; position: relative; margin: 0; }
.preparation li::before { content: "0" counter(preparation); position: absolute; left: 0; top: 25px; color: var(--accent); font: 11px/1.5 var(--mono); }
.preparation h3 { font-size: 18px; margin-bottom: 9px; }
.preparation p { font-size: 14px; }
.legal-content { max-width: 820px; padding-top: 10px; padding-bottom: 75px; }
.legal-content h2 { font-size: 26px; margin-top: 36px; margin-bottom: 15px; }
.legal-content p, .legal-content li { font-size: 15px; }
.legal-content a { text-decoration: underline; text-underline-offset: 4px; color: var(--accent); }
.error-layout { display: grid; grid-template-columns: 1fr .65fr; gap: 70px; align-items: center; padding-block: 100px; min-height: 590px; }
.error-layout h1 { margin-top: 24px; font-size: 60px; }
.error-layout p { margin-top: 24px; }
.error-glyph { font: 500 clamp(100px,15vw,200px)/1 var(--mono); letter-spacing: -.1em; text-align: center; color: #b7b9ff; }
@media (min-width: 1440px) {
  .hero { gap: 60px; }
}
@media (max-width: 1100px) {
  .header-inner { gap: 22px; }
  .primary-nav { gap: 18px; }
  .brand-label { display: none; }
  .hero { gap: 28px; padding-top: 64px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .card-icon { margin-bottom: 22px; }
  .split { gap: 35px; }
  .layer { grid-template-columns: 220px 1fr; gap: 35px; }
  .document-layout { grid-template-columns: 175px minmax(0,1fr); gap: 35px; }
}
@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .header-inner { min-height: 88px; gap: 18px; }
  .wordmark { font-size: 21px; }
  .mark { width: 30px; height: 30px; }
  .primary-nav { gap: 14px; font-size: 12px; }
  .header-contact { padding: 8px 11px; font-size: 12px; }
  .hero { gap: 30px; }
  .hero h1 { font-size: 51px; }
  .hero-copy > p { font-size: 15px; }
  .hero .button { padding: 11px 13px; font-size: 12px; }
  .panel-heading { padding: 14px; font-size: 9px; }
  .principle-strip > div { padding: 18px 13px; gap: 9px; }
  .principle-strip span { font-size: 11px; }
  .section { padding-block: 60px; }
  .section-heading > p { max-width: 300px; }
  .layer { grid-template-columns: 1fr; gap: 22px; }
  .layer-heading p { max-width: 600px; }
  .document-layout { grid-template-columns: minmax(0,1fr); gap: 33px; }
  .side-nav { position: static; display: flex; flex-wrap: wrap; gap: 9px 19px; }
  .side-nav > p { width: 100%; margin-bottom: 0; }
  .side-nav a { border: 0; padding: 0; }
  .contact-layout { gap: 30px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid .card-index { margin-bottom: 17px; }
  .closing { padding: 29px; }
  .closing h2 { font-size: 25px; }
  .writing-item { grid-template-columns: 125px 1fr 25px; gap: 24px; }
}
@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; padding-block: 19px 13px; gap: 15px; }
  .header-contact { margin-left: auto; order: 1; }
  .primary-nav { order: 2; width: 100%; margin: 0; justify-content: space-between; gap: 8px; }
  .primary-nav a { padding-block: 3px; }
  .brand-label { display: inline; }
  .hero { grid-template-columns: 1fr; padding-top: 47px; padding-bottom: 42px; gap: 36px; }
  .hero h1 { font-size: clamp(48px,9vw,65px); }
  .hero h1 br:last-child { display: none; }
  .hero-copy > p { max-width: 540px; font-size: 16px; }
  .diagram-panel { max-width: 540px; width: 100%; }
  .principle-strip { grid-template-columns: 1fr 1fr; }
  .principle-strip > div { border-bottom: 1px solid var(--line); padding: 17px 12px; }
  .principle-strip > div:first-child { padding-left: 12px; }
  .principle-strip > div:nth-child(2) { border-right: 0; }
  .principle-strip > div:nth-child(3), .principle-strip > div:nth-child(4) { border-bottom: 0; }
  .principle-strip span { font-size: 12px; }
  .section-heading { display: block; }
  .section-heading > p, .section-heading > .text-link { margin-top: 20px; display: block; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .research-grid { grid-template-columns: 1fr; }
  .closing { display: block; margin-bottom: 55px; }
  .closing .button { margin-top: 24px; }
  .footer-main { flex-direction: column; gap: 26px; }
  .footer-nav { justify-content: flex-start; }
  .group-block { align-items: start; flex-direction: column; gap: 10px; }
  .page-hero { padding-top: 45px; }
  .page-hero .lede { font-size: 16px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .error-layout { grid-template-columns: 1fr; gap: 35px; padding-block: 60px; }
  .error-glyph { grid-row: 1; text-align: left; }
  .error-layout h1 { font-size: 44px; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 36px); }
  .brand-label { display: none; }
  .hero h1 { font-size: 47px; }
  .hero h1 br:last-child { display: initial; }
  .eyebrow { font-size: 9px; letter-spacing: .08em; }
  .card-grid, .boundary-grid, .definition-grid { grid-template-columns: minmax(0,1fr); }
  .card { padding: 24px; }
  .card h3 { font-size: 21px; }
  .card p { font-size: 14px; }
  .section { padding-block: 48px; }
  .feature-card { padding: 25px; }
  .closing { padding: 26px; }
  .page-hero h1 { font-size: 41px; }
  .page-toc { gap: 12px 17px; }
  .page-body { padding-top: 30px; padding-bottom: 55px; }
  .layer { padding-block: 32px; }
  .document-section h2 { font-size: 27px; }
  .document-section p, .document-section li { font-size: 14px; }
  .table-wrap th, .table-wrap td { padding: 11px 8px; font-size: 10px; }
  pre { padding: 18px; font-size: 11px; }
  .writing-item { grid-template-columns: 1fr 23px; gap: 12px; }
  .writing-date { grid-column: 1 / -1; }
  .writing-date span { display: inline; margin-left: 15px; }
  .writing-item h2 { font-size: 24px; }
  .writing-item p { font-size: 13px; }
  .callout { padding: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
