/* ARCent AI — site styles
   Monochrome "eclipse" look taken from the logo. Change --accent to add one
   brand colour to the small markers (arc nodes, list squares, eyebrow dots). */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(../fonts/sora-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(../fonts/sora-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0B0B0C;
  --ink-2: #111113;
  --line: #2A2A2E;
  --line-soft: #1E1E21;
  --fg: #F4F4F1;
  --fg-strong: #E6E6E1;
  --fg-soft: #D9D9D4;
  --fg-2: #A6A6A1;
  --fg-3: #8C8C87;
  --paper: #F2F2EE;
  --paper-2: #E6E6E0;
  --paper-line: #B5B5AD;
  --on-paper: #0B0B0C;
  --on-paper-2: #4F4F4A;
  --on-paper-3: #5F5F59;
  --accent: #F4F4F1;
  --focus: #7CC4FF;

  --latin-display: 'Sora', 'Inter', system-ui, sans-serif;
  --font-display: var(--latin-display);
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --container: 1280px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(80px, 10vw, 136px);
  --header-h: 72px;
}
html:lang(zh-Hans) {
  --font-display: 'Sora', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', 'Noto Sans CJK SC', 'Source Han Sans SC', sans-serif;
  --font-body: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', 'Noto Sans CJK SC', 'Source Han Sans SC', sans-serif;
}
html:lang(zh-Hant) {
  --font-display: 'Sora', 'PingFang TC', 'PingFang HK', 'Microsoft JhengHei', 'Noto Sans TC', 'Noto Sans CJK TC', 'Source Han Sans TC', sans-serif;
  --font-body: 'Inter', 'PingFang TC', 'PingFang HK', 'Microsoft JhengHei', 'Noto Sans TC', 'Noto Sans CJK TC', 'Source Han Sans TC', sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--ink); scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
html:lang(zh) body { line-height: 1.8; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--fg); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; border-radius: 999px; background: var(--fg); color: var(--ink); font-weight: 600; }
.skip-link:focus { top: 12px; }
body.menu-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--rule { border-top: 1px solid var(--line-soft); }
.section--paper { background: var(--paper); color: var(--on-paper); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px; }
.section-head__main { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.section-head__aside { flex: 0 1 460px; }
.section-foot { margin-top: 40px; }

/* ---------- Type ---------- */
.eyebrow, .label { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
:lang(zh) .eyebrow, :lang(zh) .label { font-size: 13px; letter-spacing: 0.1em; text-transform: none; }
.section--paper .eyebrow, .section--paper .label { color: var(--on-paper-3); }
.section--paper .eyebrow::before { background: var(--on-paper); }

.h1, .h2, .h3 { margin: 0; font-family: var(--font-display); font-weight: 600; text-wrap: balance; }
.h1 { font-size: clamp(40px, 4.6vw, 66px); line-height: 1.03; letter-spacing: -0.035em; }
.h2 { font-size: clamp(32px, 3.5vw, 50px); line-height: 1.08; letter-spacing: -0.03em; }
.h3 { font-size: clamp(24px, 2.1vw, 30px); line-height: 1.15; letter-spacing: -0.02em; }
:lang(zh) .h1, :lang(zh) .h2, :lang(zh) .h3, :lang(zh) .cta__title, :lang(zh) .tile__title { word-break: keep-all; overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }
:lang(zh) .h1 { font-size: clamp(40px, 4.8vw, 68px); line-height: 1.16; letter-spacing: -0.015em; }
:lang(zh) .hero .h1 { font-size: clamp(36px, 4.3vw, 62px); }
:lang(zh) .h2 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.22; letter-spacing: -0.01em; }
:lang(zh) .h3 { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.3; letter-spacing: -0.01em; }

.lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--fg-2); text-wrap: pretty; }
.lead--lg { font-size: clamp(16px, 1.35vw, 19px); max-width: 560px; }
:lang(zh) .lead { font-size: 16px; line-height: 1.85; }
:lang(zh) .lead--lg { font-size: clamp(16px, 1.3vw, 18px); }
.section--paper .lead { color: var(--on-paper-2); }

