:root{
  --qd-dev-green:#54b89d;
  --qd-dev-green-dark:#219c66;
  --qd-dev-purple:#7f56d9;
  --qd-dev-text:#1f2430;
  --qd-dev-muted:#626363;
  --qd-dev-line:rgba(98,99,99,.18);
  --qd-dev-line-soft:rgba(98,99,99,.13);
  --qd-dev-surface:#fff;
}

.qd-dev{position:relative;width:100%;height:320px;min-height:320px;border:1px solid var(--qd-dev-line);border-radius:24px;background:var(--qd-dev-surface);overflow:hidden;font-family:"Assistant",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--qd-dev-text)}
.qd-dev--trace{height:360px;min-height:360px}
.qd-dev__dots{position:absolute;inset:0;background-image:radial-gradient(rgba(98,99,99,.12) 1px,transparent 1px);background-size:14px 14px;opacity:.55}
.qd-dev__icon{width:24px;height:24px;display:block;flex:0 0 auto}
.qd-dev__particle{position:absolute;left:0;top:0;z-index:2;width:8px;height:8px;border-radius:999px;background:var(--qd-dev-green);box-shadow:0 0 0 6px rgba(84,184,157,.11);opacity:0;offset-rotate:0deg;animation:qd-dev-travel var(--dur,6.8s) linear infinite}
.qd-dev__particle--purple{background:var(--qd-dev-purple);box-shadow:0 0 0 6px rgba(127,86,217,.11)}
.qd-dev__connector-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;z-index:1;pointer-events:none}
.qd-dev__connector-svg path{fill:none;stroke:var(--qd-dev-green-dark);stroke-width:1.6;stroke-linecap:round;stroke-dasharray:4 8;stroke-dashoffset:0;opacity:.45;animation:qd-dev-dash 2.9s linear infinite}

