:root {
  --blue: #0A00B4;
  --blue-deep: #080090;
  --blue-dark: #06006B;
  --blue-tint: #F0F0FF;
  --green: #93D500;
  --ink: #14141F;
  --gray: #53565A;
  --line: #E6E8F2;
  --bg: #F7F8FC;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Source Han Sans CN", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
}

.num, .en { font-family: "Work Sans", "Source Han Sans CN", sans-serif; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

a { text-decoration: none; color: inherit; }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 34px; }
nav { display: flex; gap: 13px; margin-left: 4px; }
nav a { font-size: 14.5px; color: var(--gray); white-space: nowrap; }
nav a:hover { color: var(--blue); }
nav a.on { color: var(--blue); font-weight: 700; }
nav a.soon { color: #B4B7C0; }
.header-cta { margin-left: auto; }

.btn {
  display: inline-block; padding: 9px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 700; cursor: pointer; border: none; white-space: nowrap;
}
.btn-primary { background: var(--green); color: var(--blue-deep); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.6); }
.btn-ghost:hover { border-color: #fff; }
.hero .btn, .cta-band .btn, .strip-in .btn, .res-cta .btn { padding: 12px 26px; font-size: 15px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  padding: 96px 0 120px;
  cursor: pointer;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 1.05s cubic-bezier(.22,.68,.32,1), visibility 1.05s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-media {
  position: absolute; inset: 0; width: 100%; height: 100%;
  mix-blend-mode: luminosity; transform-origin: 50% 55%;
}
.hero-media-1 { background: url("assets/hero-store.jpg") center 62% / cover no-repeat; opacity: 0.55; }
.hero-media-2 { background: url("assets/hero-2.jpg") center 50% / cover no-repeat; opacity: 0.62; }
.hero-video { object-fit: cover; opacity: 0.62; }

/* slow drift on the active slide = quiet, premium motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-media { transform: scale(1.07); transition: transform 9s linear; }
  .hero-slide.is-active .hero-media { transform: scale(1); }
}

/* controls */
.hero-arrow {
  position: absolute; top: 50%; margin-top: -22px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.38); background: rgba(6, 0, 107, 0.35);
  color: #fff; cursor: pointer; opacity: 0; backdrop-filter: blur(4px);
  transition: opacity .3s, background .25s, border-color .25s;
}
.hero-arrow::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 9px; height: 9px; margin: -6px 0 0 -4px;
  border-left: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
}
.hero-arrow--prev { left: 22px; }
.hero-arrow--prev::before { transform: rotate(45deg); margin-left: -2px; }
.hero-arrow--next { right: 22px; }
.hero-arrow--next::before { transform: rotate(-135deg); margin-left: -5px; }
.hero:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: rgba(255, 255, 255, 0.22); border-color: #fff; }
.hero-arrow:focus-visible { opacity: 1; outline: 2px solid var(--green); outline-offset: 2px; }

