/* ================================================================
   MM Solutions — combined upgraded landing stylesheet
   Concatenation of:
     colors_and_type.css  (tokens + semantic defaults)
     marketing.css        (mk-* base styles)
     upgrade.css          (up-* new sections)
     terminal_hero.css    (th-* hero terminal)
     workflow.css         (wf-* workflow animation)
   Generated for Django — all asset URLs rewritten to /static/home/.
   ================================================================ */

/* Webfonts — loaded from Google Fonts (same families the live site uses) */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* ---------- Brand colors ---------- */
  --mm-blue:            #2563eb;   /* primary · blue-600 */
  --mm-blue-700:        #1d4ed8;
  --mm-blue-500:        #3b82f6;
  --mm-blue-300:        #93c5fd;
  --mm-blue-100:        #dbeafe;
  --mm-blue-tint:       rgba(37, 99, 235, 0.07);
  --mm-blue-tint-strong:rgba(37, 99, 235, 0.15);

  /* ---------- Warm light theme (landing / marketing) ---------- */
  --bg:                 #faf8f5;   /* warm off-white */
  --surface:            #ffffff;   /* cards */
  --surface-border:     #e8e2da;
  --surface-border-hv:  #c9c2b8;
  --surface-shadow:     0 2px 10px rgba(0, 0, 0, 0.04);
  --surface-shadow-hv:  0 10px 32px rgba(0, 0, 0, 0.09);

  --fg:                 #18130e;   /* near-black warm */
  --muted:              #3d342c;
  --muted-2:            #6b5c52;
  --muted-3:            #b5a69c;

  --tag-bg:             #f5f0eb;
  --tag-fg:             #6b5c52;

  /* ---------- Dark theme (dashboard / app shell) ---------- */
  --dark-bg:            #0b0e14;
  --dark-surface-1:     #0f131a;
  --dark-surface-2:     rgba(255, 255, 255, 0.03);
  --dark-border:        rgba(255, 255, 255, 0.08);
  --dark-border-soft:   rgba(255, 255, 255, 0.06);
  --dark-fg:            #e6e8eb;
  --dark-muted:         #9aa4b2;

  /* ---------- Semantic status ---------- */
  --status-idle:        #9aa4b2;
  --status-running:     #60a5fa;
  --status-success:     #34d399;
  --status-warn:        #fbbf24;
  --status-failed:      #f87171;
  --status-danger:      #dc2626;

  /* ---------- Type families ---------- */
  --font-display: 'Bricolage Grotesque', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-ui:      'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* ---------- Type sizes (fluid hero + stepped scale) ---------- */
  --t-hero:     clamp(2.8rem, 6.5vw, 4.8rem);
  --t-h1:       clamp(2.6rem, 5.5vw, 4rem);
  --t-h2:       clamp(2rem, 4vw, 2.9rem);
  --t-h3:       1.4rem;
  --t-h4:       1.2rem;
  --t-lead:     1.2rem;
  --t-body:     1.05rem;
  --t-sm:       0.95rem;
  --t-xs:       0.85rem;
  --t-eyebrow:  0.8rem;    /* uppercase, letter-spacing 0.12em */

  --lh-tight:   1.1;
  --lh-heading: 1.15;
  --lh-body:    1.75;
  --lh-roomy:   1.85;

  --tr-neg:     -0.02em;   /* headings */
  --tr-wide:    0.12em;    /* eyebrow caps */

  /* ---------- Radii ---------- */
  --r-xs:  6px;
  --r-sm:  8px;
  --r-md:  10px;
  --r-lg:  12px;
  --r-xl:  14px;
  --r-2xl: 16px;
  --r-pill: 999px;

  /* ---------- Spacing (8pt-ish) ---------- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;

  /* ---------- Elevation ---------- */
  --sh-card:       0 2px 10px rgba(0, 0, 0, 0.04);
  --sh-card-hv:    0 10px 32px rgba(0, 0, 0, 0.09);
  --sh-float:      0 12px 40px rgba(0, 0, 0, 0.35);
  --sh-slide:      0 8px 32px rgba(0, 0, 0, 0.3);
  --sh-focus:      0 0 0 2px var(--mm-blue);

  /* ---------- Motion ---------- */
  --ease-out:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-rise:  cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast:   140ms;
  --dur-med:    220ms;
  --dur-slow:   400ms;
}

/* ================================================================
   Semantic element defaults — scoped to landing-body so we don't
   leak into the dashboard / app shell pages.
   ================================================================ */

html:has(body.landing-body) {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
@media (prefers-reduced-motion: reduce) {
  html:has(body.landing-body) { scroll-behavior: auto; }
}
body.landing-body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

body.landing-body :where(h1, h2, h3, h4) {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tr-neg);
  line-height: var(--lh-heading);
  color: var(--fg);
  margin: 0 0 0.5em;
  text-wrap: pretty;
}
/* Hero title uses DM Sans, not Bricolage — matches original mm-solutions.cz */
body.landing-body .up-hero-title,
body.landing-body .mk-hero-title,
body.landing-body .wf-title { font-family: var(--font-body); }

body.landing-body h1 { font-size: var(--t-h1); line-height: var(--lh-tight); }
body.landing-body h2 { font-size: var(--t-h2); }
body.landing-body h3 { font-size: var(--t-h3); font-weight: 600; }
body.landing-body h4 { font-size: var(--t-h4); font-weight: 600; }

body.landing-body p {
  margin: 0 0 1em;
  color: var(--muted);
  line-height: var(--lh-body);
}

body.landing-body .lead   { font-size: var(--t-lead); color: var(--muted); line-height: var(--lh-body); }
body.landing-body .hero   { font-family: var(--font-display); font-size: var(--t-hero);
                            font-weight: 700; letter-spacing: var(--tr-neg); line-height: var(--lh-tight); }
