/* =========================================================
   SMEasy — style.css
   Nền sáng · hiện đại · nhiều hiệu ứng cuộn
   ========================================================= */
:root {
  --bg: #F7F7F4;
  --surface: #FFFFFF;
  --ink: #0E1116;
  --ink-2: #454C5A;
  --muted: #8A90A0;
  --line: rgba(14, 17, 22, .08);
  --accent: #3355FF;
  --accent-2: #7A5CFF;
  --mint: #17C3A2;
  --amber: #FFB020;
  --rose: #FF5C7A;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(14,17,22,.04), 0 12px 32px -12px rgba(14,17,22,.14);
  --shadow-lg: 0 2px 4px rgba(14,17,22,.04), 0 40px 80px -30px rgba(30,40,90,.28);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Be Vietnam Pro", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html[lang^="zh"] body { --font: "Noto Sans SC", "Be Vietnam Pro", system-ui, sans-serif; letter-spacing: .01em; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow.center { display: flex; justify-content: center; }
.eyebrow.light { color: rgba(255,255,255,.75); }
.h2 {
  margin: 0;
  font-size: clamp(34px, 5.2vw, 68px);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 700;
}
html[lang^="zh"] .h2 { letter-spacing: 0; line-height: 1.18; }

/* ---------- progress bar ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--mint)); }

/* ---------- buttons ---------- */
.btn {
  --bh: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--bh); padding: 0 26px;
  border-radius: 999px;
  font-weight: 600; font-size: 16px; white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { --bh: 42px; padding: 0 18px; font-size: 14px; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--accent); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -10px rgba(51,85,255,.7); }
