:root {
  --public-font: "PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  --public-gutter:clamp(24px,6vw,96px);
  --public-radius:24px;
  --public-pad:clamp(16px,2.65vw,32px);
  --public-ice:#b8edf0;
  --public-silver:#eef1f5;
  --public-soft:#f5f6f7;
  --public-midnight:#080e1b;
  --public-window:#fff;
  --ink:#111827;
  --paper:#f5f6f7;
  --text:#131d2c;
  --muted:#475569;
  --surface:#e9edf2;
  --rule:#ccd5df;
  --link:#155e6e;
  font-family:var(--public-font);
}
@media (prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) {
    --paper:#101827; --text:#eff4f7; --muted:#b6c3d2; --surface:#192536;
    --rule:#41536a; --link:#a9e6ea; --public-window:#162132;
  }
}
:root[data-theme="dark"] {
  --paper:#101827; --text:#eff4f7; --muted:#b6c3d2; --surface:#192536;
  --rule:#41536a; --link:#a9e6ea; --public-window:#162132;
}
.wrap { width:min(1280px,calc(100% - var(--public-gutter) * 2)); }
.header .mark,.footer-inner .mark { background:var(--public-ice); border-color:#487c84; }
.chapter-nav a { font-weight:650; }
.chapter-nav a:active { background:var(--surface); color:var(--text); }
.theme { width:44px; height:44px; display:grid; place-items:center; border:1px solid var(--rule); color:var(--link); }
.theme:hover { background:var(--surface); }
.button { min-height:48px; padding-inline:20px; border-radius:999px; font-weight:650; line-height:1.3; }
.button.primary { background:var(--public-ice); color:#10252e; }
.button.primary:hover { background:#d4f8f8; }
.text-link,.sources a { font-weight:650; }
.text-link:hover,.sources a:hover { text-decoration-thickness:2px; }

.chapter:not(.chapter-drone) .hero-grid,.ags-landing .hero-grid { grid-template-columns:repeat(12,minmax(0,1fr)); gap:16px; padding-block:clamp(56px,7vw,96px); }
.chapter:not(.chapter-drone) .chapter-title,.ags-landing .chapter-title { font-size:clamp(2.25rem,5.1vw,4.7rem); font-weight:650; letter-spacing:-.035em; }
.chapter:not(.chapter-drone) .eyebrow,.ags-landing .eyebrow { color:var(--public-ice); letter-spacing:.07em; }
.chapter:not(.chapter-drone) .hero-description,.ags-landing .hero-description { max-width:37ch; font-size:clamp(1rem,1.5vw,1.25rem); color:#e2e9ef; }
.chapter:not(.chapter-drone) .hero-description span,.ags-landing .hero-description span { display:block; }
.chapter:not(.chapter-drone) .actions,.ags-landing .actions { gap:8px 16px; align-items:center; }
.chapter:not(.chapter-drone) .button.secondary,.stage-secondary {
  background:transparent; color:#c9eef1; border:0; padding-inline:0; text-decoration:none;
}
.stage-secondary { display:inline-flex; align-items:center; min-height:44px; font-weight:650; }
.chapter:not(.chapter-drone) .button.secondary:hover,.stage-secondary:hover { text-decoration:underline; text-underline-offset:5px; }
.chapter-news { background:radial-gradient(ellipse at 78% 0,#354867,#151f31 62%); }
.news-visual { background:var(--public-soft); border:0; border-radius:var(--public-radius); }
.news-visual a { min-height:48px; padding:14px 0; border-color:#c9d5dd; }
.section-title h2,.trust h2,.contact-band h2,.ags-demo h2,.ags-entry h2 { font-weight:650; letter-spacing:-.028em; }
.trust-grid,.partners,.news-grid { gap:16px; }
.trust-grid > div,.partners > article,.news-card {
  padding:var(--public-pad); border-radius:var(--public-radius); border:1px solid var(--rule); background:var(--public-window);
}
.trust-grid p,.partners p,.news-card p,.news-card dd,.contact-grid p { max-width:48ch; }
.trust-preview { border-top:0; padding:var(--public-pad); border-radius:var(--public-radius); background:var(--public-window); }
.trust-preview .motion-sample { border-radius:16px; overflow:hidden; }
.partners > article h3 { font-size:clamp(1.24rem,2vw,1.75rem); font-weight:650; }
.news-group { margin-top:48px; }
.news-heading { margin-bottom:16px; }
.news-card h4 { font-weight:650; text-wrap:balance; }
.news-card summary { min-height:44px; padding-block:8px; }
.news-card .sources { margin-top:16px; padding-top:8px; border-top:1px solid var(--rule); }
.news-card .sources a { font-weight:630; }
.filters { margin-block:8px; }
.filters button,.search input { border-radius:999px; }
.filters button[aria-pressed="true"] { border-color:#1c5365; background:#1c5365; }
.contact-band { background:var(--surface); color:var(--text); }
.contact-grid p,.contact-methods figure { color:var(--muted); }
.contact-grid { gap:32px clamp(32px,5vw,72px); }
.contact-methods img { display:block; width:144px; max-width:100%; height:auto; border-radius:12px; }
.consult { background:var(--public-window); border-color:var(--rule); border-radius:var(--public-radius); padding:var(--public-pad); }
.notify { border-color:var(--rule); }
.contact-band :focus-visible { outline-color:var(--link); }
.contact-band a,.contact-band #copy-consult { text-underline-offset:4px; }
.footer-inner > a { display:inline-flex; align-items:center; min-height:44px; text-underline-offset:4px; }
.ags-landing { color:#f5f6f7; }
.ags-demo { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:clamp(32px,6vw,80px); align-items:center; }
.ags-demo-copy h2,.ags-demo-copy p + p,.ags-demo-copy h2 + p { margin-top:12px; }
.ags-demo-copy > p { max-width:40ch; }
.ags-demo .media-showcase { border:1px solid var(--rule); padding:clamp(12px,2.3vw,24px); border-radius:var(--public-radius); min-width:0; background:var(--public-window); }
.ags-demo video { display:block; width:100%; object-fit:contain; height:auto; aspect-ratio:16/9; border-radius:14px; background:#101827; }
.media-controls { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:12px; }
.media-controls button { min-height:44px; border:1px solid var(--rule); border-radius:999px; color:var(--text); background:var(--surface); }
.media-controls button[aria-pressed="true"] { color:#10252e; background:var(--public-ice); border-color:#8ec9cf; }
.ags-entry { background:var(--surface); }
.ags-entry .wrap { display:flex; justify-content:space-between; flex-wrap:wrap; gap:20px 32px; align-items:center; }
.ags-entry .actions { margin-top:0; align-items:center; }
.ags-entry h2 + p { margin-top:8px; }

@media (max-width:680px) {
  .chapter:not(.chapter-drone) .hero-grid,.ags-landing .hero-grid { grid-template-columns:minmax(0,1fr); gap:24px; padding-block:40px 56px; }
  .chapter:not(.chapter-drone) .chapter-title,.ags-landing .chapter-title { font-size:clamp(2rem,8.1vw,3.4rem); }
  .chapter:not(.chapter-drone) .actions,.ags-landing .actions { margin-top:16px; }
  .chapter-club .hero-grid,.chapter-ags .hero-grid { min-height:500px; }
  .ags-demo { grid-template-columns:minmax(0,1fr); }
  .ags-page { scroll-padding-top:72px; }
}

.public-missing { min-height:calc(100svh - 160px); display:flex; flex-direction:column; justify-content:center; align-items:flex-start; padding-block:40px; }
.public-missing h1 { margin:0; font-weight:650; letter-spacing:-.035em; }
.public-missing p { margin-top:12px; }
.public-missing .button { margin-top:24px; }
.missing-page .header-inner > .theme { margin-inline-start:auto; }
