/* cictan.com: a sibling of bonrock.com. Dark ink header, light page, thin rules, white cards,
   Sora for headings and UI, Source Serif 4 for reading. Cictan keeps its own violet accent.
   Phone first: 16px gutters, 44px touch targets. Fonts: SIL Open Font License, self-hosted. */
@font-face { font-family: "Sora"; src: url(/assets/fonts/sora-latin.woff2) format("woff2"); font-weight: 100 800; font-display: swap;
  unicode-range: u+00??, 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"; src: url(/assets/fonts/sora-latin-ext.woff2) format("woff2"); font-weight: 100 800; font-display: swap;
  unicode-range: u+0100-02ba, u+02bd-02c5, u+02c7-02cc, u+02ce-02d7, u+02dd-02ff, u+1e00-1e9f, u+20a0-20ab, u+20ad-20c0, u+2c60-2c7f, u+a720-a7ff; }
@font-face { font-family: "Source Serif 4"; src: url(/assets/fonts/source-serif-4-latin.woff2) format("woff2"); font-weight: 200 900; font-display: swap;
  unicode-range: u+00??, 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: "Source Serif 4"; src: url(/assets/fonts/source-serif-4-latin-ext.woff2) format("woff2"); font-weight: 200 900; font-display: swap;
  unicode-range: u+0100-02ba, u+02bd-02c5, u+02c7-02cc, u+02ce-02d7, u+02dd-02ff, u+1e00-1e9f, u+20a0-20ab, u+20ad-20c0, u+2c60-2c7f, u+a720-a7ff; }

:root {
  --ink: #1b1230;        /* header, headings, dark bands */
  --body: #453e57;       /* 9.6:1 on white */
  --muted: #615a74;      /* 6.4:1 on white, 6.0:1 on --bg */
  --bg: #f7f6fb;
  --tint: #f0edf8;
  --surface: #ffffff;
  --rule: #e6e2f0;
  --field: #8e86a3;      /* 3.3:1 field borders */
  --accent: #6d28d9;     /* Cictan violet: 7.1:1 on white, white text on it is fine */
  --accent-hover: #5b21b6;
  --accent-soft: #c4b5fd;/* accent on ink */
  --on-ink: #ffffff;
  --on-ink-muted: #cfc8e2;
  --cjk-sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei";
  --cjk-serif: "Songti SC", "Noto Serif SC", "SimSun";
  --sans: "Sora", var(--cjk-sans), system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", var(--cjk-serif), Georgia, serif;
  color-scheme: light;
}
:lang(zh-Hans) { --serif: "Source Serif 4", var(--cjk-sans), Georgia, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--body); font-family: var(--serif); font-size: 17px; line-height: 1.65; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-family: var(--sans); font-size: 14px; }
.skip:focus { top: 12px; }
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: 16px; }

