/* ==========================================================================
   E-QS · DFMEA 演示页（2026-10 版）
   与 /d_fm/index/index 工作台同一套设计语言：--brand #2563eb / --brand2 #0ea5e9
   ========================================================================== */

:root {
  --ink: #0b1526;
  --ink2: #17253b;
  --muted: #5b6b82;
  --faint: #8b9ab1;
  --line: #e5ebf4;
  --line2: #eef3fa;
  --bg: #f6f9fd;
  --card: #ffffff;

  --brand: #2563eb;
  --brand2: #0ea5e9;
  --brand-soft: #eff6ff;
  --teal: #0d9488;
  --teal-soft: #ecfdf8;
  --danger: #e11d48;
  --danger-soft: #fff1f4;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --ok: #059669;
  --ok-soft: #ecfdf5;

  --navy: #060f1c;
  --navy2: #0b1a2d;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-md: 0 10px 30px -12px rgba(15, 23, 42, .16);
  --shadow-lg: 0 30px 70px -36px rgba(11, 21, 38, .38);

  --ff: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
        'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
}

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

html { scroll-behavior: smooth; }

section[id], div[id="demo"] { scroll-margin-top: 78px; }

body {
  font-family: var(--ff);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; }
::selection { background: #bfdbfe; color: var(--ink); }

.ys-wrap { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.ys-mono { font-family: var(--mono); }

/* ============================ NAV ============================ */
.ys-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  height: 68px; display: flex; align-items: center;
  background: rgba(6, 15, 28, .55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  transition: background .28s ease, border-color .28s ease, height .28s ease;
}
.ys-nav.is-solid {
  height: 60px;
  background: rgba(255, 255, 255, .88);
  border-bottom-color: var(--line);
}
.ys-nav-inner { width: min(1240px, calc(100% - 48px)); margin: 0 auto; display: flex; align-items: center; gap: 22px; }

.ys-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .02em; color: #fff; transition: color .28s; }
.ys-nav.is-solid .ys-brand { color: var(--ink); }
.ys-brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(140deg, #0f2a4a, #134e6f 60%, #0e7490);
  color: #fff; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; letter-spacing: .06em;
  box-shadow: 0 8px 18px -8px rgba(13, 59, 87, .9);
}
.ys-brand small { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: .04em; opacity: .62; margin-top: -3px; }

.ys-nav-links { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.ys-nav-links a {
  padding: 7px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 500;
  color: rgba(255, 255, 255, .72); transition: background .16s, color .16s;
}
.ys-nav.is-solid .ys-nav-links a { color: var(--muted); }
.ys-nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.ys-nav.is-solid .ys-nav-links a:hover { color: var(--ink); background: var(--line2); }

.ys-nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.ys-lang { display: flex; padding: 3px; border-radius: 9px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); }
.ys-nav.is-solid .ys-lang { background: #f1f5fb; border-color: var(--line); }
.ys-lang button {
  border: 0; background: transparent; color: rgba(255, 255, 255, .66);
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 7px;
  transition: background .16s, color .16s;
}
.ys-nav.is-solid .ys-lang button { color: var(--muted); }
.ys-lang button.is-on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.ys-nav.is-solid .ys-lang button.is-on { background: #fff; color: var(--brand); }

/* ============================ BUTTONS ============================ */
.ys-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 600; white-space: nowrap;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.ys-btn:hover { transform: translateY(-1px); }
.ys-btn-primary {
  background: linear-gradient(135deg, #2563eb, #0ea5e9 70%, #22d3ee);
  color: #fff; box-shadow: 0 14px 30px -14px rgba(37, 99, 235, .7);
}
.ys-btn-primary:hover { box-shadow: 0 18px 34px -14px rgba(37, 99, 235, .85); }
.ys-btn-ghost {
  background: rgba(255, 255, 255, .07); color: #eaf2ff;
  border-color: rgba(255, 255, 255, .18);
}
.ys-btn-ghost:hover { background: rgba(255, 255, 255, .13); }
.ys-btn-line { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.ys-btn-line:hover { border-color: #c9d8ee; }
.ys-btn-sm { height: 38px; padding: 0 15px; font-size: 13px; border-radius: 10px; }

/* ============================ HERO ============================ */
.ys-hero {
  position: relative; overflow: hidden;
  background: var(--navy);
  padding: 148px 0 92px;
  isolation: isolate;
}
.ys-hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.ys-hero-bg::before {
  content: ''; position: absolute; inset: -20% -10% auto -10%; height: 120%;
  background:
    radial-gradient(46% 54% at 18% 12%, rgba(37, 99, 235, .42), transparent 62%),
    radial-gradient(40% 46% at 78% 4%, rgba(14, 165, 233, .34), transparent 64%),
    radial-gradient(44% 46% at 62% 78%, rgba(13, 148, 136, .26), transparent 66%),
    radial-gradient(38% 40% at 8% 82%, rgba(99, 102, 241, .24), transparent 68%);
  filter: blur(8px);
  animation: ysAurora 20s ease-in-out infinite alternate;
}
.ys-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 62% at 50% 34%, #000 20%, transparent 82%);
  -webkit-mask-image: radial-gradient(70% 62% at 50% 34%, #000 20%, transparent 82%);
}
@keyframes ysAurora {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1); }
  50%  { transform: translate3d(2%, 2%, 0) scale(1.06); }
  100% { transform: translate3d(-1%, 1%, 0) scale(1.02); }
}

.ys-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: 54px; align-items: center;
}

.ys-hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 13px 6px 7px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  color: #cfe4ff; font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  backdrop-filter: blur(6px);
}
.ys-hero-badge i { color: #7dd3fc; }
.ys-pulse {
  width: 7px; height: 7px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .6);
  animation: ysPulse 2.2s ease-out infinite;
}
@keyframes ysPulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.ys-hero h1 {
  margin: 22px 0 0;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.1; letter-spacing: -.025em; font-weight: 800; color: #fff;
}
.ys-hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #7dd3fc, #38bdf8 30%, #a5b4fc 62%, #67e8f9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ys-hero-sub {
  margin-top: 20px; max-width: 30em;
  color: rgba(226, 240, 255, .74); font-size: 15.5px; line-height: 1.75;
}
.ys-hero-sub strong { color: #eaf4ff; font-weight: 600; }

.ys-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.ys-hero-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  margin-top: 26px; color: rgba(203, 224, 247, .58); font-size: 12.5px;
}
.ys-hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.ys-hero-note i { color: #5eead4; font-size: 11px; }

/* 七步法条 */
.ys-strip {
  margin-top: 40px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.ys-strip-node {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 9px; font-size: 12.5px; font-weight: 600;
  color: rgba(224, 240, 255, .86);
  background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .12);
}
.ys-strip-node b { color: #7dd3fc; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ys-strip-node.is-ai { border-color: rgba(56, 189, 248, .42); background: rgba(14, 165, 233, .14); }
.ys-strip-sep { color: rgba(255, 255, 255, .22); font-size: 11px; }

/* ---------- hero 产品窗口 ---------- */
.ys-shot {
  position: relative; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  padding: 1px; box-shadow: 0 50px 90px -50px rgba(0, 0, 0, .9);
  transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
  transition: transform .6s cubic-bezier(.2, .8, .3, 1);
}
.ys-shot:hover { transform: perspective(1600px) rotateY(-2deg) rotateX(1deg) translateY(-4px); }
.ys-shot-inner {
  border-radius: 17px; overflow: hidden; background: #fff;
  font-size: 12px; color: var(--ink);
}
.ys-shot-bar {
  display: flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 12px; background: #f1f5fb; border-bottom: 1px solid var(--line);
}
.ys-dot { width: 8px; height: 8px; border-radius: 50%; background: #d5dfec; }
.ys-dot.r { background: #ffb3c1; } .ys-dot.y { background: #ffd8a3; } .ys-dot.g { background: #a7dfc0; }
.ys-shot-url {
  margin-left: 10px; flex: 1; height: 20px; border-radius: 6px; background: #fff;
  border: 1px solid var(--line); display: flex; align-items: center; padding: 0 9px;
  font-size: 10.5px; color: var(--faint); font-family: var(--mono);
}
.ys-shot-body { display: grid; grid-template-columns: 1.05fr 1.25fr; min-height: 336px; }

/* hero 左：需求清单 */
.ys-shot-req { border-right: 1px solid var(--line); display: flex; flex-direction: column; background: #fbfdff; }
.ys-shot-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 11px; border-bottom: 1px solid var(--line);
  font-size: 11.5px; font-weight: 700; color: var(--ink2);
}
.ys-shot-head em { font-style: normal; font-weight: 600; font-size: 10.5px; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 1px 8px; }
.ys-shot-list { padding: 8px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.ys-shot-item {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 7px; align-items: start;
  padding: 7px 8px; border-radius: 8px; background: #fff; border: 1px solid var(--line2);
  opacity: 0; transform: translateY(6px); animation: ysRowIn .5s ease forwards;
}
.ys-shot-item .ref { font-family: var(--mono); font-size: 9.5px; color: var(--brand); font-weight: 700; padding-top: 1px; }
.ys-shot-item .txt { font-size: 10.5px; line-height: 1.45; color: #334155; }
.ys-shot-item .txt small { display: block; color: var(--faint); font-size: 9px; margin-top: 2px; }
@keyframes ysRowIn { to { opacity: 1; transform: translateY(0); } }

.ys-cover {
  font-size: 9px; font-weight: 700; padding: 1.5px 7px; border-radius: 999px;
  white-space: nowrap; letter-spacing: .02em;
}
.ys-cover.covered { background: var(--ok-soft); color: var(--ok); border: 1px solid #a7f3d0; }
.ys-cover.partial { background: var(--amber-soft); color: var(--amber); border: 1px solid #fde68a; }
.ys-cover.gap { background: var(--danger-soft); color: var(--danger); border: 1px solid #fecdd3; }

/* hero 右：结构 + 失效 */
.ys-shot-right { display: flex; flex-direction: column; }
.ys-shot-tabs { display: flex; gap: 4px; padding: 7px 10px; border-bottom: 1px solid var(--line); background: #fff; }
.ys-shot-tab {
  font-size: 10.5px; font-weight: 600; color: var(--faint);
  padding: 3px 9px; border-radius: 6px;
}
.ys-shot-tab.on { background: var(--brand-soft); color: var(--brand); }

.ys-shot-tree { padding: 9px 12px; display: flex; flex-direction: column; gap: 2px; }
.ys-tree-row {
  display: flex; align-items: center; gap: 7px; padding: 4px 6px; border-radius: 6px;
  font-size: 10.5px; color: #334155;
}
.ys-tree-row:hover { background: #f4f8fe; }
.ys-tree-row i { font-size: 8px; color: #b6c4d8; }
.ys-tree-row .nm { flex: 1; }
.ys-tree-row .cnt {
  font-size: 9px; font-weight: 700; color: var(--brand); background: var(--brand-soft);
  border-radius: 999px; padding: 0 6px; min-width: 18px; text-align: center;
}
.ys-tree-row.lv2 { padding-left: 18px; }
.ys-tree-row.lv3 { padding-left: 34px; }
.ys-tree-row.is-hit { background: #eff6ff; box-shadow: inset 0 0 0 1px #bfdbfe; }

.ys-shot-fail { margin: 4px 12px 12px; border-radius: 9px; border: 1px solid var(--line); overflow: hidden; }
.ys-shot-fail-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 9px; background: #f8fbff; border-bottom: 1px solid var(--line);
  font-size: 10px; font-weight: 700; color: var(--ink2);
}
.ys-shot-fail-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: center;
  padding: 6px 9px; font-size: 10px; color: #334155; border-bottom: 1px solid var(--line2);
}
.ys-shot-fail-row:last-child { border-bottom: 0; }
.ap-badge {
  width: 19px; height: 19px; border-radius: 5px; display: grid; place-items: center;
  font-size: 9.5px; font-weight: 800; color: #fff;
}
.ap-h { background: #e11d48; } .ap-m { background: #d97706; } .ap-l { background: #059669; }

/* 浮动小卡 */
.ys-float {
  position: absolute; display: flex; align-items: center; gap: 9px;
  padding: 9px 13px; border-radius: 12px; font-size: 11.5px; font-weight: 600;
  background: rgba(255, 255, 255, .96); color: var(--ink);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .7);
  animation: ysFloat 5.5s ease-in-out infinite;
}
.ys-float i { color: var(--brand); }
.ys-float.f1 { left: -26px; top: 84px; animation-delay: -1s; }
.ys-float.f2 { right: -22px; bottom: 74px; animation-delay: -2.6s; }
.ys-float.f2 i { color: var(--teal); }
.ys-float small { display: block; font-size: 9.5px; font-weight: 500; color: var(--faint); }
@keyframes ysFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ============================ METRICS ============================ */
.ys-metrics {
  position: relative; z-index: 2;
  margin: -52px auto 0; width: min(1240px, calc(100% - 48px));
  background: #fff; border-radius: var(--r-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.ys-metric {
  padding: 26px 26px; position: relative;
}
.ys-metric + .ys-metric::before {
  content: ''; position: absolute; left: 0; top: 22px; bottom: 22px; width: 1px; background: var(--line);
}
.ys-metric b {
  display: block; font-size: 33px; font-weight: 800; letter-spacing: -.03em;
  background: linear-gradient(120deg, #1d4ed8, #0ea5e9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.ys-metric b i { font-style: normal; font-size: 17px; font-weight: 700; margin-left: 1px; }
.ys-metric span { display: block; font-size: 13px; font-weight: 600; color: var(--ink2); margin-top: 4px; }
.ys-metric small { display: block; font-size: 11.5px; color: var(--faint); margin-top: 2px; line-height: 1.5; }

/* ============================ SECTION SHELL ============================ */
.ys-sec { padding: 92px 0; }
.ys-sec-alt { background: #fff; }
.ys-sec-dark {
  background: linear-gradient(180deg, #071324, #0a1a2e 60%, #08182a);
  color: #e6effb;
}
.ys-head { max-width: 780px; margin-bottom: 46px; }
.ys-head.center { margin-inline: auto; text-align: center; }
.ys-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand);
}
.ys-kicker::before { content: ''; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }
.ys-sec-dark .ys-kicker { color: #7dd3fc; }
.ys-sec-dark .ys-kicker::before { background: #7dd3fc; }
.ys-head.center .ys-kicker::after { content: ''; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }

.ys-head h2 {
  margin: 14px 0 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.2;
  letter-spacing: -.02em; font-weight: 800;
}
.ys-head p { margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.ys-sec-dark .ys-head h2 { color: #fff; }
.ys-sec-dark .ys-head p { color: rgba(219, 234, 254, .68); }

/* ============================ CAPS ============================ */
.ys-caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ys-cap {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 26px 24px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  overflow: hidden;
}
.ys-cap::after {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  opacity: 0; transition: opacity .22s ease;
}
.ys-cap:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d7e3f4; }
.ys-cap:hover::after { opacity: 1; }
.ys-cap-ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-size: 18px;
  margin-bottom: 16px;
}
.ys-cap:nth-child(2n) .ys-cap-ico { background: var(--teal-soft); color: var(--teal); }
.ys-cap:nth-child(3n) .ys-cap-ico { background: #f5f3ff; color: #7c3aed; }
.ys-cap h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.ys-cap p { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.72; }
.ys-cap ul { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ys-cap li {
  position: relative; padding-left: 16px; font-size: 12.5px; color: #475569; line-height: 1.6;
}
.ys-cap li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%; background: #a8c4ea;
}
.ys-new {
  position: absolute; right: 18px; top: 18px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .08em;
  color: #fff; background: linear-gradient(135deg, #f43f5e, #f97316);
  border-radius: 999px; padding: 2px 8px;
}

/* ============================ SIMULATOR ============================ */
.ys-sim-shell {
  border-radius: var(--r-lg); overflow: hidden;
  background: #0a1626; padding: 12px;
  box-shadow: 0 60px 120px -60px rgba(4, 12, 24, .85);
  border: 1px solid rgba(255, 255, 255, .08);
}
.ys-sim {
  position: relative;
  border-radius: 14px; overflow: hidden; background: #fff;
  display: flex; flex-direction: column; height: 664px;
  font-size: 12.5px;
}
.ys-sim-chrome {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  background: #eef3fa; border-bottom: 1px solid var(--line); flex: 0 0 auto;
}
.ys-sim-url {
  flex: 1; max-width: 420px; height: 22px; border-radius: 7px; background: #fff;
  border: 1px solid var(--line); display: flex; align-items: center; padding: 0 10px;
  font-family: var(--mono); font-size: 10.5px; color: var(--faint);
}
.ys-sim-chrome .right { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--faint); }
.ys-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .16); }

.ys-sim-top {
  display: flex; align-items: center; gap: 14px; padding: 10px 16px;
  border-bottom: 1px solid var(--line); background: #fff; flex: 0 0 auto;
}
.ys-sim-proj { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ys-sim-proj .mark {
  width: 28px; height: 28px; border-radius: 8px; flex: 0 0 auto;
  background: linear-gradient(140deg, #0f2a4a, #0e7490); color: #fff;
  display: grid; place-items: center; font-size: 10px; font-weight: 800;
}
.ys-sim-proj b { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.ys-sim-proj small { display: block; font-size: 10px; color: var(--faint); }
.ys-sim-steps { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.ys-sim-step {
  font-size: 10.5px; font-weight: 600; color: var(--faint);
  padding: 4px 9px; border-radius: 7px; white-space: nowrap;
}
.ys-sim-step.is-done { color: var(--teal); background: var(--teal-soft); }
.ys-sim-step.is-on { color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px #bfdbfe; }

.ys-sim-main { position: relative; flex: 1; display: grid; grid-template-columns: 216px minmax(0, 1fr) 322px; min-height: 0; }

/* tree */
.ys-sim-tree { border-right: 1px solid var(--line); background: #fbfdff; display: flex; flex-direction: column; min-height: 0; }
.ys-sim-panel-hd {
  display: flex; align-items: center; gap: 7px; padding: 9px 12px;
  border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 700; color: var(--ink2);
  background: #fff; flex: 0 0 auto;
}
.ys-sim-panel-hd i { color: var(--faint); font-size: 10.5px; }
.ys-sim-panel-hd .meta { margin-left: auto; font-size: 10px; font-weight: 600; color: var(--faint); }
.ys-tree { padding: 8px; display: flex; flex-direction: column; gap: 1px; overflow: auto; }
.ys-tnode {
  display: flex; align-items: center; gap: 7px; padding: 5px 7px; border-radius: 7px;
  font-size: 11.5px; color: #334155; cursor: default;
  transition: background .16s ease;
}
.ys-tnode:hover { background: #f1f7fe; }
.ys-tnode.is-sel { background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 0 0 1px #cfe3fb; }
.ys-tnode.is-flash { animation: ysFlash .9s ease; }
@keyframes ysFlash {
  0% { background: #dbeafe; }
  100% { background: transparent; }
}
.ys-tnode .tw { color: #b9c7da; font-size: 9px; width: 9px; text-align: center; }
.ys-tnode .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ys-tnode .badge {
  min-width: 17px; height: 16px; border-radius: 999px; padding: 0 5px;
  display: inline-grid; place-items: center;
  font-size: 9.5px; font-weight: 700;
  background: #eef2f8; color: var(--faint);
  transition: background .3s, color .3s, transform .3s;
}
.ys-tnode .badge.has { background: var(--brand); color: #fff; }
.ys-tnode .badge.bump { animation: ysBump .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes ysBump { 0% { transform: scale(1); } 45% { transform: scale(1.45); } 100% { transform: scale(1); } }
.ys-tnode.lv1 { padding-left: 7px; }
.ys-tnode.lv2 { padding-left: 21px; }
.ys-tnode.lv3 { padding-left: 35px; }

/* center */
.ys-sim-center { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fff; }
.ys-sim-tabs { display: flex; align-items: center; gap: 4px; padding: 8px 12px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.ys-tab {
  border: 0; background: transparent; font-size: 11.5px; font-weight: 600; color: var(--faint);
  padding: 5px 11px; border-radius: 7px; transition: background .16s, color .16s;
}
.ys-tab:hover { background: var(--line2); color: var(--ink2); }
.ys-tab.is-on { background: var(--brand-soft); color: var(--brand); }
.ys-sim-tabs .right { margin-left: auto; font-size: 10px; color: var(--faint); display: flex; gap: 10px; align-items: center; }

.ys-pane { flex: 1; overflow: auto; padding: 12px; min-height: 0; }
.ys-pane[hidden] { display: none; }

/* function cards */
.ys-fn {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px;
  background: #fff; transition: border-color .2s, box-shadow .2s;
  opacity: 0; transform: translateY(8px); animation: ysRowIn .45s ease forwards;
}
.ys-fn:hover { border-color: #cfe1f7; box-shadow: var(--shadow-sm); }
.ys-fn .top { display: flex; align-items: center; gap: 8px; }
.ys-fn .tag {
  font-size: 9px; font-weight: 700; padding: 1px 7px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
}
.ys-fn .tag.req { background: #f5f3ff; color: #7c3aed; }
.ys-fn .desc { font-size: 12px; color: var(--ink2); line-height: 1.6; margin-top: 6px; }
.ys-fn .feet { display: flex; gap: 10px; margin-top: 7px; font-size: 10px; color: var(--faint); }

/* failure table */
.ys-ftable { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.ys-ftable th {
  text-align: left; font-size: 10px; font-weight: 700; color: var(--faint);
  padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.ys-ftable td { padding: 8px; border-bottom: 1px solid var(--line2); color: #334155; vertical-align: top; line-height: 1.5; }
.ys-ftable tr { opacity: 0; transform: translateY(6px); animation: ysRowIn .45s ease forwards; }
.ys-ftable tr:hover td { background: #fbfdff; }
.ys-ftable .mode { font-weight: 600; color: var(--ink2); }
.ys-sod { font-family: var(--mono); font-size: 10.5px; color: var(--faint); white-space: nowrap; }

/* AP workbench */
.ys-ap-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.ys-ap-card {
  border-radius: 10px; padding: 10px 11px; border: 1px solid var(--line); background: #fff;
}
.ys-ap-card b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ys-ap-card span { font-size: 10px; color: var(--faint); font-weight: 600; }
.ys-ap-card.h b { color: var(--danger); } .ys-ap-card.m b { color: var(--amber); }
.ys-ap-card.l b { color: var(--ok); } .ys-ap-card.n b { color: var(--faint); }
.ys-ap-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center;
  padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line2); margin-bottom: 6px;
  font-size: 11.5px;
}

/* requirement panel */
.ys-sim-req { border-left: 1px solid var(--line); background: #fbfdff; display: flex; flex-direction: column; min-height: 0; }
.ys-req-tools { display: flex; gap: 4px; margin-left: auto; }
.ys-req-tool {
  width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line);
  background: #fff; color: var(--faint); font-size: 10px;
  display: grid; place-items: center; transition: all .16s;
}
.ys-req-tool:hover { color: var(--brand); border-color: #bfdbfe; background: var(--brand-soft); }
.ys-req-tool.is-ai { color: var(--brand); border-color: #bfdbfe; background: var(--brand-soft); }
.ys-req-tool.is-ai.is-busy { animation: ysSpinPulse 1.1s ease-in-out infinite; }
@keyframes ysSpinPulse { 50% { box-shadow: 0 0 0 4px rgba(37, 99, 235, .16); } }

.ys-req-body { flex: 1; overflow: auto; padding: 9px; min-height: 0; }
.ys-req-drop {
  border: 1.5px dashed #c3d7f0; border-radius: 11px; background: #f8fbff;
  padding: 20px 12px; text-align: center; color: #7b8ca4; font-size: 11.5px;
  transition: border-color .2s, background .2s;
}
.ys-req-drop i { display: block; font-size: 20px; color: #9dbbdd; margin-bottom: 8px; }
.ys-req-drop b { display: block; color: var(--ink2); font-size: 12px; margin-bottom: 3px; }
.ys-req-drop.is-over { border-color: var(--brand); background: #eef6ff; }
.ys-req-drop[hidden] { display: none; }

.ys-req-item {
  position: relative; border: 1px solid var(--line); border-radius: 9px; background: #fff;
  padding: 7px 9px 7px 10px; margin-bottom: 6px;
  opacity: 0; transform: translateY(7px); animation: ysRowIn .42s ease forwards;
}
.ys-req-item:hover { border-color: #cfe1f7; }
.ys-req-item .l1 { display: flex; align-items: center; gap: 6px; }
.ys-req-item .ref {
  font-family: var(--mono); font-size: 9.5px; font-weight: 700; color: var(--brand);
  background: var(--brand-soft); border-radius: 4px; padding: 0 5px;
}
.ys-req-item .type { font-size: 9px; color: var(--faint); }
.ys-req-item .body { font-size: 10.5px; line-height: 1.55; color: #3b4a60; margin-top: 4px; }
.ys-req-item .l3 { display: flex; align-items: center; gap: 6px; margin-top: 5px; flex-wrap: wrap; }
.ys-req-item .link {
  font-size: 9px; color: var(--teal); background: var(--teal-soft); border-radius: 999px; padding: 1px 7px;
}
.ys-req-item.is-sel { box-shadow: 0 0 0 2px rgba(37, 99, 235, .24); border-color: #bfdbfe; }
.ys-req-item.is-new { animation: ysNewIn .5s ease forwards, ysRowIn .42s ease forwards; }
@keyframes ysNewIn {
  0% { box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.ys-req-foot { border-top: 1px solid var(--line); background: #fff; padding: 9px; flex: 0 0 auto; }
.ys-req-foot-hd { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; color: var(--ink2); margin-bottom: 7px; }
.ys-req-foot-hd i { color: var(--faint); font-size: 10px; }
.ys-review-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ys-review-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: 7px 4px; font-size: 9.5px; font-weight: 600; color: var(--ink2); line-height: 1.35;
  text-align: center; transition: all .16s;
}
.ys-review-btn i { display: block; font-size: 12px; color: var(--brand); margin-bottom: 4px; }
.ys-review-btn:hover { border-color: #bfdbfe; background: var(--brand-soft); }
.ys-review-btn.is-active { border-color: #bfdbfe; background: var(--brand-soft); box-shadow: 0 0 0 2px rgba(37, 99, 235, .1); }
.ys-review-last {
  margin-top: 7px; font-size: 9.5px; color: var(--faint);
  display: flex; align-items: center; gap: 6px;
}
.ys-review-last .pill {
  background: #f1f5fb; border-radius: 999px; padding: 1px 8px; color: var(--ink2); font-weight: 600;
}

/* knowledge drawer */
.ys-drawer {
  position: absolute; inset: 0 0 0 auto; width: 420px; z-index: 30;
  background: #fff; border-left: 1px solid var(--line);
  box-shadow: -30px 0 60px -30px rgba(11, 21, 38, .35);
  transform: translateX(103%); transition: transform .38s cubic-bezier(.3, .9, .3, 1);
  display: flex; flex-direction: column;
}
.ys-drawer.is-open { transform: translateX(0); }
.ys-drawer-hd {
  display: flex; align-items: center; gap: 8px; padding: 11px 14px;
  border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700;
}
.ys-drawer-hd .x { margin-left: auto; border: 0; background: transparent; color: var(--faint); font-size: 13px; }
.ys-drawer-body { flex: 1; overflow: auto; padding: 12px 14px; }
.ys-kb-group { margin-bottom: 14px; }
.ys-kb-group > label {
  display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; color: var(--ink2);
  margin-bottom: 7px;
}
.ys-chk {
  width: 13px; height: 13px; border-radius: 4px; background: var(--brand);
  display: inline-grid; place-items: center; color: #fff; font-size: 8px;
}
.ys-kb-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 9.5px; font-weight: 600; color: var(--teal);
  background: var(--teal-soft); border: 1px solid #b6ebe0; border-radius: 999px; padding: 2px 9px;
}
.ys-kb-chunk {
  border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; margin-bottom: 7px;
  background: #fbfdff; font-size: 10.5px; line-height: 1.6; color: #3b4a60;
  opacity: 0; transform: translateY(6px); animation: ysRowIn .42s ease forwards;
}
.ys-kb-chunk .hd { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.ys-kb-chunk .src { font-family: var(--mono); font-size: 9px; color: var(--faint); }
.ys-kb-chunk .rel { margin-left: auto; font-size: 9px; font-weight: 800; color: var(--teal); }
.ys-kb-chunk .why { margin-top: 4px; font-size: 9.5px; color: var(--faint); font-style: italic; }
.ys-kb-meter { height: 3px; border-radius: 3px; background: #e8eef7; margin-top: 6px; overflow: hidden; }
.ys-kb-meter i { display: block; height: 100%; background: linear-gradient(90deg, #0d9488, #22d3ee); width: 0; transition: width .9s cubic-bezier(.2, .8, .3, 1); }
.ys-kb-input {
  width: 100%; height: 28px; border: 1px solid var(--line); border-radius: 7px;
  padding: 0 8px; font-size: 10.5px; color: var(--ink2); background: #fff;
}
.ys-kb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.ys-kb-fld { font-size: 9.5px; color: var(--faint); font-weight: 600; }
.ys-kb-fld .ys-kb-input { margin-top: 3px; }

/* toast */
.ys-toast-wrap {
  position: absolute; left: 50%; bottom: 74px; transform: translateX(-50%);
  z-index: 40; display: flex; flex-direction: column; gap: 7px; align-items: center;
  pointer-events: none;
}
.ys-toast {
  display: flex; align-items: center; gap: 8px;
  background: rgba(10, 22, 38, .94); color: #e8f2ff;
  padding: 8px 15px; border-radius: 10px; font-size: 11.5px; font-weight: 500;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
  border: 1px solid rgba(255, 255, 255, .12);
  animation: ysToastIn .35s cubic-bezier(.2, 1.2, .4, 1);
  max-width: 92%;
}
.ys-toast i { color: #38bdf8; }
.ys-toast.ok i { color: #34d399; }
.ys-toast.warn i { color: #fbbf24; }
@keyframes ysToastIn {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* player */
.ys-player {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px;
  border-top: 1px solid var(--line); background: #f8fbff; flex: 0 0 auto;
}
.ys-scenes { display: flex; gap: 4px; overflow: auto; flex: 1; }
.ys-scene-chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 4px 11px; font-size: 10.5px; font-weight: 600;
  transition: all .16s;
}
.ys-scene-chip b {
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center;
  background: #eef2f8; color: var(--faint);
}
.ys-scene-chip:hover { border-color: #bfdbfe; color: var(--ink2); }
.ys-scene-chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.ys-scene-chip.is-on b { background: rgba(255, 255, 255, .2); color: #fff; }
.ys-scene-chip.is-done { border-color: #a7f3d0; color: var(--teal); background: var(--teal-soft); }
.ys-scene-chip.is-done b { background: #a7f3d0; color: #065f46; }

.ys-play-ctrl { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.ys-play-btn {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink2); display: grid; place-items: center; font-size: 10.5px;
  transition: all .16s;
}
.ys-play-btn:hover { border-color: #bfdbfe; color: var(--brand); background: var(--brand-soft); }
.ys-play-btn.is-main { background: var(--ink); border-color: var(--ink); color: #fff; width: 34px; height: 34px; }
.ys-play-btn.is-main:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.ys-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #e8eef7; }
.ys-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand2)); transition: width .3s linear; }

.ys-sim-wrap { position: relative; }

/* ============================ STEPS ============================ */
.ys-steps { position: relative; display: flex; flex-direction: column; gap: 0; }
.ys-steps::before {
  content: ''; position: absolute; left: 21px; top: 18px; bottom: 18px; width: 2px;
  background: linear-gradient(180deg, #bfdbfe, #a7f3d0 55%, #ddd6fe);
  border-radius: 2px;
}
.ys-step-row { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 13px 0; }
.ys-step-num {
  width: 44px; height: 44px; border-radius: 13px; z-index: 1;
  display: grid; place-items: center; font-size: 13px; font-weight: 800;
  background: #fff; border: 1px solid var(--line); color: var(--brand);
  box-shadow: var(--shadow-sm);
}
.ys-step-row.is-ai .ys-step-num {
  background: linear-gradient(135deg, #2563eb, #0ea5e9); color: #fff; border-color: transparent;
  box-shadow: 0 12px 24px -12px rgba(37, 99, 235, .7);
}
.ys-step-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ys-step-card:hover { transform: translateX(3px); box-shadow: var(--shadow-md); border-color: #d7e3f4; }
.ys-step-card h3 { font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.ys-step-card h3 .ai-tag {
  font-size: 9px; font-weight: 800; letter-spacing: .06em; color: #fff;
  background: linear-gradient(135deg, #2563eb, #0ea5e9); border-radius: 999px; padding: 2px 8px;
}
.ys-step-card p { margin-top: 7px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.ys-step-card .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ys-step-card .chips span {
  font-size: 11px; font-weight: 600; color: #475569;
  background: #f4f8fd; border: 1px solid var(--line2); border-radius: 7px; padding: 2px 9px;
}

/* ============================ COMPARE ============================ */
.ys-cmp {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .035);
}
.ys-cmp-row { display: grid; grid-template-columns: 1fr 1fr; }
.ys-cmp-row > div { padding: 18px 24px; font-size: 13.5px; line-height: 1.6; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.ys-cmp-row:last-child > div { border-bottom: 0; }
.ys-cmp-row.head > div {
  font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 14px 24px; color: rgba(219, 234, 254, .62);
}
.ys-cmp-row.head .win { color: #7dd3fc; }
.ys-cmp-row .old { color: rgba(219, 234, 254, .5); border-right: 1px solid rgba(255, 255, 255, .07); }
.ys-cmp-row .new { color: #eaf4ff; display: flex; align-items: flex-start; gap: 9px; }
.ys-cmp-row .new i { color: #34d399; font-size: 11px; margin-top: 5px; }
.ys-cmp-row .old s { text-decoration-color: rgba(244, 63, 94, .45); }

/* ============================ STACK ============================ */
.ys-stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ys-stack-item {
  display: flex; gap: 13px; padding: 17px 18px; border-radius: var(--r);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.ys-stack-item i {
  width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 14px;
  background: var(--brand-soft); color: var(--brand);
}
.ys-stack-item b { display: block; font-size: 13px; font-weight: 700; }
.ys-stack-item span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.6; }
.ys-stack-item code {
  font-family: var(--mono); font-size: 10.5px; background: #f4f8fd;
  border: 1px solid var(--line2); border-radius: 4px; padding: 0 4px; color: #475569;
}

/* ============================ CTA ============================ */
.ys-cta {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: linear-gradient(135deg, #0b2a5b, #0e4a7a 45%, #0d7490);
  padding: 54px 48px; color: #fff;
  box-shadow: 0 40px 90px -50px rgba(11, 42, 91, .9);
}
.ys-cta::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(40% 60% at 85% 10%, rgba(56, 189, 248, .38), transparent 70%),
    radial-gradient(40% 60% at 12% 90%, rgba(45, 212, 191, .24), transparent 70%);
}
.ys-cta > * { position: relative; }
.ys-cta h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.ys-cta p { margin-top: 12px; color: rgba(224, 242, 254, .76); font-size: 14.5px; line-height: 1.75; max-width: 44em; }
.ys-cta-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.ys-contact { display: flex; flex-direction: column; gap: 10px; min-width: 236px; }
.ys-contact-item {
  display: flex; align-items: center; gap: 10px; font-size: 13px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 11px; padding: 10px 14px; transition: background .18s;
}
.ys-contact-item:hover { background: rgba(255, 255, 255, .17); }
.ys-contact-item i { color: #7dd3fc; width: 15px; text-align: center; }
.ys-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* ============================ FOOTER ============================ */
.ys-foot {
  border-top: 1px solid var(--line); background: #fff; padding: 28px 0;
  color: var(--faint); font-size: 12.5px;
}
.ys-foot-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ys-foot-inner .sep { flex: 1; }
.ys-foot a:hover { color: var(--brand); }

/* ============================ REVEAL ============================ */
.ys-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .8, .3, 1), transform .7s cubic-bezier(.2, .8, .3, 1); }
.ys-reveal.in { opacity: 1; transform: none; }
.ys-reveal.d1 { transition-delay: .07s; } .ys-reveal.d2 { transition-delay: .14s; }
.ys-reveal.d3 { transition-delay: .21s; } .ys-reveal.d4 { transition-delay: .28s; }
.ys-reveal.d5 { transition-delay: .35s; } .ys-reveal.d6 { transition-delay: .42s; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1120px) {
  .ys-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .ys-shot { transform: none; max-width: 640px; }
  .ys-shot:hover { transform: translateY(-4px); }
  .ys-float.f1 { left: 6px; } .ys-float.f2 { right: 6px; }
  .ys-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ys-sim-main { grid-template-columns: 190px minmax(0, 1fr) 286px; }
  .ys-stack { grid-template-columns: repeat(2, 1fr); }
  .ys-cta-grid { grid-template-columns: 1fr; }
  .ys-contact { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 900px) {
  .ys-nav-links { display: none; }
  .ys-metrics { grid-template-columns: repeat(2, 1fr); }
  .ys-metric:nth-child(3)::before { display: none; }
  .ys-metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ys-sim-main { grid-template-columns: 1fr; }
  .ys-sim { height: 860px; min-height: 0; }
  .ys-sim-tree { display: none; }
  .ys-sim-main { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) 336px; }
  .ys-sim-req { border-left: 0; border-top: 1px solid var(--line); max-height: none; }
  .ys-drawer { width: 100%; }
  .ys-sec { padding: 68px 0; }
  .ys-cmp-row { grid-template-columns: 1fr; }
  .ys-cmp-row .old { border-right: 0; }
}

@media (max-width: 640px) {
  .ys-wrap, .ys-nav-inner, .ys-metrics { width: calc(100% - 32px); }
  .ys-hero { padding-top: 116px; }
  .ys-caps { grid-template-columns: 1fr; }
  .ys-stack { grid-template-columns: 1fr; }
  .ys-metrics { grid-template-columns: 1fr; }
  .ys-metric::before { display: none !important; }
  .ys-metric + .ys-metric { border-top: 1px solid var(--line); }
  .ys-cta { padding: 34px 22px; }
  .ys-hero-note { font-size: 11.5px; }
  .ys-sim-shell { padding: 6px; }
  .ys-sim { min-height: 540px; }
  .ys-float { display: none; }
  .ys-shot-body { grid-template-columns: 1fr; }
  .ys-shot-req { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .ys-reveal { opacity: 1; transform: none; }
}