.num { font-family: var(--latin-display); font-size: 14px; font-weight: 400; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.section--paper .num { color: var(--on-paper-3); }

.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.6; color: var(--fg-strong); }
.ticks li { display: flex; gap: 12px; }
.ticks li::before { content: ""; width: 6px; height: 6px; margin-top: 0.62em; background: var(--accent); flex: none; }
:lang(zh) .ticks li::before { margin-top: 0.72em; }
.section--paper .ticks { color: var(--on-paper); font-size: 16px; }
.section--paper .ticks li::before { background: var(--on-paper); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600; line-height: 1.2;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--primary { background: var(--fg); color: var(--ink); }
.btn--primary:hover { background: #FFFFFF; }
.btn--secondary { border: 1px solid #3A3A3F; color: var(--fg); font-weight: 500; }
.btn--secondary:hover { border-color: var(--fg-3); }
.btn--dark { background: var(--on-paper); color: var(--fg); }
.btn--dark:hover { background: #2A2A2E; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 500; }
.link-arrow svg { width: 16px; height: 16px; flex: none; transition: transform 0.15s ease; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 5px; }
.link-arrow:hover svg { transform: translateX(2px); }
.demo-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 500; color: var(--fg-2); }
.demo-link svg { width: 18px; height: 18px; flex: none; }
.demo-link:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 12, 0.94);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; flex: none; }
.brand img { height: 40px; width: auto; }
.brand__text { display: flex; flex-direction: column; gap: 3px; }
.brand__name { font-family: var(--latin-display); font-weight: 600; font-size: 18px; line-height: 1.1; letter-spacing: -0.01em; }
/* Chinese name spans the exact width of "ARCent AI" above it (left and right aligned). */
.brand__local { font-size: 13px; font-weight: 500; line-height: 1.2; letter-spacing: 0; text-align: justify; text-align-last: justify; text-justify: inter-character; color: var(--fg-3); }
.site-menu { display: flex; align-items: center; justify-content: flex-end; gap: 32px; flex: 1; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.site-nav a { display: flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--fg-2); transition: color 0.15s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--fg); }
.site-header__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.lang-menu { position: relative; }
.lang-menu summary {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--fg);
  cursor: pointer; list-style: none; user-select: none; white-space: nowrap; transition: border-color 0.15s ease;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:focus-visible { border-radius: 999px; }
.lang-menu summary:hover, .lang-menu details[open] summary { border-color: var(--fg-3); }
.lang-menu .icon-globe { width: 16px; height: 16px; flex: none; color: var(--fg-2); }
.lang-menu .icon-chevron { width: 12px; height: 12px; flex: none; color: var(--fg-2); transition: transform 0.15s ease; }
.lang-menu details[open] .icon-chevron { transform: rotate(180deg); }
.lang-menu ul {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 184px;
  list-style: none; margin: 0; padding: 6px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}
.lang-menu li a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 0 12px;
  border-radius: 9px; font-size: 14px; color: var(--fg-2); white-space: nowrap; transition: background-color 0.15s ease, color 0.15s ease;
}
.lang-menu li a:hover { background: var(--line-soft); color: var(--fg); }
.lang-menu li a[aria-current="true"] { color: var(--fg); font-weight: 600; }
.lang-menu .icon-check { width: 15px; height: 15px; flex: none; }
@media (prefers-reduced-motion: reduce) { .lang-menu .icon-chevron { transition: none; } }
.menu-toggle {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--fg); cursor: pointer;
}
.menu-toggle svg { width: 18px; height: 18px; }
.menu-toggle .icon-close { display: none; }
.site-header.is-open .menu-toggle .icon-open { display: none; }
.site-header.is-open .menu-toggle .icon-close { display: block; }

@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; }
  .site-menu { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 24px; padding-bottom: 24px; }
  .site-header__inner { flex-wrap: wrap; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li + li { border-top: 1px solid var(--line-soft); }
  .site-nav a { min-height: 56px; font-size: 18px; color: var(--fg); }
  .lang-menu ul { right: auto; left: 0; }
  .js .site-menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 8px var(--gutter) 28px;
    background: var(--ink);
    border-bottom: 1px solid var(--line-soft);
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    justify-content: flex-start;
  }
  .js .site-header.is-open .site-menu { display: flex; }
}