.btn-accent:hover { background: #2443E8; box-shadow: 0 16px 40px -12px rgba(51,85,255,.8); }
.btn-ghost { background: rgba(255,255,255,.7); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: #fff; border-color: rgba(14,17,22,.18); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { box-shadow: 0 14px 40px -12px rgba(0,0,0,.4); }
.btn-outline-white { border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-white svg, .btn-outline-white svg { stroke-width: 1.8; }
.btn-white:hover svg, .btn-outline-white:hover svg { transform: none; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -.03em; }
.logo-word b { font-weight: 800; color: var(--accent); }
.logo-mark { position: relative; width: 26px; height: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.logo-mark i { border-radius: 6px; background: var(--ink); }
.logo-mark i:nth-child(1) { grid-row: span 2; background: var(--accent); }
.logo-mark i:nth-child(3) { background: var(--mint); border-radius: 50%; }

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 50; top: 12px; left: 50%;
  width: min(1200px, 100% - 24px);
  height: var(--nav-h);
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 14px 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .5s var(--ease), background .4s, border-color .4s, box-shadow .4s, height .4s;
}
.nav.scrolled {
  height: 62px;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-color: var(--line);
  box-shadow: 0 10px 30px -18px rgba(14,17,22,.25);
}
.nav.hide { transform: translate(-50%, calc(-100% - 20px)); }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: color .25s, background .25s;
}
.nav-links a:hover { color: var(--ink); background: rgba(14,17,22,.05); }
.nav-right { display: flex; align-items: center; gap: 10px; }

.lang {
  position: relative; display: flex; padding: 4px; border-radius: 999px;
  background: rgba(14,17,22,.05);
}
.lang button {
  position: relative; z-index: 1;
  width: 40px; height: 32px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  transition: color .3s;
}
.lang button[aria-pressed="true"] { color: var(--ink); }
.lang-pill {
  position: absolute; top: 4px; left: 4px; width: 40px; height: 32px; border-radius: 999px;
  background: #fff; box-shadow: 0 2px 8px rgba(14,17,22,.12);
  transition: transform .45s var(--ease);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(var(--nav-h) + 60px) 20px 120px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.b1 { width: 46vw; height: 46vw; left: -10vw; top: -12vw; background: #B9C6FF; animation: drift1 18s ease-in-out infinite alternate; }
.b2 { width: 40vw; height: 40vw; right: -12vw; top: 6vh; background: #D9CCFF; animation: drift2 22s ease-in-out infinite alternate; }
.b3 { width: 36vw; height: 36vw; left: 30vw; bottom: -18vw; background: #BFF2E5; animation: drift3 20s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(8vw, 6vh) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-6vw, 10vh) scale(.92); } }
@keyframes drift3 { to { transform: translate(-10vw, -6vh) scale(1.15); } }
.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(14,17,22,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,17,22,.055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
}

.hero-inner { position: relative; z-index: 2; max-width: 980px; text-align: center; will-change: transform, opacity; }
.hero-eyebrow {
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,.75); border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  color: var(--ink-2); letter-spacing: .08em; font-size: 12.5px;
  opacity: 0; transform: translateY(14px);
  transition: opacity .9s var(--ease) .1s, transform .9s var(--ease) .1s;
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--mint); animation: ping 2s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(2); opacity: 0; } }

.hero-title {
  margin: 10px 0 26px;
  font-size: clamp(54px, 11vw, 148px);
  line-height: .96;
  letter-spacing: -.055em;
  font-weight: 800;
}
html[lang^="zh"] .hero-title { letter-spacing: -.02em; line-height: 1.1; font-weight: 900; }
html[lang="vi"] .hero-title { line-height: 1.04; }
.hero-title .line { display: block; overflow: hidden; padding: .04em .06em .1em; }
.hero-title .line > span {
  display: inline-block;
  transform: translateY(110%) rotate(4deg);
  transform-origin: 0 100%;
  transition: transform 1.2s var(--ease);
}
.hero-title .line:nth-child(2) > span { transition-delay: .12s; }
.grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 45%, var(--mint) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 8s ease-in-out infinite alternate;
}
@keyframes shine { to { background-position: 100% 0; } }

.hero-sub {
  max-width: 620px; margin: 0 auto 36px;
  font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2);
  opacity: 0; transform: translateY(16px);
  transition: opacity 1s var(--ease) .45s, transform 1s var(--ease) .45s;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  opacity: 0; transform: translateY(16px);
  transition: opacity 1s var(--ease) .6s, transform 1s var(--ease) .6s;
}
body.ready .hero-eyebrow,
body.ready .hero-sub,
body.ready .hero-cta { opacity: 1; transform: none; }
body.ready .hero-title .line > span { transform: none; }

.scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  z-index: 2;
}
.scroll-hint i { position: relative; width: 22px; height: 36px; border-radius: 12px; border: 1.5px solid rgba(14,17,22,.25); }
.scroll-hint i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; border-radius: 3px; background: var(--ink); transform: translateX(-50%); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, -2px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* floating cards */
.float-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.fcard {
  position: absolute;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  will-change: transform;
}
body.ready .fcard { opacity: 1; }
body.ready .fc-ring { transition-delay: .25s; }
body.ready .fc-bars { transition-delay: .4s; }
body.ready .fc-tasks { transition-delay: .55s; }
.fc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-blue { background: var(--accent); } .dot-mint { background: var(--mint); } .dot-violet { background: var(--accent-2); }
.fc-inbox { width: 230px; left: 6%; top: 22%; }
.fc-ring { left: 74%; top: 18%; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; }
.fc-bars { width: 200px; left: 9%; top: 66%; }
.fc-tasks { width: 210px; left: 76%; top: 60%; }

