/* =========================================================
   Qubiq AI — site styles (single hand-written file, no framework)

   Look: light, calm, editorial. Warm paper background, ink text,
   one accent (indigo -> violet). Dark blocks are used for contrast.
   Kept from the Robor layout: giant uppercase headline, floating
   nav pill, cut-corner (clip-path) cards and buttons.

   CONTENTS (search for the section title)
     tokens ........ :root colours, fonts, sizes
     base .......... reset, typography, .container, .section
     shapes ........ .cut / .cut-bl corner cuts, buttons
     header ........ nav pill, logo, burger, mobile drawer
     hero .......... aurora, grain, headline, product stage, badge
     marquee ....... scrolling capability strip
     (legacy v1) ... .cards/.card and .principle(s): no longer used on
                     the home page (replaced by bento / pcards below);
                     safe to delete if you do not need them
     process / use cases / engagement / faq / cta / footer
     reveal ........ scroll-in animation (.reveal -> .reveal.in)
     responsive .... breakpoints 1080px and 720px
     inner pages ... page hero, prose, values, services, posts, form
     v2 ............ language switch, service detail, articles,
                     Chinese typography overrides (html[lang="zh-CN"])
     bento ......... the four coloured service cards + SVG animations
     v3 ............ principles, process cards, cases, plans, faq,
                     big service blocks, detail/about components

   Rules of thumb
     - Colours live in :root; do not hard-code new ones if a token fits.
     - Anything animated has a prefers-reduced-motion fallback near
       the "reveal" section.
     - Add Chinese-specific sizing under "Chinese typography".
   ========================================================= */

:root {
  --bg: #F6F4F0;
  --bg-2: #EFECE6;
  --surface: #FFFFFF;
  --ink: #0E0F13;
  --ink-2: #2A2C34;
  --muted: #6B6F7A;
  --line: rgba(14, 15, 19, .10);
  --accent: #5B5BF0;
  --accent-2: #9B6BFF;
  --accent-soft: #ECEBFF;
  --mint: #BDEBDD;
  --peach: #FFD9C7;
  --lilac: #D9D3FF;
  --dark: #0E0F13;
  --dark-2: #171922;
  --font-title: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
  --cut: 22px;
  --radius: 28px;
  --container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-title); margin: 0; line-height: 1.05; letter-spacing: -.02em; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
.section { padding: 120px 0; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 13px/1 var(--font-title); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section-title { font-size: clamp(34px, 4.6vw, 64px); font-weight: 600; margin-top: 18px; max-width: 16ch; }
.section-lead { color: var(--muted); font-size: 19px; max-width: 52ch; margin-top: 22px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: 64px; }

/* ---------- cut-corner shapes ---------- */
.cut { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.cut-bl { clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut)); }

/* ---------- buttons ---------- */
.btn {
  --cut: 14px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 28px; border: 0; cursor: pointer;
  font: 600 15px/1 var(--font-title); letter-spacing: .01em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.btn svg { width: 16px; height: 16px; transition: transform .25s ease; }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); clip-path: none; border-radius: 999px; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); }

/* ---------- header ---------- */
.header { position: fixed; inset: 18px 0 auto; z-index: 50; transition: transform .35s ease; }
.header.hide { transform: translateY(-140%); }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 8px 30px rgba(14, 15, 19, .06);
  padding: 12px 14px 12px 26px; border-radius: 26px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 28px/1 var(--font-title); letter-spacing: -.04em; }