/* ---------- Hero ---------- */
/* Copy and arc side by side from 900px (landscape tablets, laptops, desktops).
   Below that the arc is hidden rather than stacked under the copy; the same five steps
   are shown in the "How we work" section further down. */
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 56px clamp(40px, 5vw, 64px); padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 112px); }
.hero__copy { min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__copy .btn-row { padding-top: 8px; }

.arc { display: none; width: 100%; min-width: 0; margin: 0; position: relative; aspect-ratio: 1 / 1; container-type: inline-size; }
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) clamp(300px, 43%, 500px); }
  .arc { display: block; }
}
/* From 900px the hero fills the first screen, so the services section starts at the fold
   instead of a strip of empty space; a small cue at the bottom points the way down. */
.hero__next { display: none; }
@media (min-width: 900px) and (min-height: 640px) {
  .hero { position: relative; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; }
  .hero__inner { width: 100%; padding-block: 56px 96px; }
  .hero__next { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; justify-content: center; padding: 8px 20px; }
  .hero__next:hover .hero__next-line { background: rgba(244, 244, 241, 0.32); }
  .hero__next-line { position: relative; width: 1px; height: 52px; overflow: hidden; background: rgba(244, 244, 241, 0.16); }
  .hero__next-line::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--fg); animation: next-line 2.2s ease-in-out infinite; }
}
@keyframes next-line { 0% { top: -40%; } 60%, 100% { top: 100%; } }
@media (prefers-reduced-motion: reduce) { .hero__next-line::after { animation: none; top: 0; height: 100%; } }
.arc svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: fade-in 1.1s ease both; }
.arc__node { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--ink), 0 0 0 6px #4A4A4E; animation: fade-in 0.6s ease both; }
.arc__label { position: absolute; margin: 0; transform: translateY(-50%); display: flex; align-items: baseline; gap: 10px; white-space: nowrap; font-family: var(--font-display); font-size: clamp(11px, 2.8cqw, 15px); font-weight: 500; animation: fade-in 0.6s ease both; }
.arc__label .num { font-size: inherit; }
.arc__tip { position: absolute; margin: 0; transform: translateY(-50%); white-space: nowrap; font-size: clamp(11px, 2.4cqw, 12.5px); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); animation: fade-in 0.8s ease 0.3s both; }
:lang(zh) .arc__tip { font-size: clamp(11px, 2.5cqw, 13px); letter-spacing: 0.08em; text-transform: none; }
.arc__node--1 { left: 68.75%; top: 17.5%; }
.arc__node--2 { left: 82.5%; top: 31.25%; }
.arc__node--3 { left: 87.5%; top: 50%; }
.arc__node--4 { left: 82.5%; top: 68.75%; }
.arc__node--5 { left: 68.75%; top: 82.5%; }
.arc__label--1 { right: calc(31.25% + 20px); top: 17.5%; }
.arc__label--2 { right: calc(17.5% + 20px); top: 31.25%; }
.arc__label--3 { right: calc(12.5% + 20px); top: 50%; }
.arc__label--4 { right: calc(17.5% + 20px); top: 68.75%; }
.arc__label--5 { right: calc(31.25% + 20px); top: 82.5%; }
.arc__node--1, .arc__label--1 { animation-delay: 0.5s; }
.arc__node--2, .arc__label--2 { animation-delay: 0.62s; }
.arc__node--3, .arc__label--3 { animation-delay: 0.74s; }
.arc__node--4, .arc__label--4 { animation-delay: 0.86s; }
.arc__node--5, .arc__label--5 { animation-delay: 0.98s; }
.arc__tip--start { right: calc(63.9% + 14px); top: 7.2%; }
.arc__tip--end { right: calc(63.9% + 14px); top: 92.8%; }
@container (max-width: 420px) { .arc__tip { display: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Platforms strip ---------- */
.platforms { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.platforms__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 48px; padding-block: 28px; }
.platforms ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 56px; }
.platforms li { font-family: var(--latin-display); font-size: clamp(18px, 1.7vw, 24px); font-weight: 500; letter-spacing: -0.01em; color: var(--fg-soft); }

/* ---------- Services ---------- */
.service-list { list-style: none; margin: 72px 0 0; padding: 0; border-bottom: 1px solid var(--line); }
.service { border-top: 1px solid var(--line); padding: 40px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px 48px; }
.service__head { display: flex; flex-direction: column; gap: 14px; }
.service__body { margin: 0; font-size: 16px; line-height: 1.65; color: var(--fg-2); text-wrap: pretty; }
:lang(zh) .service__body { line-height: 1.85; }

/* ---------- Approach ---------- */
.principles { margin-top: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px 48px; }
.principle { border-top: 1px solid var(--on-paper); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.principle h3, .benefit h3, .process h4 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; }
.principle h3 { font-size: 22px; }
.principle p, .benefit p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--on-paper-2); text-wrap: pretty; }
:lang(zh) .principle p, :lang(zh) .benefit p { line-height: 1.85; }
:lang(zh) .principle h3, :lang(zh) .benefit h3, :lang(zh) .process h4 { letter-spacing: 0; }
.process-label { margin: 104px 0 36px; }
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 40px 0; }
.process li { position: relative; border-top: 1px solid var(--paper-line); padding: 28px 24px 0 0; display: flex; flex-direction: column; gap: 10px; }
.process li::before { content: ""; position: absolute; left: 0; top: -6px; width: 11px; height: 11px; border-radius: 50%; background: var(--on-paper); }
.process .num { font-size: 13px; }
.process h4 { font-size: 20px; }
.process p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--on-paper-2); }
:lang(zh) .process p { line-height: 1.8; }