.hero-dots {
  position: absolute; left: 0; right: 0; bottom: 34px; z-index: 3;
  display: flex; justify-content: center; gap: 10px;
}
.hero-dot {
  width: 36px; height: 3px; border: none; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.26); border-radius: 2px; overflow: hidden;
}
.hero-dot span { display: block; height: 100%; width: 0; background: var(--green); }
.hero-dot.is-active { background: rgba(255, 255, 255, 0.4); }
.hero-dot.is-active span { animation: heroDotFill 6.5s linear forwards; }
@keyframes heroDotFill { from { width: 0; } to { width: 100%; } }
.hero-dot:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* the play hint belongs to the video slide only */
.hero .play-hint { opacity: 0; transition: opacity .45s ease; }
.hero.is-video .play-hint { opacity: 1; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(95deg,
    rgba(6, 0, 107, 0.95) 0%, rgba(8, 0, 144, 0.78) 40%,
    rgba(8, 0, 144, 0.38) 75%, rgba(8, 0, 144, 0.18) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero .eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 2px;
  color: var(--green); font-weight: 700; margin-bottom: 18px;
}
.hero h1 { font-size: 46px; line-height: 1.25; font-weight: 800; max-width: 720px; }
.hero .sub { font-size: 19px; margin: 20px 0 36px; max-width: 640px; color: rgba(255, 255, 255, 0.88); }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .trust { margin-top: 44px; font-size: 14px; color: rgba(255, 255, 255, 0.72); }
.hero .trust b { color: #fff; font-weight: 700; }
.hero-svg { position: absolute; right: -40px; bottom: -10px; width: 620px; opacity: 0.9; pointer-events: none; z-index: 2; }

/* play hint (hero click -> promo video) */
.play-hint {
  position: absolute; z-index: 2; right: 7%; top: 44%;
  display: flex; align-items: center; gap: 14px; pointer-events: none;
}
.play-hint .ring {
  width: 68px; height: 68px; border-radius: 50%; flex: none;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: rgba(8, 0, 144, 0.35); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s, background .2s, border-color .2s;
}
.play-hint .ring::before {
  content: ""; margin-left: 5px;
  border-left: 18px solid #fff;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}
.play-hint .txt { font-size: 13px; line-height: 1.6; letter-spacing: 2px; color: rgba(255, 255, 255, 0.85); }
.hero:hover .play-hint .ring { transform: scale(1.08); background: var(--green); border-color: var(--green); }
.hero:hover .play-hint .ring::before { border-left-color: var(--blue-deep); }

/* promo video modal */
.video-modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.video-modal[hidden] { display: none; }
.vm-backdrop { position: absolute; inset: 0; background: rgba(4, 0, 40, 0.85); backdrop-filter: blur(4px); }
.vm-wrap { position: relative; width: min(960px, 92vw, calc((100vh - 150px) * 16 / 9)); }
.vm-box {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #000; border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
.vm-box video { width: 100%; height: 100%; display: block; }
.vm-close {
  position: absolute; top: -52px; right: 0; z-index: 5;
  width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12); color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer; touch-action: manipulation;
}
.vm-close:hover { background: rgba(255, 255, 255, 0.28); }
.vm-tip {
  position: absolute; top: calc(100% + 12px); right: 2px;
  font-size: 12px; letter-spacing: 1px; color: rgba(255, 255, 255, 0.6);
}

/* hero light (product page) */
.hero-light { background: var(--blue-tint); color: var(--ink); padding: 84px 0 72px; }
.hero-light .eyebrow { color: var(--blue); }
.hero-light h1 { color: var(--blue); }
.hero-light .sub { color: var(--gray); }

/* statement band (one-solution line, ref: Lifted) */
.statement { padding: 56px 0; border-bottom: 1px solid var(--line); }
.statement p { font-size: 26px; font-weight: 700; line-height: 1.6; max-width: 900px; }
.statement b { color: var(--blue); white-space: nowrap; }

/* ---------- sections ---------- */
section { padding: 84px 0; }
section.alt { background: var(--bg); }
.sec-head { margin-bottom: 44px; }
.sec-head .k { font-size: 13px; letter-spacing: 2px; color: var(--blue); font-weight: 700; }
.sec-head h2 { font-size: 32px; font-weight: 800; margin-top: 8px; }
.sec-head p { color: var(--gray); margin-top: 10px; max-width: 680px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 30px 28px;
}
.card .ico {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--blue-tint); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; margin-bottom: 18px;
}
.card h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.card ul { list-style: none; }
.card li { font-size: 14.5px; color: var(--gray); padding: 4px 0 4px 18px; position: relative; }
.card li::before { content: ""; position: absolute; left: 0; top: 12px; width: 8px; height: 8px; border-radius: 2px; background: var(--green); }

/* steps */
.step { text-align: left; }
.step .n {
  font-family: "Work Sans", sans-serif; font-size: 15px; font-weight: 800;
  color: var(--blue); border: 2px solid var(--blue); border-radius: 999px;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.step h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--gray); }

/* trust band */
.trust-band { background: var(--blue); color: #fff; padding: 64px 0; }
.trust-band .grid-3 { gap: 32px; }
.tb-item .big { font-family: "Work Sans", sans-serif; font-size: 44px; font-weight: 800; color: var(--green); line-height: 1.1; }
.tb-item .big small { font-size: 18px; color: #fff; font-weight: 700; margin-left: 4px; }
.tb-item p { margin-top: 8px; font-size: 15px; color: rgba(255, 255, 255, 0.85); }

/* cases */
.case .tag {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--blue);
  background: var(--blue-tint); border-radius: 999px; padding: 3px 12px; margin-bottom: 14px;
}
.case h3 { font-size: 18px; font-weight: 800; }
.case p { font-size: 14.5px; color: var(--gray); margin-top: 8px; }
.footnote { margin-top: 20px; font-size: 12.5px; color: #8A8D96; }

/* compliance strip */
.strip { background: var(--blue-tint); padding: 56px 0; }
.strip-in { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.strip-in .t { flex: 1; min-width: 320px; }
.strip-in h2 { font-size: 26px; font-weight: 800; color: var(--blue); }
.strip-in p { color: var(--gray); margin-top: 8px; }

/* system frames (product page) */
.frame {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff;
}
.frame .bar { height: 34px; background: var(--bg); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.frame .bar i { width: 9px; height: 9px; border-radius: 50%; background: #D6D8E2; }
.frame .screen {
  height: 150px; display: flex; align-items: center; justify-content: center;
  color: #A9ACB8; font-size: 13px; background:
    repeating-linear-gradient(0deg, #FAFBFF, #FAFBFF 14px, #F2F4FB 14px, #F2F4FB 15px);
}
.frame .cap { padding: 12px 14px; font-size: 14px; font-weight: 700; border-top: 1px solid var(--line); }

/* modes */
.mode .lvl { font-size: 12.5px; font-weight: 700; color: var(--green); letter-spacing: 1px; }
.mode h3 { margin: 6px 0 10px; }

/* cta band */
.cta-band { background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%); color: #fff; padding: 72px 0; text-align: center; }
.cta-band h2 { font-size: 30px; font-weight: 800; }
.cta-band p { margin: 12px 0 30px; color: rgba(255, 255, 255, 0.85); }

/* footer */
footer { background: var(--blue-dark); color: rgba(255, 255, 255, 0.8); padding: 52px 0 40px; font-size: 14px; }
footer .slogan { color: #fff; font-size: 17px; font-weight: 700; letter-spacing: 1px; }
footer .cols { display: flex; gap: 56px; flex-wrap: wrap; margin-top: 22px; }
footer .qr-col { display: flex; gap: 12px; flex-wrap: wrap; }
footer .qr {
  width: 92px; margin: 0; background: #fff; border-radius: 10px; padding: 7px 7px 5px;
}
footer .qr img { width: 100%; display: block; border-radius: 4px; }
footer .qr figcaption { margin-top: 5px; text-align: center; font-size: 11px; font-weight: 700; color: var(--blue-deep); }
footer .copy { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 12.5px; color: rgba(255, 255, 255, 0.5); }

/* clients logo wall */
p, li { text-wrap: pretty; }
h2, h3, .statement p { text-wrap: balance; }
.clients .row-label { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--gray); margin: 26px 0 10px; }
.clients .logo-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.clients .logo-row img {
  width: 100%; height: 132px; object-fit: contain; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px;
}
.clients .footnote a { color: var(--blue); font-weight: 700; }

/* brand matrix cards */
.brand-grid { gap: 16px; }
.brand-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; text-decoration: none; transition: border-color .2s, transform .2s;
}
.brand-card:hover { border-color: var(--blue); transform: translateY(-3px); }
.brand-card h3 { color: var(--blue); font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.brand-card p { color: var(--gray); font-size: 13.5px; line-height: 1.7; margin-bottom: 12px; }
.brand-card .en { color: var(--blue); font-size: 13px; font-weight: 700; }

footer a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
footer a:hover { color: #fff; }

/* floating diagnosis */
.float-cta {
  position: fixed; right: 26px; bottom: 26px; z-index: 60;
  background: var(--green); color: var(--blue-deep); font-weight: 800;
  padding: 13px 24px; border-radius: 999px; font-size: 15px;
  box-shadow: 0 8px 24px rgba(10, 0, 180, 0.28);
}

@media (max-width: 900px) {
  nav { display: none; }
  .hero h1 { font-size: 32px; }
  .hero-svg { display: none; }
  .play-hint { right: 24px; top: 28px; }
  .play-hint .txt { display: none; }
  .play-hint .ring { width: 52px; height: 52px; }
  .play-hint .ring::before { border-left-width: 14px; border-top-width: 8px; border-bottom-width: 8px; margin-left: 4px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .clients .logo-row { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .clients .logo-row img { height: 118px; padding: 16px 18px; }
}

@media (max-width: 600px) {
  .clients .logo-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .clients .logo-row img { height: 104px; padding: 14px 16px; }
}

/* ---------- v3: subpages, tables, prose, agent mode ---------- */
.btn-outline { background: #fff; color: var(--blue); border: 1px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.header-cta { display: flex; gap: 10px; align-items: center; }

.menu-btn { display: none; margin-left: auto; background: none; border: none; font-size: 22px; color: var(--blue); cursor: pointer; }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .header-cta .btn-blue { display: none; }
  .header-cta .btn-outline { display: none; }
  .ms-btn { padding: 5px 7px; font-size: 11px; }
  nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 14px 24px; gap: 14px; margin: 0;
  }
  body.nav-open nav { display: flex; }
}

.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; margin: 18px 0; }
.tbl th { background: var(--blue-tint); color: var(--blue); text-align: left; }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 10px 12px; vertical-align: top; }
.tbl td b { color: var(--blue-deep); }

.kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 26px 0; }
.kv .i { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.kv .i b { display: block; font-size: 22px; color: var(--blue); font-family: "Work Sans", sans-serif; }
.kv .i span { font-size: 13px; color: var(--gray); }
@media (max-width: 900px) { .kv { grid-template-columns: repeat(2, 1fr); } }

/* whitepaper reading page */
.prose { max-width: 860px; margin: 0 auto; }
.prose h2 { font-size: 26px; margin: 44px 0 14px; color: var(--blue); }
.prose h3 { font-size: 19px; margin: 28px 0 10px; }
.prose h4 { font-size: 16px; margin: 20px 0 8px; }
.prose p { margin: 10px 0; color: #2A2A35; }
.prose ul, .prose ol { margin: 10px 0 10px 22px; }
.prose li { margin: 4px 0; }
.prose blockquote { border-left: 3px solid var(--green); background: var(--blue-tint); padding: 12px 16px; margin: 16px 0; border-radius: 0 8px 8px 0; }
.prose pre { background: #0E0E20; color: #D9E1FF; padding: 14px 16px; border-radius: 10px; overflow-x: auto; font-size: 13px; line-height: 1.6; margin: 14px 0; }
.prose code { font-family: ui-monospace, Menlo, Consolas, monospace; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 32px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 14px 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--blue-tint); }
.wp-bar {
  position: sticky; top: 68px; z-index: 40; background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.wp-bar-in { display: flex; align-items: center; gap: 16px; height: 56px; }
.wp-bar .t { font-weight: 800; color: var(--blue); font-size: 15px; }
.wp-bar .sp { margin-left: auto; display: flex; gap: 10px; }

/* agent mode overlay */
.mode-toggle { background: transparent; border: 1px solid var(--line); color: var(--gray); border-radius: 999px; padding: 6px 14px; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.mode-switch { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.ms-btn { font-family: inherit; font-size: 11.5px; line-height: 1; padding: 6px 9px; border: none; border-radius: 999px; background: transparent; color: var(--gray); cursor: pointer; white-space: nowrap; font-weight: 700; letter-spacing: .3px; }
.ms-btn:hover { color: var(--blue); }
.ms-btn.on { background: var(--blue); color: #fff; }
.header-cta .btn { padding: 8px 14px; font-size: 13.5px; }
.mode-toggle:hover { border-color: var(--blue); color: var(--blue); }
.agent-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 121;
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  padding: 14px 24px; background: #04002A; color: #D9E1FF;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px;
}
.agent-bar button { background: var(--green); color: var(--blue-deep); border: none; border-radius: 999px; padding: 8px 16px; font-weight: 700; cursor: pointer; }
.agent-panel {
  position: fixed; inset: 0; z-index: 120; background: rgba(6, 0, 40, 0.98);
  color: #D9E1FF; overflow: auto; padding: 80px 24px 60px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.agent-panel[hidden] { display: none; }
.agent-in { max-width: 880px; margin: 0 auto; font-size: 13.5px; line-height: 1.9; }
.agent-in h2 { color: var(--green); font-size: 15px; letter-spacing: 2px; margin: 26px 0 8px; }
.agent-in pre { white-space: pre-wrap; margin: 0; }
.agent-in a { color: #9EF01A; text-decoration: underline; }
.agent-in .dim { color: rgba(217, 225, 255, 0.55); }

/* hero-light is not clickable (only the homepage hero opens the video) */
.hero-light { cursor: default; }

/* tag pill (global) */
.tag {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--blue);
  background: var(--blue-tint); border-radius: 999px; padding: 3px 12px; margin-bottom: 14px;
}

/* case detail */
.case-full { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 34px 32px; }
.case-full + .case-full { margin-top: 24px; }
.cf-top { display: flex; gap: 10px; flex-wrap: wrap; }
.cf-top .tag { margin-bottom: 0; }
.case-full h3 { font-size: 24px; font-weight: 800; margin: 16px 0 8px; }
.case-full .lede { color: var(--gray); font-size: 15px; max-width: 820px; }
.cf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 28px; }
.cf-grid h4 { font-size: 12.5px; letter-spacing: 2px; color: var(--blue); font-weight: 700; margin-bottom: 10px; }
.cf-grid ul { list-style: none; }
.cf-grid li { font-size: 14px; color: var(--gray); padding: 5px 0 5px 16px; position: relative; }
.cf-grid li::before { content: ""; position: absolute; left: 0; top: 13px; width: 6px; height: 6px; border-radius: 2px; background: var(--green); }
.cf-out {
  margin-top: 28px; padding-top: 24px; border-top: 1px dashed var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.cf-out .o b { display: block; font-size: 26px; color: var(--blue); font-family: "Work Sans", sans-serif; line-height: 1.2; }
.cf-out .o span { font-size: 13px; color: var(--gray); }
@media (max-width: 900px) {
  .cf-grid { grid-template-columns: 1fr; gap: 20px; }
  .cf-out { grid-template-columns: repeat(2, 1fr); }
  .case-full { padding: 26px 20px; }
}

/* resource center */
.card.res { display: flex; flex-direction: column; }
.card.res p { font-size: 14.5px; color: var(--gray); }
.res-meta { margin-top: 14px; font-size: 12.5px; color: #8A8D96; }
.res-cta { margin-top: auto; padding-top: 22px; }
.inline-link { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.inline-link:hover { color: var(--blue-deep); }

/* faq accordion */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0;
  font-size: 17px; font-weight: 700; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--blue); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details[open] summary { color: var(--blue); }
.faq details p { padding: 0 40px 22px 0; color: var(--gray); font-size: 14.5px; }

/* whitepaper reading page */
.wp-hero { padding: 64px 0 56px; }
.wp-hero h1 { font-size: 40px; }
.wp-toc-sec { padding: 0 0 40px; background: #fff; }
.wp-toc {
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 26px 30px;
}
.wp-toc .k { font-size: 13px; letter-spacing: 2px; color: var(--blue); font-weight: 700; }
.wp-toc ol { margin: 14px 0 0 20px; columns: 2; column-gap: 48px; }
.wp-toc li { font-size: 14.5px; padding: 5px 0; break-inside: avoid; }
.wp-toc li a { color: var(--ink); }
.wp-toc li a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.wp-body { padding: 24px 0 84px; }
@media (max-width: 900px) {
  .wp-toc ol { columns: 1; }
  .wp-hero h1 { font-size: 30px; }
}

/* ---------- v4: motion & interaction polish ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* scroll reveal (JS adds .in) */
  .rv { opacity: 0; transform: translateY(20px);
        transition: opacity .65s cubic-bezier(.22,.68,.32,1), transform .65s cubic-bezier(.22,.68,.32,1); }
  .rv.in { opacity: 1; transform: none; }
  .rv-d1 { transition-delay: .08s; }
  .rv-d2 { transition-delay: .16s; }
  .rv-d3 { transition-delay: .24s; }

  /* hero entrance */
  @keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  .hero .container > * { animation: heroIn .8s cubic-bezier(.22,.68,.32,1) backwards; }
  .hero .eyebrow { animation-delay: .05s; }
  .hero h1 { animation-delay: .14s; }
  .hero .sub { animation-delay: .24s; }
  .hero .cta-row { animation-delay: .34s; }
  .hero .trust { animation-delay: .46s; }
  .hero-svg { animation: heroIn 1s .5s cubic-bezier(.22,.68,.32,1) backwards; }
  .play-hint { animation: heroIn .9s .65s cubic-bezier(.22,.68,.32,1) backwards; }

  /* video modal pop */
  @keyframes vmIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
  .video-modal:not([hidden]) .vm-wrap { animation: vmIn .32s cubic-bezier(.22,.68,.32,1); }
  .video-modal:not([hidden]) .vm-backdrop { animation: vmFade .3s ease; }
  @keyframes vmFade { from { opacity: 0; } }

  /* faq open */
  @keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } }
  .faq details[open] p { animation: faqIn .3s ease; }
}

/* card / hover language */
.card, .brand-card, .step, .tb-item { transition: transform .25s cubic-bezier(.22,.68,.32,1), box-shadow .25s, border-color .25s; }
.card:hover, .brand-card:hover { transform: translateY(-4px); box-shadow: 0 16px 44px rgba(10, 0, 180, 0.10); border-color: #D3D5EE; }
.btn { transition: background .2s, color .2s, border-color .2s, filter .2s, transform .12s; }
.btn:active { transform: scale(.97); }
.tbl tr { transition: background .15s; }
.tbl tr:hover td { background: #F6F7FF; }

/* header elevation on scroll */
header { transition: box-shadow .3s; }
header.scrolled { box-shadow: 0 8px 28px rgba(10, 0, 180, 0.10); }

/* counter digits settle */
.tb-item .big small { display: inline-block; }

/* offline single-file download hint */
.offline-line { margin-top: 22px; font-size: 14px; color: var(--gray); }

/* ---------- v4: header fit for 3 buttons + mode switch ---------- */
@media (max-width: 1140px) {
  nav { gap: 10px; }
  .header-cta { gap: 6px; }
  .header-cta .btn { padding: 8px 11px; font-size: 13px; }
  .ms-btn { padding: 6px 7px; font-size: 11px; }
}
@media (max-width: 1000px) {
  nav a[href*="yrhr.com"] { display: none; }
  .header-cta .btn[data-whitepaper] { display: none; }
}

/* ---------- v4: English header fit (longer labels) ---------- */
html[lang="en"] nav { gap: 10px; }
html[lang="en"] nav a { font-size: 14px; letter-spacing: 0; }
html[lang="en"] .header-cta { gap: 6px; }
html[lang="en"] .header-cta .btn { padding: 8px 12px; font-size: 13px; }
html[lang="en"] .ms-btn { padding: 6px 8px; font-size: 11px; }

@media (max-width: 1100px) {
  html[lang="en"] .header-cta .wp-head { display: none; }
}

/* ---------- v4: hero carousel on small screens ---------- */
@media (max-width: 900px) {
  .hero-arrow { display: none; }
  .hero-dots { bottom: 22px; gap: 8px; }
  .hero-dot { width: 28px; }
  .hero.is-video .play-hint { right: 20px; }
}
