/* cloudnix.com new site (cnx.php). Builds on the template (style-07072023.css): same Inter type, the purple
   gradient of .section-head.style-4, rounded pills. Everything here is prefixed cnx- so the two never clash. */
:root {
    --cnx-ink: #12131a;
    --cnx-muted: #5d6170;
    --cnx-line: #e6e4f0;
    --cnx-soft: #f6f4fd;
    --cnx-purple: #8169f1;
    --cnx-deep: #501e9c;
    --cnx-grad: linear-gradient(to right, #501e9c 0%, #8169f1 30%, #a44cee 73%, #ff847f 100%);
}
body.cnx { font-family: Inter, sans-serif; color: var(--cnx-ink); background: #fff; }
body.cnx a { text-decoration: none; }
.cnx-muted { color: var(--cnx-muted); }
.cnx-small { font-size: 13px; margin-top: 12px; }
.cnx-kicker { color: var(--cnx-purple); font-weight: 700; font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 12px; }
.cnx-h1 { font-size: 40px; font-weight: 800; line-height: 1.2; margin: 0 0 18px; }
.cnx-h2 { font-size: 32px; font-weight: 800; line-height: 1.25; margin-bottom: 12px; }
.cnx-lead { font-size: 19px; line-height: 1.6; color: var(--cnx-muted); max-width: 640px; margin-bottom: 28px; }

/* Buttons */
.cnx-btn { display: inline-block; background: var(--cnx-purple); color: #fff !important; font-weight: 700; padding: 13px 28px; border-radius: 40px; border: 2px solid var(--cnx-purple); transition: .2s; cursor: pointer; font-size: 15px; }
.cnx-btn:hover { background: var(--cnx-deep); border-color: var(--cnx-deep); }
.cnx-btn-line { background: transparent; color: var(--cnx-deep) !important; }
.cnx-btn-line:hover { background: var(--cnx-soft); color: var(--cnx-deep) !important; }
.cnx-btn-light { background: #fff; border-color: #fff; color: var(--cnx-deep) !important; }
.cnx-btn-light:hover { background: var(--cnx-soft); border-color: var(--cnx-soft); }
.cnx-btn-sm { padding: 8px 18px; font-size: 14px; }
.cnx-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Navbar */
.cnx-nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--cnx-line); }
.cnx-nav .container { display: flex; align-items: center; gap: 28px; min-height: 70px; }
.cnx-logo img { display: block; height: 36px; width: auto; }
.cnx-links { display: flex; gap: 26px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.cnx-links a { color: var(--cnx-ink); font-weight: 600; font-size: 15px; }
.cnx-links a:hover { color: var(--cnx-purple); }
.cnx-menu { display: none; margin-left: auto; position: relative; }
.cnx-menu summary { list-style: none; cursor: pointer; padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.cnx-menu summary::-webkit-details-marker { display: none; }
.cnx-menu summary span { display: block; width: 24px; height: 2px; background: var(--cnx-ink); border-radius: 2px; }
.cnx-menu ul { position: absolute; right: 0; top: 48px; background: #fff; border: 1px solid var(--cnx-line); border-radius: 14px; box-shadow: 0 16px 40px rgba(18,19,26,.12); list-style: none; padding: 10px; margin: 0; min-width: 220px; }
.cnx-menu li a { display: block; padding: 10px 14px; color: var(--cnx-ink); border-radius: 10px; }
.cnx-menu li a:hover { background: var(--cnx-soft); }

/* Hero and page heads */
.cnx-hero { padding: 90px 0 80px; background: radial-gradient(900px 400px at 85% 10%, #efe9ff 0%, rgba(255,255,255,0) 70%); }
.cnx-hero h1 { font-size: 58px; font-weight: 800; line-height: 1.1; margin: 0 0 22px; background: var(--cnx-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cnx-hero-card { display: grid; gap: 12px; margin-top: 30px; }
.cnx-hero-product { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--cnx-line); border-radius: 18px; padding: 18px 22px; box-shadow: 0 10px 30px rgba(80,30,156,.06); transition: .2s; }
.cnx-hero-product:hover { border-color: var(--cnx-purple); transform: translateY(-2px); }
.cnx-hero-product img { width: auto; align-self: flex-start; }
.cnx-hero-product span { color: var(--cnx-muted); font-size: 15px; }
.cnx-hero-product b { color: var(--cnx-deep); font-size: 18px; }
.cnx-hero-ai { background: var(--cnx-soft); }
.cnx-page-head { padding: 80px 0 60px; background: radial-gradient(900px 380px at 85% 0%, #efe9ff 0%, rgba(255,255,255,0) 70%); }
.cnx-page-head h1 { font-size: 46px; font-weight: 800; line-height: 1.15; max-width: 820px; margin: 0 0 18px; }

/* Sections and cards */
.cnx-section { padding: 90px 0; }
.cnx-section.pt-0 { padding-top: 0; }
.cnx-soft { background: var(--cnx-soft); }
.cnx-section .section-head p { font-size: 17px; margin-top: 10px; }
.cnx-card { background: #fff; border: 1px solid var(--cnx-line); border-radius: 20px; padding: 30px; height: 100%; }
.cnx-product img { width: auto; margin-bottom: 20px; }
.cnx-product h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.cnx-product p { color: var(--cnx-muted); line-height: 1.6; }
.cnx-product-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.cnx-product-foot a, .cnx-offer > a { color: var(--cnx-purple); font-weight: 700; }
.cnx-tag { display: inline-block; background: var(--cnx-soft); color: var(--cnx-deep); font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 20px; }
.cnx-num { display: inline-block; font-weight: 800; font-size: 14px; color: #fff; background: var(--cnx-grad); border-radius: 10px; padding: 5px 10px; margin-bottom: 16px; }
.cnx-principle h4 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.cnx-principle p { color: var(--cnx-muted); line-height: 1.6; margin: 0; }
.cnx-offer h3 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.cnx-offer-line { color: var(--cnx-purple); font-weight: 600; margin-bottom: 18px; }
.cnx-ticks { list-style: none; padding: 0; margin: 0 0 22px; }
.cnx-ticks li { position: relative; padding-left: 30px; margin-bottom: 12px; line-height: 1.55; color: var(--cnx-ink); }
.cnx-ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--cnx-purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; }
.cnx-ticks-2 { columns: 2; column-gap: 30px; }
.cnx-ticks-2 li { break-inside: avoid; }

/* Built by us */
.cnx-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.cnx-feature h2 { font-size: 34px; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.cnx-feature p { color: var(--cnx-muted); font-size: 17px; line-height: 1.65; margin-bottom: 26px; }
.cnx-flow { list-style: none; counter-reset: f; padding: 0; margin: 0; display: grid; gap: 10px; }
.cnx-flow li { counter-increment: f; display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--cnx-line); border-radius: 14px; padding: 14px 18px; }
.cnx-flow li::before { content: counter(f); flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--cnx-grad); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.cnx-flow b { min-width: 76px; }
.cnx-flow span { color: var(--cnx-muted); font-size: 15px; }

/* Fit */
.cnx-fit h4 { font-size: 20px; font-weight: 800; margin-bottom: 16px; }
.cnx-fit ul { list-style: none; padding: 0; margin: 0; }
.cnx-fit li { padding: 10px 0 10px 30px; border-top: 1px solid var(--cnx-line); position: relative; line-height: 1.5; }
.cnx-fit li::before { position: absolute; left: 0; top: 9px; font-weight: 800; }
.cnx-fit-yes { border-top: 4px solid #22a06b; }
.cnx-fit-yes li::before { content: "✓"; color: #22a06b; }
.cnx-fit-no { border-top: 4px solid #e5484d; }
.cnx-fit-no li::before { content: "✕"; color: #e5484d; }

/* Call to action */
.cnx-cta { background: var(--cnx-grad); color: #fff; border-radius: 26px; padding: 60px 40px; text-align: center; }
.cnx-cta h2 { color: #fff; font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.cnx-cta p { color: rgba(255,255,255,.9); font-size: 18px; max-width: 620px; margin: 0 auto 28px; }

/* Careers */
.cnx-job { max-width: 820px; }
.cnx-job-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.cnx-job h2 { font-size: 26px; font-weight: 800; margin: 0; }
.cnx-job p { font-size: 17px; line-height: 1.65; }

/* Scope funnel */
.cnx-scope .container { max-width: 860px; }
.cnx-steps { list-style: none; display: flex; gap: 10px; padding: 0; margin: 10px 0 26px; flex-wrap: wrap; }
.cnx-steps li { display: flex; align-items: center; gap: 8px; color: var(--cnx-muted); font-weight: 600; font-size: 14px; padding: 8px 14px 8px 8px; border: 1px solid var(--cnx-line); border-radius: 30px; }
.cnx-steps li span { width: 24px; height: 24px; border-radius: 50%; background: var(--cnx-soft); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.cnx-steps li.on { color: var(--cnx-deep); border-color: var(--cnx-purple); }
.cnx-steps li.on span, .cnx-steps li.done span { background: var(--cnx-purple); color: #fff; }
.cnx-form legend { font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.cnx-form label { display: block; font-weight: 600; font-size: 14px; color: var(--cnx-ink); }
.cnx-form label small { color: var(--cnx-muted); font-weight: 400; }
.cnx-form input:not([type=radio]), .cnx-form textarea { display: block; width: 100%; margin-top: 6px; border: 1px solid var(--cnx-line); border-radius: 12px; padding: 12px 14px; font: inherit; font-weight: 400; font-size: 15px; background: #fff; }
.cnx-form input:focus, .cnx-form textarea:focus { outline: none; border-color: var(--cnx-purple); box-shadow: 0 0 0 3px rgba(129,105,241,.18); }
.cnx-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cnx-choices-row { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.cnx-choice { position: relative; margin: 0; cursor: pointer; }
.cnx-choice input { position: absolute; opacity: 0; }
.cnx-choice span { display: block; border: 1.5px solid var(--cnx-line); border-radius: 14px; padding: 16px 18px; font-weight: 600; transition: .15s; }
.cnx-choice input:checked + span { border-color: var(--cnx-purple); background: var(--cnx-soft); color: var(--cnx-deep); }
.cnx-choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(129,105,241,.3); }
.cnx-form-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }
.cnx-form-foot a { color: var(--cnx-muted); font-weight: 600; }
.cnx-errors { background: #fff1f1; border: 1px solid #f5c2c2; color: #a61b1b; border-radius: 14px; padding: 12px 18px; margin-bottom: 18px; }
.cnx-errors p { margin: 4px 0; }
.cnx-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cnx-result p { font-size: 17px; line-height: 1.65; }
.cnx-summary { display: grid; grid-template-columns: 120px 1fr; gap: 10px 18px; margin: 14px 0 0; }
.cnx-summary dt { color: var(--cnx-muted); font-weight: 600; }
.cnx-summary dd { margin: 0; }

/* Legal pages keep their own markup */
.cnx-legal .container { max-width: 860px; }

/* Footer */
.cnx-footer { border-top: 1px solid var(--cnx-line); padding: 60px 0 26px; background: #fff; }
.cnx-footer h6 { font-weight: 800; font-size: 15px; margin-bottom: 14px; }
.cnx-footer ul { list-style: none; padding: 0; margin: 0; }
.cnx-footer li { margin-bottom: 8px; }
.cnx-footer a { color: var(--cnx-muted); }
.cnx-footer a:hover { color: var(--cnx-purple); }
.cnx-social { display: flex; gap: 16px; }
.cnx-footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--cnx-line); margin-top: 40px; padding-top: 20px; color: var(--cnx-muted); font-size: 14px; }

/* Phones and tablets */
@media (max-width: 991px) {
    .cnx-links, .cnx-nav > .container > .cnx-btn { display: none; }
    .cnx-menu { display: block; }
    .cnx-hero { padding: 60px 0; }
    .cnx-hero h1 { font-size: 42px; }
    .cnx-feature { grid-template-columns: 1fr; gap: 30px; }
    .cnx-page-head h1 { font-size: 36px; }
}
@media (max-width: 575px) {
    .cnx-hero h1 { font-size: 34px; }
    .cnx-h1, .cnx-page-head h1 { font-size: 30px; }
    .cnx-lead { font-size: 17px; }
    .cnx-section { padding: 60px 0; }
    .cnx-choices { grid-template-columns: 1fr; }
    .cnx-ticks-2 { columns: 1; }
    .cnx-cta { padding: 40px 22px; }
    .cnx-cta h2 { font-size: 28px; }
    .cnx-summary { grid-template-columns: 1fr; gap: 2px; }
    .cnx-summary dd { margin-bottom: 10px; }
}

/* ===== Engineering pages ===== */
.cnx-kicker a { color: inherit; }
.cnx-h3 { font-size: 20px; font-weight: 800; margin-bottom: 18px; }
.cnx-facts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.cnx-facts div { background: #fff; border: 1px solid var(--cnx-line); border-radius: 16px; padding: 14px 20px; min-width: 150px; }
.cnx-facts b { display: block; font-size: 26px; font-weight: 800; background: var(--cnx-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cnx-facts span { color: var(--cnx-muted); font-size: 14px; }

/* Architecture diagram: columns joined by connectors; a pulse runs left to right and each column lights in turn */
.cnx-arch { display: grid; align-items: stretch; }  /* columns come from arch.php: col 38px col ... */
.cnx-arch-col { background: #fff; border: 1px solid var(--cnx-line); border-radius: 18px; padding: 16px 14px; display: flex; flex-direction: column; gap: 8px;
    animation: cnx-glow var(--cycle) ease-in-out infinite; animation-delay: calc(var(--i) * 1.2s); }
.cnx-arch-col h5 { font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--cnx-purple); margin: 0 0 4px; }
.cnx-arch-node { background: var(--cnx-soft); border-radius: 10px; padding: 9px 11px; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--cnx-ink); }
.cnx-arch-link { position: relative; align-self: center; height: 4px; margin: 0 4px; background: repeating-linear-gradient(90deg, #d9d2fb 0 6px, transparent 6px 11px); border-radius: 4px; }
.cnx-arch-link::after { content: ""; position: absolute; right: -4px; top: 50%; transform: translateY(-50%); border: 6px solid transparent; border-left-color: #b9adf7; border-right: 0; }
.cnx-arch-link span { position: absolute; top: 50%; left: 0; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--cnx-purple); box-shadow: 0 0 0 4px rgba(129,105,241,.2);
    opacity: 0; animation: cnx-pulse var(--cycle) linear infinite; animation-delay: calc(var(--i) * 1.2s + .6s); }
@keyframes cnx-glow { 0%, 100% { box-shadow: none; border-color: var(--cnx-line); } 8%, 22% { box-shadow: 0 10px 34px rgba(129,105,241,.22); border-color: var(--cnx-purple); } 34% { box-shadow: none; border-color: var(--cnx-line); } }
@keyframes cnx-pulse { 0% { left: 0; opacity: 0; } 4% { opacity: 1; } 18% { left: calc(100% - 10px); opacity: 1; } 22%, 100% { left: calc(100% - 10px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cnx-arch-col, .cnx-arch-link span, .cnx-steps-flow li { animation: none !important; } }

/* A flow: numbered steps in a row, lit one after another */
.cnx-steps-flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.cnx-steps-flow li { position: relative; background: #fff; border: 1px solid var(--cnx-line); border-radius: 16px; padding: 18px 16px; font-weight: 600; font-size: 15px; line-height: 1.45;
    animation: cnx-glow calc(var(--n) * 1s) ease-in-out infinite; animation-delay: calc(var(--i) * 1s); }
.cnx-steps-flow li span { display: flex; width: 30px; height: 30px; border-radius: 50%; background: var(--cnx-grad); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 10px; font-size: 14px; }

/* Screenshots */
.cnx-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; align-items: start; }
.cnx-shots-one { grid-template-columns: minmax(0, 860px); justify-content: center; }
.cnx-shots figure { margin: 0; }
.cnx-shots img { display: block; width: 100%; border-radius: 14px; border: 1px solid var(--cnx-line); box-shadow: 0 14px 40px rgba(18,19,26,.08); background: #fff; }
.cnx-shot-phone img { max-width: 260px; margin: 0 auto; border-radius: 26px; border: 6px solid #12131a; }
.cnx-shots figcaption { color: var(--cnx-muted); font-size: 14px; margin-top: 10px; text-align: center; }
.cnx-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cnx-chips span { border: 1px solid var(--cnx-line); background: var(--cnx-soft); border-radius: 30px; padding: 8px 16px; font-weight: 600; font-size: 14px; color: var(--cnx-deep); }

/* Work cards */
.cnx-work { display: flex; flex-direction: column; padding: 0; overflow: hidden; color: var(--cnx-ink); transition: .2s; }
.cnx-work:hover { border-color: var(--cnx-purple); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(80,30,156,.1); }
.cnx-work-shot { aspect-ratio: 16 / 10; overflow: hidden; background: var(--cnx-soft); border-bottom: 1px solid var(--cnx-line); }
.cnx-work-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.cnx-work-body { padding: 20px 22px 22px; }
.cnx-work-body h3 { font-size: 21px; font-weight: 800; margin: 10px 0 6px; }
.cnx-work-body p { color: var(--cnx-muted); margin-bottom: 12px; }
.cnx-work-body em { color: var(--cnx-purple); font-style: normal; font-weight: 700; font-size: 14px; }
.cnx-client { display: block; border: 1px solid var(--cnx-line); border-radius: 14px; overflow: hidden; background: #fff; color: var(--cnx-ink); transition: .2s; }
.cnx-client:hover { border-color: var(--cnx-purple); }
.cnx-client img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; display: block; }
.cnx-client span { display: block; padding: 10px 14px; font-weight: 700; font-size: 14px; }

/* People */
.cnx-people-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 50px; align-items: center; }
.cnx-people-hero > img { width: 100%; border-radius: 22px; box-shadow: 0 18px 50px rgba(18,19,26,.12); }
.cnx-people-hero h2 { font-size: 32px; font-weight: 800; line-height: 1.25; margin-bottom: 14px; }
.cnx-people-hero p { color: var(--cnx-muted); font-size: 17px; line-height: 1.65; }
.cnx-faces { display: flex; align-items: center; margin: 22px 0 26px; }
.cnx-faces img, .cnx-faces span { width: 48px; height: 48px; border-radius: 50%; border: 3px solid #fff; margin-left: -10px; object-fit: cover; background: var(--cnx-soft); }
.cnx-faces img:first-child { margin-left: 0; }
.cnx-faces span { display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: var(--cnx-deep); }
.cnx-founder { display: flex; gap: 36px; align-items: center; max-width: 900px; margin: 0 auto; background: var(--cnx-soft); border-radius: 24px; padding: 30px; }
.cnx-founder img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; border: 6px solid #fff; }
.cnx-quote { font-size: 21px; line-height: 1.55; font-weight: 600; color: var(--cnx-ink); }
.cnx-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 26px 20px; }
.cnx-person { text-align: center; }
.cnx-person img { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; background: var(--cnx-soft); margin-bottom: 12px; }
.cnx-person b { display: block; font-size: 16px; }
.cnx-person span { display: block; color: var(--cnx-muted); font-size: 14px; }
.cnx-gallery { columns: 3; column-gap: 16px; }
.cnx-gallery figure { break-inside: avoid; margin: 0 0 16px; }
.cnx-gallery img { width: 100%; border-radius: 16px; display: block; }
.cnx-gallery figcaption { color: var(--cnx-muted); font-size: 13px; margin-top: 6px; }

@media (max-width: 991px) {
    .cnx-arch { grid-template-columns: 1fr !important; gap: 0; }
    .cnx-arch-link { width: 4px; height: 30px; margin: 4px auto; background: repeating-linear-gradient(180deg, #d9d2fb 0 6px, transparent 6px 11px); }
    .cnx-arch-link::after { right: auto; left: 50%; top: auto; bottom: -6px; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #b9adf7; border-bottom: 0; }
    .cnx-arch-link span { display: none; }
    .cnx-steps-flow { grid-template-columns: 1fr 1fr; }
    .cnx-people-hero { grid-template-columns: 1fr; gap: 30px; }
    .cnx-gallery { columns: 2; }
}
@media (max-width: 575px) {
    .cnx-steps-flow { grid-template-columns: 1fr; }
    .cnx-founder { flex-direction: column; text-align: center; }
    .cnx-founder img { width: 140px; height: 140px; }
    .cnx-quote { font-size: 18px; }
    .cnx-gallery { columns: 1; }
    .cnx-shots { grid-template-columns: 1fr; }
}

/* ===== Carousel: one large slide at a time, radio-driven (cnx/widgets/carousel.php) ===== */
.cnx-car { position: relative; }
.cnx-car-radio { position: absolute; opacity: 0; pointer-events: none; }
.cnx-car-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.cnx-car-tabs label { cursor: pointer; display: flex; align-items: center; gap: 8px; border: 1px solid var(--cnx-line); background: #fff; border-radius: 30px; padding: 7px 14px 7px 8px; font-weight: 600; font-size: 14px; color: var(--cnx-ink); transition: .15s; user-select: none; }
.cnx-car-tabs label span { width: 22px; height: 22px; border-radius: 50%; background: var(--cnx-soft); color: var(--cnx-deep); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.cnx-car-tabs label:hover { border-color: var(--cnx-purple); }
.cnx-car-stage { position: relative; background: #fff; border: 1px solid var(--cnx-line); border-radius: 26px; box-shadow: 0 24px 60px rgba(80,30,156,.08); overflow: hidden; }
.cnx-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateX(24px); transition: opacity .45s, transform .45s;
    display: grid; grid-template-columns: 1.7fr 1fr; min-height: 460px; }
.cnx-slide-media { background: var(--cnx-soft); display: flex; align-items: center; justify-content: center; padding: 28px; }
.cnx-slide-media img { max-width: 100%; max-height: 520px; border-radius: 14px; box-shadow: 0 14px 40px rgba(18,19,26,.12); background: #fff; }
.cnx-slide-phone .cnx-slide-media img { max-height: 480px; border-radius: 28px; border: 7px solid #12131a; }
.cnx-slide-photo .cnx-slide-media { padding: 0; }
.cnx-slide-photo .cnx-slide-media img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; border-radius: 0; box-shadow: none; }
.cnx-slide-text { padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; }
.cnx-slide-count { color: var(--cnx-purple); font-weight: 800; font-size: 13px; letter-spacing: 1.5px; }
.cnx-slide-text h3 { font-size: 26px; font-weight: 800; line-height: 1.25; margin: 10px 0 12px; }
.cnx-slide-text p { color: var(--cnx-muted); font-size: 17px; line-height: 1.65; }
.cnx-slide-nav { display: flex; gap: 10px; margin-top: 18px; }
.cnx-slide-nav label { cursor: pointer; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--cnx-line); display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--cnx-deep); transition: .15s; }
.cnx-slide-nav label:hover { background: var(--cnx-purple); border-color: var(--cnx-purple); color: #fff; }

/* ===== Callout: one screen, numbered markers (cnx/widgets/callout.php) ===== */
.cnx-callout { display: grid; grid-template-columns: 1.8fr 1fr; gap: 30px; align-items: start; }
.cnx-callout-media { position: relative; border-radius: 18px; overflow: visible; }
.cnx-callout-media img { width: 100%; display: block; border-radius: 18px; border: 1px solid var(--cnx-line); box-shadow: 0 20px 50px rgba(18,19,26,.1); background: #fff; }
.cnx-pin { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; background: var(--cnx-purple); color: #fff; font-weight: 800; font-size: 14px;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 0 rgba(129,105,241,.5); animation: cnx-ring 2.4s infinite; animation-delay: var(--d); }
@keyframes cnx-ring { 0% { box-shadow: 0 0 0 0 rgba(129,105,241,.55); } 70% { box-shadow: 0 0 0 14px rgba(129,105,241,0); } 100% { box-shadow: 0 0 0 0 rgba(129,105,241,0); } }
.cnx-callout-legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.cnx-callout-legend li { display: flex; gap: 14px; align-items: flex-start; }
.cnx-callout-legend li > span { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--cnx-purple); color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.cnx-callout-legend b { display: block; font-size: 16px; }
.cnx-callout-legend p { margin: 2px 0 0; color: var(--cnx-muted); font-size: 14.5px; line-height: 1.5; }

/* ===== Code panel (cnx/widgets/code.php) ===== */
.cnx-code-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: center; }
.cnx-code { background: #12131a; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(18,19,26,.25); }
.cnx-code-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #1c1d27; }
.cnx-code-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.cnx-code-bar i:nth-child(2) { background: #febc2e; } .cnx-code-bar i:nth-child(3) { background: #28c840; }
.cnx-code-bar span { color: #8b8fa3; font-size: 13px; margin-left: 10px; font-family: ui-monospace, Menlo, monospace; }
.cnx-code pre { margin: 0; padding: 22px 24px; color: #d9dcf0; font: 14px/1.65 ui-monospace, Menlo, Consolas, monospace; overflow-x: auto; white-space: pre; }

/* ===== Diagrams (cnx/widgets/diagrams/*.php) ===== */
.cnx-dg-wrap { background: #fff; border: 1px solid var(--cnx-line); border-radius: 26px; padding: 24px; box-shadow: 0 24px 60px rgba(80,30,156,.07); }
.cnx-dg { width: 100%; height: auto; display: block; font-family: Inter, sans-serif; }
.cnx-dg text { font-size: 15px; fill: var(--cnx-ink); }
.cnx-dg .h { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; fill: var(--cnx-purple); }
.cnx-dg .b { font-weight: 700; }
.cnx-dg .m { fill: var(--cnx-muted); font-size: 13.5px; }
.cnx-dg .w { fill: #fff; }
.cnx-dg .s { font-size: 12.5px; }
.cnx-dg .xs { font-size: 10.5px; }
.cnx-dg .r { fill: #e5484d; font-weight: 700; }
.cnx-dg .ln { fill: none; stroke: #b9adf7; stroke-width: 2.5; }
.cnx-dg .dashed { stroke-dasharray: 6 7; animation: cnx-dash 1.4s linear infinite; }
.cnx-dg .revise { stroke: #ff847f; stroke-dasharray: 6 6; animation: cnx-dash 1.2s linear infinite; }
.cnx-dg .beam { stroke: #8169f1; stroke-width: 3; stroke-dasharray: 8 6; animation: cnx-dash 1s linear infinite; }
.cnx-dg .road { fill: none; stroke: #e6e4f0; stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.cnx-dg .steps text { font-size: 12px; font-weight: 700; fill: var(--cnx-purple); }
@keyframes cnx-dash { to { stroke-dashoffset: -26; } }
@keyframes cnx-blink { 0%, 100% { opacity: 0; transform: translateY(6px); } 15%, 60% { opacity: 1; transform: none; } 75% { opacity: 0; } }
@keyframes cnx-beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
@keyframes cnx-spin { to { transform: rotate(360deg); } }
@keyframes cnx-grow { 0% { transform: scaleY(.15); } 50%, 100% { transform: scaleY(1); } }
@keyframes cnx-growx { 0% { transform: scaleX(.1); } 45%, 100% { transform: scaleX(1); } }
/* Shopnix */
.sx-pop, .sx-bubble { animation: cnx-blink 7s infinite; transform-box: fill-box; }
.sx-pop { animation-delay: 2.2s; } .sx-bubble { animation-delay: 3.6s; }
.sx-ping { animation: cnx-beat 1.6s infinite; transform-box: fill-box; transform-origin: center; }
/* Mynix */
.mx-move { animation: mx-move 9s ease-in-out infinite; }
@keyframes mx-move { 0%, 8% { transform: translate(0, 0); opacity: 0; } 12%, 24% { transform: translate(0, 0); opacity: 1; } 32%, 46% { transform: translate(160px, 0); } 54%, 68% { transform: translate(320px, 0); } 76%, 92% { transform: translate(480px, 0); opacity: 1; } 100% { transform: translate(480px, 0); opacity: 0; } }
.mx-submit { animation: cnx-beat 9s infinite; transform-box: fill-box; transform-origin: center; }
.mx-sla { stroke-dashoffset: 0; animation: mx-sla 9s linear infinite; }
@keyframes mx-sla { 0%, 30% { stroke-dashoffset: 0; } 46% { stroke-dashoffset: 46; } 100% { stroke-dashoffset: 46; } }
.mx-bar { transform-box: fill-box; transform-origin: bottom; animation: cnx-grow 4.5s ease-out infinite; animation-delay: var(--d); }
.mx-donut { stroke-dashoffset: 163; animation: mx-donut 4.5s ease-out infinite; }
@keyframes mx-donut { 0% { stroke-dashoffset: 163; } 50%, 100% { stroke-dashoffset: 22; } }
/* Bugasura */
.bg-vec circle { fill: #8169f1; animation: bg-twinkle 2.4s infinite; }
.bg-vec circle:nth-child(2n) { animation-delay: .6s; fill: #ff847f; } .bg-vec circle:nth-child(3n) { animation-delay: 1.2s; }
@keyframes bg-twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.bg-fan { animation: cnx-spin 1.2s linear infinite; transform-box: fill-box; transform-origin: center; }
.bg-orbit { animation: cnx-spin 12s linear infinite; }
.bg-orbit > g > * { animation: cnx-spin 12s linear infinite reverse; transform-box: fill-box; transform-origin: center; }
.bg-load { transform-box: fill-box; transform-origin: left; animation: bg-load 2s ease-in-out infinite; }
@keyframes bg-load { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(42px); } }
.bg-out { animation: cnx-blink 3.5s infinite; animation-delay: var(--d, 0s); }
.bg-chunks rect { animation: bg-twinkle 1.8s infinite; } .bg-chunks rect:nth-child(2n) { animation-delay: .5s; }
/* Autocon */
.ac-node rect { animation: ac-glow 9s infinite; animation-delay: var(--d); }
@keyframes ac-glow { 0%, 100% { stroke: #e6e4f0; } 3%, 12% { stroke: #8169f1; stroke-width: 3; } 16% { stroke: #e6e4f0; stroke-width: 1; } }
.ac-rule { animation: cnx-blink 9s infinite; animation-delay: 7.2s; }
.ac-swap-a { animation: ac-swap 8s infinite; } .ac-swap-b { animation: ac-swap 8s infinite reverse; }
@keyframes ac-swap { 0%, 45% { opacity: 1; } 50%, 95% { opacity: 0; } 100% { opacity: 1; } }
/* Hirenix */
.hx-spark { animation: cnx-spin 4s linear infinite; transform-box: fill-box; transform-origin: center; }
.hx-tile rect { animation: hx-tile 4s infinite; animation-delay: var(--d); }
@keyframes hx-tile { 0%, 100% { fill: #efe9ff; } 10%, 25% { fill: #d9d2fb; } }
.hx-bar { transform-box: fill-box; transform-origin: left; animation: cnx-growx 5s ease-out infinite; animation-delay: var(--d); }
/* Diagram as a card cover */
.cnx-work-dg { padding: 10px; display: flex; align-items: center; justify-content: center; background: #fff; }
.cnx-work-dg .cnx-dg { height: 100%; width: auto; max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
    .cnx-dg *, .cnx-pin { animation: none !important; }
}
@media (max-width: 991px) {
    .cnx-slide { grid-template-columns: 1fr; min-height: 0; }
    .cnx-slide-media img { max-height: 380px; }
    .cnx-slide-text { padding: 26px 24px 30px; }
    .cnx-callout, .cnx-code-wrap { grid-template-columns: 1fr; }
    .cnx-dg-wrap { padding: 12px; overflow-x: auto; }
    .cnx-dg-wrap .cnx-dg { min-width: 760px; }
}
@media (max-width: 575px) {
    .cnx-car-tabs label { font-size: 13px; }
    .cnx-pin { width: 24px; height: 24px; font-size: 12px; }
    .cnx-slide-text h3 { font-size: 22px; }
}
.bg-model { opacity: 0; animation: bg-model 9s infinite; }
.bg-m2 { animation-delay: 3s; } .bg-m3 { animation-delay: 6s; }
@keyframes bg-model { 0% { opacity: 0; } 4%, 30% { opacity: 1; } 34%, 100% { opacity: 0; } }
/* Moofu */
.mf-edges path { stroke-dasharray: 120; stroke-dashoffset: 120; animation: mf-draw 6s ease-out infinite; }
@keyframes mf-draw { 0% { stroke-dashoffset: 120; } 40%, 100% { stroke-dashoffset: 0; } }
.mf-cells rect { fill: #f6f4fd; animation: mf-cell 6s infinite; animation-delay: var(--d); }
.mf-good { --on: #22a06b; } .mf-bad { --on: #e5484d; }
@keyframes mf-cell { 0%, 8% { fill: #f6f4fd; } 14%, 90% { fill: var(--on); } 100% { fill: #f6f4fd; } }
.mf-ans { transform-box: fill-box; transform-origin: left; animation: cnx-growx 4s ease-out infinite; animation-delay: var(--d); }
.mf-ok { animation: cnx-blink 6s infinite; animation-delay: 1s; }