/* ---------- Use cases (home tiles) ---------- */
.tiles { margin-top: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.tile { border: 1px solid var(--line); padding: 32px 28px; min-height: 320px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; transition: border-color 0.2s ease; }
.tile:hover { border-color: #45454A; }
.tile__top { display: flex; flex-direction: column; gap: 16px; }
.tile__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2vw, 26px); line-height: 1.2; letter-spacing: -0.02em; }
:lang(zh) .tile__title { line-height: 1.3; letter-spacing: 0; }
.tile__title a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.tile__bottom { display: flex; flex-direction: column; gap: 4px; }
.tile__scenario { margin: 0; font-size: 16px; line-height: 1.5; color: var(--fg-strong); }
@media (max-width: 600px) { .tile { min-height: 0; gap: 32px; padding: 28px 24px; } }

/* ---------- Cloud (home) ---------- */
.cloud-home { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.cloud-home .lead { max-width: 520px; }
.cloud-list { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cloud-list > li { padding: 40px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cloud-list__name { font-family: var(--latin-display); font-weight: 600; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -0.02em; line-height: 1.2; }
.cloud-list__services { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.5; color: var(--fg-2); }
.cloud-every { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 12px 28px; }
.cloud-every .label { margin: 0; }
.cloud-every ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: 15px; color: var(--fg-strong); }
.cloud-list__logo { width: auto; max-width: 200px; height: 40px; object-fit: contain; }

/* ---------- Partners (home) ---------- */
/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 96px; align-items: start; }
.faq__head { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.faq__head .lead { max-width: 420px; }
.faq__title, :lang(zh) .faq__title { font-size: clamp(26px, 2.8vw, 40px); }
.faq__list { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 24px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline-offset: 6px; }
.faq__q { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.5; letter-spacing: -0.01em; color: var(--fg); }
:lang(zh) .faq__q { letter-spacing: 0; }
.faq summary:hover .faq__q { color: #FFFFFF; }
.faq__icon { position: relative; flex: none; width: 20px; height: 20px; margin-top: 4px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 3px; right: 3px; top: 9px; height: 1.6px; border-radius: 1px; background: var(--fg-2); transition: transform 0.2s ease; }
.faq__icon::after { transform: rotate(90deg); }
.faq details[open] .faq__icon::after { transform: rotate(0deg); }
.faq__a { margin: 0 0 28px; padding-right: 44px; max-width: 680px; font-size: 16px; line-height: 1.7; color: var(--fg-2); text-wrap: pretty; }
:lang(zh) .faq__a { line-height: 1.85; }
@media (max-width: 900px) { .faq { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .faq summary { padding: 20px 0; } .faq__a { padding-right: 0; font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { .faq__icon::before, .faq__icon::after { transition: none; } }

.partner-home { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }
.partner-home__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.partner-home__copy .lead { max-width: 560px; }
.benefits--home { gap: 32px 40px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.benefits--home .benefit { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 8px 0; padding-top: 20px; align-items: baseline; align-content: start; }
.benefits--home .benefit h3 { font-size: 18px; }
.benefits--home .benefit p { grid-column: 2; font-size: 15px; }
.partner-home__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px); background: var(--paper-2); }
.partner-home__asks { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.partner-home__asks .label { margin: 0; color: #55554F; }
.section--paper .ticks--compact { gap: 6px; font-size: 15px; }
@media (max-width: 600px) { .cloud-list > li { padding: 28px 16px; } }

/* ---------- Closing call to action ---------- */
.cta { position: relative; overflow: hidden; border-top: 1px solid var(--line-soft); }
.deco-arc { position: absolute; right: -10%; top: 50%; transform: translateY(-50%); width: min(760px, 75%); height: auto; aspect-ratio: 1 / 1; opacity: 0.12; pointer-events: none; }
.cta__inner { position: relative; padding-block: clamp(96px, 12vw, 168px); }
.cta__content { max-width: 760px; display: flex; flex-direction: column; gap: 28px; }
.cta__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(36px, 4.2vw, 60px); line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
:lang(zh) .cta__title { font-size: clamp(25px, 3vw, 44px); line-height: 1.3; letter-spacing: -0.01em; }
:lang(zh) .cta__content { max-width: 900px; }
/* Phones: size Chinese titles so the longest unbreakable phrase fits one line,
   which keeps punctuation from being pushed to the start of a line. */
@media (max-width: 600px) {
  :lang(zh) .h1, :lang(zh) .hero .h1 { font-size: clamp(28px, 9.4vw, 40px); }
  :lang(zh) .cta__title { font-size: clamp(20px, 6.2vw, 30px); }
}
.cta .btn-row { padding-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); }
.site-footer__grid { padding-top: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand .brand img { height: 48px; }
.footer-brand p { margin: 0; max-width: 260px; font-size: 14px; color: var(--fg-3); }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__bottom { margin-top: 56px; border-top: 1px solid var(--line-soft); padding-block: 24px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; font-size: 13px; color: var(--fg-3); }
.site-footer__bottom p { margin: 0; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-langs a:hover { color: var(--fg); }
.footer-langs a[aria-current="true"] { color: var(--fg); }

/* ---------- Sub-page header ---------- */
.page-head { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.page-head .deco-arc { right: -14%; width: min(680px, 70%); opacity: 0.1; }
.page-head__inner { position: relative; padding-block: clamp(64px, 9vw, 128px) clamp(56px, 7vw, 96px); display: flex; flex-direction: column; gap: 24px; }
.page-head__inner > * { max-width: 860px; }
.page-head .lead { max-width: 640px; }

/* ---------- Use cases page ---------- */
.industries { border-bottom: 1px solid var(--line); }
.industry { border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 80px); display: flex; flex-wrap: wrap; gap: 32px 64px; scroll-margin-top: calc(var(--header-h) + 8px); }
.industry:first-child { border-top: 0; padding-top: 0; }
.industry__head { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.industry__context { margin: 0; max-width: 400px; font-size: 16px; line-height: 1.65; color: var(--fg-2); }
:lang(zh) .industry__context { line-height: 1.85; }
.scenarios { flex: 1.6 1 520px; min-width: 0; list-style: none; margin: 0; padding: 0; }
.scenario { border-top: 1px solid var(--line); padding: 20px 0; display: flex; flex-direction: column; gap: 6px; }
.scenario:first-child { border-top: 0; padding-top: 0; }
.scenario:last-child { padding-bottom: 0; }
.scenario__head { min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; }
.scenario__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.35; letter-spacing: -0.01em; }
:lang(zh) .scenario__title { letter-spacing: 0; }
.scenario__body { margin: 0; font-size: 15px; line-height: 1.65; color: var(--fg-2); text-wrap: pretty; }
:lang(zh) .scenario__body { line-height: 1.85; }
.not-listed { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.not-listed p { margin: 0; color: var(--fg-2); }

/* ---------- Cloud page ---------- */

/* ---------- Partner Program page ---------- */
.benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px 48px; }
.benefit { border-top: 1px solid var(--on-paper); padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.benefit h3 { font-size: 20px; }

/* ---------- 404 ---------- */
.not-found__alts { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--fg-2); }
.not-found__alts a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