/* Preview */
.qd-dev-preview{max-width:1180px;margin:0 auto;padding:24px 18px 42px}
.qd-dev-preview__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.qd-dev-preview__item h2{font-size:16px;line-height:1.15;margin:0 0 10px;color:#1f2430}

.qd-dev-cloud,.qd-dev-scale,.qd-dev-iac,.qd-dev-updates,.qd-dev-int,.qd-dev-sec,.qd-dev-trace{position:absolute;inset:18px;z-index:1}

/* Cloud */
.qd-dev-cloud__badge,.qd-dev-scale__status,.qd-dev-updates__status,.qd-dev-int__label,.qd-dev-sec__status{position:absolute;left:50%;transform:translateX(-50%);z-index:5;padding:8px 12px;border:1px solid rgba(84,184,157,.30);border-radius:999px;background:rgba(255,255,255,.94);font-size:12px;font-weight:850;color:var(--qd-dev-muted);box-shadow:0 10px 22px rgba(16,24,40,.055);transition:opacity .55s ease,transform .55s ease}
.qd-dev-cloud__badge{top:0;white-space:nowrap}
.qd-dev-cloud__core{position:absolute;z-index:4;left:50%;top:50%;transform:translate(-50%,-50%);width:124px;height:104px;border-radius:26px;border:1px solid rgba(127,86,217,.28);background:rgba(255,255,255,.96);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;box-shadow:0 16px 34px rgba(16,24,40,.08)}
.qd-dev-cloud__core svg{width:30px;height:30px;color:var(--qd-dev-purple)}
.qd-dev-cloud__core strong{font-size:13px;font-weight:900;line-height:1.05}
.qd-dev-cloud__core small{max-width:88px;font-size:10.5px;line-height:1.08;font-weight:800;color:var(--qd-dev-muted)}
.qd-dev-cloud__core:before,.qd-dev-cloud__core:after{content:"";position:absolute;inset:-7px;border-radius:30px;border:1px solid rgba(127,86,217,.18);animation:qd-dev-ripple 2.9s ease-out infinite}.qd-dev-cloud__core:after{animation-delay:1.45s}
.qd-dev-cloud__layer{position:absolute;z-index:4;width:96px;min-height:64px;padding:9px 8px;border:1px solid var(--qd-dev-line-soft);border-radius:17px;background:rgba(255,255,255,.96);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;text-align:center;box-shadow:0 12px 24px rgba(16,24,40,.075)}
.qd-dev-cloud__layer svg{width:23px;height:23px;color:var(--qd-dev-green-dark)}
.qd-dev-cloud__layer span{font-size:12px;font-weight:900;line-height:1.05}.qd-dev-cloud__layer em{font-style:normal;font-size:10px;font-weight:800;color:var(--qd-dev-muted);line-height:1.05}
.qd-dev-cloud__layer--cache{left:0;top:calc(50% - 32px)}
.qd-dev-cloud__layer--redis{right:0;top:calc(50% - 32px)}
.qd-dev-cloud__lines{position:absolute;inset:0}

/* Scale */
.qd-dev-scale__ingress{position:absolute;left:50%;top:8px;transform:translateX(-50%);z-index:4;width:138px;min-height:66px;padding:9px 10px;border:1px solid rgba(127,86,217,.25);border-radius:20px;background:rgba(255,255,255,.96);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center;box-shadow:0 14px 28px rgba(16,24,40,.075)}
.qd-dev-scale__ingress svg{width:25px;height:25px;color:var(--qd-dev-purple)}
.qd-dev-scale__ingress strong{font-size:13px;font-weight:900;line-height:1}.qd-dev-scale__ingress span{font-size:10.5px;font-weight:800;color:var(--qd-dev-muted);line-height:1}
.qd-dev-scale__pods{position:absolute;left:0;right:0;top:148px;z-index:4;display:grid;grid-template-columns:repeat(4,72px);justify-content:space-between}
.qd-dev-scale__pod{position:relative;z-index:4;width:72px;height:64px;border:1px solid var(--qd-dev-line-soft);border-radius:17px;background:rgba(255,255,255,.96);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;box-shadow:0 12px 24px rgba(16,24,40,.07);transition:background .8s ease,border-color .8s ease,box-shadow .8s ease}
.qd-dev-scale__pod{gap:2px}.qd-dev-scale__pod span{font-size:13px;font-weight:900;line-height:1}.qd-dev-scale__pod em{font-size:10px;font-weight:800;color:var(--qd-dev-muted);font-style:normal;line-height:1.05}.qd-dev-scale__pod.is-live{background:rgba(84,184,157,.10);border-color:rgba(84,184,157,.36);box-shadow:0 14px 28px rgba(16,24,40,.085)}
.qd-dev-scale__status{bottom:0;min-width:144px;text-align:center}
.qd-dev-scale__lines{position:absolute;inset:0}

/* IaC */
.qd-dev-iac__source{position:absolute;left:0;top:calc(50% - 44px);z-index:4;width:112px;height:88px;padding:10px 8px;border:1px solid var(--qd-dev-line-soft);border-radius:19px;background:rgba(255,255,255,.96);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;text-align:center;box-shadow:0 12px 24px rgba(16,24,40,.075)}
.qd-dev-iac__source svg{width:24px;height:24px;color:var(--qd-dev-purple)}
.qd-dev-iac__source strong{font-size:12.5px;font-weight:900;line-height:1.05}.qd-dev-iac__source small{font-size:10px;font-weight:800;color:var(--qd-dev-muted);line-height:1.08;max-width:100px}
.qd-dev-iac__steps{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:4;width:88px;display:flex;flex-direction:column;gap:7px}
.qd-dev-iac__steps span{display:block;text-align:center;padding:7px 8px;border:1px solid var(--qd-dev-line-soft);border-radius:999px;background:rgba(255,255,255,.95);font-size:11px;font-weight:900;color:var(--qd-dev-muted);transition:background .6s ease,border-color .6s ease,color .6s ease,transform .6s ease}
.qd-dev-iac__steps span.is-live{background:rgba(84,184,157,.12);border-color:rgba(84,184,157,.34);color:var(--qd-dev-text);transform:scale(1.04)}
.qd-dev-iac__infra{position:absolute;right:0;z-index:4;width:94px;min-height:52px;padding:8px 7px;border:1px solid var(--qd-dev-line-soft);border-radius:17px;background:rgba(255,255,255,.96);display:flex;align-items:center;justify-content:center;gap:7px;box-shadow:0 12px 24px rgba(16,24,40,.07)}
.qd-dev-iac__infra svg{width:20px;height:20px;color:var(--qd-dev-green-dark)}.qd-dev-iac__infra span{font-size:11px;font-weight:900;line-height:1.05}
.qd-dev-iac__infra--one{top:28px}.qd-dev-iac__infra--two{top:116px}.qd-dev-iac__infra--three{top:204px;bottom:auto}
.qd-dev-iac__lines{position:absolute;inset:0}

/* Updates */
.qd-dev-updates__rail{position:absolute;left:50%;top:8px;transform:translateX(-50%);z-index:5;display:flex;gap:7px;padding:8px;border:1px solid var(--qd-dev-line-soft);border-radius:999px;background:rgba(255,255,255,.94);box-shadow:0 12px 24px rgba(16,24,40,.06)}
.qd-dev-updates__rail span{font-size:10.5px;font-weight:900;color:var(--qd-dev-muted);padding:3px 6px;border-radius:999px;transition:background .6s ease,color .6s ease,transform .6s ease}.qd-dev-updates__rail span.is-live{background:rgba(84,184,157,.12);color:var(--qd-dev-text);transform:scale(1.04)}
.qd-dev-updates__pods{position:absolute;left:16px;right:16px;top:122px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;z-index:4}
.qd-dev-updates__pod{height:72px;border:1px solid var(--qd-dev-line-soft);border-radius:18px;background:rgba(255,255,255,.96);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;box-shadow:0 12px 24px rgba(16,24,40,.07);transition:background .8s ease,border-color .8s ease,box-shadow .8s ease}
.qd-dev-updates__pod{gap:2px}.qd-dev-updates__pod strong{font-size:14px;font-weight:950;line-height:1}.qd-dev-updates__pod span{font-size:10.5px;font-weight:850;color:var(--qd-dev-muted);line-height:1.05}.qd-dev-updates__pod.is-live{background:rgba(127,86,217,.07);border-color:rgba(127,86,217,.28);box-shadow:0 14px 28px rgba(16,24,40,.085)}
.qd-dev-updates__lines{position:absolute;inset:0}
.qd-dev-updates__status{bottom:0;min-width:152px;text-align:center}

/* Integrations */
.qd-dev-int__core{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:4;width:118px;height:104px;border:1px solid rgba(127,86,217,.28);border-radius:26px;background:rgba(255,255,255,.96);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;box-shadow:0 16px 34px rgba(16,24,40,.08)}
.qd-dev-int__core svg{width:28px;height:28px;color:var(--qd-dev-purple)}.qd-dev-int__core strong{font-size:13px;font-weight:950;line-height:1.05}.qd-dev-int__core small{font-size:10px;max-width:78px;line-height:1.08;font-weight:800;color:var(--qd-dev-muted)}
.qd-dev-int__node{position:absolute;z-index:4;width:78px;min-height:42px;padding:8px 7px;border:1px solid var(--qd-dev-line-soft);border-radius:16px;background:rgba(255,255,255,.96);display:flex;align-items:center;justify-content:center;text-align:center;font-size:11.5px;font-weight:900;box-shadow:0 10px 22px rgba(16,24,40,.065)}
.qd-dev-int__node--a{left:0;top:28px}.qd-dev-int__node--b{left:0;top:calc(50% - 21px)}.qd-dev-int__node--c{left:0;bottom:28px}.qd-dev-int__node--d{right:0;top:28px}.qd-dev-int__node--e{right:0;top:calc(50% - 21px)}.qd-dev-int__node--f{right:0;bottom:28px}
.qd-dev-int__label{bottom:0;min-width:88px;text-align:center}.qd-dev-int__lines{position:absolute;inset:0}

/* Security */
.qd-dev-sec__stage{position:absolute;top:50%;transform:translateY(-50%);z-index:4;width:96px;height:96px;border:1px solid var(--qd-dev-line-soft);border-radius:22px;background:rgba(255,255,255,.96);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;box-shadow:0 14px 28px rgba(16,24,40,.075)}
.qd-dev-sec__stage svg{width:27px;height:27px;color:var(--qd-dev-green-dark)}.qd-dev-sec__stage strong{font-size:13px;font-weight:950;line-height:1}.qd-dev-sec__stage span{font-size:10px;font-weight:850;color:var(--qd-dev-muted);max-width:76px;line-height:1.08}
.qd-dev-sec__stage--edge{left:0}.qd-dev-sec__stage--identity{left:50%;transform:translate(-50%,-50%)}.qd-dev-sec__stage--identity svg{color:var(--qd-dev-purple)}.qd-dev-sec__stage--platform{right:0}
.qd-dev-sec__status{bottom:0;min-width:138px;text-align:center}.qd-dev-sec__lines{position:absolute;inset:0}

/* Trace */
.qd-dev-trace__log{position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);z-index:4;border:1px solid var(--qd-dev-line-soft);border-radius:20px;background:rgba(255,255,255,.96);box-shadow:0 14px 30px rgba(16,24,40,.07);padding:12px;overflow:visible}
.qd-dev-trace__entry{display:grid;grid-template-columns:44px 1fr;align-items:center;gap:10px;padding:7px 10px;border:1px solid transparent;border-radius:14px;background:transparent;transition:background .55s ease,border-color .55s ease,transform .55s ease,opacity .55s ease}
.qd-dev-trace__entry + .qd-dev-trace__entry{margin-top:5px}
.qd-dev-trace__entry em{font-style:normal;font-size:10.5px;font-weight:850;color:var(--qd-dev-muted)}.qd-dev-trace__entry span{font-size:11.5px;font-weight:850;line-height:1.08}.qd-dev-trace__entry.is-live{background:rgba(84,184,157,.10);border-color:rgba(84,184,157,.28);transform:translateX(3px)}

