/* ==================================================================
   CloudMesh Website - Visual Refresh 2026-14-11
   Additive layer. Load AFTER cloudmesh.css / cloudmesh-nav.css.
   Rules: never remove an existing selector; keep light + dark readable;
          every new component uses the .oss- or .rf- namespace.
   ================================================================== */

:root {
  --rf-ink: #10162b;
  --rf-ink-soft: #5a6480;
  --rf-line: rgba(24, 36, 74, .10);
  --rf-surface: #ffffff;
  --rf-surface-2: #f6f8fd;
  --rf-brand: #4f46e5;
  --rf-brand-2: #7c3aed;
  --rf-brand-3: #0ea5e9;
  --rf-ok: #059669;
  --rf-warn: #b45309;
  --rf-radius: 20px;
  --rf-shadow-sm: 0 2px 10px rgba(20, 30, 70, .05);
  --rf-shadow: 0 14px 40px rgba(20, 30, 70, .09);
  --rf-shadow-lg: 0 26px 70px rgba(20, 30, 70, .14);
  --rf-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
             "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --rf-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

[data-theme="dark"] {
  --rf-ink: #eef2ff;
  --rf-ink-soft: #a2acc7;
  --rf-line: rgba(160, 180, 230, .16);
  --rf-surface: #141b31;
  --rf-surface-2: #1b2440;
  --rf-shadow-sm: 0 2px 10px rgba(0, 0, 0, .25);
  --rf-shadow: 0 14px 40px rgba(0, 0, 0, .35);
  --rf-shadow-lg: 0 26px 70px rgba(0, 0, 0, .48);
}

/* ---------- 1. Typography & baseline ---------- */
html.rf-on { scroll-behavior: smooth; }
.rf-on body {
  font-family: var(--rf-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.rf-on h1, .rf-on h2, .rf-on h3 { letter-spacing: -.022em; }
.rf-on :focus-visible {
  outline: 3px solid rgba(79, 70, 229, .55);
  outline-offset: 3px;
  border-radius: 6px;
}
.rf-on section { scroll-margin-top: 88px; }

/* ---------- 2. Hero atmosphere ---------- */
.rf-on .cm-hero { position: relative; overflow: hidden; }
.rf-on .cm-hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 130%;
  background:
    radial-gradient(42% 42% at 18% 22%, rgba(79, 70, 229, .16), transparent 70%),
    radial-gradient(38% 38% at 82% 12%, rgba(14, 165, 233, .13), transparent 72%),
    radial-gradient(34% 40% at 62% 78%, rgba(124, 58, 237, .10), transparent 74%);
  pointer-events: none;
  z-index: 0;
}
.rf-on .cm-hero > .cm-container { position: relative; z-index: 1; }
.rf-on .cm-hero-grid {
  opacity: .38;
  background-image:
    linear-gradient(to right, var(--rf-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rf-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
}
.rf-on .cm-text-gradient {
  background: linear-gradient(100deg, var(--rf-brand) 0%, var(--rf-brand-2) 48%, var(--rf-brand-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rf-on .cm-hero-badge {
  backdrop-filter: blur(10px);
  border: 1px solid var(--rf-line);
  box-shadow: var(--rf-shadow-sm);
}
.rf-on .cm-hero-badge .dot {
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .16);
  animation: rf-pulse 2.4s ease-in-out infinite;
}
@keyframes rf-pulse { 50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); } }

/* ---------- 3. Buttons & cards ---------- */
.rf-on .cm-btn { transition: transform .22s ease, box-shadow .22s ease, background .22s ease; }
.rf-on .cm-btn-primary {
  background-image: linear-gradient(115deg, var(--rf-brand), var(--rf-brand-2));
  box-shadow: 0 8px 24px rgba(79, 70, 229, .26);
}
.rf-on .cm-btn:hover { transform: translateY(-2px); }
.rf-on .cm-btn-primary:hover { box-shadow: 0 14px 32px rgba(79, 70, 229, .36); }
.rf-on .cm-card { transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease; }
.rf-on .cm-card:hover { transform: translateY(-4px); box-shadow: var(--rf-shadow); border-color: rgba(79, 70, 229, .3); }
.rf-on .cm-glass-card { backdrop-filter: blur(16px); box-shadow: var(--rf-shadow-lg); }
.rf-on .cm-stat .num { letter-spacing: -.04em; }

/* ---------- 4. Open-source ITSM block (.oss-*) ---------- */
.oss-section {
  position: relative;
  padding: 92px 0 96px;
  background: linear-gradient(180deg, var(--rf-surface-2) 0%, var(--rf-surface) 100%);
  border-top: 1px solid var(--rf-line);
  border-bottom: 1px solid var(--rf-line);
  overflow: hidden;
}
.oss-section::after {
  content: "";
  position: absolute;
  width: 620px; height: 620px;
  right: -260px; top: -310px;
  background: radial-gradient(circle, rgba(79, 70, 229, .13), transparent 68%);
  pointer-events: none;
}
.oss-wrap { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.oss-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.oss-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; margin-bottom: 18px;
  font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--rf-brand);
  background: rgba(79, 70, 229, .09);
  border: 1px solid rgba(79, 70, 229, .2);
  border-radius: 999px;
}
.oss-head h2 { font-size: clamp(28px, 4vw, 43px); line-height: 1.22; margin: 0 0 16px; color: var(--rf-ink); }
.oss-head p { font-size: 16px; line-height: 1.85; color: var(--rf-ink-soft); margin: 0; }

.oss-kpis {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-bottom: 34px;
}
.oss-kpi {
  padding: 22px 20px; text-align: center;
  background: var(--rf-surface);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius);
  box-shadow: var(--rf-shadow-sm);
  transition: transform .24s ease, box-shadow .24s ease;
}
.oss-kpi:hover { transform: translateY(-4px); box-shadow: var(--rf-shadow); }
.oss-kpi .v { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.04em; color: var(--rf-brand); line-height: 1.15; }
.oss-kpi .k { margin-top: 7px; font-size: 13px; color: var(--rf-ink-soft); }
.oss-kpi .s { margin-top: 5px; font-size: 11px; color: var(--rf-ink-soft); opacity: .75; }

.oss-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 22px; align-items: stretch; }
.oss-panel {
  background: var(--rf-surface);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius);
  padding: 28px 28px 26px;
  box-shadow: var(--rf-shadow-sm);
}
.oss-panel h3 { margin: 0 0 6px; font-size: 19px; color: var(--rf-ink); }
.oss-panel .sub { margin: 0 0 20px; font-size: 13px; color: var(--rf-ink-soft); line-height: 1.7; }