/* Header: dark ink bar like bonrock.com, with the white Cictan logo. */
.top { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--on-ink); }
.top-in { max-width: 1160px; margin-inline: auto; padding: 0 16px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 34px; width: auto; }
.nav { display: none; gap: 30px; font-family: var(--sans); font-size: 14px; font-weight: 500; }
.nav a, .mnav a { color: var(--on-ink-muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"], .mnav a:hover, .mnav a[aria-current="page"] { color: var(--on-ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent-soft); text-underline-offset: 8px; text-decoration-thickness: 2px; }
.top-end { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; border: 1px solid rgb(255 255 255 / .22); border-radius: 999px; overflow: hidden; font-family: var(--sans); font-size: 12px; font-weight: 500; }
.lang a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; color: rgb(255 255 255 / .82); text-decoration: none; }
.lang a:hover { background: rgb(255 255 255 / .1); color: #fff; }
.lang a[aria-current="true"] { background: #fff; color: var(--ink); }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; color: #fff; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s ease; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
.mnav { border-top: 1px solid rgb(255 255 255 / .1); padding: 8px 16px 16px; font-family: var(--sans); font-size: 16px; }
.mnav a { display: flex; align-items: center; min-height: 44px; }
.mnav[hidden] { display: none; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: #fff; font-family: var(--sans); font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background-color .16s ease, border-color .16s ease; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--tint); color: var(--ink); border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--tint); color: var(--ink); border-color: var(--tint); }

/* Hero */
.hero { padding: 40px 0 36px; }
.hero-in { display: grid; gap: 28px; }
.hero-in > * { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }
.hero h1 { font-family: var(--sans); font-weight: 400; color: var(--ink); font-size: 30px; line-height: 1.2; letter-spacing: -.02em; margin: 14px 0 14px; text-wrap: balance; max-width: 20ch; }
:lang(zh-Hans) .hero h1 { max-width: 16em; letter-spacing: 0; }
.hero-sm h1 { max-width: 24ch; }
.lede { font-size: 17px; color: var(--body); max-width: 640px; }
.plate { background: var(--ink); color: var(--on-ink); border-radius: 14px; padding: 26px 24px; position: relative; overflow: hidden; }
.plate::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; border: 36px solid rgb(196 181 253 / .12); pointer-events: none; }
.plate-label { font-family: var(--sans); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 14px; }
.plate ol { counter-reset: p; display: grid; gap: 14px; position: relative; z-index: 1; }
.plate li { counter-increment: p; display: grid; grid-template-columns: 34px 1fr; gap: 8px; font-family: var(--sans); font-size: 16px; line-height: 1.5; }
.plate li::before { content: counter(p, decimal-leading-zero); color: var(--accent-soft); font-size: 13px; padding-top: 2px; }
.plate li + li { border-top: 1px solid rgb(255 255 255 / .12); padding-top: 14px; }

/* Sections */
.sec { padding: 44px 0; border-top: 1px solid var(--rule); }
.tint { background: var(--tint); }
.label { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.title { font-family: var(--sans); font-weight: 400; color: var(--ink); font-size: 26px; line-height: 1.25; letter-spacing: -.01em; margin-bottom: 10px; text-wrap: balance; }
.h3 { font-family: var(--sans); font-weight: 600; color: var(--ink); font-size: 19px; line-height: 1.35; margin-bottom: 8px; }
.prose { max-width: 660px; }
.prose + .prose { margin-top: 14px; }
.more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 14px; font-family: var(--sans); font-size: 15px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 6px; }
.more:hover { color: var(--ink); text-decoration-color: var(--accent); }

.grid { display: grid; gap: 14px; margin-top: 22px; }
.card { display: block; height: 100%; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 22px 20px; text-decoration: none; color: var(--body); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.card:hover { border-color: #cbbcf0; box-shadow: 0 8px 22px rgb(27 18 48 / .07); color: var(--body); }
.card h3, .plain h3, .steps h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.35; margin-bottom: 6px; }
.card p, .plain p, .steps p { font-size: 16px; line-height: 1.6; }
.num { display: inline-block; font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--accent); margin-bottom: 10px; }
.plain li { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 22px 20px; }
.tint .plain li { background: var(--surface); }

.steps { counter-reset: s; display: grid; gap: 14px; margin-top: 22px; }
.steps li { counter-increment: s; position: relative; padding: 0 0 0 52px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 1px solid var(--rule);
  display: grid; place-items: center; font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--accent); }

/* AI services page */
.svcs { display: grid; gap: 0; }
.svc { display: grid; gap: 10px; padding: 28px 0; border-top: 1px solid var(--rule); scroll-margin-top: 80px; }
.svc:first-child { border-top: 0; padding-top: 0; }
.svc h2 { font-family: var(--sans); font-weight: 500; font-size: 22px; line-height: 1.3; color: var(--ink); margin-bottom: 6px; }
.svc .num { margin: 0; }
.ticks { display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 22px; font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* About and contact */
.two { display: grid; gap: 28px; }
.two > * { min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 24px 20px; }
.facts { display: grid; gap: 0; margin-top: 14px; border-top: 1px solid var(--rule); }
.facts div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-family: var(--sans); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts dd { color: var(--ink); overflow-wrap: anywhere; }

.form label { display: block; font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--ink); margin: 16px 0 6px; }
.form h2 + label { margin-top: 8px; }
.form input, .form select, .form textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--field); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.form textarea { resize: vertical; min-height: 140px; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form [aria-invalid="true"] { border-color: #b42318; }
.form .btn { margin-top: 20px; }
.form-note { margin-top: 12px; font-size: 15px; min-height: 1.5em; }
.form-note.ok { color: #116b3a; }
.form-note.err { color: #b42318; }

/* Call to action band */
.cta { background: var(--ink); color: var(--on-ink); padding: 44px 0; }
.cta-in { display: grid; gap: 20px; align-items: center; }
.cta h2 { font-family: var(--sans); font-weight: 400; font-size: 24px; line-height: 1.3; color: #fff; margin-bottom: 8px; text-wrap: balance; }
.cta p { color: var(--on-ink-muted); max-width: 620px; }
.cta .btn { justify-self: start; }

/* Footer */
.foot { background: var(--bg); border-top: 1px solid var(--rule); padding: 40px 0 0; font-family: var(--sans); font-size: 14px; }
.foot-in { display: grid; gap: 28px; }
.foot-brand img { height: 34px; width: auto; margin-bottom: 12px; }
.foot-brand p { max-width: 360px; color: var(--muted); line-height: 1.6; }
.foot h2 { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.foot li { color: var(--muted); line-height: 1.5; }
.foot ul a { display: inline-flex; align-items: center; min-height: 32px; color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.foot ul a:hover { color: var(--accent); text-decoration: underline; }
.foot-legal { margin-top: 32px; padding-bottom: 28px; font-size: 13px; color: var(--muted); }
.foot-legal p { padding-top: 18px; border-top: 1px solid var(--rule); }

@media (min-width: 720px) {
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
  .foot-in { grid-template-columns: 1.6fr 1fr 1.2fr; }
}
@media (min-width: 900px) {
  body { font-size: 18px; }
  .wrap, .top-in { padding-inline: 24px; }
  .nav { display: flex; }
  .menu-btn, .mnav { display: none !important; }
  .hero { padding: 72px 0 64px; }
  .hero-sm { padding: 64px 0 52px; }
  .hero-in { grid-template-columns: 1.25fr .85fr; align-items: center; gap: 56px; }
  .hero h1 { font-size: 44px; }
  .lede { font-size: 19px; }
  .plate { padding: 32px 30px; }
  .sec { padding: 64px 0; }
  .title { font-size: 32px; }
  .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps li { padding: 52px 0 0; }
  .steps li::before { top: 0; }
  .svc { grid-template-columns: 56px minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; padding: 36px 0; }
  .svc h2 { font-size: 24px; }
  .svc .num { padding-top: 6px; }
  .two { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .panel { padding: 30px 28px; }
  .facts div { grid-template-columns: 140px minmax(0, 1fr); gap: 16px; }
  .cta { padding: 60px 0; }
  .cta-in { grid-template-columns: 1fr auto; gap: 40px; }
  .cta h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
