/* Ascendium Group — site styles. Fonts are declared in /assets/fonts.css. */

/* ---------- Tokens ---------- */
:root {
  --ink: #111111;
  --ink-2: #3A3A3A;
  --muted: #5F5B53;
  --line: #E4E2DC;
  --line-2: #D3D0C7;
  --paper: #FAFAF8;
  --panel: #F0EFEA;
  --white: #FFFFFF;
  --accent: #2B4BFF;
  --accent-hover: #1F3AD6;
  --accent-soft: #8A9CFF;
  --dark: #111111;
  --dark-2: #0A0A0A;
  --on-dark: #F2F2F0;
  --on-dark-muted: #B8B8B4;
  --field: #1C1C1C;
  --field-line: #3A3A3A;

  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-logo: "Syne", "IBM Plex Sans", sans-serif;
  --eyebrow-track: 0.16em;
  --container: 1240px;
  --gutter: 24px;
  --section: 112px;
}
html[lang="ar"] {
  --font: "IBM Plex Sans Arabic", "IBM Plex Sans", "Segoe UI", Tahoma, sans-serif;
  --eyebrow-track: 0;
}
html[lang^="zh"] {
  --font: "IBM Plex Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --eyebrow-track: 0.08em;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.visually-hidden {
  position: absolute !important; 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; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--panel { background: var(--panel); }
.section--white { background: var(--white); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.stack { display: flex; flex-direction: column; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: var(--eyebrow-track);
  text-transform: uppercase; color: var(--accent);
}
.section--dark .eyebrow, .hero .eyebrow { color: var(--accent-soft); font-weight: 500; }
.h1 { font-size: clamp(40px, 5.5vw, 72px); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
.h2 { font-size: clamp(30px, 4vw, 50px); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.h3 { font-size: clamp(26px, 2.6vw, 32px); font-weight: 600; line-height: 1.2; }
html[lang="ar"] .h1, html[lang="ar"] .h2, html[lang^="zh"] .h1, html[lang^="zh"] .h2 { letter-spacing: 0; line-height: 1.3; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.7; }
.section-head { gap: 16px; max-width: 760px; margin-bottom: 56px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-hover); color: var(--white); }
.btn--ghost { border-color: var(--muted); color: var(--on-dark); }
.btn--ghost:hover { border-color: var(--on-dark); color: var(--on-dark); }
.btn--ink { background: var(--ink); color: var(--white); min-height: 44px; padding: 0 22px; font-size: 15px; }
.btn--ink:hover { background: var(--accent); color: var(--white); }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent);
  text-underline-offset: 4px;
}
.link-arrow svg { flex-shrink: 0; }
[dir="rtl"] .link-arrow svg, [dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); direction: ltr; }
.logo:hover { color: var(--ink); }
.logo__word { font-family: var(--font-logo); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.logo__word span { font-weight: 500; color: var(--accent); }
.logo--neg { color: var(--on-dark); gap: 10px; }
.logo--neg:hover { color: var(--on-dark); }
.logo--neg .logo__word { font-size: 18px; }
.logo--neg .logo__word span { color: var(--accent-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 248, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-bar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-right { display: flex; align-items: center; gap: 28px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink-2); }
.nav a:not(.btn):hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.lang { display: flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.lang a {
  min-width: 44px; height: 34px; padding: 0 10px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500; text-decoration: none; color: var(--ink-2);
}
.lang a:hover { color: var(--accent); }
.lang a[aria-current="true"] { background: var(--ink); color: var(--white); }
.lang--menu { display: none; }

.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; color: var(--ink); cursor: pointer; align-items: center; justify-content: center;
}
.menu-btn .i-close { display: none; }
.nav-open .menu-btn .i-open { display: none; }
.nav-open .menu-btn .i-close { display: block; }

/* ---------- Hero ---------- */
.hero { background: var(--dark); color: var(--on-dark); }
.hero__inner { padding-block: 120px 112px; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.hero__text { flex: 1 1 560px; gap: 32px; min-width: 0; }
.hero__text .h1 { max-width: 860px; }
.hero__text .lead { color: var(--on-dark-muted); max-width: 640px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 8px; }
.hero__mark { width: 260px; height: 260px; flex-shrink: 0; }
.hero--sub .hero__inner { padding-block: 96px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; letter-spacing: var(--eyebrow-track); text-transform: uppercase; color: var(--accent-soft); }
.crumbs a { color: var(--accent-soft); }
.crumbs a:hover { color: var(--on-dark); }

/* ---------- Stats ---------- */
.stats { border-bottom: 1px solid var(--line); background: var(--paper); }
.stats__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { padding: 40px 32px; gap: 8px; }
.stat:first-child { padding-inline-start: 0; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat__n { font-size: 36px; font-weight: 600; line-height: 1.2; }
.stat__l { font-size: 15px; color: var(--muted); }

/* ---------- Services ---------- */
.card { background: var(--panel); padding: 48px; border-radius: 20px; gap: 32px; }
.card__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; }
.badge { font-size: 13px; color: var(--muted); border: 1px solid var(--line-2); padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.card__desc { font-size: 17px; line-height: 1.7; color: var(--ink-2); max-width: 720px; }
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px 40px; }
.area { gap: 8px; }
.area__head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.area__num { font-size: 15px; font-weight: 500; color: var(--accent); }
.area__title { font-size: 18px; font-weight: 600; }
.area li { padding: 12px 0; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.area .link-arrow { margin-top: 12px; align-self: flex-start; font-size: 15px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.step { gap: 14px; border-top: 2px solid var(--ink); padding-top: 24px; }
.step__num { font-size: 20px; font-weight: 500; color: var(--accent); }
.step__title { font-size: 20px; font-weight: 600; }
.step p { color: var(--muted); line-height: 1.7; }

/* ---------- About ---------- */
.split { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.split > * { flex: 1 1 380px; min-width: 0; }
.about__text { gap: 24px; padding-top: 8px; }
.about__text p { font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }
.tag { font-size: 14px; padding: 8px 16px; border-radius: 999px; background: var(--panel); color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact__intro { gap: 24px; }
.contact__intro .lead { color: var(--on-dark-muted); font-size: 17px; max-width: 460px; }
.contact__mail {
  align-self: flex-start; font-size: clamp(22px, 2.4vw, 28px); font-weight: 500;
  color: var(--on-dark); text-decoration: none; border-bottom: 1px solid var(--muted); padding-bottom: 4px; direction: ltr;
}
.contact__mail:hover { color: var(--accent-soft); border-color: var(--accent-soft); }
.contact__city { font-size: 15px; color: var(--on-dark-muted); }

.form { gap: 20px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { gap: 8px; }
.field label { font-size: 14px; color: var(--on-dark-muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--on-dark);
  background: var(--field); border: 1px solid var(--field-line); border-radius: 12px;
}
.field input { height: 52px; padding: 0 16px; }
.field textarea { padding: 14px 16px; min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent-soft); outline-offset: 1px; border-color: transparent; }
.form__hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__status { font-size: 15px; min-height: 1.6em; }
.form__status.is-ok { color: #7FD8A8; }
.form__status.is-err { color: #FF9C8A; }
.cf-turnstile:empty { display: none; }

/* ---------- Subpage ---------- */
.markets { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.panel { background: var(--white); border-radius: 20px; padding: 40px; gap: 20px; }
.panel__label { font-size: 14px; font-weight: 600; letter-spacing: var(--eyebrow-track); text-transform: uppercase; color: var(--accent); }
.panel li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 18px; font-weight: 500; }
.cta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 64px; }
.cta__text { flex: 1 1 480px; gap: 20px; }
.cta__text .lead { color: var(--on-dark-muted); font-size: 17px; max-width: 560px; }
.cta__actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta__actions .mail { color: var(--on-dark-muted); font-size: 15px; direction: ltr; }
.cta__actions .mail:hover { color: var(--on-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-2); color: var(--on-dark-muted); font-size: 14px; }
.footer-bar { padding-block: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.site-footer a:not(.logo) { color: var(--on-dark-muted); direction: ltr; }
.site-footer a:not(.logo):hover { color: var(--on-dark); }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: flex; align-items: center; }
.notfound .stack { gap: 24px; align-items: flex-start; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  :root { --section: 88px; }
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px;
  }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .btn { margin-top: 16px; min-height: 52px; font-size: 16px; }
  .nav-open .nav { display: flex; }
  .header-right { gap: 12px; }
  .hero__mark { width: 180px; height: 180px; }
  .card { padding: 32px; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; --section: 72px; }
  .header-bar { min-height: 64px; }
  .lang--bar { display: none; }
  .lang--menu { display: flex; align-self: flex-start; margin-top: 16px; }
  .lang--menu a { height: 40px; min-width: 52px; font-size: 14px; border-bottom: 0 !important; padding: 0 12px !important; }
  .logo__word { font-size: 19px; }
  .logo svg { width: 28px; height: 28px; }
  .hero__inner { padding-block: 72px 80px; }
  .hero--sub .hero__inner { padding-block: 64px 72px; }
  .hero__mark { display: none; }
  .stats__grid { grid-template-columns: 1fr; }
  .stat, .stat:first-child { padding: 24px 0; }
  .stat + .stat { border-inline-start: 0; border-top: 1px solid var(--line); }
  .card { padding: 24px; border-radius: 16px; }
  .panel { padding: 24px; border-radius: 16px; }
  .form__row { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 40px; }
  .about__text p { font-size: 17px; }
}
@media (max-width: 380px) {
  .lang a { min-width: 38px; padding: 0 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
