/* Shared foundations, navigation and footer. */
:root {
  --ui-accent:#3465cf;
  --ai-glow-1:#7c9cff;
  --ai-glow-2:#bd9df0;
  --ink:#202c3f;
  --muted:#57667b;
  --line:#dce3ed;
  --surface:#fafbfd;
  font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  color:var(--ink);
  background:#f1f4f8;
  font-synthesis:none;
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:28px;
}

body {
  margin:0;
  background:radial-gradient(ellipse at 86% 9%,#e8e6fa 0,transparent 33%),radial-gradient(ellipse at 5% 2%,#e2eaf9 0,transparent 36%);
  font-size:14px;
  line-height:1.7;
}

a {
  color:inherit;
  text-decoration:none;
}

button,
a {
  -webkit-tap-highlight-color:transparent;
}

a:focus-visible {
  outline:2px solid var(--ui-accent);
  outline-offset:5px;
}

svg {
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.5;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0;
}

.wrap {
  width:min(1240px,calc(100% - 80px));
  margin-inline:auto;
}

.skip-link {
  position:fixed;
  z-index:10;
  top:10px;
  left:20px;
  transform:translateY(-180%);
  padding:10px 20px;
  background:#fff;
  border-radius:12px;
}

.skip-link:focus {
  transform:none;
}

.site-header {
  height:104px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
}

.brand {
  display:inline-flex;
  align-items:center;
  gap:11px;
  font-size:28px;
  font-weight:650;
  letter-spacing:-1.2px;
  white-space:nowrap;
}

.site-header nav {
  display:flex;
  align-items:center;
  gap:34px;
  font-size:14px;
}

.site-header nav a {
  padding:10px 0;
  color:var(--muted);
  transition:color .2s;
}

.site-header nav a:hover {
  color:var(--ui-accent);
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:12px 26px;
  border:1px solid transparent;
  border-radius:999px;
  background:var(--ui-accent);
  color:white;
  font-size:14px;
  font-weight:500;
  white-space:nowrap;
  transition:background .2s,box-shadow .2s;
}

.button:hover {
  background:#2853b3;
  box-shadow:0 5px 20px #3465cf20;
}

.button-small {
  min-height:42px;
  padding:9px 23px;
}

.eyebrow {
  margin:0 0 18px;
  color:var(--muted);
  font-size:12px;
  font-weight:500;
  letter-spacing:2px;
}

h1 {
  font-size:clamp(32px,3.45vw,49px);
  font-weight:550;
  line-height:1.48;
  letter-spacing:-1.5px;
  margin:0 0 22px;
}

h1 span {
  color:var(--ui-accent);
}

h2 {
  font-size:28px;
  line-height:1.5;
  font-weight:550;
  letter-spacing:-.6px;
  margin:0;
}

h3 {
  font-weight:550;
  font-size:22px;
  line-height:1.5;
  letter-spacing:-.5px;
  margin:0 0 8px;
}

h4 {
  font-size:14px;
  line-height:1.5;
  font-weight:550;
  margin:0 0 8px;
}

.footer-brand {
  font-size:22px;
  gap:0;
  color:var(--ink);
}

@media(max-width:1100px) {
.wrap {
  width:calc(100% - 48px);
}

h3 {
  font-size:20px;
}
}

@media(max-width:850px) {
.site-header {
  height:88px;
  gap:15px;
}

.site-header nav {
  gap:18px;
  font-size:13px;
}

.brand {
  font-size:25px;
}

h3 {
  font-size:18px;
}
}

@media(max-width:650px) {
.wrap {
  width:calc(100% - 32px);
}

.site-header {
  height:auto;
  min-height:90px;
  flex-wrap:wrap;
  gap:14px;
  padding-top:20px;
  padding-bottom:18px;
}

.site-header nav {
  order:3;
  justify-content:space-between;
  width:100%;
  gap:12px;
}

.site-header nav a {
  padding:3px 0;
}

.brand {
  font-size:26px;
}

.button-small {
  min-height:38px;
  padding:7px 18px;
  font-size:13px;
}

h3 {
  font-size:22px;
}
}

@media(prefers-reduced-motion:reduce) {
html {
  scroll-behavior:auto;
}

* {
  transition:none!important;
}
}

.brand {
  flex-shrink:0;
}

.brand img {
  display:block;
  width:146px;
  height:auto;
}

.footer-brand img {
  width:92px;
}

@media(max-width:850px) {
.brand img {
  width:133px;
}

.footer-brand img {
  width:86px;
}
}

.skip-link {
  width:1px;
  height:1px;
  padding:0;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
  transform:none;
}

.skip-link:focus {
  width:auto;
  height:auto;
  padding:10px 20px;
  clip-path:none;
}

.site-header {
  position:relative;
  z-index:10;
}

.nav-disclosure {
  position:relative;
}

.nav-disclosure>button {
  display:flex;
  align-items:center;
  gap:9px;
  border:0;
  padding:14px 0;
  background:none;
  box-shadow:none;
  color:var(--muted);
  font:inherit;
  cursor:pointer;
  white-space:nowrap;
}

.nav-disclosure>button:hover,
.nav-disclosure>button[aria-expanded="true"] {
  background:none;
  box-shadow:none;
  color:var(--ink);
}

.nav-disclosure>button:focus-visible {
  outline:2px solid var(--ui-accent);
  outline-offset:5px;
  border-radius:4px;
}

.nav-disclosure>button svg {
  width:13px;
  height:13px;
  stroke-width:1.3;
  transition:transform .2s;
}

.nav-disclosure>button[aria-expanded="true"] svg {
  transform:rotate(180deg);
}

.nav-dropdown {
  position:absolute;
  top:100%;
  left:-18px;
  min-width:216px;
  padding:8px;
  background:linear-gradient(135deg,#ffffffd6,#f2f6ffc2);
  backdrop-filter:blur(24px) saturate(145%);
  -webkit-backdrop-filter:blur(24px) saturate(145%);
  border:1px solid #ffffffb3;
  border-radius:15px;
  box-shadow:0 12px 32px #293d6912;
  z-index:20;
}

.nav-dropdown[hidden] {
  display:none;
}

.site-header nav .nav-dropdown a {
  display:block;
  padding:11px 14px;
  border-radius:9px;
  font-size:14px;
  white-space:nowrap;
}

.site-header nav .nav-dropdown a:hover,
.site-header nav .nav-dropdown a:focus-visible {
  background:#f2f5fc;
  color:var(--ink);
}

@media(max-width:850px) {
.site-header nav {
  gap:20px;
}

.nav-disclosure:last-child .nav-dropdown {
  left:auto;
  right:-12px;
}
}

@media(max-width:650px) {
.site-header nav {
  gap:12px;
}

.nav-disclosure>button {
  padding:8px 0;
  font-size:13px;
  gap:6px;
}

.nav-dropdown {
  left:0;
  min-width:196px;
}

.nav-disclosure:nth-child(2) .nav-dropdown {
  left:50%;
  transform:translateX(-50%);
}

.nav-disclosure:last-child .nav-dropdown {
  right:0;
}

.site-header nav .nav-dropdown a {
  font-size:13px;
}
}

:root {
  font-family:"Helvetica Neue","PingFang SC","Noto Sans CJK SC","Microsoft YaHei",Arial,sans-serif;
}

body {
  font-size:16px;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
}

h1,
h2,
h3 {
  font-family:inherit;
  font-weight:300;
}

.site-header nav {
  font-size:16px;
  font-weight:400;
}

.nav-disclosure>button {
  font-weight:400;
}

.site-header nav .nav-dropdown a {
  font-size:15px;
}

.button {
  font-size:16px;
  font-weight:400;
}

@media(max-width:650px) {
.nav-disclosure>button {
  font-size:14px;
}

.button-small {
  font-size:14px;
}
}

.site-header {
  height:80px;
}

@media(max-width:850px) {
.site-header {
  height:72px;
}
}

@media(max-width:650px) {
.site-header {
  height:auto;
  min-height:76px;
  padding-top:12px;
  padding-bottom:12px;
  gap:10px;
}
}

.site-header {
  position:sticky;
  top:0;
  z-index:50;
  isolation:isolate;
}

.site-header::before {
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:calc(50% - 50vw);
  width:100vw;
  z-index:-1;
  background:linear-gradient(115deg,#ffffffad,#f1f5ff80 55%,#f5f1ff8c);
  backdrop-filter:blur(24px) saturate(150%);
  -webkit-backdrop-filter:blur(24px) saturate(150%);
  border-bottom:1px solid #ffffffa6;
  box-shadow:inset 0 1px 0 #ffffffb3,0 1px 0 #8195bd14,0 5px 24px #30487706;
  pointer-events:none;
}

html {
  scroll-padding-top:96px;
}

@media(max-width:850px) {
html {
  scroll-padding-top:88px;
}
}

@media(max-width:650px) {
html {
  scroll-padding-top:132px;
}
}

.home-footer {
  margin-top:80px;
  background:#eaf0f7;
  border-top:1px solid #dbe3ef;
  color:var(--muted);
}

.footer-main {
  display:grid;
  grid-template-columns:1.5fr 1.1fr .85fr 1fr;
  gap:40px;
  padding:64px 8px 58px;
}

.footer-identity .brand img {
  display:block;
  width:148px;
  height:auto;
}

.footer-identity p {
  margin:22px 0 7px;
  font-size:15px;
  font-weight:300;
}

.footer-identity>span {
  font-size:12px;
  letter-spacing:1px;
  color:#7b889e;
}

.footer-column {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:13px;
}

.footer-column h2 {
  font-size:16px;
  font-weight:400;
  color:var(--ink);
  margin:0 0 9px;
  line-height:1.6;
}

.footer-column a {
  font-size:14px;
  font-weight:300;
  line-height:1.7;
  transition:color .2s;
}

.home-footer a:hover {
  color:var(--ui-accent);
}

.footer-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border-top:1px solid #d5dfec;
  padding:24px 8px 28px;
}

.footer-bottom small,
.footer-bottom a {
  font-size:12px;
  font-weight:300;
}

@media(max-width:850px) {
.footer-main {
  grid-template-columns:1.2fr 1fr;
  gap:36px 28px;
  padding-block:44px;
}

.home-footer {
  margin-top:56px;
}
}

@media(max-width:450px) {
.footer-main {
  grid-template-columns:1fr 1fr;
  gap:32px 16px;
}

.footer-identity {
  grid-column:1/-1;
}

.footer-column a {
  font-size:13px;
}

.footer-bottom {
  align-items:flex-start;
  gap:16px;
}

.footer-bottom small {
  max-width:220px;
}
}

.footer-utility {
  display:flex;
  gap:28px;
  align-items:center;
}

.site-header nav .about-nav {
  white-space:nowrap;
  font-weight:400;
}

.site-header nav .about-nav[aria-current="page"] {
  color:var(--ui-accent);
}

@media(max-width:650px) {
.site-header nav {
  gap:8px;
}

.site-header nav .about-nav {
  font-size:14px;
}

.footer-utility {
  gap:16px;
  flex-shrink:0;
}
}

.site-header .brand img {
  width:108px;
  height:auto;
}

@media(max-width:850px) {
.site-header .brand img {
  width:100px;
}
}

.site-header nav .nav-dropdown a[aria-current="page"] {
  color:var(--ui-accent);
  background:#f2f5fc;
}

@media(max-width:650px) {
.site-header nav {
  gap:6px;
}

.nav-disclosure>button {
  font-size:11px;
  gap:3px;
}

.site-header nav .about-nav {
  font-size:12px;
}

.nav-disclosure:nth-child(3) .nav-dropdown {
  left:auto;
  right:-36px;
}

.footer-main {
  column-gap:20px;
}
}

/* The same links stay inline on desktop and collapse into a mobile disclosure. */
.header-menu { display: contents; }
.mobile-menu-toggle { display: none; }
@media (max-width: 850px) {
  html { scroll-padding-top: 88px; }
  .site-header { height: 72px; min-height: 72px; flex-wrap: nowrap; padding-block: 0; gap: 16px; }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    margin-right: -10px;
    padding: 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--ink);
    cursor: pointer;
  }
  .mobile-menu-toggle svg { width: 24px; height: 24px; stroke-width: 1.5; }
  .mobile-menu-toggle:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 2px; }
  .site-header .header-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -16px;
    right: -16px;
    padding: 16px 24px 24px;
    max-height: calc(100dvh - 88px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: linear-gradient(135deg,#ffffffd6,#f2f6ffc2);
    backdrop-filter: blur(24px) saturate(145%);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
    border-bottom: 1px solid #ffffffb3;
    box-shadow: 0 16px 28px #253c6510;
  }
  .site-header .header-menu.is-open { display: block; }
  .site-header .header-menu nav { display: flex; flex-direction: column; align-items: stretch; width: 100%; gap: 0; }
  .site-header .header-menu .nav-disclosure { border-bottom: 1px solid #e2e8f1; }
  .site-header .header-menu .nav-disclosure>button {
    width: 100%;
    justify-content: space-between;
    min-height: 52px;
    padding: 14px 0;
    font-size: 16px;
  }
  .site-header .header-menu .nav-dropdown {
    position: static;
    inset: auto;
    transform: none;
    min-width: 0;
    padding: 0 0 12px 12px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-header .header-menu .nav-dropdown a { padding: 10px 0; font-size: 14px; white-space: normal; }
  .site-header .header-menu .about-nav { padding: 14px 0; font-size: 16px; }
  .site-header .header-menu>.button { width: 100%; margin-top: 12px; min-height: 46px; font-size: 15px; }
}

/* Keep navigation readable when backdrop blur is unavailable or unwanted. */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  .site-header::before, .nav-dropdown, .site-header .header-menu.is-open {
    background:#f5f7fc;
  }
}

@media(prefers-reduced-transparency:reduce) {
  .site-header::before, .nav-dropdown, .site-header .header-menu.is-open {
    background:#f5f7fc;
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }
}