.logo img { width: 34px; height: 34px; }
.logo sup {
  font: 700 11px/1 var(--font-title); letter-spacing: .08em; color: var(--accent);
  background: var(--accent-soft); padding: 4px 7px; border-radius: 99px; margin-left: 2px; position: relative; top: -8px;
}
.menu { display: flex; gap: 6px; }
.menu a { padding: 10px 16px; border-radius: 99px; font: 500 15px/1 var(--font-title); color: var(--ink-2); transition: background .2s; }
.menu a:hover { background: var(--bg); }
.nav .btn { padding: 15px 24px; }
.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--ink); color: #fff; cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; background: #fff; margin: 4px auto; border-radius: 2px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 170px 0 0; overflow: hidden; }
.aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .75; animation: drift 22s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 620px; height: 620px; background: var(--lilac); left: -120px; top: -80px; }
.aurora i:nth-child(2) { width: 560px; height: 560px; background: var(--peach); right: -100px; top: 40px; animation-delay: -6s; }
.aurora i:nth-child(3) { width: 480px; height: 480px; background: var(--mint); left: 38%; top: 260px; opacity: .55; animation-delay: -12s; }
@keyframes drift { to { transform: translate3d(60px, 40px, 0) scale(1.12); } }
.grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero .container { position: relative; z-index: 2; }
.hero-title {
  font-size: clamp(44px, 8.6vw, 136px); font-weight: 700; text-transform: uppercase;
  line-height: .94; letter-spacing: -.035em; color: var(--ink);
}
.hero-title .line { display: flex; align-items: center; gap: .18em; flex-wrap: wrap; }
.pill {
  display: inline-block; width: 2.3em; height: .74em; border-radius: 99px; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 20% 30%, #FFB48A 0 18%, transparent 46%),
    radial-gradient(circle at 78% 24%, #7C7CFF 0 20%, transparent 50%),
    radial-gradient(circle at 56% 90%, #6FE0C0 0 22%, transparent 52%),
    radial-gradient(circle at 90% 80%, #FF8FB8 0 16%, transparent 46%),
    #5B5BF0;
  background-size: 160% 160%; animation: flow 9s ease-in-out infinite alternate;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 12px 40px rgba(91, 91, 240, .25);
}
.pill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(-100%); animation: shine 5s ease-in-out infinite; }
@keyframes flow { to { background-position: 100% 100%; } }
@keyframes shine { 60%, 100% { transform: translateX(100%); } }
.hero-sub { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-top: 44px; }
.hero-copy { max-width: 540px; margin-left: clamp(0px, 8vw, 120px); }
.hero-copy p { font-size: 20px; color: var(--ink-2); }
.hero-copy .btn { margin-top: 30px; }
.hero-note { text-align: right; font: 500 15px/1.5 var(--font-title); color: var(--ink-2); display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.hero-note svg { width: 150px; height: 90px; }

/* product stage (replaces photographic hero) */
.stage { position: relative; z-index: 2; margin-top: 48px; }
.stage-panel {
  position: relative; background: var(--dark); border-radius: 44px; color: #fff; overflow: hidden;
  padding: 56px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; min-height: 520px;
}
.stage-panel::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(520px 320px at 12% 0%, rgba(91, 91, 240, .55), transparent 70%),
    radial-gradient(520px 360px at 100% 100%, rgba(155, 107, 255, .35), transparent 70%),
    radial-gradient(360px 260px at 70% 10%, rgba(255, 180, 138, .18), transparent 70%);
}
.stage-panel::after {
  content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%);
}
.glass { position: relative; z-index: 1; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.run { padding: 28px; }
.run-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.tag { font: 600 12px/1 var(--font-title); letter-spacing: .1em; text-transform: uppercase; color: #BFC1FF; display: inline-flex; align-items: center; gap: 8px; }
.tag .live { width: 8px; height: 8px; border-radius: 50%; background: #6FE0C0; box-shadow: 0 0 0 0 rgba(111, 224, 192, .6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(111, 224, 192, 0); } 100% { box-shadow: 0 0 0 0 rgba(111, 224, 192, 0); } }
.run h3 { font-size: 26px; font-weight: 600; margin: 10px 0 24px; letter-spacing: -.02em; }
.steps { position: relative; display: grid; gap: 14px; }
.steps::before { content: ""; position: absolute; left: 15px; top: 14px; bottom: 14px; width: 2px; background: rgba(255, 255, 255, .12); }
.step { position: relative; display: flex; align-items: center; gap: 16px; padding: 10px 14px 10px 0; font: 500 16px/1.3 var(--font-title); }
.step .dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--dark-2); border: 1.5px solid rgba(255, 255, 255, .2); font-size: 14px; }
.step.done .dot { background: #6FE0C0; border-color: #6FE0C0; color: var(--dark); }
.step.run-now .dot { border-color: var(--accent-2); background: rgba(155, 107, 255, .25); }
.step.run-now .dot::after { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; border-top-color: transparent; animation: spin 1s linear infinite; }
.step small { margin-left: auto; color: #9EA2B5; font: 500 13px/1 var(--font-body); }
.step.wait { color: #8C90A3; }
@keyframes spin { to { transform: rotate(360deg); } }
.shimmer { background: linear-gradient(90deg, #fff 30%, #9B6BFF 50%, #fff 70%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmerText 2.4s linear infinite; }
@keyframes shimmerText { to { background-position: -200% 0; } }
.side { position: relative; z-index: 1; display: grid; gap: 22px; align-content: start; }
.metric { padding: 26px 28px; }
.metric b { display: block; font: 600 54px/1 var(--font-title); letter-spacing: -.04em; margin: 14px 0 4px; }
.metric span { color: #A7AABD; font-size: 15px; }
.spark { width: 100%; height: 70px; margin-top: 14px; }
.spark path.line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s .4s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.approve { padding: 22px 28px; display: flex; align-items: center; gap: 16px; }
.avatar { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, var(--peach), var(--accent-2)); flex: none; }
.approve p { font-size: 15px; color: #D5D7E6; line-height: 1.4; }
.approve p strong { color: #fff; display: block; font: 600 16px/1.3 var(--font-title); }
.approve .chip { margin-left: auto; font: 600 12px/1 var(--font-title); padding: 9px 12px; border-radius: 99px; background: rgba(255, 255, 255, .12); white-space: nowrap; }
.caption { position: absolute; z-index: 2; left: 56px; bottom: 18px; color: rgba(255, 255, 255, .4); font-size: 12px; }

/* rotating badge */
.badge {
  position: absolute; z-index: 5; top: -86px; right: 4%; width: 170px; height: 170px; border-radius: 50%;
  background: var(--bg); display: grid; place-items: center; box-shadow: 0 0 0 10px var(--bg);
}
.badge svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 24s linear infinite; }
.badge svg.ring text { font: 600 12.6px var(--font-title); letter-spacing: .22em; fill: var(--ink); text-transform: uppercase; }
.badge a { width: 86px; height: 86px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; transition: transform .3s, background .3s; }
.badge a:hover { transform: scale(1.08); background: var(--accent); }
.badge a svg { width: 26px; height: 26px; }

/* ---------- marquee ---------- */
.marquee { margin-top: 64px; background: var(--dark); color: #fff; padding: 26px 0; overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: scroll 38s linear infinite; }
.marquee-track span { font: 500 clamp(20px, 2.4vw, 30px)/1 var(--font-title); letter-spacing: -.01em; padding: 0 34px; display: inline-flex; align-items: center; gap: 68px; white-space: nowrap; color: #D5D7E6; }
.marquee-track span::after { content: "✦"; color: var(--accent-2); font-size: .7em; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- services ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card { --cut: 34px; background: var(--surface); padding: 40px; display: flex; flex-direction: column; gap: 22px; min-height: 420px; position: relative; transition: transform .35s ease, box-shadow .35s; }
.card:hover { transform: translateY(-6px); }
.card .num { font: 600 14px/1 var(--font-title); color: var(--muted); letter-spacing: .1em; }
.card h3 { font-size: 34px; font-weight: 600; max-width: 14ch; }
.card p { color: var(--muted); max-width: 42ch; }
.card .art { position: relative; height: 150px; border-radius: 20px; overflow: hidden; margin-bottom: 6px; background: var(--accent-soft); }
.card.c2 .art { background: #FFEDE3; }
.card.c3 .art { background: #DFF5EE; }
.card.c4 .art { background: #EAE6FF; }
.card ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.card li { font: 500 13px/1 var(--font-title); padding: 9px 13px; border-radius: 99px; background: var(--bg); color: var(--ink-2); }
.more { display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1 var(--font-title); color: var(--ink); }
.more svg { width: 16px; height: 16px; transition: transform .25s; }
.more:hover svg { transform: translate(4px, -4px); }
/* art primitives */
.art svg { width: 100%; height: 100%; }

/* ---------- about / principles (dark) ---------- */
.dark { background: var(--dark); color: #fff; border-radius: 56px; margin: 0 14px; overflow: hidden; }
.dark .section-lead { color: #A7AABD; }
.dark .eyebrow { color: #B9B8FF; }
.dark::before { content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -200px; background: radial-gradient(circle, rgba(91, 91, 240, .45), transparent 65%); filter: blur(20px); }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; position: relative; }
.principles { display: grid; gap: 0; }
.principle { display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding: 30px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.principle:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.principle .n { font: 600 15px/1 var(--font-title); color: #8F8CFF; padding-top: 8px; }
.principle h3 { font-size: 28px; font-weight: 600; margin-bottom: 10px; }
.principle p { color: #A7AABD; max-width: 52ch; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 60px; position: relative; }
.stat { padding: 28px; border-radius: 24px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.stat b { display: block; font: 600 clamp(34px, 3.4vw, 52px)/1 var(--font-title); letter-spacing: -.04em; background: linear-gradient(120deg, #fff, #B9B8FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 10px; color: #A7AABD; font-size: 15px; }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 14px); opacity: .25; }
.pstep { padding-right: 36px; position: relative; }
.pstep .bubble { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); box-shadow: inset 0 0 0 2px var(--ink); font: 600 18px/1 var(--font-title); margin-bottom: 30px; position: relative; transition: all .3s; }
.pstep:hover .bubble { background: var(--ink); color: #fff; }
.pstep h3 { font-size: 26px; font-weight: 600; margin-bottom: 12px; }
.pstep p { color: var(--muted); font-size: 16px; }
.pstep .dur { display: inline-block; margin-top: 18px; font: 600 12px/1 var(--font-title); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 8px 12px; border-radius: 99px; }

/* ---------- use cases ---------- */
.cases { display: grid; grid-template-columns: repeat(12, 1fr); gap: 26px; }
.case { --cut: 34px; position: relative; overflow: hidden; min-height: 440px; padding: 36px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; isolation: isolate; transition: transform .35s; }
.case:hover { transform: translateY(-6px); }
.case.a { grid-column: span 7; background: linear-gradient(140deg, #2E2C8F, #5B5BF0 60%, #9B6BFF); }
.case.b { grid-column: span 5; background: linear-gradient(150deg, #123B35, #2F8F7A 70%, #6FE0C0); }
.case.c { grid-column: span 5; background: linear-gradient(150deg, #5A2A18, #D9703E 70%, #FFB48A); }
.case.d { grid-column: span 7; background: linear-gradient(140deg, #1B1D2A, #3A3F66 70%, #6D74C7); }
.case svg.deco { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
.case .meta { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.case .meta span { font: 600 12px/1 var(--font-title); letter-spacing: .08em; text-transform: uppercase; padding: 8px 12px; border-radius: 99px; background: rgba(255, 255, 255, .18); backdrop-filter: blur(8px); }
.case h3 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; max-width: 18ch; }
.case p { color: rgba(255, 255, 255, .82); margin-top: 12px; max-width: 46ch; font-size: 16px; }

/* ---------- engagement ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.plan { --cut: 34px; background: var(--surface); padding: 40px 36px; display: flex; flex-direction: column; gap: 20px; position: relative; }
.plan.featured { background: var(--ink); color: #fff; }
.plan .kicker { font: 600 12px/1 var(--font-title); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.plan.featured .kicker { color: #B9B8FF; }
.plan h3 { font-size: 36px; font-weight: 600; }
.plan .when { font: 500 15px/1.3 var(--font-title); color: var(--muted); }
.plan.featured .when { color: #A7AABD; }
.plan p.d { color: var(--muted); }
.plan.featured p.d { color: #C3C5D6; }
.plan ul { display: grid; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); margin-top: 4px; }
.plan.featured ul { border-color: rgba(255, 255, 255, .15); }
.plan li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.plan li svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--accent); }
.plan.featured li svg { color: #8F8CFF; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.ribbon { position: absolute; top: 28px; right: 52px; font: 600 11px/1 var(--font-title); letter-spacing: .1em; text-transform: uppercase; background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #fff; padding: 8px 12px; border-radius: 99px; }

/* ---------- faq ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.faq details { border-top: 1px solid var(--line); padding: 26px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; font: 600 22px/1.3 var(--font-title); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 36px; height: 36px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); position: relative; transition: transform .3s, background .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: .3s; }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i { background: var(--ink); transform: rotate(180deg); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: #fff; }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq details p { color: var(--muted); margin-top: 16px; max-width: 60ch; }

/* ---------- CTA + footer ---------- */
.cta { position: relative; overflow: hidden; border-radius: 48px; padding: 100px 40px; text-align: center; color: #fff; background: var(--dark); isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: -20%; z-index: -1; background: radial-gradient(40% 50% at 20% 30%, rgba(91, 91, 240, .8), transparent 70%), radial-gradient(40% 50% at 80% 70%, rgba(155, 107, 255, .6), transparent 70%), radial-gradient(30% 40% at 60% 20%, rgba(255, 180, 138, .35), transparent 70%); animation: drift 14s ease-in-out infinite alternate; }
.cta h2 { font-size: clamp(38px, 6vw, 88px); text-transform: uppercase; font-weight: 700; letter-spacing: -.035em; line-height: .96; max-width: 14ch; margin: 0 auto; }
.cta p { margin: 26px auto 38px; max-width: 48ch; color: #D5D7E6; font-size: 19px; }
.cta .row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.footer { padding: 90px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1fr; gap: 48px; }
.foot-grid p { color: var(--muted); max-width: 34ch; margin-top: 18px; }
.foot-grid h4 { font: 600 13px/1 var(--font-title); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.foot-grid li { margin-bottom: 12px; }
.foot-grid li a { transition: color .2s; }
.foot-grid li a:hover { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 70px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.wordmark { font: 700 clamp(80px, 21vw, 330px)/.8 var(--font-title); letter-spacing: -.06em; text-align: center; color: transparent; background: linear-gradient(180deg, rgba(14, 15, 19, .12), rgba(14, 15, 19, 0)); -webkit-background-clip: text; background-clip: text; margin-top: 50px; user-select: none; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .menu, .nav > .btn { display: none; }
  .burger { display: block; }
  .stage-panel { grid-template-columns: 1fr; padding: 36px 28px 56px; }
  .split, .faq-wrap { grid-template-columns: 1fr; gap: 48px; }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .process::before { display: none; }
  .plans { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .case.a, .case.b, .case.c, .case.d { grid-column: span 12; }
  .badge { width: 130px; height: 130px; top: -62px; }
  .badge a { width: 64px; height: 64px; }
  .badge svg.ring text { font-size: 12.5px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 84px 0; }
  .container { width: calc(100% - 32px); }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 28px; min-height: 0; }
  .card h3 { font-size: 28px; }
  .hero { padding-top: 130px; }
  .hero-note { display: none; }
  .hero-copy { margin-left: 0; }
  .stats { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .dark { margin: 0 8px; border-radius: 36px; }
  .stage-panel { border-radius: 30px; }
  .caption { left: 28px; }
  .cta { padding: 70px 22px; border-radius: 34px; }
  .foot-grid { grid-template-columns: 1fr; }
  .faq summary { font-size: 19px; }
  .step small { display: none; }
  .badge { right: 12px; }
}

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 60; background: var(--bg); padding: 28px 24px; transform: translateY(-100%); transition: transform .45s cubic-bezier(.7, 0, .2, 1); display: flex; flex-direction: column; gap: 8px; }
.drawer.open { transform: none; }
.drawer .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.drawer a.l { font: 600 34px/1.2 var(--font-title); padding: 12px 0; border-bottom: 1px solid var(--line); letter-spacing: -.02em; }
.drawer .btn { margin-top: 24px; align-self: flex-start; }
.drawer .x { width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--ink); color: #fff; font-size: 22px; cursor: pointer; }

/* ---------- inner pages ---------- */
.page-hero { position: relative; padding: 180px 0 90px; overflow: hidden; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(42px, 7vw, 108px); text-transform: uppercase; font-weight: 700; letter-spacing: -.035em; line-height: .95; max-width: 14ch; margin-top: 22px; }
.page-hero p.lead { font-size: 21px; color: var(--ink-2); max-width: 56ch; margin-top: 30px; }
.crumbs { font: 500 14px/1 var(--font-title); color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.menu a.active { background: var(--bg); color: var(--accent); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.prose p { color: var(--ink-2); font-size: 19px; margin-bottom: 22px; max-width: 58ch; }
.prose p.muted { color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.value { --cut: 30px; background: var(--surface); padding: 36px; }
.value .ico { width: 54px; height: 54px; border-radius: 16px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); margin-bottom: 26px; }
.value .ico svg { width: 26px; height: 26px; }
.value h3 { font-size: 26px; font-weight: 600; margin-bottom: 12px; }
.value p { color: var(--muted); }
.svc { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; padding: 70px 0; border-top: 1px solid var(--line); align-items: start; }
.svc:first-of-type { border-top: 0; }
.svc .num { font: 600 14px/1 var(--font-title); color: var(--accent); letter-spacing: .1em; }
.svc h2 { font-size: clamp(32px, 3.6vw, 52px); font-weight: 600; margin: 16px 0 20px; }
.svc .d { color: var(--muted); font-size: 18px; max-width: 46ch; }
.svc .art { height: 170px; border-radius: 22px; overflow: hidden; margin-top: 30px; background: var(--accent-soft); }
.svc.s2 .art { background: #FFEDE3; } .svc.s3 .art { background: #DFF5EE; } .svc.s4 .art { background: #EAE6FF; }
.svc .art svg { width: 100%; height: 100%; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.box { background: var(--surface); border-radius: 24px; padding: 30px; }
.box h4 { font: 600 12px/1 var(--font-title); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.box li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 16px; display: flex; gap: 12px; }
.box li:first-child { border-top: 0; padding-top: 0; }
.box li::before { content: "→"; color: var(--accent); }
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.post { --cut: 34px; background: var(--surface); padding: 22px 22px 34px; display: flex; flex-direction: column; gap: 18px; }
.post .th { height: 220px; border-radius: 20px; position: relative; overflow: hidden; }
.post:nth-child(1) .th { background: linear-gradient(140deg, #2E2C8F, #9B6BFF); }
.post:nth-child(2) .th { background: linear-gradient(140deg, #123B35, #6FE0C0); }
.post:nth-child(3) .th { background: linear-gradient(140deg, #5A2A18, #FFB48A); }
.post:nth-child(4) .th { background: linear-gradient(140deg, #1B1D2A, #6D74C7); }
.post .th::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); right: -40px; top: -40px; box-shadow: 0 0 0 40px rgba(255,255,255,.06), 0 0 0 80px rgba(255,255,255,.04); }
.post .m { display: flex; gap: 10px; align-items: center; font: 600 12px/1 var(--font-title); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); padding: 0 12px; }
.post .m em { font-style: normal; color: var(--muted); background: var(--bg); padding: 6px 10px; border-radius: 99px; }
.post h3 { font-size: 28px; font-weight: 600; padding: 0 12px; }
.post p { color: var(--muted); padding: 0 12px; }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: start; }
.form { background: var(--surface); padding: 44px; --cut: 40px; display: grid; gap: 22px; grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: 8px; font: 600 14px/1 var(--font-title); }
.form input, .form select, .form textarea { font: 400 16px/1.4 var(--font-body); padding: 15px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .2s; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form .note { font-size: 13px; color: var(--muted); }
.info { display: grid; gap: 18px; }
.info .box b { display: block; font: 600 22px/1.3 var(--font-title); margin-bottom: 6px; }
.info .box span { color: var(--muted); }
@media (max-width: 1080px) {
  .two, .svc, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .values { grid-template-columns: 1fr; }
  .posts, .cols { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .page-hero { padding: 140px 0 60px; }
  .form { grid-template-columns: 1fr; padding: 28px; }
}

/* ---------- v2: language switch, service detail, articles, zh ---------- */
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang { white-space: nowrap; font: 600 13px/1 var(--font-title); padding: 11px 14px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink-2); transition: .2s; }
.lang:hover { background: var(--ink); color: #fff; box-shadow: none; }
.page-hero.small { padding-bottom: 40px; }
.page-hero.small h1 { font-size: clamp(32px, 4.8vw, 66px); max-width: 20ch; text-transform: none; letter-spacing: -.03em; line-height: 1.05; }
.crumbs a + a::before { content: ""; }
.art-wide { height: 190px; border-radius: 22px; overflow: hidden; margin-top: 36px; background: var(--accent-soft); }
.art-wide.s2 { background: #FFEDE3; } .art-wide.s3 { background: #DFF5EE; } .art-wide.s4 { background: #EAE6FF; }
.art-wide svg { width: 100%; height: 100%; }
.process.on-dark::before { background: repeating-linear-gradient(90deg, #fff 0 6px, transparent 6px 14px); opacity: .25; }
.on-dark .pstep .bubble { background: var(--dark); box-shadow: inset 0 0 0 2px #fff; color: #fff; }
.on-dark .pstep:hover .bubble { background: #fff; color: var(--ink); }
.on-dark .pstep p { color: #A7AABD; }
.others { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.box.other { display: block; padding: 32px; transition: transform .3s; }
.box.other:hover { transform: translateY(-5px); }
.box.other b { display: block; font: 600 26px/1.2 var(--font-title); margin: 4px 0 24px; }
.box.other h4 { margin-bottom: 14px; }
a.post { transition: transform .35s; color: inherit; }
a.post:hover { transform: translateY(-6px); }
.article { max-width: 760px; margin: 0 auto; }
.a-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.a-meta span { font: 600 12px/1 var(--font-title); letter-spacing: .06em; text-transform: uppercase; padding: 9px 13px; border-radius: 99px; background: var(--surface); color: var(--ink-2); }
.a-meta span:first-child { background: var(--accent-soft); color: var(--accent); }
.a-lead { font-size: 23px; line-height: 1.5; color: var(--ink); margin-bottom: 36px; font-family: var(--font-title); letter-spacing: -.01em; }
.article h2 { font-size: 30px; font-weight: 600; margin: 48px 0 16px; }
.article p { font-size: 19px; color: var(--ink-2); margin-bottom: 22px; }
.article ul { margin: 0 0 26px; display: grid; gap: 10px; }
.article li { font-size: 18px; color: var(--ink-2); padding-left: 26px; position: relative; }
.article li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 2px; background: linear-gradient(120deg, var(--accent), var(--accent-2)); }
.article blockquote { margin: 40px 0; padding: 30px 34px; background: var(--surface); border-left: 4px solid var(--accent); border-radius: 0 22px 22px 0; font: 600 24px/1.35 var(--font-title); letter-spacing: -.01em; }
@media (max-width: 1080px) { .others { grid-template-columns: 1fr; } .nav-right .btn { display: none; } .nav-right { margin-left: auto; margin-right: 10px; } }
@media (max-width: 720px) { .nav-right .lang { padding: 10px 12px; } .article h2 { font-size: 25px; } .a-lead { font-size: 20px; } }

/* Chinese typography */
html[lang="zh-CN"] { --font-title: "Space Grotesk", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; --font-body: "DM Sans", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
html[lang="zh-CN"] h1, html[lang="zh-CN"] h2, html[lang="zh-CN"] h3, html[lang="zh-CN"] .hero-title, html[lang="zh-CN"] .logo { letter-spacing: 0; }
html[lang="zh-CN"] body { line-height: 1.75; }
html[lang="zh-CN"] .hero-title { font-size: clamp(40px, 7.4vw, 118px); line-height: 1.08; }
html[lang="zh-CN"] .page-hero h1 { max-width: 14em; line-height: 1.15; font-size: clamp(38px, 6vw, 92px); }
html[lang="zh-CN"] .page-hero.small h1 { font-size: clamp(30px, 4.2vw, 56px); max-width: 20em; }
html[lang="zh-CN"] .section-title { max-width: 14em; line-height: 1.2; }
html[lang="zh-CN"] .section-lead, html[lang="zh-CN"] .page-hero p.lead, html[lang="zh-CN"] .prose p, html[lang="zh-CN"] .card p, html[lang="zh-CN"] .principle p, html[lang="zh-CN"] .case p { max-width: 36em; }
html[lang="zh-CN"] .card h3, html[lang="zh-CN"] .case h3 { max-width: none; line-height: 1.25; }
html[lang="zh-CN"] .cta h2 { max-width: 12em; line-height: 1.15; }
html[lang="zh-CN"] .hero-copy p { font-size: 19px; }
html[lang="zh-CN"] .eyebrow, html[lang="zh-CN"] .tag, html[lang="zh-CN"] .kicker, html[lang="zh-CN"] .case .meta span, html[lang="zh-CN"] .a-meta span { letter-spacing: .04em; }
html[lang="zh-CN"] .badge svg.ring text { letter-spacing: .12em; font-size: 12px; }
html[lang="zh-CN"] .article p, html[lang="zh-CN"] .article li { line-height: 1.9; }
html[lang="zh-CN"] .article h2 { line-height: 1.3; }
html[lang="zh-CN"] .a-lead { line-height: 1.7; }

/* ---------- bento service cards ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.bcard { --cut: 44px; position: relative; overflow: hidden; isolation: isolate; min-height: 520px; padding: 40px; display: flex; flex-direction: column; transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s; box-shadow: 0 1px 0 rgba(255,255,255,.4) inset; }
.bcard:hover { transform: translateY(-8px); }
.bcard::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: radial-gradient(currentColor 1px, transparent 1.4px); background-size: 22px 22px; opacity: .09; mask-image: linear-gradient(160deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(160deg, #000, transparent 70%); }
.bcard::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.32), transparent 62%); }
.bcard:hover::after { opacity: 1; }
.b1 { grid-column: span 7; background: linear-gradient(135deg, #1B1A5C 0%, #4B45E6 62%, #8B63FF 100%); color: #fff; }
.b2 { grid-column: span 5; background: linear-gradient(165deg, #FFF0E5 0%, #FFC7A8 100%); color: #3A1A0C; }
.b3 { grid-column: span 5; background: linear-gradient(165deg, #E8F9F3 0%, #A6E3CE 100%); color: #0B3A2E; }
.b4 { grid-column: span 7; background: linear-gradient(135deg, #12132A 0%, #25245F 65%, #4A3FB5 100%); color: #fff; }
.bart { position: relative; }
.bart svg { width: 100%; height: auto; display: block; overflow: visible; }
.bart text { font-family: var(--font-title) !important; }
.bcard:not(.wide) .bart { margin: -6px -10px 18px; }
.bcard.wide .bart { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 52%; }
.bcard.wide .bbody { max-width: 46%; margin-top: auto; }
.bbody { position: relative; display: flex; flex-direction: column; gap: 16px; margin-top: auto; }
.bnum { font: 600 13px/1 var(--font-title); letter-spacing: .14em; padding: 8px 12px; border-radius: 99px; width: fit-content; background: rgba(255,255,255,.16); }
.b2 .bnum, .b3 .bnum { background: rgba(255,255,255,.65); }
.bbody h3 { font-size: clamp(28px, 2.6vw, 38px); font-weight: 600; line-height: 1.08; }
.bbody p { font-size: 16px; opacity: .78; max-width: 44ch; }
.bchips { display: flex; flex-wrap: wrap; gap: 8px; }
.bchips li { font: 500 13px/1 var(--font-title); padding: 9px 13px; border-radius: 99px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); }
.b2 .bchips li, .b3 .bchips li { background: rgba(255,255,255,.6); border-color: rgba(255,255,255,.8); }
.pillink { display: inline-flex; align-items: center; gap: 10px; width: fit-content; padding: 13px 20px; border-radius: 99px; font: 600 14px/1 var(--font-title); background: #fff; color: var(--ink); transition: gap .25s, background .25s, color .25s; margin-top: 4px; }
.pillink svg { width: 15px; height: 15px; transition: transform .25s; }
.pillink:hover { gap: 14px; background: var(--ink); color: #fff; }
.pillink:hover svg { transform: translate(2px, -2px); }
/* art motion */
@keyframes dashflow { to { stroke-dashoffset: -30; } }
.flow { stroke-dasharray: 7 8; animation: dashflow 1.1s linear infinite; }
.flow.slow { animation-duration: 2s; }
@keyframes pulse { 0%, 100% { transform: scale(.85); opacity: .7; } 50% { transform: scale(1.15); opacity: 1; } }
.pulse { transform-box: fill-box; transform-origin: center; animation: pulse 3.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.bob { animation: bob 5s ease-in-out infinite; } .bob.d2 { animation-delay: -1.6s; } .bob.d3 { animation-delay: -3.2s; }
@keyframes scanmove { from { transform: translateY(40px); } to { transform: translateY(240px); } }
.scan { animation: scanmove 3.2s ease-in-out infinite alternate; }
@keyframes blinkbox { 0%, 55%, 100% { opacity: 1; } 70%, 85% { opacity: .15; } }
.blink { animation: blinkbox 3.2s ease-in-out infinite; }
@keyframes growbar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.bar { transform-box: fill-box; transform-origin: bottom; animation: growbar 1.1s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--bd, 0s); }
.reveal:not(.in) .bar { animation: none; transform: scaleY(0); }
@keyframes drawtick { from { stroke-dashoffset: 200; } to { stroke-dashoffset: 0; } }
.tick { stroke-dasharray: 200; animation: drawtick .8s ease both; animation-delay: var(--td, 0s); }
.reveal:not(.in) .tick { animation: none; stroke-dashoffset: 200; }
@media (max-width: 1080px) {
  .b1, .b2, .b3, .b4 { grid-column: span 12; }
  .bcard.wide .bart { position: static; transform: none; width: 100%; margin: -6px 0 18px; }
  .bcard.wide .bbody { max-width: none; }
  .bcard { min-height: 0; }
}
@media (max-width: 720px) { .bcard { padding: 28px; } }
html[lang="zh-CN"] .bbody p { max-width: 36em; }

/* =====================================================
   v3 redesign: richer sections
   ===================================================== */

/* principles */
.pcards { display: grid; gap: 18px; }
.pcard { display: grid; grid-template-columns: 170px 1fr; gap: 28px; align-items: center; padding: 24px 30px 24px 24px; border-radius: 30px; background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.13); transition: transform .35s ease, border-color .35s; }
.pcard:hover { transform: translateX(-6px); border-color: rgba(185,184,255,.55); }
.pvis { background: radial-gradient(circle at 30% 20%, rgba(139,140,255,.35), rgba(91,91,240,.12)); border-radius: 22px; padding: 14px; }
.pvis svg { width: 100%; height: auto; display: block; }
.pcard .n { font: 600 13px/1 var(--font-title); letter-spacing: .14em; color: #8F8CFF; }
.pcard h3 { font-size: 26px; font-weight: 600; margin: 10px 0 10px; }
.pcard p { color: #A7AABD; font-size: 16px; }
.fillbar { transform-box: fill-box; transform-origin: left; animation: fillx 1.3s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--bd, 0s); }
@keyframes fillx { from { transform: scaleX(0); } to { transform: scaleX(var(--w, 1)); } }
.reveal:not(.in) .fillbar { animation: none; transform: scaleX(0); }
.spin { transform-box: fill-box; transform-origin: center; animation: spin 18s linear infinite; }
.spin.slow { animation-duration: 30s; }
.stat { position: relative; overflow: hidden; padding: 34px 30px; border-radius: 28px; transition: transform .35s; }
.stat:hover { transform: translateY(-5px); }
.stat::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(139,140,255,.5), transparent 70%); }

/* process */
.process { gap: 18px; }
.process::before { display: none; }
.pstep { padding: 30px 28px 28px; background: var(--surface); border-radius: 28px; position: relative; transition: transform .35s, box-shadow .35s; }
.pstep:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -28px rgba(14,15,19,.35); }
.pstep .bubble { width: 60px; height: 60px; border-radius: 20px; box-shadow: none; color: #fff; font-size: 22px; background: linear-gradient(135deg, #5B5BF0, #9B6BFF); margin-bottom: 26px; }
.pstep:nth-child(2) .bubble { background: linear-gradient(135deg, #E4572E, #FFB48A); }
.pstep:nth-child(3) .bubble { background: linear-gradient(135deg, #1F7A63, #6FE0C0); }
.pstep:nth-child(4) .bubble { background: linear-gradient(135deg, #12132A, #4A3FB5); }
.pstep:hover .bubble { background: var(--ink); }
.pstep:not(:last-child)::after { content: "→"; position: absolute; right: -20px; top: 40px; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 15px; z-index: 2; }
.on-dark .pstep { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.on-dark .pstep:hover { box-shadow: none; border-color: rgba(185,184,255,.5); }
.on-dark .pstep:not(:last-child)::after { background: #fff; color: var(--ink); }
.on-dark .pstep:hover .bubble { background: #fff; color: var(--ink); }

/* use cases */
.case { min-height: 480px; padding: 40px; }
.case::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0,0,0,.38), transparent 58%); pointer-events: none; }
.case .pillink { margin-top: 20px; }
.case.a h3, .case.d h3 { max-width: 20ch; }
@keyframes blinkdot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.dot1 { animation: blinkdot 1.4s infinite; } .dot2 { animation: blinkdot 1.4s .2s infinite; } .dot3 { animation: blinkdot 1.4s .4s infinite; }
@keyframes scan2 { from { transform: translateY(0); } to { transform: translateY(186px); } }
.scan2 { animation: scan2 2.8s ease-in-out infinite alternate; }
@keyframes belt { from { transform: translateX(0); } to { transform: translateX(-70px); } }
.belt { animation: belt 3.4s ease-in-out infinite alternate; }

/* plans */
.plan { overflow: hidden; --cut: 40px; padding: 44px 38px; transition: transform .4s; }
.plan:hover { transform: translateY(-8px); }
.plan::before { content: ""; position: absolute; right: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(155,107,255,.28), transparent 68%); }
.plan .kicker { width: fit-content; padding: 8px 12px; border-radius: 99px; background: var(--accent-soft); }
.plan.featured { background: linear-gradient(150deg, #12132A 0%, #2B2A7A 62%, #5B5BF0 130%); box-shadow: 0 40px 70px -40px rgba(91,91,240,.8); }
.plan.featured::before { background: radial-gradient(circle, rgba(255,180,138,.35), transparent 68%); width: 280px; height: 280px; }
.plan.featured .kicker { background: rgba(255,255,255,.14); }
.plan h3 { font-size: 38px; }

/* faq */
.faq details, .faq details:last-child { border: 0; background: var(--surface); border-radius: 24px; padding: 8px 28px; margin-bottom: 12px; transition: box-shadow .3s, transform .3s; }
.faq details:hover { transform: translateX(4px); }
.faq details[open] { box-shadow: 0 24px 50px -28px rgba(91,91,240,.5); }
.faq summary { padding: 18px 0; font-size: 20px; }
.faq details p { padding-bottom: 20px; }

/* cta */
.cta::after { content: ""; position: absolute; right: -140px; bottom: -190px; width: 440px; height: 440px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.22); box-shadow: 0 0 0 55px rgba(255,255,255,.05), 0 0 0 110px rgba(255,255,255,.03); z-index: -1; }

/* services page: big colour blocks */
.svc.big { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; padding: 52px; border-top: 0; --cut: 46px; align-items: center; position: relative; overflow: hidden; isolation: isolate; margin-bottom: 26px; transition: transform .4s; }
.svc.big:hover { transform: translateY(-6px); }
.svc.big::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(currentColor 1px, transparent 1.4px); background-size: 22px 22px; opacity: .08; }
.svc.big.s1 { background: linear-gradient(135deg, #1B1A5C 0%, #4B45E6 62%, #8B63FF 100%); color: #fff; }
.svc.big.s2 { background: linear-gradient(165deg, #FFF0E5 0%, #FFC7A8 100%); color: #3A1A0C; }
.svc.big.s3 { background: linear-gradient(165deg, #E8F9F3 0%, #A6E3CE 100%); color: #0B3A2E; }
.svc.big.s4 { background: linear-gradient(135deg, #12132A 0%, #25245F 65%, #4A3FB5 100%); color: #fff; }
.svc.big h2 { font-size: clamp(32px, 3.4vw, 50px); font-weight: 600; margin: 18px 0 14px; }
.svc.big .d { color: inherit; opacity: .8; max-width: 46ch; font-size: 18px; margin-bottom: 26px; }
.svc.big .bnum { background: rgba(255,255,255,.18); }
.svc.big.s2 .bnum, .svc.big.s3 .bnum { background: rgba(255,255,255,.65); }
.svc.big .cols { gap: 14px; margin-bottom: 26px; }
.svc.big .box { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); padding: 22px 24px; border-radius: 22px; }
.svc.big.s2 .box, .svc.big.s3 .box { background: rgba(255,255,255,.6); border-color: rgba(255,255,255,.85); }
.svc.big .box h4 { color: inherit; opacity: .65; }
.svc.big .box li { border-color: rgba(128,128,150,.25); font-size: 15px; padding: 9px 0; }
.svc.big .box li::before { color: currentColor; opacity: .6; }
.svc-art svg { width: 100%; height: auto; display: block; overflow: visible; }
.svc-art text { font-family: var(--font-title) !important; }

/* detail + about components */
.art-wide { height: auto; padding: 24px; margin-top: 36px; border-radius: 30px; background: linear-gradient(135deg, #1B1A5C, #4B45E6 62%, #8B63FF); }
.art-wide.s2 { background: linear-gradient(165deg, #FFF0E5, #FFC7A8); } .art-wide.s3 { background: linear-gradient(165deg, #E8F9F3, #A6E3CE); } .art-wide.s4 { background: linear-gradient(135deg, #12132A, #25245F 65%, #4A3FB5); }
.art-wide svg { height: auto; overflow: visible; }
.art-wide text { font-family: var(--font-title) !important; }
.value { transition: transform .35s, box-shadow .35s; position: relative; overflow: hidden; }
.value:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -30px rgba(91,91,240,.45); }
.value .ico { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 12px 24px -10px rgba(91,91,240,.6); }
.value::after { content: ""; position: absolute; right: -50px; bottom: -50px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(155,107,255,.18), transparent 70%); }
.box.other { position: relative; overflow: hidden; }
.box.other::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.box.other:hover::before { transform: scaleX(1); }

@media (max-width: 1080px) {
  .pcard { grid-template-columns: 130px 1fr; }
  .svc.big { grid-template-columns: 1fr; padding: 34px; }
  .pstep:not(:last-child)::after { display: none; }
}
@media (max-width: 720px) {
  .pcard { grid-template-columns: 1fr; }
  .pvis { max-width: 200px; }
  .svc.big { padding: 26px; gap: 24px; }
  .case { padding: 28px; min-height: 440px; }
  .plan { padding: 34px 26px; }
}