.oss-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.oss-table th {
  text-align: left; padding: 10px 10px; font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--rf-ink-soft);
  border-bottom: 1px solid var(--rf-line);
}
.oss-table td { padding: 10px 10px; border-bottom: 1px solid var(--rf-line); color: var(--rf-ink); vertical-align: top; }
.oss-table tr:last-child td { border-bottom: 0; }
.oss-chip {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.oss-chip.ok { color: var(--rf-ok); background: rgba(5, 150, 105, .11); }
.oss-chip.preview { color: var(--rf-warn); background: rgba(180, 83, 9, .11); }
.oss-note {
  margin-top: 16px; padding: 12px 14px;
  font-size: 12.5px; line-height: 1.75; color: var(--rf-ink-soft);
  background: var(--rf-surface-2); border-left: 3px solid var(--rf-brand); border-radius: 0 10px 10px 0;
}

.oss-terminal {
  background: #0d1426; color: #dce5f7; border-radius: 14px;
  padding: 18px 20px; font-family: var(--rf-mono); font-size: 12.5px; line-height: 1.9;
  overflow-x: auto; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.oss-terminal .c { color: #6d7b99; }
.oss-terminal .k { color: #a5b4fc; }
.oss-terminal .s { color: #86efac; }
.oss-terminal .p { color: #f0abfc; }
.oss-steps { display: grid; gap: 12px; margin: 18px 0 20px; }
.oss-step { display: flex; gap: 13px; align-items: flex-start; font-size: 13.5px; color: var(--rf-ink); }
.oss-step .n {
  flex: 0 0 24px; height: 24px; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--rf-brand), var(--rf-brand-2));
}
.oss-step span { line-height: 1.65; }

.oss-cta {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-top: 30px;
}
.oss-cta a {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 16px; border-radius: 14px;
  font-size: 14px; font-weight: 700; text-decoration: none;
  border: 1px solid var(--rf-line); background: var(--rf-surface); color: var(--rf-ink);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.oss-cta a:hover { transform: translateY(-3px); box-shadow: var(--rf-shadow); border-color: rgba(79, 70, 229, .4); }
.oss-cta a.primary {
  color: #fff; border-color: transparent;
  background-image: linear-gradient(115deg, var(--rf-brand), var(--rf-brand-2));
  box-shadow: 0 10px 26px rgba(79, 70, 229, .26);
}
.oss-cta a i { font-size: 16px; }
.oss-disclaimer {
  margin-top: 20px; text-align: center;
  font-size: 12px; line-height: 1.8; color: var(--rf-ink-soft);
}

.oss-timeline { display: grid; gap: 10px; margin-top: 8px; }
.oss-tl {
  display: grid; grid-template-columns: 96px 1fr; gap: 14px;
  padding: 13px 16px; border: 1px solid var(--rf-line);
  border-radius: 13px; background: var(--rf-surface-2);
}
.oss-tl .ver { font-weight: 800; color: var(--rf-brand); font-size: 14px; }
.oss-tl .txt { font-size: 13px; color: var(--rf-ink-soft); line-height: 1.7; }
.oss-tl .txt strong { color: var(--rf-ink); }

[data-theme="dark"] .oss-terminal { background: #080d1b; }
[data-theme="dark"] .oss-section { background: linear-gradient(180deg, #101830 0%, #0d1426 100%); }

@media (max-width: 980px) {
  .oss-grid { grid-template-columns: 1fr; }
  .oss-kpis { grid-template-columns: repeat(2, 1fr); }
  .oss-cta { grid-template-columns: 1fr; }
  .oss-section { padding: 68px 0 72px; }
}
@media (max-width: 560px) {
  .oss-wrap { padding: 0 18px; }
  .oss-kpis { gap: 10px; }
  .oss-kpi { padding: 16px 12px; }
  .oss-panel { padding: 22px 18px; }
  .oss-tl { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html.rf-on { scroll-behavior: auto; }
  .rf-on *, .oss-section * { animation: none !important; transition: none !important; }
}

/* ---------- 5. Small polish for existing marketing blocks ---------- */
.rf-on .cm-trust span {
  border: 1px solid var(--rf-line);
  border-radius: 999px;
  padding: 5px 14px;
  background: var(--rf-surface);
}
.rf-on .cm-footer { border-top: 1px solid var(--rf-line); }
.rf-on code, .rf-on .cm-deploy { font-family: var(--rf-mono); }

/* ==================================================================
   6. Shared refresh components (round 2, 2026-11-14)
   Used by products/index.html and products/roadmap.html so every
   page in the ITSM conversion path shares one visual language.
   All rules are additive and scoped to .rf-on / .rf- namespace.
   ================================================================== */

/* -- 6.1 Card interaction, applied to all refreshed pages -- */
.rf-on .cm-card {
  transition: transform .28s cubic-bezier(.2,.7,.3,1),
              box-shadow .28s ease, border-color .28s ease;
}
.rf-on .cm-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rf-shadow);
  border-color: rgba(79, 70, 229, .28);
}
.rf-on .cm-sic {
  transition: transform .28s cubic-bezier(.2,.7,.3,1);
}
.rf-on .cm-card:hover .cm-sic { transform: scale(1.08) rotate(-3deg); }

/* -- 6.2 Featured product card (ITSM) -- */
.rf-card-featured {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(79, 70, 229, .30) !important;
  background:
    linear-gradient(180deg, rgba(79, 70, 229, .055), transparent 42%),
    var(--rf-surface) !important;
  box-shadow: var(--rf-shadow-sm);
}
.rf-card-featured::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--rf-brand), var(--rf-brand-2), var(--rf-brand-3));
}
.rf-card-featured h3 a { color: var(--rf-ink); text-decoration: none; }
.rf-card-featured h3 a:hover { color: var(--rf-brand); }
.rf-featured-tag {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 8px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--rf-brand);
}

/* -- 6.3 Status pills: honest maturity, replaces the old "GA" badge -- */
.rf-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; line-height: 1.4;
  border: 1px solid transparent; white-space: nowrap;
}
.rf-status-harden {
  color: #92400e; background: rgba(245, 158, 11, .12);
  border-color: rgba(245, 158, 11, .30);
}
.rf-status-ready {
  color: #047857; background: rgba(16, 185, 129, .12);
  border-color: rgba(16, 185, 129, .30);
}
.rf-status-preview {
  color: #4338ca; background: rgba(99, 102, 241, .12);
  border-color: rgba(99, 102, 241, .30);
}
[data-theme="dark"] .rf-status-harden { color: #fcd34d; }
[data-theme="dark"] .rf-status-ready  { color: #6ee7b7; }
[data-theme="dark"] .rf-status-preview{ color: #a5b4fc; }

/* -- 6.4 Compact "real numbers" bar -- */
.rf-bar {
  position: relative; overflow: hidden;
  margin: 0 auto 34px; padding: 26px 30px 24px;
  max-width: 1120px;
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius);
  background:
    radial-gradient(60% 130% at 8% 0%, rgba(79, 70, 229, .10), transparent 70%),
    radial-gradient(50% 120% at 96% 100%, rgba(14, 165, 233, .10), transparent 72%),
    var(--rf-surface);
  box-shadow: var(--rf-shadow-sm);
}
.rf-bar-head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 10px 16px; margin-bottom: 18px;
}
.rf-bar-head h2 {
  margin: 0; font-size: clamp(19px, 2.4vw, 26px); font-weight: 800;
  color: var(--rf-ink);
}
.rf-bar-head .rf-kicker {
  font-size: 11.5px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--rf-brand);
}
.rf-bar-head .rf-as-of {
  margin-left: auto; font-size: 12px; color: var(--rf-ink-soft);
}
.rf-bar-items {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.rf-bar-item {
  padding: 14px 16px; border: 1px solid var(--rf-line);
  border-radius: 14px; background: var(--rf-surface-2);
}
.rf-bar-item .v {
  font-size: clamp(20px, 2.6vw, 28px); font-weight: 800;
  line-height: 1.15; letter-spacing: -.03em;
  background: linear-gradient(120deg, var(--rf-brand), var(--rf-brand-3));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rf-bar-item .k { margin-top: 5px; font-size: 12.5px; font-weight: 600; color: var(--rf-ink); }
.rf-bar-item .s { margin-top: 2px; font-size: 11.5px; color: var(--rf-ink-soft); }
.rf-bar-actions {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px;
}
.rf-bar-actions a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 700; text-decoration: none;
  border: 1px solid var(--rf-line); color: var(--rf-ink);
  background: var(--rf-surface);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.rf-bar-actions a:hover {
  transform: translateY(-2px); border-color: rgba(79,70,229,.4);
  box-shadow: var(--rf-shadow-sm);
}
.rf-bar-actions a.rf-primary {
  color: #fff; border-color: transparent;
  background: linear-gradient(120deg, var(--rf-brand), var(--rf-brand-2));
}

/* -- 6.5 Source-of-truth note -- */
.rf-note {
  display: flex; align-items: flex-start; gap: 12px;
  margin: 20px 0 0; padding: 15px 18px;
  border: 1px solid var(--rf-line);
  border-left: 3px solid var(--rf-brand);
  border-radius: 12px;
  background: var(--rf-surface-2);
  font-size: 13px; line-height: 1.75; color: var(--rf-ink-soft);
}
.rf-note i { color: var(--rf-brand); font-size: 15px; margin-top: 3px; flex: 0 0 auto; }
.rf-note strong { color: var(--rf-ink); }
.rf-note a { color: var(--rf-brand); font-weight: 700; text-underline-offset: 2px; }

/* -- 6.6 Tables -- */
.rf-on .rf-table, .rf-on table.cm-table {
  border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--rf-line); border-radius: 14px;
  overflow: hidden; background: var(--rf-surface);
}
.rf-on .rf-table th, .rf-on table.cm-table th {
  background: rgba(79, 70, 229, .07);
  color: var(--rf-ink); font-weight: 700; font-size: 13px;
}
.rf-on .rf-table td, .rf-on .rf-table th,
.rf-on table.cm-table td, .rf-on table.cm-table th {
  border-bottom: 1px solid var(--rf-line);
  padding: 13px 16px;
}
.rf-on .rf-table tbody tr:last-child td,
.rf-on table.cm-table tbody tr:last-child td { border-bottom: 0; }
.rf-on .rf-table tbody tr:hover,
.rf-on table.cm-table tbody tr:hover { background: rgba(79, 70, 229, .045); }

/* -- 6.7 Section eyebrow / phase cards -- */
.rf-on .cm-eyebrow {
  display: inline-block; padding: 4px 12px;
  border: 1px solid rgba(79, 70, 229, .24);
  border-radius: 999px; font-size: 11.5px; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--rf-brand); background: rgba(79, 70, 229, .06);
}
.rf-on .cm-dp-card {
  transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s ease;
}
.rf-on .cm-dp-card:hover { transform: translateY(-3px); box-shadow: var(--rf-shadow); }

/* -- 6.8 Responsive + motion -- */
@media (max-width: 900px) {
  .rf-bar { padding: 22px 20px; }
  .rf-bar-items { grid-template-columns: repeat(2, 1fr); }
  .rf-bar-head .rf-as-of { margin-left: 0; width: 100%; }
}
@media (max-width: 520px) {
  .rf-bar-items { gap: 9px; }
  .rf-bar-item { padding: 12px 11px; }
  .rf-bar-actions a { flex: 1 1 auto; justify-content: center; }
  .rf-note { padding: 13px 14px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .rf-on .cm-card, .rf-on .cm-sic, .rf-on .cm-dp-card,
  .rf-bar-actions a { transition: none !important; }
  .rf-on .cm-card:hover, .rf-on .cm-dp-card:hover,
  .rf-bar-actions a:hover { transform: none !important; }
}

/* ---- V3: flagship open-source ITSM nav entry (2026-11-14) ---- */
.cm-nav-oss {
    display: inline-flex; align-items: center; gap: 6px;
    font-weight: 700 !important; color: var(--rf-brand, #4f46e5) !important;
}
.cm-nav-oss .cm-nav-oss-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--rf-brand, #4f46e5); display: inline-block;
}
.rf-on .cm-nav-oss {
    padding: .35rem .75rem; border: 1px solid rgba(79, 70, 229, .3);
    border-radius: 999px; background: rgba(79, 70, 229, .07);
}
.rf-on .cm-nav-oss:hover { background: rgba(79, 70, 229, .14); }
@media (prefers-reduced-motion: reduce) {
    .cm-nav-oss { transition: none; }
}

/* ---- V4: 2026-11 engineering update (2026-11-14) ---- */
.upd-section {
    --upd-bg: #f7f8fc; --upd-card: #ffffff; --upd-text: #171a2b;
    --upd-muted: #5a6076; --upd-border: #e6e8f2; --upd-chip: #f2f3f9;
    padding: 76px 20px; background: var(--upd-bg);
    border-top: 1px solid var(--upd-border); border-bottom: 1px solid var(--upd-border);
}
.upd-section.upd-dark {
    --upd-bg: #12142a; --upd-card: #1c1f38; --upd-text: #f2f3fb;
    --upd-muted: #aab0c8; --upd-border: #2c3050; --upd-chip: #262a49;
}
.upd-wrap { max-width: 1120px; margin: 0 auto; }
.upd-head { margin-bottom: 30px; }
.upd-kicker {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: #fff; background: #4f46e5; border-radius: 999px; padding: 6px 13px;
}
.upd-head h2 {
    margin: 16px 0 10px; font-size: clamp(26px, 3.4vw, 36px);
    line-height: 1.25; color: var(--upd-text); font-weight: 800;
}
.upd-head p { margin: 0; max-width: 780px; color: var(--upd-muted); font-size: 15px; line-height: 1.75; }
.upd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); gap: 16px; }
.upd-card {
    background: var(--upd-card); border: 1px solid var(--upd-border);
    border-radius: 16px; padding: 22px 20px;
    box-shadow: 0 2px 10px rgba(23, 26, 43, .035);
    transition: transform .18s ease, box-shadow .18s ease;
}
.upd-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(23, 26, 43, .09); }
.upd-tag {
    display: inline-block; font-size: 11.5px; font-weight: 700;
    padding: 4px 10px; border-radius: 999px; margin-bottom: 13px;
}
.tag-harden { color: #975000; background: #fff4df; border: 1px solid #f4dcae; }
.tag-preview { color: #3b3a9e; background: #eeeefd; border: 1px solid #d7d6f7; }
.tag-ready { color: #15664a; background: #e6f6ee; border: 1px solid #c7e9d8; }
.tag-community { color: #1f5f96; background: #e8f4fd; border: 1px solid #cbe4f6; }
.upd-section.upd-dark .upd-tag { filter: brightness(.86) saturate(.9); }
.upd-card h3 { margin: 0 0 10px; font-size: 17px; line-height: 1.4; color: var(--upd-text); font-weight: 750; }
.upd-card p { margin: 0; color: var(--upd-muted); font-size: 13.5px; line-height: 1.8; }

/* The last (5th) card is the community/documentation entry — make it a full-width featured banner instead of an orphaned lone card */
.upd-card:last-child {
    grid-column: 1 / -1;
    text-align: center;
    background: linear-gradient(120deg, var(--upd-card), var(--upd-chip));
    border-color: var(--upd-border);
}
.upd-card:last-child .upd-inline-links { justify-content: center; margin-top: 16px; }
.upd-card code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px;
    background: var(--upd-chip); border: 1px solid var(--upd-border);
    border-radius: 5px; padding: 1px 5px; color: inherit;
}
.upd-inline-links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.upd-inline-links a { font-size: 12.5px; color: #6d63f5; font-weight: 600; text-decoration: none; }
.upd-inline-links a:hover { text-decoration: underline; }
.upd-links { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.upd-links a {
    display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px;
    border-radius: 999px; font-size: 13px; font-weight: 650; text-decoration: none;
    border: 1px solid var(--upd-border); color: var(--upd-text); background: var(--upd-card);
    transition: background .18s ease, border-color .18s ease;
}
.upd-links a:hover { background: var(--upd-chip); }
.upd-links a.primary { background: #4f46e5; border-color: #4f46e5; color: #fff; }
.upd-links a.primary:hover { background: #3f37c9; }
.upd-note {
    margin: 20px 0 0; padding: 14px 17px; border-left: 3px solid #4f46e5;
    background: var(--upd-card); border-radius: 0 10px 10px 0;
    font-size: 12.5px; line-height: 1.8; color: var(--upd-muted);
}
.upd-note strong { color: var(--upd-text); }
@media (max-width: 640px) {
    .upd-section { padding: 54px 16px; }
    .upd-card { padding: 18px 16px; }
    .upd-links a { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .upd-card, .upd-links a { transition: none; }
    .upd-card:hover { transform: none; }
}