.row { display: flex; align-items: center; gap: 9px; padding: 6px 0; }
.row + .row { border-top: 1px solid var(--line); }
.av { flex: none; width: 22px; height: 22px; border-radius: 50%; }
.a1 { background: linear-gradient(135deg, #FFC27A, #FF7A9A); }
.a2 { background: linear-gradient(135deg, #8EA2FF, #B88CFF); }
.a3 { background: linear-gradient(135deg, #7BE3C8, #4FB6FF); }
.a4 { background: linear-gradient(135deg, #FFD36E, #8DE38E); }
.sk { display: block; height: 7px; border-radius: 6px; background: rgba(14,17,22,.1); }
.sk.thin { height: 5px; margin-top: 6px; background: rgba(14,17,22,.06); }
.w35{width:35%}.w40{width:40%}.w45{width:45%}.w50{width:50%}.w55{width:55%}.w60{width:60%}.w65{width:65%}.w70{width:70%}.w75{width:75%}.w80{width:80%}.w85{width:85%}
.row .sk { flex: 1; }
.chip { flex: none; font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.c-amber { background: #FFF2D6; color: #B57500; }
.c-rose { background: #FFE3E9; color: #D92B52; }
.c-mint { background: #DDF7F0; color: #0C8F75; }

.ring { width: 60px; height: 60px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring-bg { stroke: rgba(14,17,22,.08); }
.ring-fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 201; stroke-dashoffset: 201; transition: stroke-dashoffset 2s var(--ease) .6s; }
body.ready .ring-fg { stroke-dashoffset: 8; }
.ring-txt { display: flex; flex-direction: column; line-height: 1.2; }
.ring-txt strong { font-size: 22px; color: var(--ink); letter-spacing: -.03em; }

.bars { display: flex; align-items: flex-end; gap: 7px; height: 64px; }
.bars i { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--mint), #7BE3C8); transform-origin: bottom; transform: scaleY(0); transition: transform 1.2s var(--ease); }
.bars i:nth-child(6) { background: linear-gradient(180deg, var(--accent), #8EA2FF); }
body.ready .bars i { transform: none; }
.bars i:nth-child(2){transition-delay:.55s}.bars i:nth-child(3){transition-delay:.6s}.bars i:nth-child(4){transition-delay:.65s}.bars i:nth-child(5){transition-delay:.7s}.bars i:nth-child(6){transition-delay:.75s}.bars i:nth-child(7){transition-delay:.8s}.bars i:nth-child(1){transition-delay:.5s}

.task { display: flex; align-items: center; gap: 9px; padding: 6px 0; }
.task b { flex: none; position: relative; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid rgba(14,17,22,.2); transition: background .4s, border-color .4s; }
.task b::after { content: ""; position: absolute; left: 5px; top: 1.5px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .4s var(--ease); }
.task.on b { background: var(--accent-2); border-color: var(--accent-2); }
.task.on b::after { transform: rotate(45deg) scale(1); }
.task .sk { flex: 1; transition: opacity .4s; }
.task.on .sk { opacity: .45; }

/* ---------- MARQUEE ---------- */
.marquee { padding: 34px 0; border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.mq-row { overflow: hidden; display: flex; }
.mq-row + .mq-row { margin-top: 10px; }
.mq-track {
  display: flex; flex: none; gap: 0;
  animation: mq 38s linear infinite;
  will-change: transform;
}
.mq-row.rev .mq-track { animation-direction: reverse; animation-duration: 44s; }
.mq-track span {
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px;
  font-size: clamp(30px, 4.6vw, 62px); font-weight: 700; letter-spacing: -.035em; line-height: 1.1;
  white-space: nowrap;
}
.mq-row.rev .mq-track span { color: transparent; -webkit-text-stroke: 1.2px rgba(14,17,22,.35); }
.mq-track span::after { content: ""; width: .28em; height: .28em; border-radius: 50%; background: var(--accent); flex: none; }
.mq-row.rev .mq-track span::after { background: var(--mint); }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- MANIFESTO (scroll-lit words) ---------- */
.manifesto { position: relative; height: 220vh; }
.manifesto-sticky {
  position: sticky; top: 0; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  width: min(1100px, 100% - 40px); margin-inline: auto;
}
.manifesto-text {
  margin: 0;
  font-size: clamp(30px, 5.2vw, 72px);
  line-height: 1.12; letter-spacing: -.035em; font-weight: 700;
}
html[lang^="zh"] .manifesto-text { letter-spacing: .02em; line-height: 1.35; }
.manifesto-text .w { display: inline; color: rgba(14,17,22,.12); transition: color .35s ease; }
.manifesto-text .w.lit { color: var(--ink); }
.manifesto-text .w.hl.lit { color: var(--accent); }

/* ---------- SOLUTIONS (horizontal pinned) ---------- */
.solutions { position: relative; height: 400vh; background: var(--bg); }
.sol-sticky {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 4vh;
}
.sol-head { width: min(1200px, 100% - 40px); margin-inline: auto; position: relative; }
.sol-head .h2 { max-width: 760px; }
.sol-progress { position: absolute; right: 0; bottom: 12px; width: 160px; height: 3px; border-radius: 3px; background: rgba(14,17,22,.08); overflow: hidden; }
.sol-progress span { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }
.sol-track {
  display: flex; gap: 28px;
  padding-inline: max(20px, calc((100vw - 1200px) / 2));
  will-change: transform;
}
.panel {
  flex: none;
  width: min(880px, 78vw);
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: center;
  padding: 28px;
  border-radius: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.panel-visual {
  position: relative; height: 340px; border-radius: 22px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--c1) 22%, transparent), transparent 60%),
    radial-gradient(120% 90% at 100% 100%, color-mix(in srgb, var(--c2) 20%, transparent), transparent 60%),
    #F3F4F8;
}
.panel-body { padding-right: 12px; }
.panel-num {
  display: inline-block; font-size: 14px; font-weight: 700;
  background: linear-gradient(90deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: .1em;
}
.panel h3 { margin: 10px 0 12px; font-size: clamp(28px, 3vw, 40px); line-height: 1.08; letter-spacing: -.035em; }
html[lang^="zh"] .panel h3 { letter-spacing: 0; }
.panel p { margin: 0 0 22px; color: var(--ink-2); font-size: 18px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 13.5px; font-weight: 600; padding: 7px 13px; border-radius: 999px; background: #F2F3F7; color: var(--ink-2); }

/* visual: inbox */
.v-inbox { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.vi-top { display: flex; gap: 6px; margin-bottom: 4px; }
.vi-top span { width: 10px; height: 10px; border-radius: 50%; background: rgba(14,17,22,.12); }
.vi-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px -10px rgba(14,17,22,.2);
  transform: translateX(var(--x, 0));
}
.vi-row > div { flex: 1; }
.vi-row .av { width: 30px; height: 30px; }
.vi-row.done { opacity: .55; }

/* visual: learning */
.v-learn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 22px; align-items: center; }
.vl-card { background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 10px 24px -14px rgba(14,17,22,.3); }
.vl-cover { height: 110px; border-radius: 10px; margin-bottom: 12px; background: linear-gradient(135deg, var(--mint), var(--accent)); position: relative; overflow: hidden; }
.vl-cover::after { content: ""; position: absolute; width: 60px; height: 60px; border-radius: 50%; right: -10px; bottom: -14px; background: rgba(255,255,255,.35); }
.vl-prog { margin-top: 12px; height: 7px; border-radius: 7px; background: rgba(14,17,22,.08); overflow: hidden; }
.vl-prog i { display: block; height: 100%; width: var(--p); border-radius: 7px; background: var(--mint); }
.vl-list { display: flex; flex-direction: column; gap: 10px; }
.vl-list div { display: flex; align-items: center; gap: 10px; background: #fff; padding: 11px 12px; border-radius: 12px; }
.vl-list .sk { flex: 1; }
.vl-list b { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(14,17,22,.18); }
.vl-list b.ok { background: var(--mint); border-color: var(--mint); }
.vl-list b.now { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(51,85,255,.15); }

/* visual: calendar */
.v-cal { padding: 22px; }
.vc-grid { display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(4, 1fr); gap: 8px; height: 100%; }
.vc-grid span { border-radius: 10px; background: rgba(255,255,255,.75); }
.ev { position: absolute; border-radius: 10px; box-shadow: 0 8px 20px -10px rgba(14,17,22,.35); }
.e1 { left: calc(22px + 0 * (100% - 44px) / 5 + 4px); top: 30px; width: calc((100% - 44px) / 5 - 8px); height: 110px; background: linear-gradient(160deg, #FF8A3D, #FFB36B); }
.e2 { left: calc(22px + 1 * (100% - 44px) / 5 + 6px); top: 110px; width: calc((100% - 44px) / 5 - 8px); height: 70px; background: linear-gradient(160deg, #FF5C7A, #FF8FA5); }
.e3 { left: calc(22px + 2 * (100% - 44px) / 5 + 7px); top: 50px; width: calc((100% - 44px) / 5 - 8px); height: 150px; background: linear-gradient(160deg, #7A5CFF, #A58FFF); }
.e4 { left: calc(22px + 3 * (100% - 44px) / 5 + 8px); top: 190px; width: calc((100% - 44px) / 5 - 8px); height: 90px; background: linear-gradient(160deg, #17C3A2, #6FE0C8); }
.e5 { left: calc(22px + 4 * (100% - 44px) / 5 + 9px); top: 70px; width: calc((100% - 44px) / 5 - 8px); height: 80px; background: linear-gradient(160deg, #3355FF, #8EA2FF); }

/* visual: flow */
.v-flow .flow-lines { position: absolute; inset: 20px; width: calc(100% - 40px); height: calc(100% - 40px); }
.flow-lines path { fill: none; stroke: rgba(14,17,22,.22); stroke-width: 1.6; stroke-dasharray: 5 6; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.node { position: absolute; width: 58px; height: 58px; border-radius: 16px; background: #fff; box-shadow: 0 10px 24px -12px rgba(14,17,22,.35); transform: translate(-50%, -50%); }
.node::after { content: ""; position: absolute; inset: 18px; border-radius: 6px; background: rgba(14,17,22,.1); }
.n1 { left: calc(20px + (100% - 40px) * .2); top: calc(20px + (100% - 40px) * .25); }
.n2 { left: calc(20px + (100% - 40px) * .2); top: calc(20px + (100% - 40px) * .75); }
.n3 { left: calc(20px + (100% - 40px) * .5); top: 50%; width: 78px; height: 78px; border-radius: 22px; background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.n3::after { inset: 26px; border-radius: 50%; background: rgba(255,255,255,.85); }
.n4 { left: calc(20px + (100% - 40px) * .817); top: calc(20px + (100% - 40px) * .275); }
.n5 { left: calc(20px + (100% - 40px) * .817); top: calc(20px + (100% - 40px) * .725); }
.n1::after { background: #FFB36B; } .n2::after { background: #8EA2FF; } .n4::after { background: #6FE0C8; } .n5::after { background: #FF8FA5; }
.core { animation: corePulse 2.4s ease-in-out infinite; }
@keyframes corePulse { 50% { box-shadow: 0 0 0 14px rgba(122,92,255,.12), 0 10px 24px -12px rgba(14,17,22,.35); } }
/* node positions use the visual box; since height != width we place with percentages of box */
.v-flow .n1 { left: 20%; top: 25%; } .v-flow .n2 { left: 20%; top: 75%; }
.v-flow .n3 { left: 50%; top: 50%; }
.v-flow .n4 { left: 81.7%; top: 27.5%; } .v-flow .n5 { left: 81.7%; top: 72.5%; }
.v-flow .flow-lines { inset: 0; width: 100%; height: 100%; }

/* ---------- PRINCIPLES ---------- */
.principles { padding: 120px 0 40px; }
.pr-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.pr { padding: 34px 24px 10px 0; display: flex; flex-direction: column; gap: 6px; }
.pr + .pr { padding-left: 24px; border-left: 1px solid var(--line); }
.pr strong { font-size: clamp(34px, 4vw, 54px); line-height: 1; letter-spacing: -.045em; font-weight: 800; }
html[lang^="zh"] .pr strong { letter-spacing: 0; }
.pr > span { color: var(--muted); font-size: 15px; font-weight: 500; }
.pr-domain strong { font-size: clamp(20px, 1.9vw, 26px); letter-spacing: -.02em; line-height: 1.6; white-space: nowrap; display: flex; align-items: baseline; }
.pr-domain .typed { color: var(--accent); }
.pr-domain em { font-style: normal; color: var(--ink); }
.caret { display: inline-block; width: 2px; height: .95em; margin: 0 1px; background: var(--accent); transform: translateY(.12em); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- APPROACH ---------- */
.approach { padding: 120px 0; }
.ap-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: start; }
.ap-left { position: sticky; top: 140px; }
.ap-steps { position: relative; list-style: none; margin: 0; padding: 0 0 0 4px; }
.ap-line { position: absolute; left: 31px; top: 40px; bottom: 40px; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.ap-line i { display: block; width: 100%; height: 100%; background: linear-gradient(180deg, var(--accent), var(--mint)); transform-origin: top; transform: scaleY(0); }
.ap-steps li { position: relative; display: flex; gap: 28px; padding: 30px 0; }
.ap-n {
  flex: none; position: relative; z-index: 1;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  transition: background .5s var(--ease), color .5s, border-color .5s, transform .5s var(--ease);
}
.ap-steps li.active .ap-n { background: var(--ink); color: #fff; border-color: var(--ink); transform: scale(1.06); }
.ap-steps h3 { margin: 10px 0 6px; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.03em; line-height: 1.1; }
.ap-steps p { margin: 0; color: var(--ink-2); max-width: 440px; }

/* ---------- FEATURES ---------- */
.features { padding: 80px 0 140px; }
.features .h2 { margin-bottom: 56px; }
.ft-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden;
  padding: 30px 28px 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
}
.tile::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(51,85,255,.10), transparent 60%);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(51,85,255,.18); }
.tile:hover::before { opacity: 1; }
.ic { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #EEF1FF; margin-bottom: 22px; }
.ic svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile:nth-child(2) .ic, .tile:nth-child(5) .ic { background: #E4F8F3; } .tile:nth-child(2) .ic svg, .tile:nth-child(5) .ic svg { stroke: #0FA889; }
.tile:nth-child(3) .ic, .tile:nth-child(6) .ic { background: #F1ECFF; } .tile:nth-child(3) .ic svg, .tile:nth-child(6) .ic svg { stroke: var(--accent-2); }
.tile h3 { position: relative; margin: 0 0 6px; font-size: 21px; letter-spacing: -.02em; }
.tile p { position: relative; margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- TEASER ---------- */
.teaser { position: relative; height: 170vh; }
.teaser-sticky {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 0 20px;
}
.outline-run {
  position: absolute; top: 50%; left: 0; transform: translateY(-50%);
  white-space: nowrap; pointer-events: none; z-index: 0;
}
.outline-run span {
  display: inline-block;
  font-size: clamp(120px, 22vw, 320px); font-weight: 800; letter-spacing: -.05em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(51,85,255,.14);
  will-change: transform;
}
.teaser-big {
  position: relative; z-index: 1; margin: 0;
  font-size: clamp(34px, 6vw, 84px); font-weight: 800; letter-spacing: -.045em; line-height: 1.05;
  max-width: 1000px;
  will-change: transform, opacity;
}
html[lang^="zh"] .teaser-big { letter-spacing: 0; }
.teaser-blur {
  position: relative; z-index: 1; margin: 22px 0 0;
  font-size: clamp(18px, 2vw, 24px); font-weight: 500; color: var(--accent);
  filter: blur(var(--blur, 12px)); opacity: var(--op, .2);
  will-change: filter, opacity;
}

/* ---------- CONTACT ---------- */
.contact { padding: 40px 0 120px; }
.contact-card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(48px, 7vw, 100px) clamp(24px, 6vw, 90px);
  border-radius: 36px;
  color: #fff;
  background: linear-gradient(130deg, #2443E8 0%, #3355FF 40%, #6B4BFF 100%);
  text-align: center;
}
.cc-glow { position: absolute; z-index: -1; inset: -40%; background:
  radial-gradient(30% 30% at 20% 30%, rgba(23,195,162,.55), transparent 70%),
  radial-gradient(30% 30% at 80% 70%, rgba(255,140,200,.35), transparent 70%);
  animation: glow 14s linear infinite; }
@keyframes glow { to { transform: rotate(360deg); } }
.contact-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%);
}
.cc-title { margin: 0 0 16px; font-size: clamp(40px, 7vw, 96px); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
html[lang^="zh"] .cc-title { letter-spacing: 0; line-height: 1.15; }
.cc-sub { margin: 0 auto 36px; max-width: 640px; font-size: clamp(17px, 1.6vw, 20px); color: rgba(255,255,255,.82); }
.cc-phone {
  display: inline-block; margin-bottom: 36px;
  font-size: clamp(30px, 5vw, 62px); font-weight: 700; letter-spacing: -.03em;
  background: linear-gradient(90deg, #fff, #C9FFF1, #fff); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 5s ease-in-out infinite alternate;
  font-variant-numeric: tabular-nums;
}
.cc-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- FOOTER ---------- */
.footer { padding: 30px 0 40px; border-top: 1px solid var(--line); }
.ft-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ft-tag, .ft-copy { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- reveal ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(36px); filter: blur(6px);
  transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s), filter 1s var(--ease) var(--d, 0s);
}
[data-reveal].in { opacity: 1; transform: none; filter: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .fc-inbox { left: 3%; top: 16%; }
  .fc-ring { left: auto; right: 3%; top: 14%; }
  .fc-bars { left: 3%; top: 72%; }
  .fc-tasks { left: auto; right: 3%; top: 70%; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .fc-inbox, .fc-tasks { display: none; }
  .fc-ring { top: auto; bottom: 120px; right: 6%; transform-origin: center; }
  .fc-bars { top: auto; bottom: 110px; left: 6%; width: 160px; }

  .solutions { height: auto !important; padding: 100px 0 40px; }
  .sol-sticky { position: static; height: auto; overflow: visible; gap: 40px; }
  .sol-progress { display: none; }
  .sol-track { flex-direction: column; gap: 20px; padding-inline: 20px; transform: none !important; }
  .panel { width: 100%; grid-template-columns: 1fr; gap: 24px; padding: 18px; border-radius: 26px; }
  .panel-visual { height: 260px; }
  .panel-body { padding: 0 6px 10px; }

  .pr-grid { grid-template-columns: 1fr 1fr; }
  .pr:nth-child(3) { padding-left: 0; border-left: 0; }
  .pr:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pr-domain strong { white-space: normal; flex-wrap: wrap; }

  .ap-grid { grid-template-columns: 1fr; gap: 20px; }
  .ap-left { position: static; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  :root { --nav-h: 60px; }
  .nav { top: 8px; padding: 0 8px 0 16px; width: calc(100% - 16px); }
  .nav.scrolled { height: 56px; }
  .logo { font-size: 18px; }
  .logo-mark { width: 22px; height: 22px; }
  .lang button { width: 34px; height: 30px; font-size: 12px; }
  .lang-pill { width: 34px; height: 30px; }
  .nav-right .btn-sm { display: none; }
  .hero { padding-bottom: 200px; }
  .fc-ring { bottom: 96px; right: 16px; padding: 10px 14px 10px 10px; }
  .fc-ring .ring { width: 46px; height: 46px; }
  .ring-txt strong { font-size: 18px; }
  .fc-bars { bottom: 96px; left: 16px; width: 138px; padding: 12px; }
  .bars { height: 44px; }
  .scroll-hint { display: none; }
  .btn { --bh: 50px; padding: 0 22px; font-size: 15px; }
  .hero-cta .btn { width: 100%; }
  .manifesto { height: 180vh; }
  .pr-grid { grid-template-columns: 1fr; }
  .pr, .pr + .pr { padding-left: 0; border-left: 0; }
  .pr + .pr { border-top: 1px solid var(--line); }
  .ft-grid { grid-template-columns: 1fr; }
  .contact-card { border-radius: 28px; }
  .cc-actions .btn { width: 100%; }
  .ft-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .v-learn { grid-template-columns: 1fr; }
  .v-learn .vl-card { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  .manifesto-text .w { color: var(--ink); }
}