@keyframes qd-dev-dash{to{stroke-dashoffset:-12}}
@keyframes qd-dev-travel{0%{offset-distance:0%;opacity:.12;transform:scale(.72)}10%{opacity:1}90%{opacity:1}100%{offset-distance:100%;opacity:.12;transform:scale(.84)}}
@keyframes qd-dev-ripple{0%{opacity:.55;transform:scale(.96)}100%{opacity:0;transform:scale(1.22)}}

@media (max-width:640px){
  .qd-dev{height:320px;min-height:320px;border-radius:22px}
  .qd-dev--trace{height:360px;min-height:360px}
  .qd-dev-preview__grid{grid-template-columns:1fr}
  .qd-dev-cloud,.qd-dev-scale,.qd-dev-iac,.qd-dev-updates,.qd-dev-int,.qd-dev-sec,.qd-dev-trace{inset:16px}
  .qd-dev-cloud__badge{font-size:11.5px;padding:7px 10px}
  .qd-dev-cloud__layer{width:82px;height:76px;min-height:76px;box-sizing:border-box}
  .qd-dev-cloud__core{width:104px;height:96px;border-radius:23px;top:68px;transform:translateX(-50%)}
  .qd-dev-cloud__layer--cache{top:auto;bottom:24px;left:6px}
  .qd-dev-cloud__layer--redis{top:auto;bottom:24px;right:6px}
  .qd-dev-scale__pods{grid-template-columns:repeat(4,60px);top:154px}
  .qd-dev-scale__pod{width:60px;height:60px}
  .qd-dev-iac__source{width:104px}.qd-dev-iac__source small{font-size:9.3px}.qd-dev-iac__steps{width:76px}.qd-dev-iac__infra{width:78px}
  .qd-dev-iac__infra--one{top:26px}.qd-dev-iac__infra--two{top:114px}.qd-dev-iac__infra--three{top:202px;bottom:auto}
  .qd-dev-updates__pods{left:8px;right:8px;gap:8px;grid-template-columns:repeat(3,minmax(0,1fr))}.qd-dev-updates__pod{height:66px}.qd-dev-updates__pod--d{display:none}
  .qd-dev-int__node{width:66px;font-size:10.5px}.qd-dev-int__core{width:104px;height:96px}
  .qd-dev-sec__stage{width:82px;height:88px;border-radius:19px}.qd-dev-sec__stage span{max-width:66px}
  .qd-dev-trace__entry{grid-template-columns:38px 1fr;padding:8px 8px}.qd-dev-trace__entry span{font-size:10.5px}
}
