/* ==========================================================================
   Calisty International Trading Limited
   Design language: "engineering spec sheet" - thin rules, monospace callouts,
   generous whitespace, one industrial accent.
   No web fonts on purpose: the site must load fast inside mainland China,
   where Google Fonts is blocked. System stacks only.
   ========================================================================== */

:root {
  --ink:        #0E1116;
  --ink-2:      #1A1F27;
  --steel:      #5C6672;
  --steel-2:    #8A939E;
  --line:       #E3E6EA;
  --line-dark:  #2E3540;
  --bg:         #FFFFFF;
  --bg-alt:     #F6F7F9;
  --accent:     #C2410C;
  --accent-hi:  #E2570F;
  --accent-soft:#FFF2EA;

  --wrap: 1180px;
  --gut: 24px;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
          Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas,
          "Liberation Mono", monospace;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* Set by the inline head script when a zh/tr visitor arrives, cleared as soon
   as i18n.js has swapped the text. Stops English flashing before Chinese. */
.i18n-wait body { visibility: hidden; }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.18; color: var(--ink); font-weight: 640; letter-spacing: -0.018em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ---------- layout primitives ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.section { padding: 92px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section--dark { background: var(--ink); color: #C8CFD8; }
.section--dark h2, .section--dark h3 { color: #fff; }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section--dark .eyebrow::after { background: var(--line-dark); }

.h-display { font-size: clamp(2.4rem, 5.4vw, 3.9rem); letter-spacing: -0.032em; }
.h-section { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
.lede { font-size: clamp(1.02rem, 1.5vw, 1.16rem); color: var(--steel); max-width: 62ch; }
/* --steel is a light-background colour: on the dark ground it only reaches
   3.2:1, below the 4.5:1 AA floor. .hero and .pagehead are dark too but carry
   their own class, so they have to be named here as well. */
.section--dark .lede, .hero .lede, .pagehead .lede { color: #9BA5B1; }
.muted { color: var(--steel); }
.mt-32 { margin-top: 32px; }
.mt-20 { margin-top: 20px; }
.mt-48 { margin-top: 48px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  font-size: .94rem; font-weight: 560;
  border: 1px solid transparent;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  cursor: pointer;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hi); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.section--dark .btn--ghost, .hero .btn--ghost, .cta-band .btn--ghost { border-color: var(--line-dark); color: #fff; }
.section--dark .btn--ghost:hover, .hero .btn--ghost:hover, .cta-band .btn--ghost:hover { border-color: #6E7987; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__in { display: flex; align-items: center; gap: 20px; height: 68px; position: relative; }

.brand { display: flex; align-items: baseline; gap: 9px; margin-right: auto; }
.brand__mark { font-size: 1.06rem; font-weight: 700; letter-spacing: .13em; color: var(--ink); }
.brand__mark span { color: var(--accent); }
.brand__sub {
  font-family: var(--mono); font-size: 10px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--steel-2); white-space: nowrap;
}

.nav { display: flex; gap: 2px; }
/* `.nav{display:flex}` outranks the UA sheet's [hidden] rule - restore it. */
.nav[hidden] { display: none; }
.nav a {
  position: relative; padding: 9px 13px; font-size: .92rem; font-weight: 500;
  color: var(--steel); transition: color .18s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 580; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px;
  height: 2px; background: var(--accent);
}

.lang { display: flex; border: 1px solid var(--line); flex: none; }
.lang button {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  padding: 7px 9px; background: none; border: 0; cursor: pointer;
  color: var(--steel); transition: background .18s var(--ease), color .18s var(--ease);
}
.lang button + button { border-left: 1px solid var(--line); }
.lang button:hover { color: var(--ink); background: var(--bg-alt); }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.burger {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line);
  background: none; cursor: pointer; padding: 0; position: relative; flex: none;
}
.burger span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink);
  transition: transform .22s var(--ease), opacity .18s var(--ease);
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 19px; }
.burger span:nth-child(3) { top: 24px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #C8CFD8;
  padding: 108px 0 96px;
}
.hero__grid, .pagehead__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 90% at 78% 18%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 90% at 78% 18%, #000 10%, transparent 72%);
}
.hero__glow {
  position: absolute; width: 620px; height: 620px; right: -160px; top: -220px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(194,65,12,.30), transparent 62%);
}
.hero__in { position: relative; display: grid; grid-template-columns: 1.12fr .88fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--accent-hi); }
.hero .lede { margin-top: 22px; }
.hero .btn-row { margin-top: 34px; }

/* spec panel */
.spec { border: 1px solid var(--line-dark); background: rgba(255,255,255,.024); }
.spec__hd {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 18px; border-bottom: 1px solid var(--line-dark);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--steel-2);
}
.spec__dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.spec__row {
  display: grid; grid-template-columns: auto 1fr; gap: 16px;
  padding: 13px 18px; font-size: .875rem;
  border-bottom: 1px solid rgba(46,53,64,.55);
}
.spec__row:last-child { border-bottom: 0; }
.spec__k { color: var(--steel-2); }
.spec__v { font-family: var(--mono); font-size: .8rem; color: #E6EAEF; text-align: right; }

/* ---------- page head ---------- */
.pagehead { background: var(--ink); color: #C8CFD8; padding: 78px 0 70px; position: relative; overflow: hidden; }
.pagehead__in { position: relative; }
.pagehead h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 2.9rem); letter-spacing: -0.03em; }
.pagehead .lede { margin-top: 18px; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.cell { background: var(--bg); padding: 34px 30px; }
.section--alt .cell { background: var(--bg-alt); }
.cell__idx { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--accent); margin-bottom: 18px; }
.cell h3 { margin-bottom: 10px; font-size: 1.1rem; }
.cell p { font-size: .94rem; color: var(--steel); }