body.landing-body .eyebrow{ font-size: var(--t-eyebrow); font-weight: 600;
                            letter-spacing: var(--tr-wide); text-transform: uppercase;
                            color: var(--mm-blue); }

body.landing-body code,
body.landing-body pre,
body.landing-body .mono { font-family: var(--font-mono); }

body.landing-body :where(a) { color: var(--mm-blue); }
/* Component anchor overrides — beat the generic link color */
body.landing-body a.mk-btn-primary { color: #fff; }
body.landing-body a.mk-btn-ghost { color: var(--fg); }
body.landing-body a.mk-logo { color: var(--fg); }
body.landing-body a.mk-case { color: inherit; }
body.landing-body a:hover { opacity: 0.85; }

body.landing-body ::selection { background: var(--mm-blue-tint-strong); color: var(--fg); }

/* ================================================================
   marketing.css — mk-* base styles
   ================================================================ */

/* ——— background ——— */
.mk-canvas { position: fixed; inset:0; z-index:0; width:100%; height:100%; pointer-events:none; }
body.landing-body .mk-nav,
body.landing-body > section,
body.landing-body > footer,
body.landing-body > div { position: relative; z-index: 1; }

/* ——— nav ——— */
.mk-nav { position: sticky; top:0; z-index:20; background: rgba(250,248,245,0.88); backdrop-filter: blur(16px); border-bottom:1px solid rgba(232,226,218,0.6); }
.mk-nav-inner { max-width: 1200px; margin:0 auto; padding: 0 32px; height:64px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.mk-logo { display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--fg); font-family: var(--font-display); font-weight:700; font-size:1.05rem; letter-spacing:.01em; }
.mk-logo img { width:34px; height:34px; border-radius:8px; }
.mk-nav-links { display:flex; gap:28px; }
.mk-nav-links a { color: var(--muted); text-decoration:none; font-size:.95rem; font-weight:500; transition: color .14s; }
.mk-nav-links a:hover { color: var(--fg); }

/* ——— buttons ——— */
.mk-btn { display:inline-flex; align-items:center; justify-content:center; padding:12px 22px; border-radius:10px; font-size:.95rem; font-weight:500; text-decoration:none; border:1px solid transparent; cursor:pointer; font-family: inherit; transition: all .18s var(--ease-out); }
.mk-btn-sm { padding:9px 18px; font-size:.85rem; border-radius:8px; }
.mk-btn-primary { background: var(--mm-blue); color:#fff; border-color: var(--mm-blue); }
.mk-btn-primary:hover { background: var(--mm-blue-700); border-color: var(--mm-blue-700); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(37,99,235,.25); }
.mk-btn-ghost { background: transparent; color: var(--fg); border-color: rgba(0,0,0,.14); }
.mk-btn-ghost:hover { background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.26); }

.mk-link { color: var(--mm-blue); font-weight:500; text-decoration:none; display:inline-flex; gap:6px; cursor:pointer; font-size:.95rem; }
.mk-link:hover { opacity:.85; }

/* ——— eyebrow / section heads ——— */
.mk-eyebrow { font-size:.8rem; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color: var(--mm-blue); margin:0 0 12px; }
.mk-section { max-width:1080px; margin:0 auto; padding: 110px 32px; }
.mk-section-compact { padding: 30px 32px 80px; }
.mk-section-head { text-align:center; max-width:720px; margin: 0 auto 64px; }
.mk-section-head h2 { font-family: var(--font-display); font-size: var(--t-h2); font-weight:700; letter-spacing:-.02em; line-height:1.15; margin:0 0 18px; color: var(--fg); }
.mk-lead { font-size: 1.2rem; line-height:1.75; color: var(--muted); margin:0; }

/* ——— hero ——— */
.mk-hero { position:relative; padding: 120px 32px 80px; text-align:center; overflow:hidden; }
.mk-hero-inner { max-width:880px; margin:0 auto; }
.mk-hero-title { font-family: var(--font-body); font-size: var(--t-hero); font-weight:700; letter-spacing:-.02em; line-height:1.05; color: var(--fg); margin:0 0 28px; }
.mk-hero-title em { font-style: normal; color: var(--mm-blue); }
.mk-hero-lead { font-size: 1.22rem; line-height:1.75; color: var(--muted); max-width: 680px; margin:0 auto 36px; }
.mk-hero-cta { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.mk-hero-mascot { position:absolute; right:-30px; top:60px; height:180px; opacity:.9; pointer-events:none; transform: rotate(8deg); }
@media (max-width: 900px) { .mk-hero-mascot { display:none; } }

/* ——— badges / tags ——— */
.mk-badge { display:inline-block; font-size:.72rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:#1a3e9c; background: #fff; border: 1px solid rgba(37,99,235,.25); padding:4px 12px; border-radius:6px; margin-bottom:14px; }
.mk-tag { font-size:.72rem; color: var(--muted-2); background: var(--tag-bg); padding:3px 8px; border-radius:4px; }
.mk-tags { display:flex; gap:6px; flex-wrap:wrap; margin:14px 0; }

/* ——— services ——— */
.mk-services { display:flex; flex-direction:column; gap:80px; }
.mk-service-row { display:grid; grid-template-columns: 1.1fr 0.9fr; gap:60px; align-items:center; }
.mk-service-row--rev { direction: rtl; }
.mk-service-row--rev > * { direction: ltr; }
.mk-service-copy h3 { font-family: var(--font-display); font-size:1.9rem; font-weight:700; letter-spacing:-.015em; line-height:1.2; color: var(--fg); margin:6px 0 16px; }
.mk-service-copy p { color: var(--muted); line-height:1.8; margin:0 0 20px; font-size:1.05rem; }
.mk-service-vis { background: var(--surface); border:1px solid var(--surface-border); border-radius:20px; aspect-ratio: 1.3/1; display:flex; align-items:center; justify-content:center; box-shadow: var(--sh-card); }
.mk-service-vis img { max-height:70%; max-width:70%; }
@media (max-width: 800px){ .mk-service-row{ grid-template-columns:1fr;} .mk-service-row--rev{direction:ltr;} }

/* ——— stats ——— */
.mk-stats { display:flex; background:var(--surface); border:1px solid var(--surface-border); border-radius:14px; overflow:hidden; box-shadow: 0 2px 16px rgba(0,0,0,.05); max-width:880px; margin:0 auto; }
.mk-stat { flex:1; padding:28px 30px; display:flex; flex-direction:column; gap:4px; }
.mk-stat + .mk-stat { border-left: 1px solid var(--surface-border); }
.mk-stat-n { font-family: var(--font-display); font-size:2.4rem; font-weight:700; color: var(--fg); letter-spacing:-.02em; line-height:1; }
.mk-stat-l { font-size:.9rem; color: var(--muted); }

/* ——— case cards ——— */
/* ——— Client references ——— */
.mk-clients { display:grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.mk-client-card { background: var(--surface); border:1px solid var(--surface-border); border-radius:16px; padding: 32px 28px 30px; box-shadow: var(--sh-card); transition: all .22s var(--ease-out); }
.mk-client-card:hover { transform: translateY(-3px); border-color: var(--surface-border-hv); box-shadow: var(--sh-card-hv); }
.mk-client-card__name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--fg); text-decoration:none; display:inline-block; margin-bottom: 12px; letter-spacing: -.01em; transition: color .14s; }
.mk-client-card__name:hover { color: var(--mm-blue); }
.mk-client-card__title { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; color: var(--fg); margin: 0 0 14px; line-height: 1.35; letter-spacing: -.005em; }
.mk-client-card__desc { color: var(--muted); line-height: 1.75; margin: 0; font-size: .95rem; }
@media (max-width: 900px) { .mk-clients { grid-template-columns: 1fr; } }

.mk-cases { display:grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.mk-case { display:block; background: var(--surface); border:1px solid var(--surface-border); border-radius:16px; box-shadow: var(--sh-card); overflow:hidden; cursor:pointer; transition: all .22s var(--ease-out); text-decoration:none; color: inherit; }
.mk-case:hover { transform: translateY(-4px); border-color: var(--surface-border-hv); box-shadow: var(--sh-card-hv); }
.mk-case-thumb { aspect-ratio: 16/10; overflow:hidden; background: var(--tag-bg); }
.mk-case-thumb img { width:100%; height:100%; object-fit:cover; transition: transform .4s var(--ease-out); }
.mk-case:hover .mk-case-thumb img { transform: scale(1.03); }
.mk-case-body { padding: 28px 32px 30px; }
.mk-case-body h3 { font-family: var(--font-display); font-size:1.35rem; font-weight:700; color: var(--fg); margin: 6px 0 10px; letter-spacing:-.01em; }
.mk-case-body p { color: var(--muted); line-height:1.7; margin:0; font-size:.98rem; }
@media (max-width: 800px){ .mk-cases{grid-template-columns:1fr;} }

/* ——— callout ——— */
.mk-callout { max-width: 760px; margin:0 auto; padding: 36px 40px; background: rgba(37,99,235,.05); border:1px solid rgba(37,99,235,.15); border-left: 5px solid var(--mm-blue); border-radius:16px; }
.mk-callout h3 { font-family: var(--font-display); font-size:1.7rem; font-weight:700; color: var(--fg); margin:0 0 12px; letter-spacing:-.015em; }
.mk-callout p { color: var(--muted); line-height:1.85; margin:0; font-size:1.05rem; }

/* ——— about ——— */
.mk-about { display:grid; grid-template-columns: 0.8fr 1.2fr; gap:56px; align-items:center; }
.mk-about-photo img { width:100%; border-radius:20px; filter: grayscale(10%); box-shadow: var(--sh-card-hv); }
.mk-about-copy h2 { font-family: var(--font-display); font-size:2.3rem; font-weight:700; letter-spacing:-.02em; margin:0 0 18px; color: var(--fg); }
.mk-about-copy p { color: var(--muted); line-height:1.85; font-size:1.05rem; margin:0 0 14px; }
@media (max-width: 800px){ .mk-about{grid-template-columns:1fr;} }

/* ——— contact ——— */
.mk-contact { display:grid; grid-template-columns: 1fr 1fr; gap:56px; align-items:start; }
.mk-contact-copy h2 { font-family: var(--font-display); font-size: 2.3rem; font-weight:700; letter-spacing:-.02em; margin:0 0 18px; color: var(--fg); }
.mk-contact-copy p { color: var(--muted); line-height:1.75; }
.mk-form { display:flex; flex-direction:column; gap:18px; background: var(--surface); border:1px solid var(--surface-border); border-radius:16px; padding: 32px; box-shadow: var(--sh-card); }
.mk-form label { display:flex; flex-direction:column; gap:8px; font-size:.85rem; color: var(--muted); font-weight:500; font-family: var(--font-ui); }
.mk-form input, .mk-form textarea { font-family: inherit; font-size:1rem; background: #fff; border:1px solid #d9d2c9; color: var(--fg); padding: 12px 14px; border-radius:8px; outline:none; transition: .14s; resize:vertical; }
.mk-form input:focus, .mk-form textarea:focus { border-color: var(--mm-blue); box-shadow: 0 0 0 2px rgba(37,99,235,.18); }
.mk-form input::placeholder, .mk-form textarea::placeholder { color: rgba(110,98,88,.4); }
.mk-form-ok { text-align:center; padding: 28px 12px; }
.mk-form-ok strong { font-family: var(--font-display); color: var(--fg); font-size:1.4rem; display:block; margin-bottom:8px; }
.mk-form-ok p { color: var(--muted); margin:0; }
@media (max-width: 800px){ .mk-contact{grid-template-columns:1fr;} }

/* ——— footer ——— */
.mk-footer { background: #efeae3; margin-top:80px; padding: 56px 32px 32px; }
.mk-footer-inner { max-width:1080px; margin:0 auto; display:grid; grid-template-columns: 1fr 2fr; gap:48px; }
.mk-footer-brand { display:flex; gap:14px; align-items:center; }
.mk-footer-brand img { width:40px; height:40px; border-radius:10px; }
.mk-footer-brand strong { font-family: var(--font-display); font-size:1.1rem; color: var(--fg); display:block; }
.mk-footer-brand span { color: var(--muted-2); font-size:.85rem; }
.mk-footer-cols { display:grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.mk-footer-cols h4 { font-family: var(--font-ui); font-size:.78rem; letter-spacing:.12em; text-transform:uppercase; color: var(--muted-2); margin:0 0 14px; font-weight:600; }
.mk-footer-cols a { display:block; color: var(--fg); text-decoration:none; font-size:.93rem; margin-bottom:8px; cursor:pointer; }
.mk-footer-cols a:hover { color: var(--mm-blue); }
.mk-footer-bottom { max-width:1080px; margin:40px auto 0; padding-top:24px; border-top:1px solid #d9d2c9; font-size:.82rem; color: var(--muted-2); }

/* ——— focus-visible (accessibility) ——— */
body.landing-body :focus-visible {
  outline: 2px solid var(--mm-blue);
  outline-offset: 2px;
}

/* ================================================================
   upgrade.css — up-* new sections
   ================================================================ */

/* ─── Logo / trust strip ─── */
.up-logos {
  max-width: 1080px; margin: 0 auto; padding: 40px 32px 0;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.up-logos-label {
  font-family: var(--font-ui);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted-2);
}
.up-logos-row {
  display: flex; align-items: center; justify-content: center;
  gap: 56px; flex-wrap: wrap;
  opacity: .8;
}
.up-logos-row img { height: 28px; width: auto; filter: grayscale(100%) opacity(.7); transition: filter .22s, opacity .22s; }
.up-logos-row img:hover { filter: grayscale(0) opacity(1); }
.up-logos-row span {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.15rem;
  color: var(--muted-2); letter-spacing: -.01em;
}

/* ─── Unified nav with section pills ─── */
.up-nav-merged-inner { gap: 20px; }
.up-nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.up-nav-pills {
  flex: 1; min-width: 0;
  display: flex; gap: 2px; align-items: center; justify-content: center;
  overflow-x: auto; scrollbar-width: none;
}
.up-nav-pills::-webkit-scrollbar { display: none; }
.up-nav-pills a {
  padding: 7px 13px; border-radius: 999px;
  font-family: var(--font-ui); font-size: .85rem; font-weight: 500;
  color: var(--muted); text-decoration: none;
  white-space: nowrap; transition: .14s;
}
.up-nav-pills a:hover { color: var(--fg); background: rgba(0,0,0,.04); }
.up-nav-pills a.is-active { color: #fff; background: var(--mm-blue); }
@media (max-width: 900px) {
  .up-nav-pills { display: none; }
}

/* ─── Services with tab switcher ─── */
.up-services-tabs {
  max-width: 1080px; margin: 0 auto 40px;
  padding: 0 32px;
  display: flex; justify-content: center; gap: 8px;
  flex-wrap: wrap;
}
.up-tab {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--surface-border);
  color: var(--muted); font-family: var(--font-ui); font-size: .92rem;
  font-weight: 500; cursor: pointer; transition: .16s var(--ease-out);
}
.up-tab .up-tab-icon { color: var(--mm-blue); transition: color .16s; }
.up-tab:hover { border-color: rgba(37,99,235,.35); color: var(--fg); background: #fff; }
.up-tab.is-active {
  background: var(--mm-blue); color: #fff; border-color: var(--mm-blue);
  box-shadow: 0 6px 20px rgba(37,99,235,.28);
}
.up-tab.is-active .up-tab-icon { color: #fff; }
.up-tab-icon { width: 18px; height: 18px; display: inline-flex; }
.up-tab-icon svg { width: 100%; height: 100%; }

.up-service-panel {
  max-width: 1120px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
  min-height: 460px;
}
.up-service-panel.is-hidden { display: none; }
.up-service-copy { max-width: 520px; }
.up-service-copy h3 {
  font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 700;
  line-height: 1.1; letter-spacing: -.02em;
  color: var(--fg); margin: 12px 0 18px;
}
.up-service-copy p {
  color: var(--muted); line-height: 1.75;
  font-size: 1.05rem; margin: 0 0 20px;
}
.up-service-list {
  list-style: none; padding: 0; margin: 20px 0 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.up-service-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-family: var(--font-ui); font-size: .95rem;
  color: var(--muted); line-height: 1.55;
}
.up-service-list svg { flex-shrink: 0; margin-top: 3px; color: var(--mm-blue); }

/* before/after terminal */
.up-demo {
  background: #0b0e14; border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(15,19,26,.2), 0 4px 14px rgba(0,0,0,.08);
  border: 1px solid rgba(255,255,255,.06);
}
.up-demo-head {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px;
  background: #0f131a;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.up-demo-head span:first-child,
.up-demo-head span:nth-child(2),
.up-demo-head span:nth-child(3) {
  width: 11px; height: 11px; border-radius: 50%; display: inline-block;
}
.up-demo-head span:first-child  { background: #f87171; }
.up-demo-head span:nth-child(2) { background: #fbbf24; }
.up-demo-head span:nth-child(3) { background: #34d399; }
.up-demo-head .up-demo-title {
  margin-left: 14px; width: auto; height: auto; border-radius: 0;
  font-family: var(--font-mono); font-size: 11.5px;
  color: #7d8693;
}
.up-demo-split {
  display: grid; grid-template-columns: 1fr 1fr;
}
.up-demo-side { padding: 22px 24px; min-height: 240px; }
.up-demo-side + .up-demo-side { border-left: 1px solid rgba(255,255,255,.06); }
.up-demo-label {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .1em; text-transform: uppercase;
  color: #7d8693; margin: 0 0 14px;
}
.up-demo-label.up-demo-label-ok { color: #34d399; }
.up-demo-side pre {
  margin: 0; font-family: var(--font-mono); font-size: 12.5px;
  line-height: 1.75; color: #cbd5e1; white-space: pre-wrap;
}
.up-demo-side .up-mute { color: #7d8693; }
.up-demo-side .up-ok   { color: #34d399; }
.up-demo-side .up-blue { color: #60a5fa; }
.up-demo-side .up-warn { color: #fbbf24; }

@media (max-width: 900px) {
  .up-service-panel { grid-template-columns: 1fr; }
  .up-demo-split { grid-template-columns: 1fr; }
  .up-demo-side + .up-demo-side { border-left: 0; border-top: 1px solid rgba(255,255,255,.06); }
}

/* ─── Projects with filter ─── */
.up-filter {
  display: flex; justify-content: center; gap: 8px;
  flex-wrap: wrap; margin: 0 auto 40px;
}
.up-chip {
  padding: 7px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--surface-border);
  color: var(--muted); font-family: var(--font-ui); font-size: .82rem;
  font-weight: 500; cursor: pointer; transition: .14s;
}
.up-chip:hover { border-color: var(--surface-border-hv); }
.up-chip.is-active {
  background: var(--mm-blue); color: #fff; border-color: var(--mm-blue);
}
.up-chip-count {
  font-family: var(--font-mono); font-size: .72rem;
  margin-left: 6px; opacity: .7;
}

.up-project-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.up-project-grid .mk-case { cursor: pointer; }
.up-project-grid .mk-case.is-hidden { display: none; }
@media (max-width: 900px) { .up-project-grid { grid-template-columns: 1fr; } }

/* ─── Process timeline ─── */
.up-process {
  max-width: 1080px; margin: 0 auto; padding: 0 32px;
}
.up-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; position: relative;
}
.up-steps::before {
  content: ''; position: absolute;
  top: 38px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(to right, var(--mm-blue) 0 6px, transparent 6px 12px);
  opacity: .4;
  z-index: 0;
}
.up-step {
  position: relative; text-align: center;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 28px 18px 24px;
  z-index: 1;
  transition: .22s var(--ease-out);
}
.up-step:hover {
  transform: translateY(-4px);
  border-color: rgba(37,99,235,.3);
  box-shadow: 0 14px 36px rgba(0,0,0,.08);
}
.up-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--mm-blue); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(37,99,235,.3);
}
.up-step h4 {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700;
  color: var(--fg); margin: 0 0 8px;
  letter-spacing: -.01em;
}
.up-step p {
  color: var(--muted); font-size: .9rem;
  line-height: 1.6; margin: 0;
}
.up-step-time {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono); font-size: .74rem;
  color: var(--mm-blue); letter-spacing: .04em;
}
@media (max-width: 900px) {
  .up-steps { grid-template-columns: 1fr 1fr; }
  .up-steps::before { display: none; }
}

/* ─── Pricing / approach card ─── */
.up-pricing {
  max-width: 1040px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.up-price-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  padding: 36px 36px 32px;
  position: relative;
}
.up-price-card.is-feature {
  background: #18130e; color: #e6e8eb;
  border-color: #18130e;
  box-shadow: 0 20px 50px rgba(0,0,0,.2);
}
.up-price-tag {
  display: inline-block;
  font-family: var(--font-ui); font-size: .72rem;
  font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 6px;
  background: #fff;
  color: #1a3e9c;
  border: 1px solid rgba(37,99,235,.25);
  margin-bottom: 16px;
}
.up-price-card.is-feature .up-price-tag {
  background: rgba(96,165,250,.15);
  color: #93bbff;
}
.up-price-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 700;
  margin: 0 0 12px; letter-spacing: -.015em;
}
.up-price-card.is-feature h3 { color: #fff; }
.up-price-card > p {
  line-height: 1.75; margin: 0 0 20px;
  color: var(--muted); font-size: 1rem;
}
.up-price-card.is-feature > p { color: #b5c0cf; }
.up-price-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.up-price-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .94rem; line-height: 1.5;
  color: var(--muted);
}
.up-price-card.is-feature .up-price-list li { color: #cbd5e1; }
.up-price-list svg { flex-shrink: 0; margin-top: 3px; color: var(--mm-blue); }
.up-price-card.is-feature .up-price-list svg { color: #93bbff; }
.up-price-cta {
  margin-top: 24px;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: .78rem;
  color: var(--muted-2);
  min-height: 16px;
}
.up-price-card.is-feature .up-price-cta { color: #9aa4b2; }
@media (max-width: 800px) { .up-pricing { grid-template-columns: 1fr; } }

/* ─── FAQ ─── */
.up-faq {
  max-width: 760px; margin: 0 auto; padding: 0 32px;
}
.up-faq-item {
  border-top: 1px solid var(--surface-border);
}
.up-faq-item:last-child { border-bottom: 1px solid var(--surface-border); }
.up-faq-q {
  width: 100%; background: none; border: 0;
  padding: 22px 4px 22px 0;
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.1rem; color: var(--fg);
  cursor: pointer; text-align: left;
  letter-spacing: -.005em;
}
.up-faq-plus {
  flex-shrink: 0; width: 26px; height: 26px;
  border-radius: 50%; border: 1.5px solid var(--muted-3);
  color: var(--muted-2);
  display: flex; align-items: center; justify-content: center;
  transition: .22s var(--ease-out);
  font-size: 14px;
}
.up-faq-item.is-open .up-faq-plus {
  background: var(--mm-blue); color: #fff;
  border-color: var(--mm-blue);
  transform: rotate(45deg);
}
.up-faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s var(--ease-out);
}
.up-faq-item.is-open .up-faq-a { max-height: 600px; }
.up-faq-a p {
  padding: 0 4px 26px 0; margin: 0;
  color: var(--muted); line-height: 1.8;
  font-size: 1rem; max-width: 640px;
}

/* ─── Upgraded hero (split) ─── */
.up-hero {
  max-width: 1200px; margin: 0 auto;
  padding: 80px 40px 60px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  position: relative;
}
.up-hero-copy { max-width: 560px; }
.up-hero-title {
  font-family: var(--font-body);
  font-size: clamp(2.8rem, 6.5vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.05;
  color: var(--fg);
  margin: 14px 0 24px;
}
.up-hero-title em { font-style: normal; color: var(--mm-blue); }
.up-hero-lead {
  font-size: 1.15rem; line-height: 1.75;
  color: var(--muted);
  margin: 0 0 30px; max-width: 520px;
}
.up-hero-stats {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--surface-border);
}
.up-hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 700;
  color: var(--fg); letter-spacing: -.02em; line-height: 1;
}
.up-hero-stat span {
  display: block;
  font-size: .82rem; color: var(--muted-2);
  margin-top: 4px;
}

@media (max-width: 900px) {
  .up-hero { grid-template-columns: 1fr; padding: 60px 24px; }
}

/* ================================================================
   terminal_hero.css — th-* hero terminal
   ================================================================ */

.th-hero { position: relative; }

/* Right-side stage */
.th-stage {
  position: relative;
  width: 100%;
  display: flex;
  align-items: stretch;
}

/* Terminal window */
.th-term {
  width: 100%;
  background: #0b0e14;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0,0,0,.22),
    0 2px 10px rgba(0,0,0,.08),
    0 0 0 1px rgba(255,255,255,.04);
  display: flex; flex-direction: column;
  min-height: 460px;
}

.th-term-head {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.th-term-dot {
  width: 11px; height: 11px; border-radius: 50%;
  display: inline-block;
}
.th-term-title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: #7d8693;
  letter-spacing: .04em;
}

.th-term-body {
  flex: 1;
  padding: 22px 22px 18px;
  font-family: var(--font-mono);
  font-size: .92rem;
  line-height: 1.7;
  color: #d7dbe0;
  overflow-y: auto;
  max-height: 520px;
}
.th-term-body::-webkit-scrollbar { width: 8px; }
.th-term-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 4px; }

/* Command / prompt line */
.th-line {
  display: flex; gap: 8px; align-items: baseline;
  flex-wrap: wrap;
}
.th-prompt { color: #60a5fa; font-weight: 600; }
.th-pct    { color: #34d399; font-weight: 600; }
.th-cmd    { color: #e6e8eb; }
.th-caret {
  display: inline-block;
  width: .55em;
  color: #34d399;
  animation: th-blink 1s steps(2) infinite;
}
@keyframes th-blink { 50% { opacity: 0; } }
.th-line-end { margin-top: 14px; }

/* Run button */
.th-run-wrap {
  margin: 30px 0 10px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.th-run {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  background: var(--mm-blue);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow:
    0 0 0 0 rgba(37,99,235,.5),
    0 10px 28px rgba(37,99,235,.32);
  transition: transform .12s ease, box-shadow .3s ease;
  animation: th-pulse 2.2s ease-in-out infinite;
}
.th-run:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 6px rgba(37,99,235,.14),
    0 14px 34px rgba(37,99,235,.38);
  animation: none;
}
.th-run:active { transform: translateY(0); }
.th-run-icon { font-size: .75rem; }
.th-run-hint {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: #7d8693;
  letter-spacing: .1em;
  text-transform: uppercase;
}
@keyframes th-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,.45), 0 10px 28px rgba(37,99,235,.32); }
  50%      { box-shadow: 0 0 0 10px rgba(37,99,235,0),  0 10px 28px rgba(37,99,235,.32); }
}

/* Steps */
.th-step {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  animation: th-step-in .35s ease both;
}
@keyframes th-step-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.th-step-icon { display: inline-flex; align-items: center; justify-content: center; }
.th-step.is-running .th-step-icon { color: #60a5fa; }
.th-step.is-done    .th-step-icon { color: #34d399; }
.th-step-label { color: #d7dbe0; }
.th-step.is-done .th-step-label { color: #9aa4b2; }

.th-spin {
  display: inline-block;
  animation: th-spin 1s linear infinite;
}
@keyframes th-spin { to { transform: rotate(360deg); } }
.th-check { font-size: .95rem; }

.th-dots { display: inline-flex; gap: 3px; color: #7d8693; }
.th-dots i {
  width: 3px; height: 3px; border-radius: 50%;
  background: currentColor;
  animation: th-dot 1.1s ease-in-out infinite;
}
.th-dots i:nth-child(2) { animation-delay: .15s; }
.th-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes th-dot {
  0%, 100% { opacity: .25; transform: scale(.8); }
  50%      { opacity: 1;   transform: scale(1); }
}
.th-ok {
  font-family: var(--font-mono);
  color: #34d399;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .06em;
}

/* Summary card */
.th-summary {
  margin-top: 18px;
  animation: th-summary-in .45s ease both;
}
@keyframes th-summary-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.th-summary-rule {
  height: 1px;
  background: linear-gradient(to right,
    transparent, rgba(52,211,153,.35), rgba(96,165,250,.35), transparent);
  margin: 6px 0;
}
.th-summary-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0 4px;
}
.th-summary-check {
  color: #34d399;
  font-size: 1.1rem;
  text-shadow: 0 0 14px rgba(52,211,153,.5);
}
.th-summary-title {
  font-family: var(--font-mono);
  color: #fff;
  font-weight: 600;
  letter-spacing: .01em;
}
.th-summary-grid {
  padding: 8px 0 12px;
}
.th-summary-cell {
  display: flex; align-items: baseline; gap: 14px;
  padding: 6px 0;
}
.th-summary-label {
  font-family: var(--font-mono);
  color: #7d8693;
  font-size: .82rem;
  letter-spacing: .04em;
  min-width: 130px;
}
.th-summary-value {
  font-family: var(--font-mono);
  color: #34d399;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

/* Footer — replay */
.th-term-foot {
  display: flex;
  gap: 10px;
  padding: 12px 18px 14px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
}
.th-replay {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: rgba(37,99,235,.15);
  color: #93c5fd;
  border: 1px solid rgba(37,99,235,.3);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}
.th-replay:hover {
  background: rgba(37,99,235,.25);
  color: #bfdbfe;
  transform: translateY(-1px);
}
.th-replay-ghost {
  background: transparent;
  color: #7d8693;
  border-color: rgba(255,255,255,.08);
}
.th-replay-ghost:hover {
  background: rgba(255,255,255,.04);
  color: #d7dbe0;
}

@media (max-width: 900px) {
  .th-term { min-height: 380px; }
  .th-term-body { font-size: .85rem; padding: 18px 16px 14px; }
}

/* ================================================================
   workflow.css — wf-* workflow animation
   ================================================================ */

.wf {
  position: relative;
  padding: 120px 32px 110px;
  color: var(--fg);
  overflow: hidden;
}
.wf-bookend { display: none; }
.wf::after { display: none; }
.wf > * { position: relative; z-index: 1; }

.wf-head {
  max-width: 780px;
  margin: 0 auto 68px;
  text-align: center;
}
.wf-head .mk-eyebrow { color: var(--mm-blue); }
.wf-title {
  font-family: var(--font-body);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--fg);
  margin: 14px 0 18px;
  text-wrap: pretty;
}
.wf-title em { font-style: normal; color: var(--mm-blue); }
.wf-lead {
  font-family: var(--font-body);
  font-size: 1.1rem; line-height: 1.7;
  color: var(--muted);
  margin: 0 auto 32px;
  max-width: 620px;
}

/* Workflow scenario tabs reuse .up-tab appearance via structural alias */
.wf-scenario-tabs {
  display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center;
}

/* Stage */
.wf-stage {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 36px;
  align-items: stretch;
}
@media (max-width: 980px) {
  .wf-stage { grid-template-columns: 1fr; }
}

/* Pipeline column */
.wf-pipeline {
  background: #0f131a;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 40px 34px 36px;
  display: flex; flex-direction: column; gap: 32px;
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
}

.wf-source, .wf-target {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
}
.wf-source-label {
  font-family: var(--font-mono); font-size: .66rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: #60a5fa; font-weight: 600;
  padding: 3px 9px; border-radius: 4px;
  background: rgba(96,165,250,.14);
}
.wf-source-val {
  font-family: var(--font-mono); font-size: .92rem;
  color: #e6e8eb; letter-spacing: .01em;
}
.wf-target .wf-source-label { color: #34d399; background: rgba(52,211,153,.14); }

/* Nodes + connectors */
.wf-nodes {
  display: flex; align-items: flex-start;
  gap: 0;
  padding: 8px 0 4px;
}

.wf-node {
  flex: 0 0 auto;
  width: 96px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  font-family: var(--font-ui);
}
.wf-node-ring {
  position: relative;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(255,255,255,.14);
  color: #9aa4b2;
  transition: all .28s var(--ease-out);
}
.wf-node-icon { width: 26px; height: 26px; display: flex; }
.wf-node-icon svg { width: 100%; height: 100%; }
.wf-node-label {
  margin-top: 12px;
  font-size: .82rem; font-weight: 600;
  color: #e6e8eb; letter-spacing: -.005em;
}
.wf-node-sub {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: #7d8693;
  line-height: 1.4;
}

.wf-node.is-active .wf-node-ring {
  background: rgba(37,99,235,.22);
  border-color: #3b82f6;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(37,99,235,.14), 0 6px 22px rgba(37,99,235,.35);
}
.wf-node.is-active .wf-node-sub { color: #60a5fa; }

.wf-node.is-done .wf-node-ring {
  background: rgba(52,211,153,.14);
  border-color: rgba(52,211,153,.55);
  color: #34d399;
}
.wf-node.is-done .wf-node-sub { color: #6ee7b7; }

.wf-node-pulse {
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 2px solid #3b82f6;
  animation: wf-pulse 1.4s ease-out infinite;
  pointer-events: none;
}
@keyframes wf-pulse {
  0%   { transform: scale(.9);  opacity: .9; }
  80%  { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* edges */
.wf-edge {
  flex: 1; min-width: 30px;
  position: relative;
  height: 2px;
  margin-top: 29px;
  background: transparent;
}
.wf-edge-track {
  position: absolute; inset: 0;
  border-top: 2px dashed rgba(255,255,255,.12);
}
.wf-edge-fill {
  position: absolute; left: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, #34d399, #3b82f6);
  box-shadow: 0 0 10px rgba(59,130,246,.5);
  /* no CSS transition — rAF drives width directly, ~60fps is already smooth */
  will-change: width;
}
.wf-edge-packet {
  position: absolute; top: -4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px #3b82f6, 0 0 4px #fff;
  transform: translate(-50%, 0);
  /* no CSS transition — rAF drives left directly */
  will-change: left, opacity;
  opacity: 0;
  transition: opacity .18s linear;
}
.wf-edge-packet.is-visible { opacity: 1; }

/* Side column */
.wf-side {
  display: flex; flex-direction: column; gap: 20px;
}

/* Terminal */
.wf-term {
  background: #0f131a;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  overflow: hidden;
  flex: 1;
  display: flex; flex-direction: column;
  min-height: 240px;
}
.wf-term-head {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.wf-term-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.wf-term-title {
  font-family: var(--font-mono); font-size: 11.5px;
  color: #7d8693; margin-left: 10px;
}
.wf-term-cron {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 11px;
  color: #60a5fa;
  padding: 2px 8px;
  background: rgba(96,165,250,.1);
  border-radius: 4px;
}
.wf-term-body {
  margin: 0;
  padding: 18px 20px 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.85;
  color: #cbd5e1;
  flex: 1;
  white-space: pre-wrap;
  overflow: hidden;
}
.wf-term-line {
  opacity: 0;
  animation: wf-line-in .28s var(--ease-out) forwards;
}
.wf-term-line.is-active { color: #fff; }
.wf-term-done { color: #34d399 !important; margin-top: 4px; }
@keyframes wf-line-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wf-term-cursor {
  display: inline-block;
  width: 7px; height: 14px;
  background: #60a5fa;
  margin-top: 2px;
  animation: wf-blink 1s step-end infinite;
  vertical-align: middle;
}
@keyframes wf-blink { 50% { opacity: 0; } }

/* Report card */
.wf-report {
  background: #0f131a;
  color: #e6e8eb;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 18px 20px 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  opacity: 0;
  transform: translateY(18px) scale(.96);
  transition: all .45s var(--ease-rise);
  pointer-events: none;
}
.wf-report.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.wf-report-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.wf-report-file { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.wf-report-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(37,99,235,.18);
  color: #60a5fa;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wf-report-icon svg { width: 20px; height: 20px; }
.wf-report-name {
  font-family: var(--font-mono); font-size: .85rem;
  font-weight: 600; color: #e6e8eb;
}
.wf-report-size {
  font-family: var(--font-mono); font-size: .72rem;
  color: #7d8693; margin-top: 2px;
}
.wf-report-badge {
  font-family: var(--font-ui); font-size: .7rem;
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(52,211,153,.18); color: #34d399;
}
.wf-report-body { padding: 14px 0 12px; }
.wf-report-title {
  font-family: var(--font-body); font-size: 1.05rem;
  font-weight: 700; color: #fff; letter-spacing: -.01em;
}
.wf-report-meta {
  font-family: var(--font-ui); font-size: .82rem;
  color: #9aa4b2; margin-top: 4px;
}
.wf-report-lines {
  margin-top: 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.wf-report-bar {
  height: 6px; border-radius: 3px;
  background: rgba(255,255,255,.06);
  position: relative; overflow: hidden;
}
.wf-report-bar::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 100%; background: rgba(255,255,255,.1);
}
.wf-report-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-family: var(--font-mono); font-size: .74rem;
  color: #7d8693;
}
.wf-report-ok { color: #34d399; font-weight: 600; }

/* Bottom footer line */
.wf-foot {
  text-align: center;
  margin-top: 40px;
  font-family: var(--font-mono); font-size: .82rem;
  color: var(--muted-2);
}
.wf-foot strong { color: var(--fg); font-weight: 600; }
.wf-foot-dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  margin-right: 10px; vertical-align: middle;
  animation: wf-pulse-dot 1.4s infinite;
}
@keyframes wf-pulse-dot { 50% { opacity: .4; } }

@media (max-width: 780px) {
  .wf { padding: 80px 20px; }
  .wf-pipeline { padding: 28px 20px; }
  .wf-nodes { flex-direction: column; align-items: stretch; gap: 0; }
  .wf-node { flex-direction: row; width: 100%; text-align: left; gap: 14px; }
  .wf-node-ring { flex-shrink: 0; }
  .wf-node-label { margin: 0; }
  .wf-edge { width: 2px; height: 28px; margin: 0 0 0 28px; }
  .wf-edge-track { border-top: 0; border-left: 2px dashed rgba(255,255,255,.12); }
  .wf-edge-fill { width: 2px !important; height: 0; background: linear-gradient(180deg, #34d399, #3b82f6); }
}

/* ================================================================
   Reduced motion — kill heavy animations
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  .mk-canvas { display: none; }
  .th-run { animation: none; }
  .th-spin { animation: none; }
  .th-dots i { animation: none; opacity: .7; }
  .th-caret { animation: none; }
  .wf-node-pulse { display: none; }
  .wf-term-cursor { animation: none; }
  .wf-foot-dot { animation: none; }
  .up-mock-bar span { animation: none; }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