.icon { width: 38px; height: 38px; stroke: var(--accent); stroke-width: 1.4; fill: none;
        stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px; }

/* category card */
.cat { background: var(--bg); padding: 34px 30px; display: flex; flex-direction: column; }
.cat h3 { margin-bottom: 12px; font-size: 1.1rem; }
.cat > p { font-size: .94rem; color: var(--steel); }
.cat__list { margin-top: auto; padding-top: 20px; }
.cat__list-in { padding-top: 18px; border-top: 1px dashed var(--line); }
.cat__list li { font-size: .855rem; color: var(--steel); padding-left: 16px; position: relative; }
.cat__list li + li { margin-top: 7px; }
.cat__list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 1.5px; background: var(--accent);
}

/* ---------- process stepper ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.step { background: var(--ink); padding: 30px 26px; }
.step__n {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  color: var(--accent-hi); margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.step__n::after { content: ""; flex: 1; height: 1px; background: var(--line-dark); }
.step h3 { font-size: 1.02rem; margin-bottom: 9px; color: #fff; }
.step p { font-size: .89rem; color: #96A0AC; }

/* ---------- fact table ---------- */
.facts { width: 100%; border-collapse: collapse; border: 1px solid var(--line); }
.facts th, .facts td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: top; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 42%; font-weight: 500; color: var(--steel); background: var(--bg-alt); }
.facts td { font-family: var(--mono); font-size: .84rem; color: var(--ink); }
.facts td.is-text { font-family: var(--sans); font-size: .92rem; }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

/* ---------- office ---------- */
.office { border: 1px solid var(--line); padding: 30px; background: var(--bg); }
.office__tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.office h3 { font-size: 1.05rem; margin-bottom: 12px; }
.office address { font-style: normal; font-size: .93rem; color: var(--steel); line-height: 1.7; }

/* ---------- form ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .84rem; font-weight: 560; color: var(--ink); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: .94rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); background: var(--bg);
  transition: border-color .18s var(--ease); border-radius: 0;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field textarea { resize: vertical; min-height: 132px; }
.field--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
/* Honeypot - off-screen rather than display:none, which some bots skip. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: .82rem; color: var(--steel); }
.form__status { font-size: .89rem; padding: 12px 14px; }
.form__status[hidden] { display: none; }
.form__status.is-ok  { background: var(--accent-soft); color: var(--accent); border-left: 2px solid var(--accent); }
.form__status.is-err { background: #FEF2F2; color: #B91C1C; border-left: 2px solid #B91C1C; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #C8CFD8; padding: 76px 0; position: relative; overflow: hidden; }
.cta-band__in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: #fff; }
.cta-band p { margin-top: 12px; color: #9BA5B1; max-width: 52ch; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #8A939E; border-top: 1px solid var(--line-dark); padding: 60px 0 28px; }
.site-footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 48px; padding-bottom: 44px; border-bottom: 1px solid var(--line-dark); }
.site-footer h4 {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; margin-bottom: 18px; font-weight: 500;
}
.site-footer a { color: #8A939E; font-size: .9rem; transition: color .18s var(--ease); }
.site-footer a:hover { color: #fff; }
.site-footer li + li { margin-top: 9px; }
.site-footer address { font-style: normal; font-size: .88rem; line-height: 1.75; }
.site-footer__brand .brand__mark { color: #fff; }
.site-footer__brand p { font-size: .88rem; margin-top: 14px; max-width: 42ch; line-height: 1.7; }
.site-footer__bot {
  padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: #8A939E;
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero__in { grid-template-columns: 1fr; gap: 44px; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .grid--4, .grid--3, .steps { grid-template-columns: 1fr 1fr; }
  .brand__sub { display: none; }
}
@media (max-width: 780px) {
  .section { padding: 68px 0; }
  .hero { padding: 76px 0 68px; }
  .burger { display: block; }
  /* Absolute children resolve against the padding box, so 0/0 already spans
     the full header width - the gutter comes from this element's padding. */
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 4px var(--gut) 14px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px -16px rgba(14,17,22,.3);
  }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a[aria-current="page"]::after { left: 0; right: auto; width: 20px; bottom: 8px; }
  .grid--4, .grid--3, .grid--2, .steps { grid-template-columns: 1fr; }
  .field--2 { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr; }
}
